Skip to content

feat: add a bulk sign-out-all-other-sessions action to security settings (Closes #743) - #1151

Open
waterWang wants to merge 1 commit into
Stellopay:mainfrom
waterWang:feat/security-tab-revoke-all-sessions
Open

feat: add a bulk sign-out-all-other-sessions action to security settings (Closes #743)#1151
waterWang wants to merge 1 commit into
Stellopay:mainfrom
waterWang:feat/security-tab-revoke-all-sessions

Conversation

@waterWang

Copy link
Copy Markdown

Summary

Adds a sign-out-all-other-sessions bulk revoke action to the security settings, distinct from the per-session revoke control.

Changes

  • Per-session revoke: Each non-current session row now shows a Sign out button (with LogOut icon) that removes that single session
  • Bulk action: Renamed from "Sign out all sessions" to "Sign out all other sessions". The confirmation dialog explicitly states the current session is not affected
  • State management: Sessions are now tracked as state (not a static array), so revoking one or all updates the UI immediately
  • Confirmation copy: Updated dialog title/description/impact items to clarify that the current device remains signed in
  • Tests: Added new tests covering per-session sign-out, current-session protection, session count badge, and bulk sign-out flow

QA

  • Per-session sign-out button is shown only for non-current sessions
  • Clicking per-session sign-out removes the session and updates the badge count
  • Bulk sign-out (requires typing "LOGOUT") removes all non-current sessions
  • Current session is preserved after both individual and bulk revoke
  • All 97 tests pass (no regressions)

- Add per-session sign-out button on non-current sessions
- Rename bulk action to 'Sign out all other sessions' with explicit note that the current device is excluded
- Wire bulk action to actually remove all non-current sessions, not just show a message
- Add confirmation dialog copy clarifying the current session is unaffected
- Add tests for per-session revoke and bulk sign-out
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

@waterWang is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel.

A member of the Team first needs to authorize it.

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