Plan: alert blocks

Created on 9 April 2025, 13 days ago

Problem/Motivation

The original thinking was that there would need to be two blocks, one placing anything that is a site alert and one for anything that is an alert.

Proposed resolution

In thinking about this more, I think there needs to be four blocks, but only three new blocks.

  1. Sitewide Alert (category: Sitewide Alert Block) - this is the default block that is created by the Sitewide Alert module. It will display any and all active sitewide alerts.
  2. Sitewide Alert - USWDS Alert (category: Sitewide Alert Block) This block will only display alerts of type "Alert - *"
  3. Sitewide Alert - USWDS Site Alert (category: Sitewide Alert Block) This block will only display alerts of type "Site Alert - *"
  4. Sitewide Alert - Non-USWDS alerts (category: Sitewide Alert Block) This block will display any alerts that are NOT of type "Alert - *" or "Site Alert - *"

Acceptance Criteria

  1. A plan of attack
  2. tickets created for each block
🌱 Plan
Status

Active

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @swirt
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida
  • πŸ‡ΊπŸ‡ΈUnited States skyriter

    For my own clarity, are you thinking that the blocks are as follows:

    Sitewide Alert

    This is what comes "out of the box" with the sitewide_alert β†’ module.

    Sitewide Alert - USWDS Alert

    • Alert - Informative
    • Alert - Warning
    • Alert - Success
    • Alert - Error
    • Alert - Emergency

    What about Slim alert?
    What about Alert with no icon?

    Sitewide Alert - USWDS Site Alert

    • Alert - Informational
    • Alert - Emergency
    • Alert - Emergency with no header
    • Alert - Emergency with list

    What about Slim site alert?
    What about Site alert with no icon?

    Sitewide Alert - Non-USWDS alerts

    Why is would this type of alert a part of this module, given its purpose to provide USWDS alerts and site alerts?

  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    Your summary is right.

    Why is would this type of alert a part of this module, given its purpose to provide USWDS alerts and site alerts?

    It is for the case where sites are using the sitewide_alert module for other things. Installing uswds_alert will render the default block provided by sitewide_alert unusable because it will blindly display all events. So we need to provide a replacement block for non USWDS style alerts.

  • πŸ‡ΊπŸ‡ΈUnited States skyriter

    Ok, that makes sense.

Production build 0.71.5 2024