Repository navigation
fix(employers): link the organization page to its Developers tab (#1440) - #1446
Merged
Merged
Conversation
In Worker mode the organization's tab strip is hidden, so the org page's quick links (Teams, Logs) were the only way around it, and Developers was missing: API keys and webhooks were reachable only through the old /office/api-keys redirect. Every member may open it; only admins see create and revoke. Co-Authored-By: Claude Opus 5.5 <[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.
Follow-up to #1440 (#1444), part of epic #1442.
Problem
In Worker mode the organization's tab strip is hidden:
workerNavdrops the Employers sub-items. The org page's Quick links (Teams, Logs) are the only way around that, and they didn't include Developers. On dev, API keys and webhooks could only be reached through the old/office/api-keysredirect.Change
apps/scaffald/app/(protected)/employers/org/[slug]/index.tsxadds a Developers quick link toRouteBuilder.orgDevelopers(slug), after Teams and Logs. There's no role check: every member may open the page (as with the org's Developers tab inbuildOrgSubItems), and the page itself hides create and revoke from non-admins.Verification
[email protected], temporarily added to Unicorn as a plainmember, in Worker mode. The org page shows Teams · Logs · Developers. Clicking it opens/employers/org/unicorn/developers/api-keys, which lists the org's 2 active keys read-only with no "Create API Key" button. The temporary membership was removed afterwards.pnpm checkpasses.pnpm radium:checkreports the same 3 violations as on main, all in files this PR doesn't touch.pnpm prepushpasses, including 281/281 gated api tests. They ran against this branch's ownapion a spare port, because the shared local edge runtime is mounted from an older worktree (sweep5) and fails 12 newer tests for that reason alone.🤖 Generated with Claude Code