feat(sync-ui): default auto-sync interval 60 minutes

This commit is contained in:
2026-07-11 19:49:48 -07:00
parent cff164183a
commit 93d4bbe9a5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ Unfinished sessions (a crash mid-playback) are skipped until the app finalizes t
- **Activity** — live stage-by-stage progress, remote output, and a merge summary (sessions, words, kanji, rollups) when a run finishes. Runs can be cancelled, and guard failures offer a one-click `--force` retry. - **Activity** — live stage-by-stage progress, remote output, and a merge summary (sessions, words, kanji, rollups) when a run finishes. Runs can be cancelled, and guard failures offer a one-click `--force` retry.
- **Snapshots** — create manual database snapshots (stored in `/tmp/subminer-db-snapshots/` by default), merge a snapshot file into the local database, or reveal/delete existing snapshots. - **Snapshots** — create manual database snapshots (stored in `/tmp/subminer-db-snapshots/` by default), merge a snapshot file into the local database, or reveal/delete existing snapshots.
Hosts with **Auto-sync** enabled are synced in the background on a configurable interval (default every 30 minutes) whenever no mpv session or stats server is using the database; results surface as overlay notifications. Host bookkeeping lives in `<config dir>/sync-hosts.json`. Hosts with **Auto-sync** enabled are synced in the background on a configurable interval (default every 60 minutes) whenever no mpv session or stats server is using the database; results surface as overlay notifications. Host bookkeeping lives in `<config dir>/sync-hosts.json`.
## Common Commands ## Common Commands
+1 -1
View File
@@ -27,7 +27,7 @@ function withTempDir(fn: (dir: string) => void): void {
test('createDefaultSyncHostsState returns empty v1 state', () => { test('createDefaultSyncHostsState returns empty v1 state', () => {
assert.deepEqual(createDefaultSyncHostsState(), { assert.deepEqual(createDefaultSyncHostsState(), {
version: 1, version: 1,
autoSyncIntervalMinutes: 30, autoSyncIntervalMinutes: 60,
hosts: [], hosts: [],
}); });
}); });
+1 -1
View File
@@ -34,7 +34,7 @@ export interface SyncResultUpdate {
detail: string | null; detail: string | null;
} }
const DEFAULT_AUTO_SYNC_INTERVAL_MINUTES = 30; const DEFAULT_AUTO_SYNC_INTERVAL_MINUTES = 60;
export function createDefaultSyncHostsState(): SyncHostsState { export function createDefaultSyncHostsState(): SyncHostsState {
return { return {