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:
Anish Sarkar 2026-04-25 02:16:38 +05:30
parent 68156d2e74
commit 4f1c870987
5 changed files with 51 additions and 5 deletions

View file

@ -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 },
};