You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#585 covered a general flow around triggering account syncs and keeping track of the last account sync. This issue is for displaying a global sync message when one or more accounts are syncing.
Rails.logger.error("Failed to sync account #{id}: #{e.message}")
end
Requirements
Remove sync_message partial and all code that references / renders it. This was originally built as a placeholder.
Trigger a global notification on either of the following events:
A single account sync starts (additional account sync events will be appended as separate notifications)
A "family sync" (all accounts at once) starts
Notification is persistent until the sync completes. At completion, it is updated to a success or failure notification.
Syncing notification should not interfere with other notifications (if accounts are syncing and user performs an action that triggers a notification, that notification should "stack" underneath the accounts syncing message, which persists until accounts are done syncing)
Ideally, notifications are triggered directly from the account sync background jobs via Turbo streams
Considerations
We will have to distinguish between individual account syncs and "family syncs"
Individual account syncs will have 1 notification per background job
Family syncs will have 1 notification per group of jobs (GoodJob's batches may be helpful here—but not a hard requirement)
#585 covered a general flow around triggering account syncs and keeping track of the last account sync. This issue is for displaying a global sync message when one or more accounts are syncing.
See the sync method on
Account
below for context:maybe/app/models/account/syncable.rb
Lines 8 to 21 in b3c48d1
Requirements
Considerations
shared/notification
partial to allow persistent notifications with action buttons #597 will cover thisDesigns
The following designs show the "family sync" notification flow. Individual account syncs should use the following messages:
https://www.figma.com/file/lonJmVk3HYkwZoIO7xYP2w/Maybe-App-(Community)?type=design&node-id=2566-134&mode=design&t=PEYkBK1qYR1Yhw8p-0
The text was updated successfully, but these errors were encountered: