Skip to content

feat(SC-136): Workers/Employers switcher + office on mobile (v1.12.0 PR4) - #362

Merged
thinkclay merged 1 commit into
mainfrom
v1.12.0-pr4-switcher
Jun 23, 2026
Merged

thinkclay merged 1 commit into
mainfrom
v1.12.0-pr4-switcher

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

v1.12.0 PR4 — the switcher + mobile employer access (closes SC-136 and SC-26).

  • Office gating is now role-based, not viewport-based: useOfficeRouteProtection gates by hasOfficeRole (isTabletOrAbove kept as an alias so the office layout is unchanged), so the office/employer experience is reachable on mobile.
  • useAppMode: persisted worker/employer mode + active org slug (AsyncStorage, web+native).
  • ModeSelector: a segmented Worker/Employer control in the mobile drawer, shown only with an employer context (office role or an org membership). Employer → persists mode + routes to /employers/org/[slug] (or /employers/create); Worker → dashboard. Bottom nav left static (low-risk).

Browser-verified: /office reachable on mobile (no redirect); the drawer shows the Mode switcher; tapping Employer navigates to /employers/org/unicorn; 0 page errors. tsc clean; prepush green.

🤖 Generated with Claude Code

…PR4)

- Office gating is now ROLE-based, not viewport-based: useOfficeRouteProtection
  gates by hasOfficeRole (isTabletOrAbove kept as an alias), so the office/
  employer experience is reachable on mobile.
- useAppMode: persisted worker/employer mode + active org slug (AsyncStorage).
- ModeSelector: a segmented Worker/Employer control in the mobile drawer (shown
  only with an employer context — office role or an org membership). Employer →
  persists mode + routes to /employers/org/[slug] (or /employers/create);
  Worker → dashboard. Bottom nav left static (low-risk).

Browser-verified: /office reachable on mobile (no redirect); drawer shows the
Mode switcher; tapping Employer navigates to /employers/org/unicorn; 0 page
errors. tsc clean. Closes SC-136 (and SC-26).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@thinkclay
thinkclay merged commit 10a8d3e into main Jun 23, 2026
1 check passed
@thinkclay
thinkclay deleted the v1.12.0-pr4-switcher branch June 23, 2026 20:00
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

thinkclay added a commit that referenced this pull request Jun 23, 2026
The mutate.mjs PLAN used to close the v1.12.0 epics to Done after their PRs
merged (#358–#362 + Scaffald/sdk #8/#9 + migration 335). Kept as the audit
trail, consistent with prior PLAN snapshots.

Co-authored-by: Claude Opus 4.8 <[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