-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add tooltip and change background color of subscription icon #35795
Conversation
@thesahindia Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@shawnborton Can you please confirm the bg color of the subscription icon here? Actually,
|
I am a bit confused here, what is the subscription icon? In your video though, why are you changing the border color of the small button over the workspace icon? Think of the small circular button that is on top of the workspace avatar as just a button. A default button. We want to use the same existing styles of default buttons here, so that means just changing the background color on hover as well as a pressed state. |
hello @dukenv0307 @shawnborton, I think what you intended to do with the button is mentioned in my Proposal for the issue, this changed the button bg color over hover rather than the icon bg color, I would have no issue if @dukenv0307 uses the same solution over this PR for the bg color :), would like to share the bounty amount equally if @dukenv0307 cannot be unassigned simplescreenrecorder-2024-02-04_02.06.03.mp4 |
Yup @GandalfGwaihir that indeed looks like what we expect the behavior to be here, thanks for the video! |
cc @thesahindia @mountiny for thoughts here - I think we picked an incorrect proposal and it looks like @GandalfGwaihir's proposal was actually what we were looking for. |
@shawnborton Actually |
cc @hayata-suenaga seems like is assigned, I was not involved so do not have context behind picked proposal |
This is a component that we used to display the avatar like workspace switcher button. In this component, we called the big icon (workspace avatar in this case) is main avatar and we called the small icon (small button in this case) is subscription icon.
And in this component we simply render the subscription in a view and has no effect like :hover. App/src/components/SubscriptAvatar.tsx Line 105 in 0eb6d02
cc @thesahindia @mountiny for thoughts here - I think we picked an incorrect proposal and it looks like @GandalfGwaihir's proposal was actually what we were looking for. When I post the proposal, I follow the description of the bug and after that we re-confirm again the expected behavior and it's different from the description of the bug but it's easily to do. I just want to re-confirm here #35795 (comment) because maybe we don't want to re-create a new prop in this component. |
@mountiny @kosmydel any context why we named it this way? This really has nothing to do with your subscription... internally we've always referenced this as the WorkspaceSwitcher too. Either way, yes, the small button inside of the workspace switcher is just a button and it should have :hover and :press functionality like all of our other buttons. Hopefully that helps clear things up, curious what you think the next steps are from here. |
@shawnborton Its not subscription but subscript since you have the small icon on right bottom. like this in maths or chemistry: |
Ah, got it. Wow... that still feels like quite the stretch of a name? Why not name it something more friendly like |
This component was created two years ago. Probably we just reused it (I wasn't author of this change). |
where do we go from here 🤔 |
I think we have two options here
@shawnborton What do you think? |
Cool, I don't feel too strongly from a technical perspective - definitely curious what the C+/engineers think about for that. |
with the intented goal in mind, i guess my proposal might be a fit :) to this bug @shawnborton @hayata-suenaga @thesahindia |
As noted it was around for a while. I agree that |
@thesahindia Updated the PR to use an extra style prop. |
I don't think we need additional component just to add the hover effect. Let's stick with the chosen proposal and add an extra prop. |
Reviewer Checklist
Screenshots/VideosiOS: Native |
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.
LGTM!
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.
🟢
building ad hoc build so that Shawn can check the final design |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
I think that looks good to me! Thanks! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.4.40-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.40-5 🚀
|
Details
Fixed Issues
$ #35618
PROPOSAL: #35618 (comment)
Tests
Choose a workspace
Offline tests
Same as above
QA Steps
Choose a workspace
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
Screen.Recording.2024-02-05.at.15.02.52.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-02-05.at.15.00.18.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-06.at.22.28.57.mov
MacOS: Desktop
Screen.Recording.2024-02-06.at.22.32.25.mov