Skip to content

feat(redesign): one search row — ListToolbar on every worker-side list screen - #866

Merged
thinkclay merged 4 commits into
mainfrom
redesign/r1-815-listtoolbar
Sep 22, 2026
Merged

thinkclay merged 4 commits into
mainfrom
redesign/r1-815-listtoolbar

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #815. Release 1, epic #847. Stacked on #865 → #864. Merge those first; GitHub retargets this as they land.

The problem

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 result count came in four different 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; I corrected both issues. It is deleted here along with SortDropdown, and its FilterPillConfig type moves to components/toolbarFilters.tsx — the description of a filter outlived its presentation.

The approach

Each screen already described its filters as data. Rather than rewrite five screens' filter internals, useToolbarFilters stacks the same popoverContent inside the one flyout and surfaces the active filters as chips. That is the shape ListToolbar already renders and the shape the prototype uses.

Sort moves into the flyout on Jobs and Communities — the last two screens keeping a separate control beside the search field.

The count is one template everywhere. Jobs and Workers had none at the screen level; their columns printed their own "11 Jobs Available" in a second grammar. Those columns now report the number up through onResultCount and the toolbar renders it, so the duplicate goes away too.

Verified in the browser

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

nx run scf-core:test 1175/1175, typecheck and the app's tsc --noEmit clean, pnpm prepush clean.

Deliberately not here

🤖 Generated with Claude Code

thinkclay and others added 3 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]>
…oolbar

# Conflicts:
#	packages/scf-core/features/discover/components/SortDropdown.tsx
#	packages/scf-core/features/office/legal/OfficeViolationReports.tsx
#	packages/scf-core/features/office/office-storage-dashboard.tsx
@thinkclay
thinkclay merged commit 525b4e6 into main Sep 22, 2026
9 checks passed
@thinkclay
thinkclay deleted the redesign/r1-815-listtoolbar branch September 22, 2026 20:09
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]>
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 worker-side list screens, one search-row grammar

1 participant