Skip to content

fix(Lane): an empty stage is a line, not a full-height section - #19

Merged
thinkclay merged 1 commit into
mainfrom
redesign/lane-empty-density
Aug 21, 2026
Merged

thinkclay merged 1 commit into
mainfrom
redesign/lane-empty-density

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Found by finally seeing the Lanes view render against real data, via an authenticated smoke test.

LaneGroup gave an empty stage the same vertical spacing as a populated one — ~190px on desktop and ~320px on mobile for a single sentence. With seven stages that turned an empty pipeline into roughly 2,200px of scroll on a phone before the user reached anything at all.

That is the worst case to get wrong: an empty board is exactly when someone most needs to see the whole shape of the pipeline at once. The Lanes view exists because seven kanban columns do not fit a laptop; it should not replace horizontal overflow with vertical.

Empty groups now collapse their internal gap, drop their bottom margin to spacing[8], and indent the message under the stage title rather than padding it out. All seven stages fit one screen. Nothing changes for a populated group.

Verified against the real /office/applications screen at 1440×900 and 375×812; primitives suite still 15/15.

🤖 Generated with Claude Code

Found by finally seeing the Lanes view render against real data.

LaneGroup gave an empty stage the same vertical spacing as a populated one:
~190px on desktop and ~320px on mobile for a single sentence. With seven
stages that turned an empty pipeline into roughly 2,200px of scroll on a phone
before the user reached anything at all — and an empty board is exactly when
they most need to see the whole shape of the pipeline at once.

Empty groups now collapse their internal gap, drop their bottom margin to
spacing[8], and indent the message under the stage title rather than padding
it out. All seven stages fit one screen.

Nothing changes for a populated group.

Verified against the real /office/applications screen at 1440x900 and 375x812
via scripts/audit/smoke-authed.mjs; primitives suite still 15/15.

Co-Authored-By: Claude Opus 5 <[email protected]>
@thinkclay
thinkclay merged commit c606008 into main Aug 21, 2026
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Aug 21, 2026
…624)

Phase 3 continued (#622). Closes §12 items #4 and #5 from #539, and closes the
"two competing filter idioms" finding for this screen.

#4 THE STAGE LIST WAS MISSING TWO STAGES. No `inquired` — which is a full
column on the board, so an entire stage of the pipeline could not be filtered
to — and no `withdrawn`. All eight are offered now.

#5 THE MINIMUM-SCORE FILTER HAD NO CONTROL. `minScore` was in state and was
sent to the API on every request, but nothing rendered it: permanently 0, with
no way to change it. It has score bands now rather than a slider — an employer
thinks in "80 and up", not one-point increments, and a band is far easier to
operate by keyboard than a drag target.

The filters also moved off the screen and into ListToolbar's flyout, so this
screen presents filters the way every other list screen will. Applied filters
appear as removable chips with a Clear all, so they can be dropped without
reopening the flyout. No search field: the employer applications endpoint has
no search parameter, and a box that does nothing is the bug being fixed.

One case worth calling out: only OPEN jobs are offered as options, so a job
closed after being selected would otherwise filter the pipeline invisibly with
no way to clear it. Its chip renders as "Unknown job" rather than vanishing.

SMOKE HARNESS — scripts/audit/smoke-authed.mjs. Every ATS screen sits behind
auth and the office role, so none of this work could be seen rendering; three
merged PRs went out on unit tests and Storybook alone. It mints a session the
same way the repo's own Playwright auth setup does — programmatically through
supabase-js against the local stack, injected into localStorage. No login form
is driven. It strips Expo's dev-only error overlay, which is a sibling of
#root and otherwise covers the screen being reviewed.

That harness immediately earned itself: it caught the empty-stage density bug
fixed in Scaffald/ui#19, which no unit test could have seen.

Verified: typecheck clean across all three packages; lint clean; 19 new tests;
/office/applications and /office/ats/metrics captured at 1440x900 and 375x812.

Co-authored-by: Claude Opus 5 <[email protected]>
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