Skip to content

Feedback v5: account deletion clean-up, directory role names, buddy welcome for members - #2530

Open
amaudruz wants to merge 1 commit into
mainfrom
work/feedback-v5
Open

amaudruz wants to merge 1 commit into
mainfrom
work/feedback-v5

Conversation

@amaudruz

@amaudruz amaudruz commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Louis's v5 feedback, everything not about provider sign-in on boxes.

Account deletion

  • What only you were in goes with you. DELETE /auth/me now runs through AccountReset (the path test-account reset already uses), with its own audit request label. An organization nobody else is in is purged whole, and workspaces the person is alone in are purged too, rooms and agents included. WorkOS is left alone, since the org is shared with Switch Trust and Switch can't tell which product created it. Previously the leftover workspace was kept because it still had rooms, and the person's WorkOS membership put them back into it at the next sign-in. The deletion check also asks the wipe's refusal, and the dialog now says that any workspace and organization only you are in is deleted too.
  • Connected-apps refusal. It now reads "Your account's workspace X still has the following messaging applications connected:", followed by one bullet per app (proper platform names, plus the connection's name), then "Disconnect them first." Before, it named only the first app.
  • After deletion, straight to AuthKit. end_after_deletion now reports whether it revoked this browser's AuthKit session (identity_session_ended). When it did, the dashboard doesn't mark the tab signed out, so /login hands off to AuthKit like a normal sign-out. It still marks the tab signed out when this browser's session wasn't found. Test-account reset gets the same behaviour.

Directory role names

  • Organizations whose members come from WorkOS show Member / Admin instead of Switch Trust's Viewer / Org Admin, in the invite dialog, users page, menus, filters and audit log. The Trust side-effect notes stay, reworded: "This person also becomes an admin in Switch Trust, with billing permissions."

switch-buddy Welcome chat for non-admins (web, and Switch Console's shared cards)

  • If the workspace has messaging apps, only those are offered, and picking one goes to linking your account there, never Connect.
  • If it has none, no app picker is shown and the person stays in the dashboard.
  • The greeting no longer promises a move to a messaging app for non-admins. Admins see what they did before.
  • Welcome chats created before this keep the greeting they were created with.

Tests

  • Backend: the account deletion, deletion check, deletion progress, reset, machines and identity-session suites pass. New tests cover purging a sole org on deletion, the listed-apps refusal, and identity_session_ended. ruff and mypy are clean.
  • Gateway: 1792 passed. The 2 Teams package-download tests also fail on clean main locally (object.stream is not a function). GetStartedPage failed once under load and passes alone.
  • chat-ui: 612/612, typecheck clean. Desktop typecheck is clean.

🤖 Generated with Claude Code

…elcome for members

- Deleting an account goes through the wipe path test-account reset uses:
  an organization nobody else is in, and workspaces the person is alone in,
  are purged with it. WorkOS is left alone, so signing in again no longer
  rejoins the old workspace and its rooms.
- The connected-apps refusal names the workspace and lists every app.
- After a deletion that revoked this browser's AuthKit session, the
  dashboard hands straight off to AuthKit instead of its signed-out page.
- Directory organizations show Member / Admin instead of Viewer / Org Admin.
- switch-buddy's Welcome chat for non-admins offers only the workspace's
  connected messaging apps (to link an account on), or none, and its
  greeting promises no move to a messaging app.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
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