Skip to content

feat(redesign): one search row in Office too — ListToolbar, and TableActionBar retired - #873

Merged
thinkclay merged 5 commits into
mainfrom
redesign/r1-816-office-toolbar
Sep 22, 2026
Merged

thinkclay merged 5 commits into
mainfrom
redesign/r1-816-office-toolbar

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #816. Release 1, epic #847. Stacked on #866 → #865 → #864.

The problem

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.

The change

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 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 things rendering caught that reading would not

  • 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 feat(ats): candidate detail actions, tab counts, and non-destructive loading/error #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 for that view — with a floor so it cannot clip. Verified unclipped at 1440 and 390.

Measured

Route Flyout Count
/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

No horizontal scroll at 1440 or 390. "0 jobs" is #857, fixed on its own branch (#862).

nx run scf-core:test 1175/1175, both typechecks and pnpm prepush clean.

Still open

/office/storage and /office/violations render no layout at all, so they still have no heading — #860 tracks the count. They are screens rather than lists, and giving each one a ScreenHeader belongs with its own redraw in release 3 (#839).

🤖 Generated with Claude Code

thinkclay and others added 4 commits September 21, 2026 15:53
…ne 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]>
…ft 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]>
…t 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]>
…ActionBar 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]>
thinkclay added a commit that referenced this pull request Sep 22, 2026
* fix(mobile): five Office routes stop scrolling sideways on a phone

The issue blamed the web Table's 150px column floor. That was wrong, and
measuring said so: `stackBelow` already defaults to 768, so the Table
stacks into cards at 390 and was never the overflow. Walking the DOM for
elements wider than the viewport found three unrelated causes, none of
them the table.

**A text block beside a button, with nothing allowed to shrink.**
`<Row justify="space-between">` holding a bare `<Stack>` of title and
description next to a Refresh button. React Native defaults `flexShrink`
to 0, unlike the web, so the text keeps its content width and the row
pushes past the screen — 460px on Payment Analytics, 412 on Violation
Reports. `flex={1} minWidth={0}` on the text side fixes it, which is the
same treatment `BlockedUsersSection.tsx:54` already uses. Six screens
carried the pattern; all six are fixed, including the three that were
not yet overflowing but would at a longer title.

**Six status filters on one line.** `/office/oauth-apps` laid them in a
`nowrap` Row. They wrap now: a filter scrolled out of frame is one the
user does not know exists — the same call the Tabs strip made.

**Three form fields side by side.** `/office/cms/projects/create` put
Status, Start date and End date in one Row of `flex={1}` children, and
the same `flexShrink: 0` default kept them at content width. They wrap,
with a 200px floor each.

Measured at 390, before → after:

  /office/payments              571 → 390
  /office/violations            524 → 390
  /office/transactions          522 → 390
  /office/cms/projects/create   505 → 390
  /office/oauth-apps            491 → 390

A 94-capture sweep of every `/office` and `/employers` route at 390
reports zero horizontal scroll.

Closes #858

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): the last two screens without a heading get one

The route sweep found 120 of 200 captures with no heading in the
accessibility tree. #864 closed almost all of it by moving the title into
the four layouts, and #873 reached the Office lists through
OfficePageLayout. These two were left: they render no layout at all — the
Office navigator's screenLayout only wraps them in a scroller — and each
drew its own title as a plain `<Text>` inside a space-between Row.

Both take `ScreenHeader` instead, with the description as the tip and
Refresh in the actions slot, so a page-level action sits at header right
like everywhere else.

Measured, signed in:

  /office/storage      "Storage Analytics"                    heading found
  /office/violations   "Anti-Circumvention Violation Reports" heading found

at 1440 and 390, no horizontal scroll at either. They sit at x=308/8
rather than the app's 332/16 because this branch is off main and does not
carry the screen rhythm; #865 moves them onto the shared gutter along
with every other Office screen.

Closes #860

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
@thinkclay
thinkclay changed the base branch from redesign/r1-815-listtoolbar to main September 22, 2026 20:00
…e-toolbar

# Conflicts:
#	packages/scf-core/features/office/components/OfficePageLayout.tsx
#	packages/scf-core/features/office/legal/OfficeViolationReports.tsx
#	packages/scf-core/features/office/office-storage-dashboard.tsx
@thinkclay
thinkclay merged commit 74c6b55 into main Sep 22, 2026
7 of 8 checks passed
@thinkclay
thinkclay deleted the redesign/r1-816-office-toolbar branch September 22, 2026 20:11
thinkclay added a commit that referenced this pull request Sep 23, 2026
…g calls

`scf-core:lint` has been failing on `main` since #873 moved the Office lists
onto `ListToolbar`. Two symbols survived the move with no callers left:
`theme` from `useThemeContext`, whose only reader was the visibility-column
cell that went with the old table, and `handleColumnVisibilityChange`, whose
work `TableColumnVisibilityModal` now does inline.

Biome reports both as errors, not warnings, so every pull request opened
since has shown a red "Lint, typecheck & build".

Co-Authored-By: Claude Opus 5 <[email protected]>
thinkclay added a commit that referenced this pull request Sep 23, 2026
…cs, and requirements answered (#827) (#880)

* feat(redesign): worker job detail reads as one screen — header, metrics, and requirements answered (#827)

The job posting is the screen a tradesperson decides on, and it was the one
screen with no heading. The title was a `<Text color="secondary">`, the
employer sat in an icon row below it, pay was a green dollar line, the
schedule an icon row, the workplace a chip, the deadline a yellow card, and
the requirements a plain list that never said whether the viewer met any of
them. Twenty-nine hardcoded hexes across the file coloured blocks that the
tokens already describe.

## The header

`ScreenHeader` now carries the posting: kicker = employer · location, the
role as the H2, Apply on the title row — the same block every other screen
opens with, filled by both routes. The public route takes its title from the
loader's row, so the heading is server-rendered and hydration has nothing to
reconcile (#786); `scripts/audit/hydration-pages.mjs` is clean on all three
device classes for `/jobs`, `/jobs/senior-software-engineer-unicorn` and
`/jobs/construction-project-manager-unicorn`.

Apply's label only changes once the viewer is known to have applied, and
that query needs a session, so server and first client render agree. Where
it goes does vary: signed out to sign-in, an external posting to the host's
own form, an internal one to the apply panel further down. #392 moved that
panel to the sidebar — right reading order, but on a phone it left the only
call to action below the whole posting.

## The requirements

`job-requirements.ts` answers a posting against the viewer's own record,
where that can be done honestly. Education, years of experience and a
driver's licence come from data the app already holds; a background check,
drug test, clearance or travel percentage are not profile fields, so they
are listed and never marked. A requirement is met, unmet or unknown, only
the first two are counted, and the summary is null rather than "0 of 0".

Two rules were written after running the matcher against real rows:

- an empty work history means "not filled in", not "no experience" — marking
  it ✗ would tell a tradesperson with twenty years on the tools that they do
  not qualify because they have not typed it in yet
- a posting that names a licence class is not checked against the classes
  held: "Class A" and "CDL-A" are the same licence spelled two ways

Signed out, every line is unknown and the block says so.

## The rest

Pay, schedule, workplace and the deadline become one `MetricRow`, the block
the dashboard and the ATS already use. Each section opens with a real `H3`.
The applied banner, the benefits box, the certification and skill chips, the
assessment prompts and the external-listing notice all drop their own hexes
for `bg.subtle` + `border.default` and the themed `Chip`. The nested
`ScrollView` inside each column is gone — `DashboardLayout` already scrolls
the page — and so is the column's own horizontal padding, which was paying
the gutter twice and pushing the body 16px right of its own heading.

## Seed

`016_seed-job-requirements.sql` fills the requirement fields on all 13
seeded postings. They were NULL everywhere, so the block rendered on no job
at all. The three seeded worker profiles cannot reach a protected route at
all (the prerequisites gate) — filed as #879.

Verified at 1440 and 390, signed in and anonymous: no horizontal scroll, the
screen's headings are H2 + H3 where there were none, and the checklist shows
"0 of 2 met" with ✗ marks against a high-school profile on a posting that
asks for a bachelor's degree.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(office): the users list kept a theme binding and a handler nothing calls

`scf-core:lint` has been failing on `main` since #873 moved the Office lists
onto `ListToolbar`. Two symbols survived the move with no callers left:
`theme` from `useThemeContext`, whose only reader was the visibility-column
cell that went with the old table, and `handleColumnVisibilityChange`, whose
work `TableColumnVisibilityModal` now does inline.

Biome reports both as errors, not warnings, so every pull request opened
since has shown a red "Lint, typecheck & build".

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore: keep the ui submodule pointer where main has it

The previous commit bumped `packages/ui` by accident: the submodule working
tree sits on the branch behind Scaffald/ui#39, so `git add -A` recorded that
commit as this branch's pointer. Nothing in #827 needs it, and pointing at a
commit that is not on ui's main would break a fresh checkout.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
thinkclay added a commit that referenced this pull request Sep 23, 2026
* feat(redesign): worker job detail reads as one screen — header, metrics, and requirements answered (#827)

The job posting is the screen a tradesperson decides on, and it was the one
screen with no heading. The title was a `<Text color="secondary">`, the
employer sat in an icon row below it, pay was a green dollar line, the
schedule an icon row, the workplace a chip, the deadline a yellow card, and
the requirements a plain list that never said whether the viewer met any of
them. Twenty-nine hardcoded hexes across the file coloured blocks that the
tokens already describe.

## The header

`ScreenHeader` now carries the posting: kicker = employer · location, the
role as the H2, Apply on the title row — the same block every other screen
opens with, filled by both routes. The public route takes its title from the
loader's row, so the heading is server-rendered and hydration has nothing to
reconcile (#786); `scripts/audit/hydration-pages.mjs` is clean on all three
device classes for `/jobs`, `/jobs/senior-software-engineer-unicorn` and
`/jobs/construction-project-manager-unicorn`.

Apply's label only changes once the viewer is known to have applied, and
that query needs a session, so server and first client render agree. Where
it goes does vary: signed out to sign-in, an external posting to the host's
own form, an internal one to the apply panel further down. #392 moved that
panel to the sidebar — right reading order, but on a phone it left the only
call to action below the whole posting.

## The requirements

`job-requirements.ts` answers a posting against the viewer's own record,
where that can be done honestly. Education, years of experience and a
driver's licence come from data the app already holds; a background check,
drug test, clearance or travel percentage are not profile fields, so they
are listed and never marked. A requirement is met, unmet or unknown, only
the first two are counted, and the summary is null rather than "0 of 0".

Two rules were written after running the matcher against real rows:

- an empty work history means "not filled in", not "no experience" — marking
  it ✗ would tell a tradesperson with twenty years on the tools that they do
  not qualify because they have not typed it in yet
- a posting that names a licence class is not checked against the classes
  held: "Class A" and "CDL-A" are the same licence spelled two ways

Signed out, every line is unknown and the block says so.

## The rest

Pay, schedule, workplace and the deadline become one `MetricRow`, the block
the dashboard and the ATS already use. Each section opens with a real `H3`.
The applied banner, the benefits box, the certification and skill chips, the
assessment prompts and the external-listing notice all drop their own hexes
for `bg.subtle` + `border.default` and the themed `Chip`. The nested
`ScrollView` inside each column is gone — `DashboardLayout` already scrolls
the page — and so is the column's own horizontal padding, which was paying
the gutter twice and pushing the body 16px right of its own heading.

## Seed

`016_seed-job-requirements.sql` fills the requirement fields on all 13
seeded postings. They were NULL everywhere, so the block rendered on no job
at all. The three seeded worker profiles cannot reach a protected route at
all (the prerequisites gate) — filed as #879.

Verified at 1440 and 390, signed in and anonymous: no horizontal scroll, the
screen's headings are H2 + H3 where there were none, and the checklist shows
"0 of 2 met" with ✗ marks against a high-school profile on a posting that
asks for a bachelor's degree.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): applying is a screen, not a sidebar (#829)

Clay: "we should switch to screens vs modals in some areas so we have more
real estate." The application form had the least of any screen in the app:
a four-step flow — screening questions, the employer's own questions, an
upload picker and a review pass — rendered inside job detail's 38% sidebar,
or in a modal for postings with no custom questions. On a phone that column
is the whole width; on a desktop it was narrower than a phone.

## The route

`/jobs/view/:id/apply`, one column, full width, under the posting it belongs
to. The URL is the other half of the point: the form already auto-saves, and
an interrupted application can now be returned to by going back to the same
address instead of re-opening the job and finding the sidebar again.

The screen header carries it — kicker = employer, title = "Apply · role",
breadcrumb back to the posting — so `ApplicationWizard` drops its own title
block, which repeated the role and employer a few pixels below the ones the
screen already showed. It also drops its own `ScrollView` (the page scrolls)
and the cancel-confirmation overlay, which nothing could open: nothing ever
called `setShowCancelConfirm(true)`, so `onCancel` had never fired.

Apply now reaches the same screen from every direction: the header action on
job detail, the panel beside it, and the map preview, which had one button
doing two jobs ("View Full Details & Apply") and now offers both.

## The panel that is left

Job detail's sidebar becomes a short card — what applying involves, and the
button. The application's own state is stated carefully: a saved draft and a
submitted application are the same row with the same status, because
`is_complete` is a request flag the insert drops (#881). The old copy
guessed — "You've Applied" to anyone who had typed one answer into the
screening step — so the card says "Your application", and offers both
continuing the form and checking where it stands. Without that, moving the
form to its own screen would have stranded every half-finished draft.

`QuickApplyModal` and `getApplicationFlow` are deleted, with their tests.
Nothing referenced them once both flows went to the screen, and two apply
implementations drift.

## Glitches fixed on the way

- "No" was pre-selected on both required yes/no questions. `!answers.field`
  is true before anyone answers, so the form showed an answer it had not
  been given, on a question it then called required. Both sides now test the
  value itself, and the chosen one is filled rather than merely un-outlined.
- Every forward action in the form — Continue, Continue to Review, Submit —
  rendered as an outline button, because `Button` defaults to outline since
  the surfaces pass and these call sites were never updated. They are the
  one thing each step leads with.
- The two selects rendered as near-black filled pills among white inputs
  (Scaffald/ui#39 makes a select look like a field).
- The success screen keeps its copy but loses its green-on-green badge and
  blue reference line for tokens, and states its heading as a heading.

`ROUTES.JOBS.APPLICATIONS.DETAIL` is added alongside: the worker's own
application detail has had a route file since the inquiry flow landed, but
no constant pointed at it, so nothing could link there without a literal.

## Verification

scf-core 1163/1163, scaffald-app 98/98, ui 709/709, both typechecks clean.
`hydration-pages.mjs` clean on both public job pages at phone 390, tablet
800 and desktop 1440. No horizontal scroll at 1440 or 390; at 390 the form
scrolls and the filled Continue button is reachable. The anonymous public
job page no longer fires two 401s per view against `applications/me`.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(office): the users list kept a theme binding and a handler nothing calls

`scf-core:lint` has been failing on `main` since #873 moved the Office lists
onto `ListToolbar`. Two symbols survived the move with no callers left:
`theme` from `useThemeContext`, whose only reader was the visibility-column
cell that went with the old table, and `handleColumnVisibilityChange`, whose
work `TableColumnVisibilityModal` now does inline.

Biome reports both as errors, not warnings, so every pull request opened
since has shown a red "Lint, typecheck & build".

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore: keep the ui submodule pointer where main has it

The previous commit bumped `packages/ui` by accident: the submodule working
tree sits on the branch behind Scaffald/ui#39, so `git add -A` recorded that
commit as this branch's pointer. Nothing in #827 needs it, and pointing at a
commit that is not on ui's main would break a fresh checkout.

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(ui): point at the squashed select fix on main (Scaffald/ui#39)

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
thinkclay added a commit that referenced this pull request Sep 23, 2026
)

* feat(redesign): worker job detail reads as one screen — header, metrics, and requirements answered (#827)

The job posting is the screen a tradesperson decides on, and it was the one
screen with no heading. The title was a `<Text color="secondary">`, the
employer sat in an icon row below it, pay was a green dollar line, the
schedule an icon row, the workplace a chip, the deadline a yellow card, and
the requirements a plain list that never said whether the viewer met any of
them. Twenty-nine hardcoded hexes across the file coloured blocks that the
tokens already describe.

## The header

`ScreenHeader` now carries the posting: kicker = employer · location, the
role as the H2, Apply on the title row — the same block every other screen
opens with, filled by both routes. The public route takes its title from the
loader's row, so the heading is server-rendered and hydration has nothing to
reconcile (#786); `scripts/audit/hydration-pages.mjs` is clean on all three
device classes for `/jobs`, `/jobs/senior-software-engineer-unicorn` and
`/jobs/construction-project-manager-unicorn`.

Apply's label only changes once the viewer is known to have applied, and
that query needs a session, so server and first client render agree. Where
it goes does vary: signed out to sign-in, an external posting to the host's
own form, an internal one to the apply panel further down. #392 moved that
panel to the sidebar — right reading order, but on a phone it left the only
call to action below the whole posting.

## The requirements

`job-requirements.ts` answers a posting against the viewer's own record,
where that can be done honestly. Education, years of experience and a
driver's licence come from data the app already holds; a background check,
drug test, clearance or travel percentage are not profile fields, so they
are listed and never marked. A requirement is met, unmet or unknown, only
the first two are counted, and the summary is null rather than "0 of 0".

Two rules were written after running the matcher against real rows:

- an empty work history means "not filled in", not "no experience" — marking
  it ✗ would tell a tradesperson with twenty years on the tools that they do
  not qualify because they have not typed it in yet
- a posting that names a licence class is not checked against the classes
  held: "Class A" and "CDL-A" are the same licence spelled two ways

Signed out, every line is unknown and the block says so.

## The rest

Pay, schedule, workplace and the deadline become one `MetricRow`, the block
the dashboard and the ATS already use. Each section opens with a real `H3`.
The applied banner, the benefits box, the certification and skill chips, the
assessment prompts and the external-listing notice all drop their own hexes
for `bg.subtle` + `border.default` and the themed `Chip`. The nested
`ScrollView` inside each column is gone — `DashboardLayout` already scrolls
the page — and so is the column's own horizontal padding, which was paying
the gutter twice and pushing the body 16px right of its own heading.

## Seed

`016_seed-job-requirements.sql` fills the requirement fields on all 13
seeded postings. They were NULL everywhere, so the block rendered on no job
at all. The three seeded worker profiles cannot reach a protected route at
all (the prerequisites gate) — filed as #879.

Verified at 1440 and 390, signed in and anonymous: no horizontal scroll, the
screen's headings are H2 + H3 where there were none, and the checklist shows
"0 of 2 met" with ✗ marks against a high-school profile on a posting that
asks for a bachelor's degree.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): applying is a screen, not a sidebar (#829)

Clay: "we should switch to screens vs modals in some areas so we have more
real estate." The application form had the least of any screen in the app:
a four-step flow — screening questions, the employer's own questions, an
upload picker and a review pass — rendered inside job detail's 38% sidebar,
or in a modal for postings with no custom questions. On a phone that column
is the whole width; on a desktop it was narrower than a phone.

## The route

`/jobs/view/:id/apply`, one column, full width, under the posting it belongs
to. The URL is the other half of the point: the form already auto-saves, and
an interrupted application can now be returned to by going back to the same
address instead of re-opening the job and finding the sidebar again.

The screen header carries it — kicker = employer, title = "Apply · role",
breadcrumb back to the posting — so `ApplicationWizard` drops its own title
block, which repeated the role and employer a few pixels below the ones the
screen already showed. It also drops its own `ScrollView` (the page scrolls)
and the cancel-confirmation overlay, which nothing could open: nothing ever
called `setShowCancelConfirm(true)`, so `onCancel` had never fired.

Apply now reaches the same screen from every direction: the header action on
job detail, the panel beside it, and the map preview, which had one button
doing two jobs ("View Full Details & Apply") and now offers both.

## The panel that is left

Job detail's sidebar becomes a short card — what applying involves, and the
button. The application's own state is stated carefully: a saved draft and a
submitted application are the same row with the same status, because
`is_complete` is a request flag the insert drops (#881). The old copy
guessed — "You've Applied" to anyone who had typed one answer into the
screening step — so the card says "Your application", and offers both
continuing the form and checking where it stands. Without that, moving the
form to its own screen would have stranded every half-finished draft.

`QuickApplyModal` and `getApplicationFlow` are deleted, with their tests.
Nothing referenced them once both flows went to the screen, and two apply
implementations drift.

## Glitches fixed on the way

- "No" was pre-selected on both required yes/no questions. `!answers.field`
  is true before anyone answers, so the form showed an answer it had not
  been given, on a question it then called required. Both sides now test the
  value itself, and the chosen one is filled rather than merely un-outlined.
- Every forward action in the form — Continue, Continue to Review, Submit —
  rendered as an outline button, because `Button` defaults to outline since
  the surfaces pass and these call sites were never updated. They are the
  one thing each step leads with.
- The two selects rendered as near-black filled pills among white inputs
  (Scaffald/ui#39 makes a select look like a field).
- The success screen keeps its copy but loses its green-on-green badge and
  blue reference line for tokens, and states its heading as a heading.

`ROUTES.JOBS.APPLICATIONS.DETAIL` is added alongside: the worker's own
application detail has had a route file since the inquiry flow landed, but
no constant pointed at it, so nothing could link there without a literal.

## Verification

scf-core 1163/1163, scaffald-app 98/98, ui 709/709, both typechecks clean.
`hydration-pages.mjs` clean on both public job pages at phone 390, tablet
800 and desktop 1440. No horizontal scroll at 1440 or 390; at 390 the form
scrolls and the filled Continue button is reachable. The anonymous public
job page no longer fires two 401s per view against `applications/me`.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(office): the users list kept a theme binding and a handler nothing calls

`scf-core:lint` has been failing on `main` since #873 moved the Office lists
onto `ListToolbar`. Two symbols survived the move with no callers left:
`theme` from `useThemeContext`, whose only reader was the visibility-column
cell that went with the old table, and `handleColumnVisibilityChange`, whose
work `TableColumnVisibilityModal` now does inline.

Biome reports both as errors, not warnings, so every pull request opened
since has shown a red "Lint, typecheck & build".

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore: keep the ui submodule pointer where main has it

The previous commit bumped `packages/ui` by accident: the submodule working
tree sits on the branch behind Scaffald/ui#39, so `git add -A` recorded that
commit as this branch's pointer. Nothing in #827 needs it, and pointing at a
commit that is not on ui's main would break a fresh checkout.

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(ui): point at the squashed select fix on main (Scaffald/ui#39)

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): My applications reads as a path, not a pile (#826)

The screen a worker checks between applying and hearing back was a flat
list of cards under five pill buttons, with a "recently moved" rail on top
repeating three of the same rows. The one question it has to answer — what
is happening with each of these, and which one needs me — was spread across
a badge, a filter chip and a next-step line that each named the same status
differently. "Under Review" in the badge, "Active" in the chips, "Employer
is reviewing your application" in the card.

## One vocabulary

`application-status.ts` holds the worker-facing names, once. These are what
the *applicant* is told, which is not always what the employer's board calls
the same column: `rejected` is "Not selected" here and "Rejected" there;
`pending` is "Applied", because from the worker's side the application is
not pending anything they can do.

Two of the eight stages are waiting on the worker — an offer, and a question
from the employer. Those carry the attention tone. Everything else is
waiting on the employer, and marking those would blame the wrong party for
the silence.

## Stages as the structure

`LaneGroup` per stage, in the order an application moves, the ones that want
the worker first; empty stages are left out rather than printing eight
headings with seven of them blank. Rows sit on hairlines — no cards — and
lead with days in *this* stage, from `stage_changed_at`. That is the number
that says "this one has stalled"; a date applied cannot. An application that
has never moved shows no figure at all rather than "0d", which would read as
"moved today".

The status partition becomes folder tabs, the treatment the rest of the app
uses for a view switch, instead of five pill buttons that looked like
actions. `ListToolbar` supplies the search and the one result-count
template. The title comes from the shared header, so the screen no longer
draws its own 22px `<Text>` where a heading belongs.

`ApplicationCard`, `ApplicationStatusFilter` and `RecentApplicationUpdates`
are deleted — all three existed only for this screen, and the rail was a
third way of saying what the stage grouping now says once. The card also
carried the last hardcoded route literal on this path; rows use
`ROUTES.JOBS.APPLICATIONS.DETAIL`.

## A failed request is not an empty list

The screen rendered "no applications yet" whenever the query came back
without data, so a request that failed inside the auth window told a worker
with six live applications that they had never applied to anything. It now
says it could not load them, and offers to try again.

That is not the whole fix: on a cold load the query can sit in React Query's
`paused` state, which is neither loading nor errored, and a component cannot
tell that from an empty result. Filed as #883 — it needs the data layer, not
this screen.

## Verification

scf-core 1175/1175 (12 new, covering the vocabulary, the partition and the
day count), lint and both typechecks clean. Checked signed in at 1440 and
390 against seven applications across six stages: groups in order with the
offer first, days-in-stage on each row, no horizontal scroll, and the phone
layout stacking rather than scrolling sideways.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
thinkclay added a commit that referenced this pull request Sep 23, 2026
…885)

* feat(redesign): worker job detail reads as one screen — header, metrics, and requirements answered (#827)

The job posting is the screen a tradesperson decides on, and it was the one
screen with no heading. The title was a `<Text color="secondary">`, the
employer sat in an icon row below it, pay was a green dollar line, the
schedule an icon row, the workplace a chip, the deadline a yellow card, and
the requirements a plain list that never said whether the viewer met any of
them. Twenty-nine hardcoded hexes across the file coloured blocks that the
tokens already describe.

## The header

`ScreenHeader` now carries the posting: kicker = employer · location, the
role as the H2, Apply on the title row — the same block every other screen
opens with, filled by both routes. The public route takes its title from the
loader's row, so the heading is server-rendered and hydration has nothing to
reconcile (#786); `scripts/audit/hydration-pages.mjs` is clean on all three
device classes for `/jobs`, `/jobs/senior-software-engineer-unicorn` and
`/jobs/construction-project-manager-unicorn`.

Apply's label only changes once the viewer is known to have applied, and
that query needs a session, so server and first client render agree. Where
it goes does vary: signed out to sign-in, an external posting to the host's
own form, an internal one to the apply panel further down. #392 moved that
panel to the sidebar — right reading order, but on a phone it left the only
call to action below the whole posting.

## The requirements

`job-requirements.ts` answers a posting against the viewer's own record,
where that can be done honestly. Education, years of experience and a
driver's licence come from data the app already holds; a background check,
drug test, clearance or travel percentage are not profile fields, so they
are listed and never marked. A requirement is met, unmet or unknown, only
the first two are counted, and the summary is null rather than "0 of 0".

Two rules were written after running the matcher against real rows:

- an empty work history means "not filled in", not "no experience" — marking
  it ✗ would tell a tradesperson with twenty years on the tools that they do
  not qualify because they have not typed it in yet
- a posting that names a licence class is not checked against the classes
  held: "Class A" and "CDL-A" are the same licence spelled two ways

Signed out, every line is unknown and the block says so.

## The rest

Pay, schedule, workplace and the deadline become one `MetricRow`, the block
the dashboard and the ATS already use. Each section opens with a real `H3`.
The applied banner, the benefits box, the certification and skill chips, the
assessment prompts and the external-listing notice all drop their own hexes
for `bg.subtle` + `border.default` and the themed `Chip`. The nested
`ScrollView` inside each column is gone — `DashboardLayout` already scrolls
the page — and so is the column's own horizontal padding, which was paying
the gutter twice and pushing the body 16px right of its own heading.

## Seed

`016_seed-job-requirements.sql` fills the requirement fields on all 13
seeded postings. They were NULL everywhere, so the block rendered on no job
at all. The three seeded worker profiles cannot reach a protected route at
all (the prerequisites gate) — filed as #879.

Verified at 1440 and 390, signed in and anonymous: no horizontal scroll, the
screen's headings are H2 + H3 where there were none, and the checklist shows
"0 of 2 met" with ✗ marks against a high-school profile on a posting that
asks for a bachelor's degree.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): applying is a screen, not a sidebar (#829)

Clay: "we should switch to screens vs modals in some areas so we have more
real estate." The application form had the least of any screen in the app:
a four-step flow — screening questions, the employer's own questions, an
upload picker and a review pass — rendered inside job detail's 38% sidebar,
or in a modal for postings with no custom questions. On a phone that column
is the whole width; on a desktop it was narrower than a phone.

## The route

`/jobs/view/:id/apply`, one column, full width, under the posting it belongs
to. The URL is the other half of the point: the form already auto-saves, and
an interrupted application can now be returned to by going back to the same
address instead of re-opening the job and finding the sidebar again.

The screen header carries it — kicker = employer, title = "Apply · role",
breadcrumb back to the posting — so `ApplicationWizard` drops its own title
block, which repeated the role and employer a few pixels below the ones the
screen already showed. It also drops its own `ScrollView` (the page scrolls)
and the cancel-confirmation overlay, which nothing could open: nothing ever
called `setShowCancelConfirm(true)`, so `onCancel` had never fired.

Apply now reaches the same screen from every direction: the header action on
job detail, the panel beside it, and the map preview, which had one button
doing two jobs ("View Full Details & Apply") and now offers both.

## The panel that is left

Job detail's sidebar becomes a short card — what applying involves, and the
button. The application's own state is stated carefully: a saved draft and a
submitted application are the same row with the same status, because
`is_complete` is a request flag the insert drops (#881). The old copy
guessed — "You've Applied" to anyone who had typed one answer into the
screening step — so the card says "Your application", and offers both
continuing the form and checking where it stands. Without that, moving the
form to its own screen would have stranded every half-finished draft.

`QuickApplyModal` and `getApplicationFlow` are deleted, with their tests.
Nothing referenced them once both flows went to the screen, and two apply
implementations drift.

## Glitches fixed on the way

- "No" was pre-selected on both required yes/no questions. `!answers.field`
  is true before anyone answers, so the form showed an answer it had not
  been given, on a question it then called required. Both sides now test the
  value itself, and the chosen one is filled rather than merely un-outlined.
- Every forward action in the form — Continue, Continue to Review, Submit —
  rendered as an outline button, because `Button` defaults to outline since
  the surfaces pass and these call sites were never updated. They are the
  one thing each step leads with.
- The two selects rendered as near-black filled pills among white inputs
  (Scaffald/ui#39 makes a select look like a field).
- The success screen keeps its copy but loses its green-on-green badge and
  blue reference line for tokens, and states its heading as a heading.

`ROUTES.JOBS.APPLICATIONS.DETAIL` is added alongside: the worker's own
application detail has had a route file since the inquiry flow landed, but
no constant pointed at it, so nothing could link there without a literal.

## Verification

scf-core 1163/1163, scaffald-app 98/98, ui 709/709, both typechecks clean.
`hydration-pages.mjs` clean on both public job pages at phone 390, tablet
800 and desktop 1440. No horizontal scroll at 1440 or 390; at 390 the form
scrolls and the filled Continue button is reachable. The anonymous public
job page no longer fires two 401s per view against `applications/me`.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(office): the users list kept a theme binding and a handler nothing calls

`scf-core:lint` has been failing on `main` since #873 moved the Office lists
onto `ListToolbar`. Two symbols survived the move with no callers left:
`theme` from `useThemeContext`, whose only reader was the visibility-column
cell that went with the old table, and `handleColumnVisibilityChange`, whose
work `TableColumnVisibilityModal` now does inline.

Biome reports both as errors, not warnings, so every pull request opened
since has shown a red "Lint, typecheck & build".

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore: keep the ui submodule pointer where main has it

The previous commit bumped `packages/ui` by accident: the submodule working
tree sits on the branch behind Scaffald/ui#39, so `git add -A` recorded that
commit as this branch's pointer. Nothing in #827 needs it, and pointing at a
commit that is not on ui's main would break a fresh checkout.

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(ui): point at the squashed select fix on main (Scaffald/ui#39)

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): My applications reads as a path, not a pile (#826)

The screen a worker checks between applying and hearing back was a flat
list of cards under five pill buttons, with a "recently moved" rail on top
repeating three of the same rows. The one question it has to answer — what
is happening with each of these, and which one needs me — was spread across
a badge, a filter chip and a next-step line that each named the same status
differently. "Under Review" in the badge, "Active" in the chips, "Employer
is reviewing your application" in the card.

## One vocabulary

`application-status.ts` holds the worker-facing names, once. These are what
the *applicant* is told, which is not always what the employer's board calls
the same column: `rejected` is "Not selected" here and "Rejected" there;
`pending` is "Applied", because from the worker's side the application is
not pending anything they can do.

Two of the eight stages are waiting on the worker — an offer, and a question
from the employer. Those carry the attention tone. Everything else is
waiting on the employer, and marking those would blame the wrong party for
the silence.

## Stages as the structure

`LaneGroup` per stage, in the order an application moves, the ones that want
the worker first; empty stages are left out rather than printing eight
headings with seven of them blank. Rows sit on hairlines — no cards — and
lead with days in *this* stage, from `stage_changed_at`. That is the number
that says "this one has stalled"; a date applied cannot. An application that
has never moved shows no figure at all rather than "0d", which would read as
"moved today".

The status partition becomes folder tabs, the treatment the rest of the app
uses for a view switch, instead of five pill buttons that looked like
actions. `ListToolbar` supplies the search and the one result-count
template. The title comes from the shared header, so the screen no longer
draws its own 22px `<Text>` where a heading belongs.

`ApplicationCard`, `ApplicationStatusFilter` and `RecentApplicationUpdates`
are deleted — all three existed only for this screen, and the rail was a
third way of saying what the stage grouping now says once. The card also
carried the last hardcoded route literal on this path; rows use
`ROUTES.JOBS.APPLICATIONS.DETAIL`.

## A failed request is not an empty list

The screen rendered "no applications yet" whenever the query came back
without data, so a request that failed inside the auth window told a worker
with six live applications that they had never applied to anything. It now
says it could not load them, and offers to try again.

That is not the whole fix: on a cold load the query can sit in React Query's
`paused` state, which is neither loading nor errored, and a component cannot
tell that from an empty result. Filed as #883 — it needs the data layer, not
this screen.

## Verification

scf-core 1175/1175 (12 new, covering the vocabulary, the partition and the
day count), lint and both typechecks clean. Checked signed in at 1440 and
390 against seven applications across six stages: groups in order with the
offer first, days-in-stage on each row, no horizontal scroll, and the phone
layout stacking rather than scrolling sideways.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): Home is one column of bands, not eight cards (#825)

Home was eight boxes on a gradient: a profile hero, a tip card that
auto-advanced every eight seconds, an assessments carousel with arrows and
pagination dots for its three items, and five more widgets — each with its
own heading drawn as a bold `<Text>` at whatever size it picked (18, 16 and
14 across the eight), and a different subset on the phone than on the
desktop. Every block carried the same weight, so the screen said nothing
about what to do first. On a wide screen the profile percentage appeared
twice, side by side, because both columns rendered the hero.

## Profile strength, and what makes it up

The figure is a `MetricBlock` — the block every other screen uses for a
number — with "1 of 6 sections done" beneath it, and a second block for what
is left. Its inputs are bands: one hairline row per section the backend
already scores (#585), each saying what it is, whether it is done, what it
is for, and where to go. No new scoring: `useProfileCompletion` is the same
source the old card read its single percentage from, and the descriptions
are the section metadata that was already written and never shown.

Unfinished sections come first, heaviest first within them. A worker on this
screen is looking for what to do next, and eleven green rows above the one
red one is not an answer.

## The rest

- Assessments: the unfinished one is marked "Next up" and the three are rows.
  A carousel is a control for a long list; there are three, and there always
  have been.
- Invitations, negotiations and activity: rows on hairlines, not nested
  cards. `TeamInvitationList` is shared with two Employers screens, which get
  the same treatment.
- Every section opens with a real `H3` through one `HomeSection`, so Home has
  headings in the accessibility tree where it had none.
- The phone gets the same column in the same order rather than a different
  subset; the desktop second column is the reading material — communities,
  news, people — and no longer repeats the main column.

## Deleted

`ProfileHero`, `GrowthCard` and `AssessmentsCarouselWidget` are replaced.
`MobileDashboardTabs`, `MobileDashboardGreeting`, `MobileGrowthTip` and
`ProfileActivityWidget` are removed as dead — the last three already had no
consumers on `main`.

## One glitch fixed on the way

The hero read `privateData.first_name` from `/profiles/widgets/general-info`,
a field that endpoint has never returned, so the name always came from the
fallback. When that request fails inside the auth window — it is never
retried (#883) — a signed-in worker was greeted as "Your profile". The
session's own metadata is now the last resort, so the name is right even
when the widget request is not.

## Verification

scf-core 1175/1175, lint and both typechecks clean. Checked signed in at
1440 and 390: no card borders anywhere on Home, six `H3` section headings
where there were none, no horizontal scroll, and the phone column carrying
the full order.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
thinkclay added a commit that referenced this pull request Sep 23, 2026
)

* feat(redesign): worker job detail reads as one screen — header, metrics, and requirements answered (#827)

The job posting is the screen a tradesperson decides on, and it was the one
screen with no heading. The title was a `<Text color="secondary">`, the
employer sat in an icon row below it, pay was a green dollar line, the
schedule an icon row, the workplace a chip, the deadline a yellow card, and
the requirements a plain list that never said whether the viewer met any of
them. Twenty-nine hardcoded hexes across the file coloured blocks that the
tokens already describe.

## The header

`ScreenHeader` now carries the posting: kicker = employer · location, the
role as the H2, Apply on the title row — the same block every other screen
opens with, filled by both routes. The public route takes its title from the
loader's row, so the heading is server-rendered and hydration has nothing to
reconcile (#786); `scripts/audit/hydration-pages.mjs` is clean on all three
device classes for `/jobs`, `/jobs/senior-software-engineer-unicorn` and
`/jobs/construction-project-manager-unicorn`.

Apply's label only changes once the viewer is known to have applied, and
that query needs a session, so server and first client render agree. Where
it goes does vary: signed out to sign-in, an external posting to the host's
own form, an internal one to the apply panel further down. #392 moved that
panel to the sidebar — right reading order, but on a phone it left the only
call to action below the whole posting.

## The requirements

`job-requirements.ts` answers a posting against the viewer's own record,
where that can be done honestly. Education, years of experience and a
driver's licence come from data the app already holds; a background check,
drug test, clearance or travel percentage are not profile fields, so they
are listed and never marked. A requirement is met, unmet or unknown, only
the first two are counted, and the summary is null rather than "0 of 0".

Two rules were written after running the matcher against real rows:

- an empty work history means "not filled in", not "no experience" — marking
  it ✗ would tell a tradesperson with twenty years on the tools that they do
  not qualify because they have not typed it in yet
- a posting that names a licence class is not checked against the classes
  held: "Class A" and "CDL-A" are the same licence spelled two ways

Signed out, every line is unknown and the block says so.

## The rest

Pay, schedule, workplace and the deadline become one `MetricRow`, the block
the dashboard and the ATS already use. Each section opens with a real `H3`.
The applied banner, the benefits box, the certification and skill chips, the
assessment prompts and the external-listing notice all drop their own hexes
for `bg.subtle` + `border.default` and the themed `Chip`. The nested
`ScrollView` inside each column is gone — `DashboardLayout` already scrolls
the page — and so is the column's own horizontal padding, which was paying
the gutter twice and pushing the body 16px right of its own heading.

## Seed

`016_seed-job-requirements.sql` fills the requirement fields on all 13
seeded postings. They were NULL everywhere, so the block rendered on no job
at all. The three seeded worker profiles cannot reach a protected route at
all (the prerequisites gate) — filed as #879.

Verified at 1440 and 390, signed in and anonymous: no horizontal scroll, the
screen's headings are H2 + H3 where there were none, and the checklist shows
"0 of 2 met" with ✗ marks against a high-school profile on a posting that
asks for a bachelor's degree.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): applying is a screen, not a sidebar (#829)

Clay: "we should switch to screens vs modals in some areas so we have more
real estate." The application form had the least of any screen in the app:
a four-step flow — screening questions, the employer's own questions, an
upload picker and a review pass — rendered inside job detail's 38% sidebar,
or in a modal for postings with no custom questions. On a phone that column
is the whole width; on a desktop it was narrower than a phone.

## The route

`/jobs/view/:id/apply`, one column, full width, under the posting it belongs
to. The URL is the other half of the point: the form already auto-saves, and
an interrupted application can now be returned to by going back to the same
address instead of re-opening the job and finding the sidebar again.

The screen header carries it — kicker = employer, title = "Apply · role",
breadcrumb back to the posting — so `ApplicationWizard` drops its own title
block, which repeated the role and employer a few pixels below the ones the
screen already showed. It also drops its own `ScrollView` (the page scrolls)
and the cancel-confirmation overlay, which nothing could open: nothing ever
called `setShowCancelConfirm(true)`, so `onCancel` had never fired.

Apply now reaches the same screen from every direction: the header action on
job detail, the panel beside it, and the map preview, which had one button
doing two jobs ("View Full Details & Apply") and now offers both.

## The panel that is left

Job detail's sidebar becomes a short card — what applying involves, and the
button. The application's own state is stated carefully: a saved draft and a
submitted application are the same row with the same status, because
`is_complete` is a request flag the insert drops (#881). The old copy
guessed — "You've Applied" to anyone who had typed one answer into the
screening step — so the card says "Your application", and offers both
continuing the form and checking where it stands. Without that, moving the
form to its own screen would have stranded every half-finished draft.

`QuickApplyModal` and `getApplicationFlow` are deleted, with their tests.
Nothing referenced them once both flows went to the screen, and two apply
implementations drift.

## Glitches fixed on the way

- "No" was pre-selected on both required yes/no questions. `!answers.field`
  is true before anyone answers, so the form showed an answer it had not
  been given, on a question it then called required. Both sides now test the
  value itself, and the chosen one is filled rather than merely un-outlined.
- Every forward action in the form — Continue, Continue to Review, Submit —
  rendered as an outline button, because `Button` defaults to outline since
  the surfaces pass and these call sites were never updated. They are the
  one thing each step leads with.
- The two selects rendered as near-black filled pills among white inputs
  (Scaffald/ui#39 makes a select look like a field).
- The success screen keeps its copy but loses its green-on-green badge and
  blue reference line for tokens, and states its heading as a heading.

`ROUTES.JOBS.APPLICATIONS.DETAIL` is added alongside: the worker's own
application detail has had a route file since the inquiry flow landed, but
no constant pointed at it, so nothing could link there without a literal.

## Verification

scf-core 1163/1163, scaffald-app 98/98, ui 709/709, both typechecks clean.
`hydration-pages.mjs` clean on both public job pages at phone 390, tablet
800 and desktop 1440. No horizontal scroll at 1440 or 390; at 390 the form
scrolls and the filled Continue button is reachable. The anonymous public
job page no longer fires two 401s per view against `applications/me`.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(office): the users list kept a theme binding and a handler nothing calls

`scf-core:lint` has been failing on `main` since #873 moved the Office lists
onto `ListToolbar`. Two symbols survived the move with no callers left:
`theme` from `useThemeContext`, whose only reader was the visibility-column
cell that went with the old table, and `handleColumnVisibilityChange`, whose
work `TableColumnVisibilityModal` now does inline.

Biome reports both as errors, not warnings, so every pull request opened
since has shown a red "Lint, typecheck & build".

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore: keep the ui submodule pointer where main has it

The previous commit bumped `packages/ui` by accident: the submodule working
tree sits on the branch behind Scaffald/ui#39, so `git add -A` recorded that
commit as this branch's pointer. Nothing in #827 needs it, and pointing at a
commit that is not on ui's main would break a fresh checkout.

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(ui): point at the squashed select fix on main (Scaffald/ui#39)

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): My applications reads as a path, not a pile (#826)

The screen a worker checks between applying and hearing back was a flat
list of cards under five pill buttons, with a "recently moved" rail on top
repeating three of the same rows. The one question it has to answer — what
is happening with each of these, and which one needs me — was spread across
a badge, a filter chip and a next-step line that each named the same status
differently. "Under Review" in the badge, "Active" in the chips, "Employer
is reviewing your application" in the card.

## One vocabulary

`application-status.ts` holds the worker-facing names, once. These are what
the *applicant* is told, which is not always what the employer's board calls
the same column: `rejected` is "Not selected" here and "Rejected" there;
`pending` is "Applied", because from the worker's side the application is
not pending anything they can do.

Two of the eight stages are waiting on the worker — an offer, and a question
from the employer. Those carry the attention tone. Everything else is
waiting on the employer, and marking those would blame the wrong party for
the silence.

## Stages as the structure

`LaneGroup` per stage, in the order an application moves, the ones that want
the worker first; empty stages are left out rather than printing eight
headings with seven of them blank. Rows sit on hairlines — no cards — and
lead with days in *this* stage, from `stage_changed_at`. That is the number
that says "this one has stalled"; a date applied cannot. An application that
has never moved shows no figure at all rather than "0d", which would read as
"moved today".

The status partition becomes folder tabs, the treatment the rest of the app
uses for a view switch, instead of five pill buttons that looked like
actions. `ListToolbar` supplies the search and the one result-count
template. The title comes from the shared header, so the screen no longer
draws its own 22px `<Text>` where a heading belongs.

`ApplicationCard`, `ApplicationStatusFilter` and `RecentApplicationUpdates`
are deleted — all three existed only for this screen, and the rail was a
third way of saying what the stage grouping now says once. The card also
carried the last hardcoded route literal on this path; rows use
`ROUTES.JOBS.APPLICATIONS.DETAIL`.

## A failed request is not an empty list

The screen rendered "no applications yet" whenever the query came back
without data, so a request that failed inside the auth window told a worker
with six live applications that they had never applied to anything. It now
says it could not load them, and offers to try again.

That is not the whole fix: on a cold load the query can sit in React Query's
`paused` state, which is neither loading nor errored, and a component cannot
tell that from an empty result. Filed as #883 — it needs the data layer, not
this screen.

## Verification

scf-core 1175/1175 (12 new, covering the vocabulary, the partition and the
day count), lint and both typechecks clean. Checked signed in at 1440 and
390 against seven applications across six stages: groups in order with the
offer first, days-in-stage on each row, no horizontal scroll, and the phone
layout stacking rather than scrolling sideways.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): Home is one column of bands, not eight cards (#825)

Home was eight boxes on a gradient: a profile hero, a tip card that
auto-advanced every eight seconds, an assessments carousel with arrows and
pagination dots for its three items, and five more widgets — each with its
own heading drawn as a bold `<Text>` at whatever size it picked (18, 16 and
14 across the eight), and a different subset on the phone than on the
desktop. Every block carried the same weight, so the screen said nothing
about what to do first. On a wide screen the profile percentage appeared
twice, side by side, because both columns rendered the hero.

## Profile strength, and what makes it up

The figure is a `MetricBlock` — the block every other screen uses for a
number — with "1 of 6 sections done" beneath it, and a second block for what
is left. Its inputs are bands: one hairline row per section the backend
already scores (#585), each saying what it is, whether it is done, what it
is for, and where to go. No new scoring: `useProfileCompletion` is the same
source the old card read its single percentage from, and the descriptions
are the section metadata that was already written and never shown.

Unfinished sections come first, heaviest first within them. A worker on this
screen is looking for what to do next, and eleven green rows above the one
red one is not an answer.

## The rest

- Assessments: the unfinished one is marked "Next up" and the three are rows.
  A carousel is a control for a long list; there are three, and there always
  have been.
- Invitations, negotiations and activity: rows on hairlines, not nested
  cards. `TeamInvitationList` is shared with two Employers screens, which get
  the same treatment.
- Every section opens with a real `H3` through one `HomeSection`, so Home has
  headings in the accessibility tree where it had none.
- The phone gets the same column in the same order rather than a different
  subset; the desktop second column is the reading material — communities,
  news, people — and no longer repeats the main column.

## Deleted

`ProfileHero`, `GrowthCard` and `AssessmentsCarouselWidget` are replaced.
`MobileDashboardTabs`, `MobileDashboardGreeting`, `MobileGrowthTip` and
`ProfileActivityWidget` are removed as dead — the last three already had no
consumers on `main`.

## One glitch fixed on the way

The hero read `privateData.first_name` from `/profiles/widgets/general-info`,
a field that endpoint has never returned, so the name always came from the
fallback. When that request fails inside the auth window — it is never
retried (#883) — a signed-in worker was greeted as "Your profile". The
session's own metadata is now the last resort, so the name is right even
when the widget request is not.

## Verification

scf-core 1175/1175, lint and both typechecks clean. Checked signed in at
1440 and 390: no card borders anywhere on Home, six `H3` section headings
where there were none, no horizontal scroll, and the phone column carrying
the full order.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(redesign): the assessments hub is one list with status (#831)

The hub was four marketing cards — a title, a paragraph and a full-width
filled button each — and no indication anywhere of which ones the viewer had
already taken. Someone who had finished three of the four saw exactly the
same screen as someone who had finished none, with four equally loud calls
to action inviting them to start over.

It also had the list in the wrong column: the assessments were the 38%
sidebar and the skills analytics they produce were the main content, on a
screen called Assessments.

## One list

Rows on hairlines: what it is, what taking it proves in the worker's terms,
how long it takes, whether it is done, and one action that changes with the
answer — Begin, or Review where results have their own screen. Folder tabs
partition the same list (All / Available / Completed) rather than filtering a
different one, and `ListToolbar` carries the search and the count.

The list now leads the screen. The skills analytics follow it in the same
column at the same width, and the sidebar carries the "why assessments
matter" explainer that was written for this screen and rendered nowhere —
`AssessmentsLandingRight` had no consumers at all.

## One catalogue

`assessment-catalogue.ts` holds the four assessments and reads their
completion. That last part needed doing: the four status endpoints answer in
four shapes — `isCompleted`, `data.isCompleted`, `complete`, `selected` —
and every screen was guessing at them separately, with the dashboard
carousel carrying its own copy of the guesses. `readCompleted` checks each
known spelling once, and rejects a truthy non-boolean rather than reading a
date or a count as completion.

Home's assessments section now reads the same catalogue, so the two screens
name the same assessments the same way. `AssessmentsLandingLeft` is deleted;
the hub replaces it.

## Verification

scf-core 1179/1179 (4 new on the completion normaliser), lint and both
typechecks clean. Checked at 1440 and 390: four rows with their status, tabs
counting 4 / 4 / 0, Begin navigating to the right assessment, no horizontal
scroll.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

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.

feat(redesign): ListToolbar on the Office and admin list screens

1 participant