Skip to content

fix(settings): let people revoke the accounts they connected for an organization, even after leaving - #9601

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/personal-organization-accounts-ui
Nov 3, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/personal-organization-accounts-ui

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Personal organization accounts (list/disconnect use cases scoped only by the enrolled user) were only manageable from org pages, which require membership, so anyone who left or was removed could no longer see or revoke grants that may still feed org Search
  • Added "Connected organization accounts" under Settings → General → Account, next to Authorized apps: rows grouped by organization, Disconnect behind a confirm
  • useDisconnectPersonalOrganizationAccount takes the organization per call so one instance serves many orgs; new usePersonalOrganizationAccounts infinite query, invalidated with the existing connect/reconnect/disconnect keys
  • Reconnect deliberately omitted here: re-granting access to an organization you may have left is the opposite of this view's purpose

Type of Change

  • Bug fix

Testing

  • hooks/queries/organization-accounts.test.tsx 8/8
  • bun run lint, check:api-validation:strict, check:client-boundary, check:react-query, check:source-conventions, pre-push type-check

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 3, 2026 2:50am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds “Connected organization accounts” to General settings so people can disconnect their own grants after leaving an organization.

  • People can disconnect organization accounts from their personal settings.

Reviews (1) · Last reviewed commit: "fix(settings): let people revoke the acc..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 194423a into staging Nov 3, 2026
145 of 147 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/personal-organization-accounts-ui branch November 3, 2026 03:42

This branch was successfully deployed

1 active deployment
Preview — c59e1da4 Deployed Nov 3, 2026 by vercel[bot]
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