Repository navigation
feat(ats): candidate detail actions, tab counts, and non-destructive loading/error - #623
Merged
Merged
Conversation
Phase 3, screen 2 (#622). Closes §12 items #1, #2, #3 and #15 from #539. #1 THREE BUTTONS THAT DID NOTHING. "Advance to Interview", "Reject" and "Send Message" rendered, pressed, and had no handlers at all. Advance now names the ACTUAL next stage instead of always claiming "Interview" — which was wrong for most of the pipeline and from `new` would have skipped Screening entirely. It hides on terminal stages, where there is nothing to advance to. Reject routes through ApplicationStatusChangeModal rather than firing at the API, because rejection is a critical change and the one action a candidate experiences as final. It hides once a candidate has already withdrawn: collapsing withdrawn into rejected is what breaks funnel conversion and EEO adverse-impact counts (#533). Send Message opens the Messages tab, where the composer already lives. #2 NO NAME IN THE HEADER. The identity row showed title and location only — the name existed solely in the modal chrome, so the route version at /office/applications/[id] had no name anywhere on the page. #3 A 24PX AVATAR, smaller than the body text beside it. Now 48, with two initials rather than one lonely letter. #15 TABS WITH NO COUNTS. An employer could not tell there were twelve unread messages without opening the tab. Notes and Messages carry counts now, read from the SAME query keys the tabs themselves use — react-query serves both from one cache entry, so this costs no extra request. Zero and loading both render nothing: a tab reading "Notes · 0" is noise, and a tab that flashes "· 0" before "· 12" is worse than one that simply gains a count. The rules live in candidate-actions.ts rather than inline, so they can be tested without mounting a component that needs six SDK hooks and a tab system. All four debts were logic *absent* rather than logic wrong, which is exactly the kind of thing that comes back without a test. Also fixes a shape error caught by typecheck: GetMessagesResponse nests its array under `.data`, not `.messages`. Verified: typecheck clean on scf-core and scaffald-app; lint clean; 16 new tests passing. Not verified: the screen has not been seen rendering — behind auth and the office role. Co-Authored-By: Claude Opus 5 <[email protected]>
…a retry Phase 3 continued (#622). Closes §12 items #10 and #11 from #539. #10 LOADING REPLACED THE WHOLE SCREEN. Both loading and error were early returns, so a refresh blanked the header, the view switch and the filters and left one centred spinner. The page appeared to vanish, and an employer lost the controls they were part-way through using — including the filters that caused the refetch in the first place. Both states now render inside the content region, below a header that stays put. #11 THE ERROR STATE HAD NO WAY OUT. No retry, so the only recovery was a full page reload — which also discarded the filters. There is a Try again button wired to the query's `refetch`, which the hook has always returned and nothing has ever called. One consequence of keeping the header mounted: the toolbar's result count now renders during states where the count is not yet known. It takes `undefined` rather than `0` while loading or errored, because a literal "0 applications" above a spinner asserts an empty pipeline before anything is known. Verified: typecheck clean on scf-core and scaffald-app; lint clean; Lanes tests still 11/11. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Aug 21, 2026
thinkclay
added a commit
that referenced
this pull request
Sep 22, 2026
…ActionBar retired (#873) * feat(redesign): every screen has a real heading, in one place, from one source 120 of the 200 screens captured by the route sweep matched no heading at all — not `h1`, not `aria-level`, not `role="heading"`. They were not blank; they showed a visible title set as styled `Text`, which reaches neither the accessibility tree nor a screen reader's heading navigation. Of the 39 that did have one, the title started in 22 distinct positions on desktop and 24 on mobile. `DashboardPage`'s `pageTitle` only ever set the browser tab. The four layouts now render a `ScreenHeader` and take the title from the route's own `titleKey`, so a screen gets a heading without remembering to draw one — and the nav label and the page title are the same string by construction, which is the drift the prototype's audit called out ("Find talent" opening a page titled "Worker search"). `OfficePageLayout` swaps its bare `<H2>` for the same component, with the create button in the actions slot: page-level primary actions live at header right, not inside the filter bar. Notifications was the one screen with no header treatment at all; its hand-rolled 20px bold title is gone and its Settings control moves to that same slot. The first-run rule, from the prototype's second audit: a screen opens expanded, and collapsing the tip is a choice it remembers per screen. `useScreenHeaderCollapse` holds that; an unreadable store means expanded, which is the first-visit answer anyway. Measured after, at 1440: /communities Communities (332,32) /jobs/saved Saved Jobs (332,32) /dashboard/notifications Notifications (332,32) /office/cms/jobs Jobs (314,120) /profile Profile (316,6) /assessments Assessments (316,6) 22 positions down to three — one per layout. Collapsing those three into one is #851, which is what that issue is for; the gutters and vertical rhythm differ between the layouts, not the header. Kickers and tips are wired through but no screen supplies copy yet: that is per-screen writing and lands with each screen in releases 2 and 3. `PageHeader` is untouched — despite #814's description it is a search and filter toolbar, not a title header, so it belongs to #815. Refs #814, #860 Co-Authored-By: Claude Opus 5 <[email protected]> * feat(redesign): one screen rhythm — every title starts at the same left edge The four layouts each invented their own spacing, and because three of them expressed it through the *named* padding scale the divergence did not look like divergence in the source: `'2xl'` is 16, `'lg'` is 10, `'sm'` is 6, so a 32px gutter and a 16px gutter both read as "the big one". Measured at 1440, the page title started at x=332 under DashboardLayout, x=316 under Profile and Assessments, x=314 under Office, and x=340 on the Office CMS screens, which paid the gutter twice — OfficePageLayout added its own 8px on top of the layout's. `SCREEN_RHYTHM` and `useScreenRhythm` hold the numbers once, as plain numbers, and all four layouts read them. The values follow DashboardLayout: it was already the most airy and the closest to the prototype, whose design system runs a 1.15x density scale and asks for room rather than tightness. The seven Office screens that render no layout at all set their own `padding="md"`, so they took the gutter from the same hook rather than from a token that happens to be 8. OfficeLayout also moves off `useWindowDimensions`, which `.radium/scaffald-ui.md` forbids: it registers a listener per component where `useResponsive` shares one subscription, and enough of them mounting at once is how "Maximum update depth exceeded" happens. It also carried its own `width > 800` threshold, so Office collapsed to one column at a different width than the rest of the app. Measured after, signed in, at 1440 and 390: route desktop mobile /communities x=332 y=32 x=16 y=68 /jobs/saved x=332 y=32 x=16 y=68 /dashboard/notifications x=332 y=32 x=16 y=68 /profile x=332 y=32 x=16 y=68 /assessments x=332 y=32 x=16 y=68 /office/applications x=332 y=56 x=16 y=92 /office/cms/jobs x=332 y=140 x=16 y=212 One left edge, everywhere, at both widths. The remaining y differences are content above the title — Office screens carry a breadcrumb and a secondary tab strip that other screens do not — rather than rhythm. `/office/storage` and `/office/violations` still have no heading: they render no layout and no ScreenHeader. #816 reaches them. Refs #851 Co-Authored-By: Claude Opus 5 <[email protected]> * feat(redesign): one search row — ListToolbar on every worker-side list screen The prototype's audit named two competing filter idioms: a search field with one "Filters & sort · n" flyout on some screens, and a loose row of inline pills on others, so a user who learned one screen could not predict the next. We had exactly that split — `/office/applications` moved onto the flyout in #624 while the discover screens kept `PageHeader`'s pills, and the count came in four phrasings. `PageHeader` was never a header. It rendered breadcrumbs, actions, a search input, filter pills and a result count, with no title in it at all; #814's description had it confused with `ScreenHeader`. It is deleted here along with `SortDropdown`, and its `FilterPillConfig` type moves to `components/toolbarFilters.tsx` — the description of a filter outlived its presentation. Each screen already described its filters as data, so rather than rewrite five screens' filter internals, `useToolbarFilters` stacks the same `popoverContent` inside the one flyout and surfaces the active filters as chips. Sort moves into the flyout on Jobs and Communities, which were the last screens keeping a separate control beside the search field. The result count is now the same template everywhere. Jobs and Workers had none at the screen level — their columns printed their own "11 Jobs Available" in a second grammar — so those columns report the number up through `onResultCount` and the toolbar renders it. Measured, signed in, at 1440: /jobs Filters & sort 11 jobs /workers Filters & sort 42 workers /employers Filters & sort 9 employers /communities Filters & sort 11 communities /workers/map Filters & sort 34 results Not here: `/jobs`'s right column still carries a separate "Filters" panel for the soft-skills threshold. That is a second filter surface but not a second search row, and folding it into the flyout changes what the screen shows rather than how it is framed. Refs #815 Co-Authored-By: Claude Opus 5 <[email protected]> * feat(redesign): one search row in Office too — ListToolbar, and TableActionBar retired Office ran two of its own search idioms on top of the two #866 already merged: `OfficePageLayout` rendered a bare `<Input>` for most lists, and the two biggest — Jobs and Users — took a different branch entirely into `TableActionBar`, which carried its own search, its own add button and a "Show" control. Three grammars for one job, none of them the flyout the worker screens now use. `OfficePageLayout` owns the search for every Office list, so moving it onto `ListToolbar` moves all nine screens at once: search, a Filters & sort flyout where the screen has filters, the active filters as chips, and the result count at the right in the shared `{n} {noun}` template. Screens with no filters render no flyout rather than an empty one. Jobs and Users move off `actionBarConfig`: the add button was already duplicating the header's create action, the filters become the flyout's content, and the view toggle and column control become toolbar actions. With no callers left, `TableActionBar` and its config type are gone from this layout. Two details found by rendering rather than by reading: - The count must be `undefined` while loading, not `0`. "0 users" over a spinner asserts an empty list before anything is known — the same mistake #623 fixed on the pipeline. - The view toggle clipped its own labels to "Kan…" because the toolbar's action slot shrinks to whatever the search row leaves. It reads "List / Board" now — the prototype's word — with a floor so it cannot clip. Measured at 1440 and 390, no horizontal scroll at either: /office/cms/jobs Filters & sort 0 jobs /office/cms/workers — 50 users /office/cms/organizations — 9 organizations /office/cms/universities — 100 universities /office/cms/teams — 10 teams ("0 jobs" is #857, fixed on its own branch.) Refs #816 Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
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.
Phase 3 of the prototype-parity work (#622), continuing from #621. Six more
§12 debts from #539, all on the
/office/applicationssurface.Try again, wired to the refetch the hook already returnedCombined with #621's five (#6, #7, #8, #9, #17), that is eleven of the
eighteen §12 items closed.
The advance button is not just "wired"
It named the wrong stage. "Advance to Interview" was hard-coded regardless of
where the candidate actually was — from
newthat skips Screening entirely,and from a terminal stage there is nothing to advance to. It now names the
real next stage and hides where there isn't one.
Reject routes through
ApplicationStatusChangeModalrather than firing at theAPI, since rejection is a critical change and the one action a candidate
experiences as final. It hides once a candidate has withdrawn — collapsing
withdrawn into rejected is what breaks funnel conversion and EEO
adverse-impact counts (#533).
Tab counts cost no extra request
They read the same query keys the tabs use (
useTeamComments,useApplicationMessages), so react-query serves both from one cache entry.Zero and loading both render nothing: a tab reading "Notes · 0" is noise, and
one that flashes "· 0" before "· 12" is worse than one that simply gains a
count.
One consequence worth flagging
Keeping the header mounted means the toolbar's result count now renders in
states where the count isn't known. It takes
undefinedrather than0whileloading or errored — a literal "0 applications" above a spinner would assert
an empty pipeline before anything is known.
Testing
The rules live in
candidate-actions.tsrather than inline, so they can betested without mounting a component that needs six SDK hooks and a tab system.
All four of #1/#2/#3/#15 were logic absent rather than logic wrong, which is
exactly the kind of thing that returns without a test. 16 new tests.
Also caught by typecheck along the way:
GetMessagesResponsenests its arrayunder
.data, not.messages.Verification
Typecheck clean across
scf-coreandscaffald-app; lint clean; 16 new testsplus the existing 11 Lanes tests passing;
pnpm prepushgreen.Not verified: neither screen has been seen rendering — both sit behind auth
and the
officerole. And CI cannot gate this: Actions is stillbilling-blocked (#375), so a red badge here means "never ran".
🤖 Generated with Claude Code