Scalable solution for displaying long account IDs #1178
Unanswered
Patrick1904
asked this question in
General
Replies: 2 comments 1 reply
-
@corwinharrell @kcole16 sorry for dumping this here, just had to put it somewhere. Maybe some of it can be useful as we consider the re-design for the Wallet. My WIP branch for this is here in case you want to test it: 79aa1b8 |
Beta Was this translation helpful? Give feedback.
1 reply
-
@Patrick1904 agree that account should be switchable on For |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We display account IDs throughout the Wallet app and our current UI is not always optimized for longer account IDs, resulting in suboptimal UX. This has become especially apparent after we introduced implicit account IDs (64 chars).
One solution that @corwinharrell came up with applies a max character count and adds an ellipsis in the middle, e.g. corwin2q7894343234234.poolv1.near --> corwin2....poolv1.near
A demo with a few variations can be found here: https://codesandbox.io/s/truncatedaccountid-v2-unstyled-ixvlg?file=/src/NearId.js
After starting to implement a version of the above solution I realized that there may not be one solution that fits all. I took some notes on different sections where we display the users account ID and my observations:
/profile
/profile
(profile details)/receive-money
page/staking
page account selector/recover-with-link
page/sign
and/login
pages/create
page below account ID inputIt seems we're showing the users account ID quite a lot. Is it really useful for the user to constantly be reminded about it? It seems useful to show the account ID on the
/profile
(once) and/receive-money
, though we might be able to combine these pages. The navbar account dropdown is obviously important (good place to apply the ellipsis).Other than that, I think we can avoid showing the account ID. On staking for example, one alternative could be to say 'Account' and the lockup account says 'Lockup'. Probably more clear anyway. Not sure if it's useful to see the complete lockup account ID. I don't see a good reason to allow switching between accounts on
/sign
and/login
, it feels unsafe.In terms of
/recover-with-link
, I wonder if it's necessary to 'confirm' that you want to recover the account at all. In theory we could just log the user in when they click on the link. Personally I would prefer that but I'm not sure if there are any security concerns with that approach.Beta Was this translation helpful? Give feedback.
All reactions