Repository navigation
feat(nav): the drawer lists sections, and each section's children are its tab strip - #968
Merged
Merged
Conversation
… 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]>
This was referenced Oct 5, 2026
Closed
Closed
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Iterates the menu and navigation toward the redesign comps (the Claude Design prototype), keeping the drawer's mechanics as they are:
SectionTabsis rendered once byDrawerLayout(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 theTabs 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 viamatchPrefix.useAccountContexts, shared with the phone'sMobileAccountSheet.DrawerSectionand the depth/expand machinery inDrawerLinkare deleted. The drawer's literal ceilings in the ratchet drop (borderRadius 15 → 7, fontSize 20 → 16)..radium/app-expo.mddocuments the model.Verified
tscclean for@scf/core; drawer suites 26/26 (newsection-tabs.test.tspins the resolver: section owner, index-only highlighting, detail pages, org takeover, Office prefixes, role gating, My Listings gating).pnpm prepushgreen;radium:checkreports 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
/jobspage, which is deliberately drawerless (#756, #766)./jobs/browseis the sameDiscoverJobsScreenmounted 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/jobsviamatchPrefix, whichownsPath()now honours for drawer rows as well as tabs. The public listing is unchanged for crawlers and signed-out visitors.Noted, not changed
🤖 Generated with Claude Code