Skip to content

F4: shared process headers and comparability warnings (#21) - #65

Merged
DavidVFitzGerald merged 4 commits into
mainfrom
feat/f4-process-headers
Nov 14, 2026
Merged

DavidVFitzGerald merged 4 commits into
mainfrom
feat/f4-process-headers

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #21 (F4-02). Phase 1, mock services only. No contract change and no ADR needed.

Behavior

  • Flows header. Once processes are selected, Flows shows shared process metadata headers in canonical selection order. Each shows Process Name, Location, Reference Flow Name, Reference Amount (the exact stored lexeme) and Reference Unit.
    • Blank fields show —, read as "not specified".
    • Long values ellipsize.
    • The full identity, including release, revision and process ID, is the header's accessible description and appears in a hover/focus overlay.
    • The headers are one roving tab stop (arrows, Home, End).
  • Comparability warning. A non-blocking warning appears when exact reference amounts or units differ. 1, 1.0 and 1e0 agree. It says no normalization was applied, has a "Why?" tooltip, needs no confirmation and never changes values. While headers load it reports only differences already known.
  • Widths. Per-tab bounds within spec §6.3: Flows 120–240 px, Scores 110–230 px. Width is clamp(available / count, min, max). Header columns are windowed horizontally, and the active column stays mounted.
  • Header reads. queries.selectionHeaders uses one query per revision.
    • The key is order-independent and headers are cached per process, so a reorder makes no request and an added process fetches only its own header.
    • Batches stay within SERVICE_WINDOW.
    • Responses for another revision are rejected as STALE_SNAPSHOT; missing or extra IDs as UNKNOWN_PROCESS.
    • Bulk selection seeds the same cache.
  • Lint boundary. UI code may now import the transport-free services/decimal. A boundary test pins this.

Checks (workspace container)

  • npm --prefix apps/frontend run format:check — pass
  • npm --prefix apps/frontend run lint — pass
  • npm --prefix apps/frontend run typecheck — pass
  • npm --prefix apps/frontend run test:unit — 23 files, 275 tests pass (3 consecutive runs)
  • npm --prefix apps/frontend run build — pass
  • npm --prefix apps/frontend run test:e2e -- --project=chromium — 19/19 pass
  • e2e/process-headers.spec.ts also passes in Firefox

Limitations

🤖 Generated with Claude Code

DavidVFitzGerald and others added 2 commits November 14, 2026 19:44
Flows shows windowed process metadata headers in canonical selection
order, with exact reference amounts, safe missing-field displays, full
identity on hover/focus and a non-blocking amount-or-unit warning.
Headers are fetched per revision with an order-independent key, cached
per process and validated against the requested revision and IDs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Refs #21)

Adds model, component and Chromium/Firefox-ready browser coverage for
selection-ordered headers, exact-decimal warnings, bounded uncached
header reads, windowed widths, keyboard/hover identity and rejected
responses. The identity panel becomes an overlay so hovering never
shifts the grid below.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DavidVFitzGerald and others added 2 commits November 14, 2026 20:16
…ds (Refs #21)

QA D1: a failed header read dropped every loaded column and the known
comparability warning, because placeholder data applies only while a
query is pending. The hook now falls back to the validated per-process
cache. QA O1: the bulk headersFor read now applies the same revision
and exact-ID validation before its headers seed that cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… survives (Refs #21)

QA D2: per-process header entries have no observers, so TanStack
garbage-collected them after the default 5-minute gcTime and a later
failed read lost loaded columns and the known warning again. They are
now kept for the session (gcTime and staleTime Infinity); signout and
account change still clear them with the client.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DavidVFitzGerald
DavidVFitzGerald merged commit 1d8c8ab into main Nov 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant