Sync notifications and troubleshooting guides #998
Reference in New Issue
Block a user
Delete Branch "596-add-global-account-sync-message-integrate-with-family-sync-flow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR integrates our notification system directly into the account sync process, and scaffolds out a "troubleshooting" directory of markdown guides that can be rendered in the app and maintained directly in this repo.
https://github.com/user-attachments/assets/122a77d3-9029-453d-83e6-03e59e442f14
Notifications
I've simplified our notification partial to only deal with 3 possible types, always with a simple string message. More complex notifications with links and CTAs should be rendered persistently:
alert- warnings and errors, will show red textnotice- success notificationsprocessing- persistent notifications to indicate a background job in progressFurthermore, each flash key can pass either a string or array of strings to be appended to the notifications tray:
Troubleshooting guides
This PR scaffolds out a basic system for maintaining troubleshooting guides for the app.
docs/helpin this repository so that we can accept contributions from users dealing with various provider and account sync errors in the futuretitleandslugAccount::Syncmodel to know which guide to render. Right now, there is a generic placeholder guide rendering for all sync errors.@@ -1,45 +1,45 @@<%# locals: (type: "success", content: { title: '', body: ''}, action: { label:'' , url:'' }, options: { auto_dismiss: true }) -%><%# locals: (message:, type: "notice", id: nil, **_opts) %>**_opts are needed here since turbo rails automatically passes the model object on any
broadcast_<verb>_tomethods, and we construct this partial to send via streams sometimes.