mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-08 15:22:39 +02:00
feat: update status handling and connection indicator in SurfSense plugin
- Changed initial status to "needs-setup" to prompt user configuration. - Added a refreshStatus method to SyncEngine for immediate status updates after settings changes. - Enhanced connection indicator logic in the settings tab to reflect the new status. - Introduced "needs-setup" status visual for improved user feedback on configuration requirements.
This commit is contained in:
parent
68156d2e74
commit
4f1c870987
5 changed files with 51 additions and 5 deletions
|
|
@ -16,7 +16,8 @@ export const STATUS_VISUALS: Record<StatusKind, StatusVisual> = {
|
|||
idle: { icon: "check-circle", label: "Synced", isError: false },
|
||||
syncing: { icon: "refresh-ccw", label: "Syncing", isError: false },
|
||||
queued: { icon: "clock", label: "Queued", isError: false },
|
||||
"needs-setup": { icon: "cloud-off", label: "Setup required", isError: false },
|
||||
offline: { icon: "wifi-off", label: "Offline", isError: false },
|
||||
"auth-error": { icon: "user-x", label: "Reauthenticate", isError: true },
|
||||
"auth-error": { icon: "alert-circle", label: "Reauthenticate", isError: true },
|
||||
error: { icon: "alert-circle", label: "Error", isError: true },
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue