Skip to content

Add warning indicator for listings older than 1 year - #2548

Merged
Giolii merged 2 commits into
hackforla:developfrom
Giolii:2068-old-listing-indicator
Sep 16, 2025
Merged

Add warning indicator for listings older than 1 year#2548
Giolii merged 2 commits into
hackforla:developfrom
Giolii:2068-old-listing-indicator

Conversation

@Giolii

@Giolii Giolii commented Sep 16, 2025

Copy link
Copy Markdown
Member

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

  • Added isOldListing function to check if listing dates are >1 year old
  • Added warning message in StakeholderDetails component for old listings
  • Used yellow warning from Material UI
  • Warning appears above the "Data updated on" text for verified listings

Media

Screenshot 2025-09-15 at 4 43 47 PM Screenshot 2025-09-15 at 4 44 18 PM Screenshot 2025-09-15 at 4 44 52 PM Screenshot 2025-09-15 at 4 49 40 PM

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.

- 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 junjun107 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Beside the padding bottom on the bottom, everything else looks great !

@junjun107 junjun107 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Giolii
Giolii merged commit aae195a into hackforla:develop Sep 16, 2025
1 check passed
@Giolii
Giolii deleted the 2068-old-listing-indicator branch September 16, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: For old listings (such as >1 year old), add an indicator / warning that data may be old and out-of-date

2 participants