Repository navigation
Add Team & access screens and workspace creation to the dashboard - #680
Merged
Merged
Conversation
Operator-side APIs that had no UI now have screens: - /app/team: Members (list, invite, change role, re-send expired or declined invitations), Roles (read-only permission matrix) and API keys (list, create, rename, change role, activate/deactivate, delete; secret masked until revealed). - Create workspace entry in the sidebar workspace switcher (POST /clients). The switcher previously opened only with two or more workspaces. Review-mode fixtures and focused node tests are included. No backend, environment-variable or authentication-behaviour changes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Summary
Operator-side backend APIs that had no dashboard UI now have screens:
/app/team, new sidebar item):GET /users), invite by email and role (POST /invite), change role (PUT /updateUserRole). Declined or expired invitations can be re-sent. A member cannot change their own role from the UI.GET /rolePermissions./authentications). Secrets are masked until revealed; deactivate and delete ask for confirmation.POST /clients. The API switches the session into the new workspace, so the panel reloads as it does after a switch. The switcher previously opened only with two or more workspaces, so single-workspace users had no way to create one.Every screen has distinct loading, empty, failed (with Retry) and access-denied states. Server authorization remains authoritative.
Intentionally not included: permission-aware hiding of controls (
GET /getUserPermissions), IP access rules (/userIps), accepting/rejecting pending invitations, workspace rename/log-storage settings.Deployment impact
None identified: no new environment variables or secrets, no backend change, no change to authentication/session behaviour, no migrations. Note for reviewers: the API returns full API-key secrets to anyone with the
view_authkeyspermission (all four roles); the UI masks them by default but cannot change that backend behaviour.Branch note
Branched from
production(per repo workflow, already at the latestorigin/production) and targeted atstageas requested. It merges cleanly into currentorigin/stage.Verification
ngc -p apps/36-blocks/tsconfig.app.json --noEmit: clean (template checking confirmed with a deliberate error).npm run review:build: succeeded. The synthetic-data review build was driven in headless Chrome: desktop and 390px mobile render with no console errors or horizontal overflow; invite, change-role, API-key and create-workspace dialogs showed validation.node --test tools/tests/*.test.cjs: 44 passed (14 new intools/tests/team-access.test.cjs). Prettier andgit diff --checkclean.🤖 Generated with Claude Code