Closed zakhap closed 1 year ago
@zakhap
General Questions:
@zakhap @meeshlin
@zakhap @meeshlin
banner
component fully implemented https://github.com/hicommonwealth/commonwealth/issues/4407
I have already prepared the foundation for this component in #4488 (supports only default type) so this should be pretty quick to deliver. Please make sure that #4407 have proper description and ACjoin
. Question is if the current behaviour is buggy and if I understand desired behaviour correctly?https://github.com/hicommonwealth/commonwealth/assets/14819225/325b54e9-2dda-49ee-ac0c-d59c04d0b7c8
No questions to User Story 3
General Questions:
- Do we want to keep those 3 user stories as a single ticket or maybe it would be better to split it into 3 separate ones that are in main bucket story.. Or keep it as a single ticket but make 3 different PRs? Imo we should have separate tickets and separate PRs (better for tracking progress, dividing scope and reviewing code)
- From the top of your mind, do you think any of these tickets in bucket require some logic/model/backend changes or they should be mostly about updating UI using current logic. I am gonna investigate it as well, but want to ask first for any advices/directions.
User Story 1 Questions:
- Should the tag with address be clickable (don't think so but just want to confirm).
- Should it have some tooltip on hover that shows the full address?
- Regarding left icon: we need to define the list of all possibilities here to be able to map address to correct icon. 3.1 For non-social addresses, are they gonna be community avatars we use currently in the app or icon of the chain? This is not clear for me. We can't use phosphor icons here probably as they do not have those specific blockchain icons. 3.2 Also, we need to prepare the "default" icon in case that there will be address which does not fall into any category (unless we have finite list of options - but I would prepare it anyways).
3.2. No default icon is necessary, just don't render anything before the address.
User Story 2 Questions:
- This requires us to have new
banner
component fully implemented Design System: Banners and Alerts #4407 I have already prepared the foundation for this component in Show join community banner when user has not joined #4488 (supports only default type) so this should be pretty quick to deliver. Please make sure that Design System: Banners and Alerts #4407 have proper description and AC- The designs show that the banner is only visible in the forum (discussions) page. Do we also want to show this banner anywhere else eg. in view thread page?
- I want to confirm about the current solution and desired solution. Currently, when I joined community with address A and want to connect address B, I can do it as in the video, however, the address B is automatically joined in the community. My understanding from the design is that I can connect new address, but after connecting it should not be joined to the community automatically. It has to be done manually by clicking
join
. Question is if the current behaviour is buggy and if I understand desired behaviour correctly?- If I close out the banner with X it should be gone forever? I mean, we will keep the info about visibility in the local storage so once the cache is cleared, the banner will be visible again. I am asking if it should be back after some time like 7 days, similarly what we did in Show CTA Banner when not a joined #4380
Agreed with @zakhap on his responses, but answering questions below for these specific points for clarity.
- Regarding left icon: we need to define the list of all possibilities here to be able to map address to correct icon.
- 3.1 For non-social addresses, are they gonna be community avatars we use currently in the app or icon of the chain? This is not clear for me. We can't use phosphor icons here probably as they do not have those specific blockchain icons.
- 3.2 Also, we need to prepare the "default" icon in case that there will be address which does not fall into any category (unless we have finite list of options - but I would prepare it anyways).
The icon is the chain of the address—the ones of which we cover can be found here. If it's a social login, they shouldn't see the Magic-generated address but the social icon and their social username. @zakhap let me know if I'm missing anything.
- The designs show that the banner is only visible in the forum (discussions) page. Do we also want to show this banner anywhere else eg. in view thread page?
Yes, ideally. It should be visible on every page when a user has an address tied to the community but hasn't signed post-session key expiration.
- I want to confirm about the current solution and desired solution. Currently, when I joined community with address A and want to connect address B, I can do it as in the video, however, the address B is automatically joined in the community. My understanding from the design is that I can connect new address, but after connecting it should not be joined to the community automatically. It has to be done manually by clicking
join
. Question is if the current behaviour is buggy and if I understand desired behaviour correctly?
I'm a bit confused by the solution shared in the video. The problem is this is meant to solve is that on Common, we currently default the user to the address they have "connected" to a community. However, we automatically default to that specific address that a user joined a community with. If that address's session key is expired, we still default the user to it, but they need to re-sign or join with a different address.
Connected
as it's meant to denote whether or not that address has joined the community, but they will need to re-sign. This was caught late and needs a fast follow, which is being worked on in here.For now, I'm just defaulting to @zakhap's responses but we need to revisit this problem as not all user stories and edge cases were captured.
- If I close out the banner with X it should be gone forever? I mean, we will keep the info about visibility in the local storage so once the cache is cleared, the banner will be visible again. I am asking if it should be back after some time like 7 days, similarly what we did in https://github.com/hicommonwealth/commonwealth/issues/4380
What @zakhap said. Also, it will stay closed after they've closed it during the session they are logged in to Common for the specific community they closed the banner for. If they re-login and run into this issue again, we will re-expose it. They can always manually switch to the right address using the top nav user dropdown.
cc: @masvelio @jnaviask @MuonShot
UI components should take no more than 1.5 days. I am worried about the logic though that should handle the whole flow. Hopefully 3 days will be enough to adjust it, that's why 8 points. I am planning to split this work to two PRs
UI part is done, PR is ready to be merged #4584 (behind the feature flag). I am moving this ticket back to teed up and jumping over to #4315 to work on UI there. Will be back here for final phase.
@jnaviask this is not completed, #4584 was just first part of the ticket, opening again
Memorializing discussion items / outcomes from today cc @masvelio @zakhap @raykyri.
Problems raised:
Action items:
Remaining in scope:
Considering the scope cut down, here is a summary:
User Story 1
activeAdress
in the sidebarUser Story 2
User Story 3
All of these work above is ready on raymond.react-session-keys-on
@jnaviask @CowMuon how about closing this ticket and we will track any inconveniences caught up during the QA separately?
Master Figma Link
User Story 1
Connected
andNot connected
address module with the address tag shownUser Story 2
Not connected
address module and clear informationalbanner
explaining to a user they are using an active address that isn’t connected to a community they’ve previously joined (and is tied to a different address than their current active address)User Story 3