Skip to content

feat(nav): the drawer lists sections, and each section's children are its tab strip - #968

Merged
thinkclay merged 2 commits into
mainfrom
feat/nav-tabs
Oct 5, 2026
Merged

thinkclay merged 2 commits into
mainfrom
feat/nav-tabs

Conversation

@thinkclay

@thinkclay thinkclay commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What

Iterates the menu and navigation toward the redesign comps (the Claude Design prototype), keeping the drawer's mechanics as they are:

  • The drawer draws only the top level. One flat row per section — Office (with the role), Home, Communities, Workers, Employers, Jobs, Assessments, Profile — with the 2px accent rule flush on the panel edge, square corners, an 18px icon and a hover tint. No more indented trees under a section.
  • A section's children are its tab strip. SectionTabs is rendered once by DrawerLayout (above the screen on desktop, under the masthead on a phone) and resolves the strip for the current pathname from the same config tree (getSectionTabs()). It uses the Tabs type="folder" every list screen already uses. An organisation under Employers takes over the strip on its own pages (Unicorn · Teams · Work Logs). Office Compliance and Integrations light for every page under their prefix via matchPrefix.
  • The column's chrome follows the comp. Logo plus a bordered collapse control on top (the glass pill footer is gone); Notifications as a footer row with its unread count instead of a Home tab; and an account row — avatar, name, "Using as Worker" opening a menu with the contexts and Account & settings, and sign out — in place of the profile card and segmented mode switch. The collapsed rail keeps the same rows.
  • The contexts and the gate behind the Employer row move into useAccountContexts, shared with the phone's MobileAccountSheet.
  • Home is called Home (as the phone bar already did); its index tab is Overview. The phone sheet behind More keeps its identity-first sections, with a lighter identity row on top.

DrawerSection and the depth/expand machinery in DrawerLink are deleted. The drawer's literal ceilings in the ratchet drop (borderRadius 15 → 7, fontSize 20 → 16). .radium/app-expo.md documents the model.

Verified

  • tsc clean for @scf/core; drawer suites 26/26 (new section-tabs.test.ts pins the resolver: section owner, index-only highlighting, detail pages, org takeover, Office prefixes, role gating, My Listings gating).
  • In the dev server against local Supabase at 1440 and 390: desktop column, collapsed rail, account menu, Home/Profile/Employers/org/Office strips, phone masthead strip, phone More sheet.
  • pnpm prepush green; radium:check reports only pre-existing violations (hookform pin, ui submodule).

Second commit — Jobs lands inside the shell

Choosing Jobs in the drawer used to drop a signed-in person onto the public /jobs page, which is deliberately drawerless (#756, #766). /jobs/browse is the same DiscoverJobsScreen mounted under the protected Jobs section layout, so it carries the column and the Jobs strip (Browse jobs · Saved Jobs · Applications · My Listings). The drawer's Jobs row and the phone's Jobs tab land there; the row keeps owning everything under /jobs via matchPrefix, which ownsPath() now honours for drawer rows as well as tabs. The public listing is unchanged for crawlers and signed-out visitors.

Noted, not changed

  • The Office home keeps its own in-page CMS tabs beneath the section strip.

🤖 Generated with Claude Code

thinkclay and others added 2 commits October 5, 2026 08:03
… its tab strip

The drawer opened every section into an indented tree — Dashboard with
four children, Employers with per-org sub-trees, Office with seven — so
on desktop the column was mostly second-level links, and on a phone the
same children were unreachable (the sheet never drew them). The SCF
prototype's arrangement is the opposite: the nav owns the column with one
flat row per section, and a section's children ride across the top of its
screens as folder tabs.

The config tree is unchanged in shape; it is now read two ways. The drawer
draws the top level — `DrawerLink` is a flat row with the 2px rule flush on
the panel edge, square-cornered, 18px icon, and a hover tint. Each
section's `subItems` become the tab strip: `SectionTabs`, rendered once by
`DrawerLayout` (above the screen on desktop, under the masthead on a
phone), resolves the strip for the pathname through `getSectionTabs()`.
An item that itself has children and owns the pathname — an organisation
under Employers — takes over the strip on its own pages, with its overview
as the first tab. Office Compliance and Integrations land on one of
several pages they own, so a `matchPrefix` lights the whole prefix.

The column's chrome follows the prototype too: logo and a bordered
collapse control on top instead of a glass pill at the bottom;
Notifications as a footer row with its unread count rather than a Home
tab; and an account row — avatar, name, "Using as Worker" opening a menu
of contexts plus Account & settings, and sign out — in place of the
profile card and the segmented mode switch. The contexts and the gate
behind the Employer row live in `useAccountContexts`, shared with the
phone's account sheet so the two never disagree. The collapsed rail keeps
the same rows: icons with the rule, the count, the avatar.

Home is called Home, as the phone bar already called it; its index tab is
Overview. The mobile sheet keeps its identity-first sections behind More.

`DrawerSection` and the depth/expand machinery in `DrawerLink` go; the
drawer's literal ceilings drop (borderRadius 15 → 7, fontSize 20 → 16).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Choosing Jobs in the drawer dropped a signed-in person onto the public
`/jobs` page, which is deliberately drawerless (#756, #766): the column,
the Jobs tab strip and the account row all vanished, and the only way
back in was the page's Dashboard button.

`/jobs/browse` is that same `DiscoverJobsScreen` mounted under the
protected Jobs section layout, so it carries the column and the strip
(Browse jobs · Saved Jobs · Applications · My Listings). The drawer's
Jobs row and the phone's Jobs tab land there; the row keeps owning
everything under `/jobs` through `matchPrefix`, which `ownsPath()` now
honours for drawer rows as well as tabs. The public listing is unchanged
for crawlers and signed-out visitors.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@thinkclay
thinkclay merged commit 7bbf7f2 into main Oct 5, 2026
10 checks passed
@thinkclay
thinkclay deleted the feat/nav-tabs branch October 5, 2026 12:25
thinkclay added a commit that referenced this pull request Oct 5, 2026
…/ bell / avatar (#989)

Two things a phone user sees on every screen, brought onto the prototype's
arrangement (#975, #976).

The bottom bar was a floating glass pill — blur, a 32px radius, a drop
shadow, an animated indicator sliding under the active tab. The prototype's
bar is a strip: full width, a hairline on top, slots at a 52px floor, an
icon over an 11px label, the active one in the accent. Being opaque, it gets
for free what the pill did in three layers to stay legible over scrolled
content (#378). The strip publishes 52 as its height; consumers add the
safe-area inset themselves, as they already did. The blur-view shims go
with it — nothing else imported them.

The masthead was avatar / centred screen title / search. It is now logo /
search / bell with its unread count / avatar on a hairline: the title comes
from each screen's ScreenHeader since #877, so the bar was repeating it;
the count moves from the avatar's corner to a bell that goes to
Notifications; the logo takes the left edge so a phone screen says whose
app it is. The section's tabs still ride beneath the row (#968).

Drawer ceilings in the literal ratchet drop (fontSize 16 → 15, hex 4 → 3).

Co-authored-by: Claude Fable 5.1 <[email protected]>
thinkclay added a commit to Scaffald/ui that referenced this pull request Oct 5, 2026
… to its toolbar (#49)

The SCF prototype's list screens put the partition — Open / Closed,
Recommended / All — as folder tabs on the top edge of the search row, so
the tabs and the toolbar read as one panel. Ours drew the same folder tabs
as a strip floating 20px above the toolbar on four screens.

`tabs` / `activeTab` / `onTabChange` on ListToolbar render the partition
on the toolbar's top edge; with tabs present the rows become the panel the
tabs attach to — a hairline box whose top edge is the strip's own hairline,
which the selected tab paints over in the panel colour. Labels take the
prototype's "Label · n" form from `count`. Without tabs nothing changes
for the eleven screens that use the toolbar today. The primary row is
skipped when it would be empty, so a toolbar that is only tabs and a count
still gets its panel.

Section navigation stays the shell's strip (Scaffald/SaaS#968); this is
for one list's own partition. Refs Scaffald/SaaS#984.

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant