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

Expose origin of adding a device #2788

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

lmuntaner
Copy link
Collaborator

@lmuntaner lmuntaner commented Jan 20, 2025

Motivation

We want to avoid a bad UX for users when we migrate to internetcomputer.org. The bad UX appears when there are devices registered in multiple origins.

In this PR, the origin used for the addDevice flow is exposed as an argument instead of hardcoded to window.origin. This will be used in upcoming PRs to configure the RP ID of where to register the new device.

Changes

  • Add origin parameter to addDevice flow and use it.
  • Pass origin as window.origin for now to not change the functionality.

Tests

No functionality changed.


🟡 Some screens were changed

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

@sea-snake @LXIF please review

Copy link
Contributor

@LXIF LXIF left a comment

Choose a reason for hiding this comment

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

LGTM

@lmuntaner lmuntaner added this pull request to the merge queue Jan 20, 2025
Merged via the queue into main with commit 6f273a9 Jan 20, 2025
67 checks passed
@lmuntaner lmuntaner deleted the lm-expose-origin-add-device branch January 20, 2025 10:34
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.

2 participants