Skip to content

RE: mark Enrichment stage built — the tab was unreachable in /next - #120

Merged
dwolfson merged 1 commit into
mainfrom
re/enrichment-tab-honesty
Sep 17, 2026
Merged

dwolfson merged 1 commit into
mainfrom
re/enrichment-tab-honesty

Conversation

@dwolfson

Copy link
Copy Markdown
Owner

Summary

Found while live-testing #119 against the served checkout, as recommended in that PR's own test plan: the Enrichment tab looked frozen — clicking it did nothing, no console errors, no network requests.

Root cause: #119 verified the Enrichment save/revisit/evidence-moved logic works, but never flipped Enrichment's built flag in app.js's STAGES array (same flag DEFECT-UNBUILT-STAGES-RENDER-AS-BUILT.md fixed for six other stages). Per that fix, an unbuilt stage renders as a plain non-interactive <span>, not a <button> — so the tab wasn't clickable at all, not hung.

Fix: one-line flag flip, mirroring how Understanding was marked built: true once its charts were confirmed real. The catalog has 7 human-supplied questions tagged the enrichment phase, so the generic Questions engine (loadPane()) reaches renderEnrichment() without needing a Curate-style special case — no other code change needed.

Verified live (not just traced): started a throwaway server from this branch on a different port, signed in, opened Enrichment, set Sensitivity to "internal", saved, reloaded the page — the judgement was still there with author and timestamp. Both halves of item 1's done-test (record and revisit) confirmed working end to end.

Test plan

  • Live browser: save → reload → judgement persists
  • Full suite: uv run pytest tests/ -q -k "not Postgres" (running, will confirm no regressions)

🤖 Generated with Claude Code

ITEM-1-ENRICHMENT-IMPLEMENTED.md (PR #119) verified the judgement/
observation save-and-revisit round trip and the evidence-moved flag all
work, but never flipped Enrichment's `built` flag in app.js's STAGES
array — so per the unbuilt-stages-honesty fix, it rendered as a plain
non-interactive label, not a button. Clicking it did nothing, which
looked like the UI had frozen.

The catalog has 7 human-supplied questions tagged the enrichment phase,
so loadPane()'s generic Questions engine reaches renderEnrichment()
without needing a Curate-style special case.

Verified live: signed in, opened Enrichment, set Sensitivity, saved,
reloaded the page, and the judgement was still there with its author
and timestamp.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 38b3d48 into main Sep 17, 2026
3 checks 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