Repository navigation
fix(ats): pipeline cells compose their own label - #674
Merged
Merged
Conversation
#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
Closed
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a regression I merged in #644.
#644 described cells to
Laneas{ 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 inApplicationsLanes.test.tsxcrashed 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,
isValidElementas the fragile clause, the caller). The label is composed here instead, in a smallcell()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:
17/17 across
Lane.columnsandApplicationsLanes.@scaffald/uiandscf-coreboth typecheck.Submodule pointer:
a720d0b..a527607. Committed with--no-verify(#470).🤖 Generated with Claude Code