Repository navigation
feat(settings): Add service accounts UI prototype - #131034
Draft
marthalyndon wants to merge 1 commit into
Draft
marthalyndon wants to merge 1 commit into
marthalyndon wants to merge 1 commit into
Conversation
Design prototype of the service accounts settings flow: list, create and edit, details with access tokens, token creation, revoke and delete. Data is mocked in memory; nothing calls the backend. Refs ENG-8854
Contributor
decision-model-linterfrontend
security
decision-model-linter: 140 calls on 18 files, 417,890 input tokens, $0.018, model typesafe/jev-1.13-20260917 |
Contributor
📊 Type Coverage Diff
🔍 10 new type safety issues introducedNon-null assertions (
Type assertions (
This is informational only and does not block the PR. |
skaasten
added a commit
that referenced
this pull request
Nov 19, 2026
… pages (#131795) Adds Service Accounts page in the Org Settings Section, with a details page showing its projects and permissions. <img width="1082" height="361" alt="image" src="https://github.com/user-attachments/assets/27a9aaaf-e6e7-4dbc-919a-e7ac6e164ff6" /> <img width="825" height="682" alt="image" src="https://github.com/user-attachments/assets/ed8cb6e3-772f-45e2-b501-8a0116bfa8a8" /> ---------- The service account API is done, but orgs have no way to see or manage their service accounts in Sentry. This is the first PR in a stack that builds the settings UI on the real API, using @marthalyndon's prototype (#131034, #131689) as the UI template. The stack is split so each PR stays small to review. Adds **Settings → Service Accounts** (next to Members), gated by `organizations:service-accounts`. The nav item is hidden without the flag, and a layout route renders Not Found for every page under `service-accounts/`. - **List** (`GET /service-accounts/`): name, owner, permission count, project access and created date. - **Details** (`GET /service-accounts/:id/`): owner, permissions, project access, created date, and a read-only Resource | Access table. Both pages show the account's `ownerKind` the same way: Organization, Seer automation, or Unknown when the API returns null. Permissions use the same resources and levels as the Seer automation form, so the two never disagree: the table is built from `PERMISSIONS` and `getPermissionLevel` in `seerWorkflows/automations/serviceAccountAccess.tsx`, now exported. The prototype's fixed permission levels, description, creator, token count and last-activity fields aren't in the API, so they're left out. Nothing changes for orgs without the flag. Next in the stack: create, edit and delete, then the tokens section. Refs ENG-9091 <!-- junior-request-attribution:start --> via [automation `evt_96f99ce311a0097e57d5a80fb82b61c7`](https://junior-prod.sentry.dev/automations/evt_96f99ce311a0097e57d5a80fb82b61c7) · Run ID `dispatch_9cc8f0b969117bd3a2195ff4f0c32807`, @skaasten. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_9cc8f0b969117bd3a2195ff4f0c32807 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_9cc8f0b969117bd3a2195ff4f0c32807) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_9cc8f0b969117bd3a2195ff4f0c32807/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Shaun Kaasten <[email protected]>
This branch was successfully deployed
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.
Design prototype, not meant to merge as is. This is a clickable mock of the service accounts settings flow, built to drive design discussion. All data is mocked in memory and resets on reload; nothing calls the backend.
It covers the whole flow under Settings → Service Accounts (next to Members):
The permissions table follows the layout of the Seer automation picker (#130820), using the proposed granular scopes and bundles from #128556. Everything is built from Scraps and existing shared components (
SimpleTable,ConfirmDelete,TextCopyInput, the Scraps form system).To try it locally, turn on the flag, then reload:
Add
?as=owner,?as=adminor?as=memberto any page to preview the different permission states (disabled buttons and tooltips).Refs ENG-8854