Skip to content

Create a reusable API response structure for the UI to manage alerts #4727

@apburnes

Description

@apburnes

To standardize messages from the API to the UI, we need a reusable API response structure the UI can consume to show alert modals, toasts, etc when UI components are interacting with the UI

Notes

  • This could be used to warn users of a destructive action or possible conflicts in the database.

Acceptance Criteria

  • Define a structure for alerts to be consumed
  • Create a UI hook and component that can open and show the alert to the users
  • Place the alert component in the root of the app structure or layout so it is consistent and predictable across all pages
  • Add alert hook to async api calls to intercept any responses that fit the alert structure to open the alert component

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions