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

Feature: Announcement dialog (for holidays, emergencies, etc.) #2326

Open
fancyham opened this issue Jan 17, 2025 · 0 comments
Open

Feature: Announcement dialog (for holidays, emergencies, etc.) #2326

fancyham opened this issue Jan 17, 2025 · 0 comments
Labels
P-Feature: Landing Page Food seeker landing page Priority - Med Needs to be in the next release Release Note: Enhancement Shows on Release Notes under "Enhancements" Role: Front-end Front End Developer size: 3pt The lift to complete this user story 4-8hrs

Comments

@fancyham
Copy link
Collaborator

fancyham commented Jan 17, 2025

Context

Sometimes, we need to display an announcement to all visitors.
This would typically happen around holidays, but might also be used for emergencies.

Examples

  • ⚠️Due to fires, some information may be out-of-date
  • 🎁Holiday hours may be different from usual. Please contact organizations for their specific holiday schedule.
  • ⚠️If you have been affected by the fires, please also visit someurlat.la.gov for more information.

Other sites have a dismissible announcement dialog for these situations, so we are doing something similar. (similar to dialogs that ask you to sign up for a newsletter)

How is it now?

The LA Palisades fires just happened, so we've hard-coded an announcement into the header, but it's clumsy and doesn't great. It is also very limited in text length.

So we want to build something that's more robust, user-friendly, and can handle more text.

Proposed new feature

Using the existing Material Design dialog style, we want to display a dialog when the user first visits the site.

Image

How it works:

  • Dialog appears on the user's first screen (regardless of what it is). This dialog appears once per-session. New sessions will see the dialog again.
  • Dialog does not appear on the volunteer portion of the site (deep linking into the volunteer portion should not display this dialog)
  • Once dismissed, it doesn't appear again until the user starts a new session
  • There's a background scrim overlaying the page. Tapping/clicking the scrim dismisses the dialog.
  • Tapping 'esc' key on a keyboard dismisses the dialog.
  • User needs to tap/Click OK or background scrim to dismiss dialog
  • Control panel to edit the announcement text
  • Announcement text can have emojis, HTML links, styling that should show up correctly as the dialog text (let us know if that's not possible) This could be done using Markdown or by entering actual HTML code (Markdown would be ideal)
  • Settings are per-tenant (e.g. LA might have an announcement active but Hawaii does not)

Control panel
Image

Stretch goal:

Scheduled announcements with start and/or end date. Announcement displays based on the server's date/time, if possible.

Image

Discussion

One issue of this dialog is that people may dismiss it without reading it.

If we find people doing this and missing important information, we may add a link (perhaps near the header) that re-displays the dialog.

@github-project-automation github-project-automation bot moved this to New Issue Approval in P: FOLA: Project Board Jan 17, 2025
@fancyham fancyham added Role: Front-end Front End Developer Ready for dev lead Issue ready for dev lead to review labels Jan 17, 2025
@fancyham fancyham added this to the 08. New feature Development milestone Jan 17, 2025
@fancyham fancyham moved this from New Issue Approval to Prioritized Backlog in P: FOLA: Project Board Jan 17, 2025
@entrotech entrotech added size: 3pt The lift to complete this user story 4-8hrs Priority - Med Needs to be in the next release P-Feature: Landing Page Food seeker landing page Release Note: Enhancement Shows on Release Notes under "Enhancements" labels Jan 21, 2025
@fancyham fancyham removed the Ready for dev lead Issue ready for dev lead to review label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-Feature: Landing Page Food seeker landing page Priority - Med Needs to be in the next release Release Note: Enhancement Shows on Release Notes under "Enhancements" Role: Front-end Front End Developer size: 3pt The lift to complete this user story 4-8hrs
Projects
Status: Prioritized Backlog
Development

No branches or pull requests

2 participants