-
Notifications
You must be signed in to change notification settings - Fork 45
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
Named Accounts #1699
Named Accounts #1699
Conversation
buberdds
commented
Oct 5, 2023
•
edited
Loading
edited
- Add name prop to Remove Account modal when Remove Account #1752 is merged
Deploying with Cloudflare Pages
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1699 +/- ##
==========================================
- Coverage 82.52% 82.21% -0.31%
==========================================
Files 185 185
Lines 4720 4796 +76
Branches 846 880 +34
==========================================
+ Hits 3895 3943 +48
- Misses 825 853 +28
Flags with carried forward coverage won't be shown. Click here to find out more.
|
35e825e
to
34bfa75
Compare
be3ba44
to
7bc1ef6
Compare
const ticker = useSelector(selectTicker) | ||
|
||
const unlockedStatus = useSelector(selectUnlockedStatus) | ||
const canEditName = unlockedStatus === 'unlockedProfile' && address === wallet?.address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright this isn't wrong, but I don't think it's the best:
- create a profile with named accounts name1 (address1) and name2 (address2)
- select name1:
- see name1 (address1)
- url is /account/address1
- change url to /account/address2
- unlock profile and get redirected to address1
- click back
- see address2 without name
- url is /account/address2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this issue is related to the PR. User will end up in "This is not your account." state, right? not able to do transfers etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump, can we revive this discussion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, user gets into "not your account" state.
Part related to this PR is: it still could show name2 (address2)
, and canEditName could be more accurate as unlocked && address is in wallet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will skip it in this PR. Wallet state is broken in this case. We show address2 when persisted state has wrong selectedWallet value at this point.
7bc1ef6
to
1711d95
Compare
Deployed to Cloudflare Pages
|
e2fd723
to
dbf3e8c
Compare
dbf3e8c
to
8a7dcb7
Compare