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

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

Open
4 tasks
apburnes opened this issue Feb 20, 2025 · 0 comments
Open
4 tasks

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

apburnes opened this issue Feb 20, 2025 · 0 comments

Comments

@apburnes
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant