okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-clean-3 (321794636): docs and history (cleanup step 3, items 3.0-3.10); release manifest and capability table with checks, history/ with pointers, link check, tools/ split, bench index; owner OK'd the wording 11-082b36e8a02

main
2.4 KiB49 linesraw

T07 · Hide what is not built

Phase 1 · 2 findings (0 high, 1 medium, 1 low) · Depends on: nothing, can start now

Goal

"Isn't connected in this preview" appears several times, a Session log dialog has only a Done button, and "Demo" labels sit on single values. Hide unbuilt controls and show one "Preview build" badge instead.

Files to change

These are the likely files. Read them before editing, and change others only if the fix needs it.

  • src/components/ComposerControls.tsx
  • src/screens/Chat.tsx
  • src/screens/Monitor.tsx
  • src/screens/Tasks.tsx
  • src/screens/Models.tsx
  • src/components/layout.tsx (one header badge)
  • src/lib/lifecycle.ts or src/lib/config.ts (one feature-flag map)

Findings to fix (high and medium)

#SeverityStateIssueSuggested fix
1MediumGLOBAL"isn't connected in this preview/build" footnotes in 5+ places (thinking menu, tool access, compaction, session log, add menu)hide unbuilt controls, or one "Preview build" badge

Optional polish (low)

Do these only if the task is otherwise done and the budget allows.

#SeverityStateIssueSuggested fix
1Lowchat-session-logTitle Case "Download Session Log"; rest of app is sentence case"Download session log"

How to check

Run these and fix anything that fails:

  • npm run typecheck
  • node --test tests/ (all existing tests stay green)
  • npm run check (typecheck, UI audit, contrast, measure, luminance)
  • npm run build

Task-specific checks:

  • grep -rn "isn.t connected in this preview" src returns nothing rendered by default.
  • There are no per-value "Demo" labels. One "Preview build" badge appears in the app header when the demo engine is active.
  • Hidden controls are behind a feature flag, not deleted, so they can return when they are built.
  • Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.

Screens to re-capture and compare with the audit screenshots in docs/evidence/audit-2026-10-07/:

  • chat-session-log-light.png

Done when

  • All checks pass.
  • Commit on branch fix/t07-hide-unbuilt with message T07: Hide what is not built.
  • Append a short entry to audit-fixes/PROGRESS.md: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.
1# T07 · Hide what is not built
2
3**Phase 1** · 2 findings (0 high, 1 medium, 1 low) · Depends on: nothing, can start now
4
5## Goal
6"Isn't connected in this preview" appears several times, a Session log dialog has only a Done button, and "Demo" labels sit on single values. Hide unbuilt controls and show one "Preview build" badge instead.
7
8## Files to change
9These are the likely files. Read them before editing, and change others only if the fix needs it.
10- `src/components/ComposerControls.tsx`
11- `src/screens/Chat.tsx`
12- `src/screens/Monitor.tsx`
13- `src/screens/Tasks.tsx`
14- `src/screens/Models.tsx`
15- `src/components/layout.tsx` (one header badge)
16- `src/lib/lifecycle.ts or src/lib/config.ts` (one feature-flag map)
17
18## Findings to fix (high and medium)
19| # | Severity | State | Issue | Suggested fix |
20|---|---|---|---|---|
21| 1 | Medium | `GLOBAL` | "isn't connected in this preview/build" footnotes in 5+ places (thinking menu, tool access, compaction, session log, add menu) | hide unbuilt controls, or one "Preview build" badge |
22
23## Optional polish (low)
24Do these only if the task is otherwise done and the budget allows.
25
26| # | Severity | State | Issue | Suggested fix |
27|---|---|---|---|---|
28| 1 | Low | `chat-session-log` | Title Case "Download Session Log"; rest of app is sentence case | "Download session log" |
29
30## How to check
31Run these and fix anything that fails:
32- `npm run typecheck`
33- `node --test tests/` (all existing tests stay green)
34- `npm run check` (typecheck, UI audit, contrast, measure, luminance)
35- `npm run build`
36
37Task-specific checks:
38- [ ] `grep -rn "isn.t connected in this preview" src` returns nothing rendered by default.
39- [ ] There are no per-value "Demo" labels. One "Preview build" badge appears in the app header when the demo engine is active.
40- [ ] Hidden controls are behind a feature flag, not deleted, so they can return when they are built.
41- [ ] Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.
42
43Screens to re-capture and compare with the audit screenshots in `docs/evidence/audit-2026-10-07/`:
44- `chat-session-log-light.png`
45
46## Done when
47- All checks pass.
48- Commit on branch `fix/t07-hide-unbuilt` with message `T07: Hide what is not built`.
49- Append a short entry to `audit-fixes/PROGRESS.md`: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.