Add warning indicator for listings older than 1 year - #2548
Merged
Conversation
- Add isOldListing function to check if listing is >1 year old - Display warning message for outdated listings in StakeholderDetails - Use yellow warning styling consistent with app design - Warning appears above 'Data updated on' text for verified listings Fixes hackforla#2068
junjun107
approved these changes
Sep 16, 2025
junjun107
left a comment
Member
There was a problem hiding this comment.
Beside the padding bottom on the bottom, everything else looks great !
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.
Fixes #2068
Summary
Adds a warning indicator for food assistance listings that haven't been updated in over 1 year, helping users identify potentially outdated information.
Changes Made
isOldListingfunction to check if listing dates are >1 year oldStakeholderDetailscomponent for old listingsMedia
The screenshot shows three different styles available with Material UI.
I put the warning near the bottom with the date info since they're related. I tried moving it to the top (last screenshot) but didn't love how it looked. Happy to adjust the styling or position based on what the design team thinks works best.