verstak/internal/core/storage
mirivlad 87c8dfcbea sync: overhaul sync system — device pairing, server_sequence, auto-sync, dashboards
BREAKING: replace legacy API keys with device tokens via pairing flow.
- Server: /api/client/pair, revoke, me endpoints; server_sequence + tombstones + idempotency
- Desktop client: PairDevice, GetMe, RevokeCurrent; auto-sync loop every 60s
- Config: device_token stored in separate file (0600), not config.yml
- Client DB: last_pull_seq migration for incremental pull
- Frontend (Svelte): settings modal with connect/disconnect/interval
- User dashboard (/dashboard): device list with status, revoke with password
- Admin dashboard (/admin/dashboard): devices table from /admin/api/devices
- CLI (cmd/verstak): updated for ServerSequence/GetState changes
- Fix: autoSyncLoop falls back to SQLite sync_state for server URL
- Fix: SyncSetInterval preserves server_url/device_id from SQLite
2026-06-02 02:26:05 +08:00
..
migrations.go step 2: init command + SQLite storage + migrations + config 2026-05-30 18:58:47 +08:00
migrations_002.sql.go steps 4-6 + doc overhaul: files, notes, GUI, plugins docs 2026-05-30 20:35:04 +08:00
migrations_003.sql.go steps 4-6 + doc overhaul: files, notes, GUI, plugins docs 2026-05-30 20:35:04 +08:00
migrations_004.sql.go feat: node section assignment for sidebar filtering + search fix 2026-05-31 01:26:46 +08:00
migrations_005.sql.go step 7: actions — table, service, CLI, GUI tab + confirm dialog 2026-05-31 01:52:23 +08:00
migrations_006.sql.go steps 8+9: worklog + FTS5 search 2026-05-31 02:25:25 +08:00
migrations_007.sql.go steps 8+9: worklog + FTS5 search 2026-05-31 02:25:25 +08:00
migrations_008.sql.go today dashboard: activity_events, ListTodayView with events timeline, frontend TodayDashboard separated from sidebar 2026-06-01 02:16:13 +08:00
migrations_009.sql.go activity: global feed, per-case log, sidebar section, today UX 2026-06-01 02:53:56 +08:00
migrations_010.sql.go feat: sync — migration 010 for sync_ops and sync_state tables 2026-06-01 22:45:12 +08:00
migrations_011.sql.go sync: overhaul sync system — device pairing, server_sequence, auto-sync, dashboards 2026-06-02 02:26:05 +08:00
storage.go sync: overhaul sync system — device pairing, server_sequence, auto-sync, dashboards 2026-06-02 02:26:05 +08:00