codeburn/src/sync
iamtoruk 747e6a619e feat(desktop): complete plugin-era UI with details, install flow, settings, and team registry
Implement five missing D1-D3 components for full plugin era desktop support:

1. PluginDetails modal (sections/PluginDetails.tsx): Display full plugin manifest with all syncAttributes disclosures verbatim, spanKinds, commands, and on-disk sections loaded via pluginInfo. Defensive rendering for unknown fields.

2. InstallFlow stepper modal (sections/InstallFlow.tsx): Three-step flow for plugin installation - Step 1 source selection (org name input or folder via chooseDirectory), Step 2 installation with spinner and CLI error display verbatim, Step 3 success confirmation with "View details" button. Special handling for no-sync-config errors.

3. Plugin row actions (update sections/Plugins.tsx): Add Details, Verify, and Remove action buttons to plugin list. Remove action shows confirm modal naming plugin. Wired to CLI bridge calls.

4. Settings > Sharing pane (sections/SettingsSharing.tsx): Complete automatic sync configuration UI within Settings panes. Empty state with "Set up automatic sync" flow: cadence selection (daily/hourly) + work-matching toggle -> disclosure text via syncAutoEnable(accept:false) -> scrollable display -> Accept flow. Active state displays fingerprint (truncated), acceptedAt, cadence, work-matching, receipts list. Drift detection with "Review and re-accept" button. Always-visible "Stop automatic sync" danger button.

5. Team tab registry (components/TeamRegistry.tsx): Detect "teams.*" keys in payload plugins record; render Team section in nav when present. v1 renderers for teams.week (spend card) and teams.status (status link to teams.codeburn.app). Unknown keys fallback rendered. schemaVersion > 1 displays update prompt.

All components reuse existing app patterns (card/list/button/modal styles, CSS tokens, no new dependencies). Tests added for component row states, disclosure flow, and Team tab detection. All gates pass: root 3839 tests, app 614 tests, typecheck clean, build succeeds.
2026-08-28 06:59:50 -07:00
..
auth.ts chore(sync): HTML-escape callback page inputs 2026-07-26 07:05:44 -07:00
cli.ts feat(desktop): complete plugin-era UI with details, install flow, settings, and team registry 2026-08-28 06:59:50 -07:00
config.ts fix(sync): honest 7-day scope and stored work-matching choice in acceptance; shared push helper 2026-08-28 01:00:54 -07:00
consent.ts fix(sync): fresh-machine schedule install, work-matching disclosure line, named drift causes 2026-08-28 01:26:48 -07:00
credentials.ts fix(sync): address PR review — https enforcement, keychain test isolation, golden ID pins 2026-07-13 16:45:39 +00:00
discovery.ts fix(sync): address PR review — https enforcement, keychain test isolation, golden ID pins 2026-07-13 16:45:39 +00:00
index.ts fix(sync): address PR review — https enforcement, keychain test isolation, golden ID pins 2026-07-13 16:45:39 +00:00
ledger.ts fix(desktop): close cache and lifecycle review gaps 2026-08-12 20:31:17 +03:00
otlp.ts feat(plugins): sync exporter seam - per-call attributes and declared extra spans, wire-guarded (10B) 2026-08-28 02:23:29 -07:00
push.ts feat(plugins): sync exporter seam - per-call attributes and declared extra spans, wire-guarded (10B) 2026-08-28 02:23:29 -07:00
schedule-installer.ts fix(sync): schedule invokes runtime plus script explicitly; damaged acceptance reported plainly 2026-08-28 06:21:06 -07:00