Skip to content

feat(office): rebuild the tab strip, and give every Office page a way in (#1441) - #1445

Merged
thinkclay merged 2 commits into
mainfrom
claude/office-tabs-1441-2b6592
Nov 25, 2026
Merged

thinkclay merged 2 commits into
mainfrom
claude/office-tabs-1441-2b6592

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Part of epic #1442. Fixes #1441. Closes #1319.

What changed

Office's strip is now Overview · Screening · People · Organizations · Jobs · Reports · Compliance (7 tabs).

The phone's employer Jobs tab no longer claims /office/cms/jobs, so an Office page lights only Office.

URLs are unchanged: navigation only, with no route moves and no redirects.

Why the CMS pages were unreachable

OfficeLayout already drew a sub-tab row for /office/cms and /office/ats from the route tree, but its onValueChange was a no-op ("handled by Link components", and there were none). The tabs looked clickable and went nowhere. That row and its helper office-sections.ts are gone.

One mechanism for in-section rows

I reused #1443's Admin pattern rather than adding a third mechanism:

  • features/drawer/GroupTabs.tsx is the row itself, lifted from AdminGroupTabs (which now renders it, with no change in behaviour).
  • Each section keeps its own groups: admin/admin-groups.ts and the new office/office-groups.ts (officeGroupPages, longest-prefix matching with owns for sibling paths such as /office/ats/request).
  • OfficeLayout renders the Office row, so every Office list page that already uses it gets the row without per-page edits.

officeCmsNavigation.ts is deleted (#1319).

Overlap with #1444

This PR edits only generateOfficeDrawerItem and the mobile employer-jobs entry in drawer/config.ts, and doesn't touch routes.ts. Locales gain routes.office.people / routes.office.reports under office, while #1444 adds under org. Any conflict should be a few lines in section-tabs.test.ts.

Tests

  • section-tabs.test.ts: the 7-tab strip, and every CMS page (list, create, edit, detail, teams/:id/analytics) lighting the right tab for office, office-without-check-admin and employer-admin trees. /office/cms/jobs lights office-jobs.
  • mobile-sections.test.ts: /office/cms/jobs* lights no employer phone tab.
  • office-groups.test.ts: each row's pages and lit page, the check-admin split, and a reachability test. It walks apps/scaffald/app/(admin)/office/ and asserts that every page except detail, create and edit pages, redirects and fix(developers): API keys and webhooks are per-organization but sit behind Office's staff-only gate — move them to the employer side #1440's moving api-keys/webhooks is a strip tab or a row entry.

Ran: pnpm check ✅, nx run scf-core:test ✅ (Node 22), pnpm prepush ✅.
pnpm radium:check reports 3 violations, all present before this change and none in files touched here: theme dimension in packages/ui (LegendIndicator, useTheme, colors.ts doc comments) and the @hookform/resolvers 5.x pin.

Browser check (local, office + check-admin user, 1440×900)

I clicked every tab and sub-tab. Each one navigated, and the right tab and sub-tab lit. Admin's Billing row still works after the shared-component refactor.

People Organizations
Teams Team analytics (detail) lights Organizations
Projects Universities
Jobs (drawer Jobs row stays dark) Reports
Screening, review queue Screening, scheduling
Screening, community verification Compliance

The screenshots live on the pr-assets/office-tabs-1441 branch, which holds images only. Delete it after merge.

Noticed, not changed

  • SectionTabs ignores a click on the already-lit folder tab (SectionTabs.tsx:54), so on a detail page such as team analytics, clicking Organizations doesn't return to the list. The detail pages have their own back buttons. This matches the rest of the app and is left alone.
  • Screening's sub-tab labels come from the existing route titles ("Review Background Checks", "Interview Scheduling", "ATS Metrics") and make a long row. Shortening them is a copy call.

🤖 Generated with Claude Code

thinkclay and others added 2 commits November 25, 2026 17:21
… in (#1441)

Office's strip is now Overview · Screening · People · Organizations · Jobs ·
Reports · Compliance. Content Management opened on Users with nothing leading
on to Jobs, Teams, Organizations, Projects or Universities; it is now People,
Organizations and Jobs. Violations is Reports (the Moderation rename is #1272's).

Screening, Organizations and Compliance get a row of their own pages beneath
the strip, the way Admin's Billing does (#1439). The row component is shared:
AdminGroupTabs and OfficeLayout both render drawer/GroupTabs, and each section
keeps its own groups (admin-groups.ts, office-groups.ts). OfficeLayout's old
row was built from the route tree and its tabs did not navigate; it is gone,
with office-sections.ts.

The phone's employer Jobs tab no longer claims /office/cms/jobs, so an Office
page lights only Office. URLs are unchanged: navigation only.

Deletes the dead officeCmsNavigation.ts (#1319).

Fixes #1441
Closes #1319

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thinkclay
thinkclay merged commit c564b8c into main Nov 25, 2026
10 checks passed
@thinkclay
thinkclay deleted the claude/office-tabs-1441-2b6592 branch November 25, 2026 22:51
thinkclay added a commit that referenced this pull request Nov 26, 2026
Office/Admin/Developers split (epic #1442: #1443, #1444, #1445, #1446)
and worker invites with reminders (#1430, #1438; migrations 400, 401).

Co-Authored-By: Claude Opus 5.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

1 participant