Skip to content

fix(ui-core): vocabulary pass layer 1 + rename the Versions tab (#292) - #298

Merged
JArmandoAnaya merged 1 commit into
mainfrom
journey/pr5-vocab
Aug 4, 2026
Merged

fix(ui-core): vocabulary pass layer 1 + rename the Versions tab (#292)#298
JArmandoAnaya merged 1 commit into
mainfrom
journey/pr5-vocab

Conversation

@JArmandoAnaya

Copy link
Copy Markdown
Contributor

Closes #292. Stacked on #297 (journey/pr4-approve) — merge order #294#295#296#297 → this.

What — label strings only, worst-first

  • BatchesScreen state badge renders batchStateLabel(batch.state) — the helper sat thirty lines away in batchState.ts while the table showed raw in_annotation. Visible change: draft → "pending approval", in_annotation → "in progress" (the gallery header already said both).
  • IngestScreen: run badge gets RUN_STATE_LABEL (pending → "Waiting", running → "Processing", completed → "Done", failed → "Failed"); failure-table kind badge gets FAILURE_KIND_LABEL (unsupported → "Unsupported format", corrupt → "Corrupt file"). Both follow batchState.ts's convention — an unknown member falls through to itself, so a newer server's state reads as that state rather than as a shrug. The "N corrupt / N unsupported" count badges keep their wording.
  • Asset-progress label map consolidated: AnnotationPage.tsx kept a second copy of the five-state map; it now imports PROGRESS_LABEL from batchState.ts. The gallery's lowercase casing wins (majority spelling and the house style for state badges), so the annotator badge reads "skipped"/"unannotated"/"in review" instead of "Skipped"/"Unannotated".
  • "Versions" → "Schema history" (TAB_LABELS only): the tab holds schema versions while releases live on the Dataset screen. The ProjectTab union value, testid, and ?tab=versions are public API and do not move. The tab's descriptive prose now says "Every schema version…".
  • Schema diff badges sentence-cased ("Additive"/"Destructive") — the kernel's words are accurate and stay; change.detail stays verbatim (same-sentence rule with the kernel's refusals).

Out of scope, by design: promote/partition/trunk/manifest copy, error-codes-as-headings, the Dataset & Releases merge — all #293, discussion first.

Every test assertion touched (same commit as its string)

  • frontend/ui-core/src/screens/screens.test.tsx:976-993 — the two exact tab-label lists ("Versions" → "Schema history").
  • frontend/ui-core/src/screens/screens.test.tsx:591-592 — diff badges ("destructive"/"additive" → sentence case).
  • frontend/ui-core/src/screens/ingest.test.tsx:683 — run badge ("completed" → "Done").
  • frontend/app/e2e/annotate.spec.ts:311, :330, :357 — asset-progress badge follows the consolidated lowercase map.
  • frontend/app/cycle/cycle.spec.ts:172, :242, :252 — run badge "Done", batch row "pending approval", state badge "in progress".

Runs

  • bash scripts/check.sh frontend: All checks passed (ui-core 397 tests / 27 files).
  • Playwright annotate.spec.ts gallery.spec.ts navigation.spec.ts shell.spec.ts: 71 passed.
  • pnpm cycle (the full cycle against a real server): 1 passed — the suite that pins all three batch-table strings.

@JArmandoAnaya
JArmandoAnaya changed the base branch from journey/pr4-approve to main August 4, 2026 04:20
@JArmandoAnaya
JArmandoAnaya enabled auto-merge (squash) August 4, 2026 04:20
… tab says what it holds (#292)

Label strings only. The batch table finally uses batchStateLabel — the
helper sat thirty lines away while the table showed in_annotation raw;
the ingest run and failure badges get the same treatment with the same
fall-through-to-raw convention; the asset-progress label map existed
twice and the AnnotationPage copy is gone, the gallery's casing winning;
the Versions tab is labelled Schema history because it holds schema
versions while releases live on the Dataset screen — the union value,
testid and ?tab=versions are public API and do not move; and the schema
diff badges are sentence-cased while change.detail stays verbatim, since
it must remain the kernel's own sentence.
@JArmandoAnaya
JArmandoAnaya merged commit 85cb23e into main Aug 4, 2026
14 checks passed
@JArmandoAnaya
JArmandoAnaya deleted the journey/pr5-vocab branch August 4, 2026 04:27
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.

Vocabulary pass, layer 1: stop rendering raw kernel identifiers + rename Versions tab

1 participant