Skip to content

fix(fe): Removing identity from device updates state correctly#3717

Merged
sea-snake merged 1 commit intomainfrom
sea-snake/fix-remove-identity-selected-state
Mar 27, 2026
Merged

fix(fe): Removing identity from device updates state correctly#3717
sea-snake merged 1 commit intomainfrom
sea-snake/fix-remove-identity-selected-state

Conversation

@sea-snake
Copy link
Copy Markdown
Contributor

Make sure that removing an identity from device updates state correctly.

Changes

  • Updated removal state logic for landing page
  • Updated remove state logic for authorize page

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a state/selection inconsistency when removing an identity “from this device” in the new-styling frontend, ensuring the currently selected identity is switched before removal and properly restored on undo (landing + authorize flows).

Changes:

  • Update identity-removal flow to switch selection before removing the currently selected identity.
  • Update undo behavior to re-select the restored identity when it was previously current.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/frontend/src/routes/(new-styling)/+page.svelte Adjusts landing-page identity removal to avoid leaving selected pointing at a removed identity; undo re-selects when appropriate.
src/frontend/src/routes/(new-styling)/(channel)/authorize/+layout.svelte Mirrors the same selection-before-removal + undo reselect behavior in the authorize layout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/frontend/src/routes/(new-styling)/+page.svelte
@sea-snake sea-snake enabled auto-merge March 27, 2026 18:10
@sea-snake sea-snake added this pull request to the merge queue Mar 27, 2026
Merged via the queue into main with commit 956307f Mar 27, 2026
57 checks passed
@sea-snake sea-snake deleted the sea-snake/fix-remove-identity-selected-state branch March 27, 2026 18:36
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.

3 participants