Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: audit Settings, Brain and Apps workspace patterns (#7797)

[._.]/ Adam Eivyc5d15136b3a4
diff --git a/docs/UX_DESIGN_AUDIT.md b/docs/UX_DESIGN_AUDIT.md
index 4a5ca31601..688b0813bf 100644
--- a/docs/UX_DESIGN_AUDIT.md
+++ b/docs/UX_DESIGN_AUDIT.md
@@ -1,14 +1,14 @@
# Admin workspace UX audit
-Date: 2026-09-20. Scope: a representative sample to establish reusable patterns, not a completed audit of every PortOS route. All examples in deliverables must be synthetic; no live record names, topology, saved settings, or measurement results are reproduced here.
+Date: 2026-09-21. Scope: a representative sample to establish reusable patterns, not a completed audit of every PortOS route. All examples in deliverables must be synthetic; no live record names, topology, saved settings, or measurement results are reproduced here.
## Evidence and limits
- Jev: user-supplied desktop screenshot, live navigation, and checkout component review.
- Performance: live 1,280px-wide browser screenshot/rendered content and checkout component review.
-- Runtimes: live browser screenshot and checkout component review.
+- Runtimes: live browser screenshot, checkout component review, and the synthetic validation record in [the Runtimes pilot](validation/7795-runtimes-workspace.md).
- CoS Tasks: live browser screenshot and checkout page/task component review.
-- Apps detail, Brain shell, Settings shell: source review only; observations about their rendered behavior remain hypotheses to validate.
+- Settings General and Backup, Brain Threads and Notes, and the Apps list and detail: current source and rendered-test review only; observations about their rendered behavior remain hypotheses to validate.
- The live application displayed a client/server build mismatch. Its visual evidence and the current checkout are complementary snapshots; no runtime reconciliation or model actions were performed.
- These are heuristic findings. No user task timings, complete accessibility audit, or production responsive test pass has been performed.
@@ -88,3 +88,33 @@ place. The pilot provides a composition example, not a new universal component.
### Runtimes operations pilot (#7795)
The roster now selects runtime configuration by URL, preserves form/progress owners across selection, and keeps setup guidance in a named disclosure. See [task map and synthetic validation evidence](validation/7795-runtimes-workspace.md) for observed layout, interaction checks, and evidence limits.
+
+## Follow-up audit: Settings, Brain and Apps (#7797)
+
+This is a bounded source-and-test audit after the Runtimes and CoS pilots. `Observed` means a behavior or composition was verified in the current checkout; `proposed` means a follow-up is required before the pattern is treated as shipped. The audit records page-family assignments and preserves existing route, icon, feature, privacy, and persistence contracts. It does not implement a universal layout or redesign these surfaces in place.
+
+| Surface and evidence | Page family and three primary tasks | Before → after content map | Navigation, scroll, and state contract | Error boundary and follow-up |
+| --- | --- | --- | --- | --- |
+| Settings General — `client/src/pages/Settings.jsx`, `client/src/components/settings/GeneralTab.jsx` | Configuration. Set timezone; set or clear location; choose interface theme. | Three independent cards are already bounded by the Settings shell → group timezone and location as the recurring configuration work, with theme as a secondary preference that does not compete with save feedback. | `/settings/general` stays canonical, with the Settings icon from `NAV_PRESENTATION` and legacy tab redirects. The Settings content region owns the normal scroll. Independent saves, dirty indicators, and the unsaved-changes guard remain visible. | Load failure currently toasts and establishes empty baselines; field validation and save failure must keep the affected group dirty and actionable. Follow-up: [#7858](https://github.com/atomantic/PortOS/issues/7858). |
+| Settings Backup — `client/src/pages/Settings.jsx`, `client/src/components/settings/BackupTab.jsx` | Operations + Configuration. Inspect backup health; configure schedule/destination/excludes; run or restore a backup. | A long form already contains status, schedule, disclosures, snapshots, and restore controls → put health and the next safe action first, with configuration and recovery detail disclosed below. | `/settings/backup` stays canonical with the Download icon. The Settings content region remains the primary scroll owner; the action bar may stay sticky without covering errors. Saved destination/schedule state, Run Now gating, dry-run restore, and destructive-action confirmation remain unchanged. | `loadFailed` already has an explicit unavailable panel; degraded database status, invalid restore input, and failed restore must remain distinct from an empty snapshot list. Follow-up: [#7858](https://github.com/atomantic/PortOS/issues/7858). |
+| Brain Threads — `client/src/pages/Brain.jsx`, `client/src/components/brain/tabs/ThreadsTab.jsx` | Collection. Capture an open loop; triage by status/tag/search; edit, link, or complete a selected thread. | The collection and URL-backed drawer are an adopted pattern → retain the full-bleed collection, add an explicit unavailable/retry state, and keep the drawer as the selected record's task surface. | `/brain/threads` remains a direct icon destination using ListTodo and `TabPills mobileCompact`. Threads owns its full-bleed scroll. `status`, `tag`, `q`, `thread`, and `threadTab` remain URL-backed; drafts/save/delete and browser Back remain observable. | List failure currently falls through to the same empty copy as “Nothing tracked yet”; a failed refresh must preserve the distinction and offer retry. Follow-up: [#7859](https://github.com/atomantic/PortOS/issues/7859). |
+| Brain Notes — `client/src/pages/Brain.jsx`, `client/src/components/brain/tabs/NotesTab.jsx` | Document or canvas. Switch vault/folder; search and open a note; edit, create, delete, and save. | A local split pane provides vault/list/editor work → retain independent editor and list scrolling while making vault/note selection URL-shareable and keeping the active note visible on narrow screens. | `/brain/notes` remains a direct FileText destination with `TabPills mobileCompact`. The full-bleed shell owns the workspace; list and editor panes keep their own scroll only because this is a genuine list/detail editor. Note drafts, force-save, and request-lifetime behavior remain. | Vault, scan, and read failures currently become empty or stale state; delete failure can also report success after a swallowed request. Follow-up: [#7859](https://github.com/atomantic/PortOS/issues/7859) captures the deep-link and truthful-state repair. |
+| Apps list — `client/src/pages/Apps.jsx`, `client/src/lib/layoutRoutes.js` | Collection. Inspect health; start/stop/restart or launch; open Manage/archive. | Rows currently mix collection identity/actions with repository, configuration, PM2, and board detail → keep identity, health, primary lifecycle actions, and Manage in the collection; route deep diagnostics to the detail workspace. | `/apps` remains the collection route with archive state in `?view=archived`, existing operation banners, and normal Layout scrolling. Keep lifecycle feedback, overflow confirmation, and feature-aware action availability. | `getApps` failure currently renders `No apps registered`, which is indistinguishable from a genuine empty collection. Follow-up: [#7860](https://github.com/atomantic/PortOS/issues/7860) separates unavailable, empty, and loaded states. |
+| App detail — `client/src/pages/AppDetail.jsx`, `client/src/components/apps/AppDetailView.jsx` | Operations + Workbench. Identify status and execute lifecycle/build/launch; inspect task, Git, quality, and configuration tabs. | The route-backed detail workspace already gives deep work a home → preserve its header, contextual lifecycle action, edit drawer, and feature-gated tabs while making unavailable distinct from missing. | `/apps/:id/:tab` and its aliases remain shareable. `TabPills mobileCompact`, unique tab icons, full-width detail scrolling, and `?edit=1`/`appTab` drawer state remain. No provider work starts from navigation. | Any failed detail request currently becomes “App not found”; a transport/server failure needs retry while a confirmed 404 keeps recovery to Apps. Follow-up: [#7860](https://github.com/atomantic/PortOS/issues/7860). |
+
+### Adopted lessons from the pilots
+
+- Runtimes and CoS now demonstrate that selected work belongs in the URL and that local form/progress owners must survive sibling-view changes; the six surfaces above must preserve that contract where they already have it.
+- Desktop destinations keep icon prefixes, and fixed mobile destinations keep their distinct `TabPills mobileCompact` icons and accessible names. A supplemental sheet cannot replace direct navigation.
+- Empty, loading, unavailable, partial, stale, and confirmed-missing states are different evidence states. The Threads, Notes, Apps list, and App detail gaps are concrete follow-up work, not a reason to infer a universal component.
+- Saved-state gates and destructive recovery are behavior boundaries: Settings Backup must not run or restore against unresolved state, Brain edits must preserve drafts, and Apps lifecycle actions must report their actual operation state.
+
+### Follow-up issue register
+
+| Issue | Bounded slice | Current status |
+| --- | --- | --- |
+| [#7858](https://github.com/atomantic/PortOS/issues/7858) | Settings General and Backup composition, save/error evidence, and responsive validation. | Open; follows this audit. |
+| [#7859](https://github.com/atomantic/PortOS/issues/7859) | Brain Notes deep links plus Threads/Notes unavailable and empty-state truthfulness. | Open; follows this audit. |
+| [#7860](https://github.com/atomantic/PortOS/issues/7860) | Apps collection-first hierarchy plus truthful list/detail unavailable states. | Open; follows this audit. |
+
+The [synthetic validation record](validation/7797-settings-brain-apps-audit.md) lists the existing test evidence, remaining viewport checks, and compatibility checklist. These follow-ups are deliberately implementation slices; #7797 is complete when the audit and evidence register are published, not when those later UI changes merge.
diff --git a/docs/UX_DESIGN_GUIDE.md b/docs/UX_DESIGN_GUIDE.md
index 5e4b703821..f30d6b2034 100644
--- a/docs/UX_DESIGN_GUIDE.md
+++ b/docs/UX_DESIGN_GUIDE.md
@@ -230,14 +230,14 @@ Use focused behavior tests at rendered interactions and route boundaries plus vi
[Epic #7791](https://github.com/atomantic/PortOS/issues/7791) owns the bounded first rollout. Merging this specification does not complete the epic or its implementation tasks. Each task waits for the specification PR to merge; later prerequisites are sequencing choices so pilots inform the next surface, not claims that all work is technically coupled.
-| Task | Prerequisites after specification merge |
-| --- | --- |
-| [#7792 — Models navigation and icons](https://github.com/atomantic/PortOS/issues/7792) | None |
-| [#7793 — Jev task views](https://github.com/atomantic/PortOS/issues/7793) | Models navigation |
-| [#7794 — Performance results workspace](https://github.com/atomantic/PortOS/issues/7794) | Models navigation and Jev pilot |
-| [#7795 — Runtimes operations roster](https://github.com/atomantic/PortOS/issues/7795) | Performance pilot |
-| [#7796 — CoS queue-first Tasks](https://github.com/atomantic/PortOS/issues/7796) | Performance pilot |
-| [#7797 — Settings, Brain and Apps follow-up audit](https://github.com/atomantic/PortOS/issues/7797) | Runtimes and CoS pilot outcomes |
+| Task | Prerequisites after specification merge | Status/evidence |
+| --- | --- | --- |
+| [#7792 — Models navigation and icons](https://github.com/atomantic/PortOS/issues/7792) | None | Shipped in merged PR #7808 |
+| [#7793 — Jev task views](https://github.com/atomantic/PortOS/issues/7793) | Models navigation | Shipped in merged PR #7839; synthetic responsive evidence is in the audit |
+| [#7794 — Performance results workspace](https://github.com/atomantic/PortOS/issues/7794) | Models navigation and Jev pilot | Shipped in merged PR #7841 |
+| [#7795 — Runtimes operations roster](https://github.com/atomantic/PortOS/issues/7795) | Performance pilot | Shipped in merged PR #7851; [synthetic validation](validation/7795-runtimes-workspace.md) |
+| [#7796 — CoS queue-first Tasks](https://github.com/atomantic/PortOS/issues/7796) | Performance pilot | Shipped in merged PR #7850 |
+| [#7797 — Settings, Brain and Apps follow-up audit](https://github.com/atomantic/PortOS/issues/7797) | Runtimes and CoS pilot outcomes | Audit shipped with [#7858](https://github.com/atomantic/PortOS/issues/7858), [#7859](https://github.com/atomantic/PortOS/issues/7859), and [#7860](https://github.com/atomantic/PortOS/issues/7860) as implementation slices |
Runtimes and CoS can proceed independently once their shared prerequisite is complete. The final audit files evidence-backed follow-ups; it does not silently expand this epic into an implementation promise for every page. Check live issue state and remove `blocked` only when the listed prerequisites have been met.
diff --git a/docs/validation/7797-settings-brain-apps-audit.md b/docs/validation/7797-settings-brain-apps-audit.md
new file mode 100644
index 0000000000..e119522dc1
--- /dev/null
+++ b/docs/validation/7797-settings-brain-apps-audit.md
@@ -0,0 +1,56 @@
+# Settings, Brain and Apps audit validation (#7797)
+
+This record captures the bounded follow-up audit named by [#7797](https://github.com/atomantic/PortOS/issues/7797), after the Runtimes and CoS pilots. It is evidence for page-family assignment and implementation planning, not a claim that these six surfaces have already been redesigned.
+
+## Evidence boundary
+
+- The source and test references below are from the current checkout.
+- Fixtures and examples are synthetic. No live instance records, saved settings, provider state, or machine identifiers are part of this record.
+- Existing rendered tests establish interaction contracts and selected geometry assertions. This audit did not run a new production browser study or claim complete visual, accessibility, or performance certification for these six surfaces.
+- The viewport matrix is the required validation for the follow-up implementation issues. It keeps the evidence boundary explicit instead of turning source review into an unsupported screenshot claim.
+
+## Existing evidence inventory
+
+| Surface | Current evidence | What it proves | What remains |
+| --- | --- | --- | --- |
+| Settings General | `client/src/components/settings/GeneralTab.test.jsx` | Save-backed settings appear before the instant theme picker; load fallback remains guarded; independent dirty baselines and failed timezone/location saves stay guarded. | Validate the proposed Configuration composition and responsive form grouping at the matrix widths. |
+| Settings Backup | `client/src/components/settings/BackupTab.test.jsx` | Destination saves, restore dry-run/confirmation, integrity/schema failures, saved-state Run Now gates, degraded status, and resolved schedules have explicit contracts. | Validate status/action priority, sticky action-bar geometry, and keyboard/error visibility. |
+| Brain Threads | `client/src/components/brain/tabs/ThreadsTab.test.jsx`, `client/src/pages/Brain.test.jsx` | Status/tag/search filters and selected thread are URL-backed; drawer selection, in-place completion, race handling, and icon navigation are covered. | Add an unavailable/retry state that cannot be mistaken for “Nothing tracked yet,” then validate the collection at narrow widths. |
+| Brain Notes | `client/src/components/brain/tabs/NotesTab.test.jsx`, `client/src/pages/Brain.test.jsx` | Touch targets, force-save escalation, request lifetimes, stale selection protection, and Brain icon navigation are covered. | Add URL-backed vault/note selection and truthful vault/scan/read/delete failures without weakening force-save or draft behavior. |
+| Apps list | `client/src/pages/Apps.test.jsx` | Row action hierarchy, Manage routing, archive query state, lifecycle feedback, operation banners, wrapping paths, and sprint-ticket failure/retry behavior are covered. | Keep the collection row-first, route deep diagnostics to detail, and distinguish unavailable from genuinely empty. |
+| App detail | `client/src/components/apps/AppDetailView.test.jsx`, `client/src/pages/Apps.test.jsx` | Detail route lifecycle handling, old/current request races, feature-tab visibility, direct disabled-feature URLs, unique tab icons, and identity/action placement are covered. | Distinguish a failed detail request from a confirmed missing app and validate detail tab/Drawer geometry across widths. |
+
+## Surface contracts
+
+The audit assigns each surface the following primary job and compatibility boundary:
+
+| Surface | Page family | Primary tasks | Must remain true |
+| --- | --- | --- | --- |
+| Settings General | Configuration | Set timezone; set or clear location; choose theme. | `/settings/general`, legacy redirects, independent saves, dirty indicators, and unsaved-change protection remain intact. |
+| Settings Backup | Operations + Configuration | Inspect health; configure schedule/destination/excludes; run or restore. | `/settings/backup`, saved-state Run Now gates, dry-run restore, explicit confirmation, and failure visibility remain intact. |
+| Brain Threads | Collection | Capture; filter/triage; edit or complete a selected thread. | `/brain/threads`, URL filters/selection, full-bleed scroll ownership, drawer drafts, and browser Back remain intact. |
+| Brain Notes | Document or canvas | Switch vault/folder; search/open; edit/create/delete/save. | `/brain/notes`, force-save, editor/list pane ownership, and request-lifetime protection remain intact while selection becomes shareable. |
+| Apps list | Collection | Inspect health; operate; open Manage/archive. | `/apps`, `?view=archived`, operation banners, lifecycle actions, overflow confirmation, and normal Layout scrolling remain intact. |
+| App detail | Operations + Workbench | Identify status; run lifecycle/build/launch; inspect task/Git/quality/configuration. | `/apps/:id/:tab`, aliases, `TabPills mobileCompact`, unique icons, feature-gated direct routes, and edit-drawer query state remain intact. |
+
+## Required viewport and interaction matrix
+
+The following checks belong to the implementation slices linked from the audit. They use synthetic records such as `Example App`, `Example Thread`, and `Example Note` only.
+
+| Viewport | Required checks |
+| --- | --- |
+| 1,920×1,080 | Title, current state, primary action, and the beginning of useful work are visible without a reference wall; Settings status/save actions and Apps identity/actions do not stretch into unrelated empty space. |
+| 1,440×900 | Desktop hierarchy remains clear; Settings forms, Brain list/detail, and Apps collection/detail have one deliberate primary workspace surface; no duplicate full-height scroll owner appears. |
+| 1,024×768 | Secondary details disclose or route on demand; action groups wrap without clipping; selected Brain/App state remains visible while the supporting pane is still usable. |
+| 390×844 | `TabPills mobileCompact` keeps direct icon navigation and accessible names; forms and lifecycle actions remain reachable; full-bleed list/detail panes do not create page-level horizontal overflow. |
+| 320px wide | Long paths, validation/errors, drawer content, and action labels wrap or scroll inside their owning region; no essential control is hidden behind an inaccessible overflow. |
+
+Across each width, test light and dark themes, keyboard focus, copied canonical links, browser Back/forward, loading, real empty, unavailable, partial/stale, save failure, running, cancellation, and completion. Confirm that navigation itself makes no provider call and that dependent actions remain gated by saved state.
+
+## Observed gaps and chosen follow-ups
+
+1. **Settings General and Backup** — `GeneralTab` and `BackupTab` have valuable persistence and recovery contracts, but the audit needs a task-first composition and responsive evidence. Implement in [#7858](https://github.com/atomantic/PortOS/issues/7858).
+2. **Brain Threads and Notes** — Threads list failure currently lands on empty copy, and Notes selection/error handling is not consistently shareable or truthful. Implement in [#7859](https://github.com/atomantic/PortOS/issues/7859). The follow-up also covers the observed note-delete failure path that can show success after a failed request.
+3. **Apps list and detail** — the collection mixes deep diagnostics into rows, the list request failure looks empty, and detail failure looks missing. Implement in [#7860](https://github.com/atomantic/PortOS/issues/7860).
+
+These are independently shippable slices. They preserve the adopted icon navigation, route contracts, optional-feature behavior, privacy boundary, explicit save/run/restore gates, and synthetic-only validation while narrowing each later change to a concrete surface.