Fix Give Feedback button logic and remove Reapply from vendor rejected requests - #325
Merged
Merged
Conversation
…d requests - Update EventCard to show Give Feedback only for past events using endDate/end-of-day comparison - Remove Reapply button from VendorDashboard rejected applications tab
Lint & Format summary
How to fix locally:
Notes:
|
…n VendorDashboard
Vercel Preview ✅
This comment is posted automatically after a successful Vercel deployment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces improvements to how event feedback actions are displayed in the
EventCardcomponent, ensuring feedback is only available for past events with accurate date comparisons. Additionally, it updates the vendor dashboard to remove the ability for users to reapply to rejected applications and clarifies related UI and comments.Event Feedback Action Improvements:
parseEventDateForComparisonto accurately determine if an event is in the past, considering both date-only and datetime strings, and preferringendDatewhen available. This ensures feedback actions are only shown for past events.EventCardto use the newcanShowFeedbackActionlogic, improving accuracy and maintainability. [1] [2]Vendor Dashboard Updates: