Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Andy/complete cancel pickup events #220

Merged
merged 15 commits into from
Apr 13, 2024
Merged

Conversation

WishingWell13
Copy link
Contributor

@WishingWell13 WishingWell13 commented Apr 9, 2024

Info

Closes #219 .

Fixed Linked Event Dropdown Breaks After Click and No Select For Admin Pickup Event Page

Changes

  • Made entering weird dates also not break the admin portal

Type of Change

  • Bug Fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • Logistics Change (A change to a README, description, or dev workflow setup like
    linting/formatting)
  • Continuous Integration Change (Related to deployment steps or continuous integration
    workflows)
  • Other: (Fill In)

Testing

I have tested that my changes fully resolve the linked issue ...

  • locally on Desktop.
  • on the live deployment preview on Desktop.
  • on the live deployment preview on Mobile.
  • I have added new Cypress tests that are passing.

Checklist

  • I have performed a self-review of my own code.
  • I have followed the style guidelines of this project.
  • I have documented any new functions in /src/lib/* and commented hard to understand areas
    anywhere else.
  • My changes produce no new warnings.

Screenshots

(ignore timer, is an extension)
image

Also fixed text wrap issue

Also updated Button component to take in class names
Updated button styling for pickup event page

Updated common Button component styling to auto expand to content

Hide the complete/cancel buttons if the event isn't active
If you clicked the select a pickup event toggle but didn't select an event, the API call wouldn't work b/c the linkedEventUuid would be '', not null.

Fixed the issue by changing value to be null when linkedEventUuid is ''
Copy link

vercel bot commented Apr 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
membership-portal-ui-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2024 7:07pm
testing-membership-portal-ui-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2024 7:07pm

Copy link
Contributor

@raymosun raymosun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorting looks good!

For linkedEventUUID, maybe instead of creating a new variable, replace each instance with linkedEventUUID || null.

I also noticed another bug: if you spam garbage in the date, it can break the site. Maybe
image

image

You have to specify the key name
like linkedEventUuid: linkedEventUuid || null
the shorthand only works if you pass in a single variable that’s used as the key and value like u did for title
for complete and cancel functions
Copy link
Contributor

@raymosun raymosun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🚀

@WishingWell13 WishingWell13 merged commit a92bb3f into main Apr 13, 2024
8 checks passed
@WishingWell13 WishingWell13 deleted the andy/completeCancelPickupEvents branch April 13, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linked Event Dropdown Breaks After Click and No Select For Admin Pickup Event Page
3 participants