Skip to content

fix(ats): pipeline cells compose their own label - #674

Merged
thinkclay merged 1 commit into
mainfrom
fix/lane-cells
Sep 1, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/lane-cells

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Fixes a regression I merged in #644.

#644 described cells to Lane as { label, value } and let Lane render the label. The app was right at both widths — I verified it on screen — but every row-rendering test in ApplicationsLanes.test.tsx crashed with "Objects are not valid as a React child". Lane's guard evaluated differently under vitest and the raw descriptor reached React.

That is 10 tests I merged red without noticing, because I ran the new Lane tests and not the existing ones for the screen I had just changed. It surfaced only when I ran the full suite as a release gate.

Scaffald/ui#27 takes the union back out — with the four hypotheses I checked and eliminated (stale dist, stale Vite cache, isValidElement as the fragile clause, the caller). The label is composed here instead, in a small cell() helper that also decides what a narrow row drops, which is where the decision belonged: this screen is the only thing that knows Union and Outcome are worth hiding when empty.

Behaviour unchanged

Checked against the running app after the change:

mobile   Score 0 / Source Scaffald / Assignee Unassigned
desktop  Score 0 / Source Scaffald / Union — / Assignee Unassigned / Outcome —

17/17 across Lane.columns and ApplicationsLanes. @scaffald/ui and scf-core both typecheck.

Submodule pointer: a720d0b..a527607. Committed with --no-verify (#470).

🤖 Generated with Claude Code

#644 described cells to Lane as `{ label, value }` and let Lane render the
label. The app was right at both widths — verified on screen — but every
row-rendering test in ApplicationsLanes.test.tsx crashed with "Objects are not
valid as a React child". Lane's guard evaluated differently under vitest, and
the raw descriptor reached React.

That is 10 tests I merged red without noticing, because I ran the new Lane
tests and not the existing ones for the screen I had changed.

Scaffald/ui#27 takes the union back out. The label is composed here instead,
in a small `cell()` helper that also decides what a narrow row drops — which
is where the decision belonged anyway, since this screen is the only thing
that knows Union and Outcome are worth hiding when empty.

Behaviour is unchanged, checked against the running app:

  mobile   Score 0 / Source Scaffald / Assignee Unassigned
  desktop  Score 0 / Source Scaffald / Union — / Assignee Unassigned / Outcome —

17/17 across Lane.columns and ApplicationsLanes. Both packages typecheck.

Submodule pointer: a720d0b..a527607
@thinkclay
thinkclay merged commit 38b8047 into main Sep 1, 2026
5 of 7 checks passed
@thinkclay
thinkclay deleted the fix/lane-cells branch September 1, 2026 15:05
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