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

[HOLD for payment 2024-02-20] [$250] [Wave 8] [Ideal Nav] Workspace Switcher Icon: Missing tool tip and wrong icon color #35618

Closed
6 tasks done
hayata-suenaga opened this issue Feb 2, 2024 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented Feb 2, 2024

Action Performed:

  1. On a browser, hover over the Workspace Switcher icon (the avatar-like icon at the top-left color of the new Left Hand Pane (see the video).

Expected Result:

There should be a tooltip that displays Choose a workspace.
Only the background of the chevron icon should change, not the fill color of the chevron icon.

Please also read Shawn (our designer)'s additional comment here

Actual Result:

The tooltip doesn't appear.
The fill color of the chevron icon on hover changes on hover..

Workaround:

N/A

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Screen.Recording.2024-02-01.at.4.04.31.PM.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01566d00a9005cba1a
  • Upwork Job ID: 1753450501284016128
  • Last Price Increase: 2024-02-02
  • Automatic offers:
    • dukenv0307 | Contributor | 28141432
@hayata-suenaga hayata-suenaga added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@dukenv0307
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

The tooltip doesn't appear.
The color of the chevron icon on hover is incorrect.

What is the root cause of that problem?

  1. The tooltip doesn't appear.
    We are not wrapping WorkspaceSwitcherButton into a tooltip

    <PressableWithFeedback

  2. The color of the chevron icon on hover is incorrect.
    When we hover over the icon, the color of icon is buttonHoveredBG which is wrong color

fill: hovered ? theme.buttonHoveredBG : theme.icon,

What changes do you think we should make in order to solve the problem?

  1. Wrap this component into a tooltip and the tooltip text can be confirmed by design team

<PressableWithFeedback

  1. Change the hover color of icon. Design team can provide the correct hover color

fill: hovered ? theme.buttonHoveredBG : theme.icon,

What alternative solutions did you explore? (Optional)

NA

@hayata-suenaga hayata-suenaga moved this to Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) in [#whatsnext] Wave 08 - Collect Plan Admins Feb 2, 2024
@shawnborton
Copy link
Contributor

Also, want to clarify that for the small button over the workspace icon, just the button BG should be changing, not the icon color. We should be following our default button styles here.

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Feb 2, 2024
@melvin-bot melvin-bot bot changed the title [Wave 8] [Ideal Nav] Workspace Switcher Icon: Missing tool tip and wrong icon color [$500] [Wave 8] [Ideal Nav] Workspace Switcher Icon: Missing tool tip and wrong icon color Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01566d00a9005cba1a

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@mountiny mountiny changed the title [$500] [Wave 8] [Ideal Nav] Workspace Switcher Icon: Missing tool tip and wrong icon color [$250] [Wave 8] [Ideal Nav] Workspace Switcher Icon: Missing tool tip and wrong icon color Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Upwork job price has been updated to $250

@hayata-suenaga
Copy link
Contributor Author

There should be a tooltip that displays #33280 (comment).

@shawnborton could you confirm that the tooltip over the Workspace Switcher icon should display the full workspace name?

@shawnborton
Copy link
Contributor

Hmm I would think the tool tip should actually say "Choose a workspace" since tapping this element takes you to that flow of the app. cc @trjExpensify @Expensify/design for a gut check there though.

@dannymcclain
Copy link
Contributor

Hmm I would think the tool tip should actually say "Choose a workspace"

Totally agree.

@trjExpensify
Copy link
Contributor

Yup, I also agree with that.

@allgandalf
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Missing tool tip and wrong icon color

What is the root cause of that problem?

We don't wrap PressableWithFeedback in a tooltip:

return (
<PressableWithFeedback

For the design, we define hover color change for the Icon rather than the SubscriptAvatar component due to which only the Icon is hovered and not the whole button

fill: hovered ? theme.buttonHoveredBG : theme.icon,

{subscriptIcon && (
<View

What changes do you think we should make in order to solve the problem?

As for the PressableWithFeedback, wrap it in a tootip, as per comments from @shawnborton , we need to use switcher.headerTitle as the tooltip text (which is already defined in languages):

<Tooltip text={translate('switcher.headerTitle')}>
<PressableWithFeedback 
...
...
</Tooltip>

And for the design aspect, as per comments from @shawnborton , we need to hover the button rather than the Icon, we can do so by implementing the following changes, the results are shown first:

  • Result:
simplescreenrecorder-2024-02-04_02.06.03.mp4

The changes required are:

First remove the existing Hover condition at subscriptIcon.fill, then pass the hover={hovered} prop to SubscriptAvatar

{({hovered}) => (
    <SubscriptAvatar
        .
        subscriptIcon={{
            ..
            fill: theme.icon,
        }}
        .
        hover={hovered}
    />
    )}

Then add hover as prop to SubscriptAvatar

And then set the style of the button to change on hover:

{subscriptIcon && (
    <View
        style={[
            .
            .
            hover && { backgroundColor: theme.buttonHoveredBG }
            .
        ]}
        .
    >

What alternative solutions did you explore? (Optional)

N/A

@hayata-suenaga
Copy link
Contributor Author

@thesahindia please review proposals when you have time 🙇

@thesahindia
Copy link
Member

@dukenv0307's proposal looks good to me!

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 4, 2024

Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 4, 2024
@hayata-suenaga
Copy link
Contributor Author

sorry I apparently clicked a wrong button and caused everyone to be unassigned 😓

@lakchote I'll keep assigning myself to this issue. I don't know whey Melvin assign you 🤷

Copy link

melvin-bot bot commented Feb 4, 2024

📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@allgandalf
Copy link
Contributor

allgandalf commented Feb 5, 2024

Also, want to clarify that for the small button over the workspace icon, just the button BG should be changing, not the icon color. We should be following our default button styles here.

hey @thesahindia, according to comments from @shawnborton , he expected that the button BG be changed and not the icon, but @dukenv0307 proposal states to change the icon color:

Change the hover color of icon. Design team can provide the correct hover color

And in my proposal i have followed the comments and updates the BG of the button rather than the icon, so isn’t my RCA more accurate?

@hayata-suenaga @lakchote @Christinadobrzyn

@thesahindia
Copy link
Member

he expected that the button BG be changed and not the icon, but @dukenv0307 proposal states to change the icon color:

We generally handle these things in the PR. The issue is minor and the first proposal was good enough.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 5, 2024
@dukenv0307
Copy link
Contributor

@thesahindia The PR is ready for review.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 13, 2024
@melvin-bot melvin-bot bot changed the title [$250] [Wave 8] [Ideal Nav] Workspace Switcher Icon: Missing tool tip and wrong icon color [HOLD for payment 2024-02-20] [$250] [Wave 8] [Ideal Nav] Workspace Switcher Icon: Missing tool tip and wrong icon color Feb 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Feb 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-02-20. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Feb 13, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@thesahindia] The PR that introduced the bug has been identified. Link to the PR:
  • [@thesahindia] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@thesahindia] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@thesahindia] Determine if we should create a regression test for this bug.
  • [@thesahindia] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 20, 2024
@Christinadobrzyn
Copy link
Contributor

hi! Sorry I'm ooo sick today - I'll follow up on this tomorrow

@Christinadobrzyn
Copy link
Contributor

Payment summary

Contributor: $250 @dukenv0307 (paid in Upwork - https://www.upwork.com/nx/wm/offer/28141432)
Contributor+: $250 @thesahindia (in NewDot)

Eligible for 50% #urgency bonus? NA

Do we need a regression test for this?

@thesahindia
Copy link
Member

Do we need a regression test for this?

We don't need a specific test for this.

@Christinadobrzyn
Copy link
Contributor

awesome! thanks for confirming @thesahindia

This is paid out based on this payment summary - #35618 (comment)

Closing - feel free to reach out with any questions!

@github-project-automation github-project-automation bot moved this from Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) to Done in [#whatsnext] Wave 08 - Collect Plan Admins Feb 22, 2024
@JmillsExpensify
Copy link

$250 approved for @thesahindia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Development

No branches or pull requests