Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use devices' origin in add new device from recovery wizard #2808

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

lmuntaner
Copy link
Collaborator

@lmuntaner lmuntaner commented Jan 22, 2025

Motivation

Avoid bad UX by making sure that new devices are registered in the same origin as all the other devices.

In this PR, add this functionality in the recoveryWizard flow. See screenshot.

Changes

  • Calculate the origin of the devices and use it to add a new device in the recoveryWizard screen.
  • Change lookupCredentials call to lookupAll because the origin is necessary.

Tests

  • Change the tests to use the data type from lookupAll.
  • Flow tested in beta.

🟡 Some screens were changed

@lmuntaner
Copy link
Collaborator Author

lmuntaner commented Jan 22, 2025

UX:

In the video you can see how a user that has one device registered in ic0.app logs in internetcomputer.org but then registers the new device in ic0.app instead of the current origin internetcomputer.org.

Screen.Recording.2025-01-22.at.11.55.54.mov

@lmuntaner lmuntaner marked this pull request as ready for review January 22, 2025 11:38
@lmuntaner lmuntaner requested review from LXIF and sea-snake January 22, 2025 11:38
@lmuntaner
Copy link
Collaborator Author

@sea-snake @LXIF please review

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@lmuntaner lmuntaner added this pull request to the merge queue Jan 22, 2025
Merged via the queue into main with commit 39633b4 Jan 22, 2025
67 checks passed
@lmuntaner lmuntaner deleted the lm-use-devices-origin-from-recovery-wizard branch January 22, 2025 14:09
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.

None yet

2 participants