mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 17:52:38 +02:00
feat: improve status handling and user feedback in SurfSense plugin
- Added refreshStatus method to update connection status immediately after settings changes. - Enhanced error reporting with reportAuthError method for better authentication feedback. - Updated status visuals in the status modal to reflect the new centralized structure. - Improved connection handling in the settings tab to ensure accurate status representation.
This commit is contained in:
parent
4f1c870987
commit
937965b335
5 changed files with 30 additions and 18 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { type App, Modal, Notice, Setting } from "obsidian";
|
||||
import type SurfSensePlugin from "./main";
|
||||
import { STATUS_VISUALS } from "./status-visuals";
|
||||
|
||||
/** Live status panel reachable from the status bar / command palette. */
|
||||
export class StatusModal extends Modal {
|
||||
|
|
@ -28,7 +29,7 @@ export class StatusModal extends Modal {
|
|||
const s = plugin.settings;
|
||||
|
||||
const rows: Array<[string, string]> = [
|
||||
["Status", plugin.lastStatus.kind],
|
||||
["Status", STATUS_VISUALS[plugin.lastStatus.kind].label],
|
||||
[
|
||||
"Last sync",
|
||||
s.lastSyncAt ? new Date(s.lastSyncAt).toLocaleString() : "—",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue