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-03-26] [$500] [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon #38369

Closed
1 of 6 tasks
m-natarajan opened this issue Mar 15, 2024 · 30 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Mar 15, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.52-6
Reproducible in staging?: y
Reproducible in production?: new feature
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @mountiny
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1710430323502599

Action Performed:

  1. Open URL and sign in
  2. Hover over the area surrounding the account avatar icon
  3. Repeat the same with chat icon

Expected Result:

The area around the account icon should be pressable

Actual Result:

No area around the icon is pressable unlike chat icon

Workaround:

unknown

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

Add any screenshot/video evidence

Recording.2852.mp4

image (4)
image (3)
image (2)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0159d68ee4dad5dcf1
  • Upwork Job ID: 1768571011952791552
  • Last Price Increase: 2024-03-18
  • Automatic offers:
    • paultsimura | Reviewer | 0
    • bernhardoj | Contributor | 0
Issue OwnerCurrent Issue Owner: @stephanieelliott
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

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

@bernhardoj
Copy link
Contributor

Proposal

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

The are around the user profile avatar isn't clickable like the chat button.

What is the root cause of that problem?

The profile avatar button is wrapped with a View that has a center styling.

<View style={[styles.flex1, styles.justifyContentCenter, styles.alignItemsCenter]}>
<BottomTabAvatar isSelected={currentTabName === SCREENS.SETTINGS.ROOT} />
</View>

So, the clickable area is just the centered pressable.

If we look at the chat button, we also have the center style, but we apply it to the pressable itself, so the children are centered, but the whole element is still clickable.

<PressableWithFeedback
onPress={() => {
Navigation.navigate(ROUTES.HOME);
}}
role={CONST.ROLE.BUTTON}
accessibilityLabel={translate('common.chats')}
wrapperStyle={styles.flex1}
style={styles.bottomTabBarItem}
>
<Tooltip text={translate('common.chats')}>
<View>
<Icon
src={Expensicons.ChatBubble}
fill={currentTabName === SCREENS.HOME ? theme.iconMenu : theme.icon}
width={variables.iconBottomBar}
height={variables.iconBottomBar}
/>
{chatTabBrickRoad && (
<View style={styles.bottomTabStatusIndicator(chatTabBrickRoad === CONST.BRICK_ROAD_INDICATOR_STATUS.INFO ? theme.iconSuccessFill : theme.danger)} />
)}
</View>
</Tooltip>
</PressableWithFeedback>

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

  1. Remove the BottomTabAvatar View wrapper
  2. In BottomTabAvatar, wrap the children with a pressable. The pressable with have the center style (the same style we have for the chat button).
let children;
if (emojiStatus) children = <AvatarWithOptionalStatus .../>
else children = <PressableAvatarWithIndicator .../>

return <PressableWithFeedback>{children}</PressableWithFeedback>
  1. Remove the pressable from PressableAvatarWithIndicator (we will rename it to AvatarWithIndicator)
  2. Replace the pressable in AvatarWithOptionalStatus with a View.

@ghost
Copy link

ghost commented Mar 15, 2024

Proposal

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

Area around account avatar icon is not actionable like chat icon

What is the root cause of that problem?

The root cause of this issue is that here :

<View style={[styles.flex1, styles.justifyContentCenter, styles.alignItemsCenter]}>
<BottomTabAvatar isSelected={currentTabName === SCREENS.SETTINGS.ROOT} />
</View>

The account avatar is wrapped in a view because of which the area around the account avatar is not actionable like the area around the chat icon.

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

To make the area around the account avatar actionable like the chat icon we need to wrap it with PressableWithFeedback in the same was as chat icon i.e. like this -

<PressableWithFeedback
                onPress={() => {
                    Navigation.navigate(ROUTES.HOME);
                }}
                role={CONST.ROLE.BUTTON}
                accessibilityLabel={translate('common.chats')}
                wrapperStyle={styles.flex1}
                style={styles.bottomTabBarItem}
            >
                <View style={[styles.flex1, styles.justifyContentCenter, styles.alignItemsCenter]}>
                    <BottomTabAvatar isSelected={currentTabName === SCREENS.SETTINGS.ROOT} />
                </View>
            </PressableWithFeedback>

What alternative solutions did you explore? (Optional)

N/A

Result :

Screen.Recording.2024-03-15.at.9.16.28.AM.mp4

@ghost
Copy link

ghost commented Mar 15, 2024

Updated Proposal

@mountiny mountiny self-assigned this Mar 15, 2024
@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Mar 15, 2024
@melvin-bot melvin-bot bot changed the title Area around account avatar icon is not actionable like chat icon [$500] Area around account avatar icon is not actionable like chat icon Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0159d68ee4dad5dcf1

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

melvin-bot bot commented Mar 15, 2024

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

@mountiny mountiny changed the title [$500] Area around account avatar icon is not actionable like chat icon [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon Mar 15, 2024
@mountiny mountiny changed the title [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon [$250] [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

⚠️ This issue has had its price increased by 4x or more. Please review the issue and ensure the price is correct.

Copy link

melvin-bot bot commented Mar 15, 2024

Upwork job price has been updated to $250

@mountiny mountiny moved this to Release 1: Spring 2024 (May) in [#whatsnext] #wave-collect Mar 15, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

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

Offer link
Upwork job

Copy link

melvin-bot bot commented Mar 15, 2024

📣 @bernhardoj 🎉 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 📖

@mountiny
Copy link
Contributor

@bernhardoj Can you raise a PR for this please?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 15, 2024
@bernhardoj
Copy link
Contributor

PR is here #38380

@ghost
Copy link

ghost commented Mar 15, 2024

@mountiny @paultsimura i don't think that my proposal has been even checked out or even reviewed.

@attractive-ang-vue-react-dev

The main issue is in the layout definition of these 3 elements using a flex grid.
Instead of display: flex; use block and inline-block properties for parent and child elements and set the static width of each element.
image

Copy link

melvin-bot bot commented Mar 15, 2024

📣 @attractive-vue-dev! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

Copy link

melvin-bot bot commented Mar 15, 2024

⚠️ Unable to store contributor details.

@attractive-ang-vue-react-dev

image

@attractive-ang-vue-react-dev

Contributor details
Expensify account email: [[email protected]]
Upwork Profile Link: https://www.upwork.com/freelancers/~019904ef989290e55b

@paultsimura
Copy link
Contributor

@mountiny could you please bump the price to $500 according to this?

@mountiny mountiny changed the title [$250] [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon [$500] [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

Upwork job price has been updated to $500

@trjExpensify trjExpensify moved this from Release 1: Spring 2024 (May) to Polish in [#whatsnext] #wave-collect Mar 18, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 19, 2024
@melvin-bot melvin-bot bot changed the title [$500] [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon [HOLD for payment 2024-03-26] [$500] [Wave Collect] [Ideal Nav] Area around account avatar icon is not actionable like chat icon Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 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-03-26. 🎊

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

Copy link

melvin-bot bot commented Mar 19, 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:

  • [@paultsimura] The PR that introduced the bug has been identified. Link to the PR:
  • [@paultsimura] 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:
  • [@paultsimura] 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:
  • [@paultsimura] Determine if we should create a regression test for this bug.
  • [@paultsimura] 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.
  • [@stephanieelliott] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@stephanieelliott
Copy link
Contributor

Hey @paultsimura can you please complete the BZ checklist when you get a sec?

@paultsimura
Copy link
Contributor

This was an improvement follow-up request after the Ideal Nav PR, so nothing specific to blame as an offending PR.

  • The PR that introduced the bug has been identified. Link to the PR:
  • 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:
  • 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: N/A
  • Determine if we should create a regression test for this bug: No – this component is quite static and doesn't change much, so I don't think we need a regression test. Please let me know if you think otherwise.

@stephanieelliott
Copy link
Contributor

stephanieelliott commented Mar 28, 2024

All paid! Summarizing payment on this issue:

Upwork job is here: https://www.upwork.com/jobs/~0159d68ee4dad5dcf1

@paultsimura
Copy link
Contributor

paultsimura commented Mar 28, 2024

@stephanieelliott sorry, but the agreed amount on this issue was $500 – context – it's also reflected in the issue title.

@stephanieelliott
Copy link
Contributor

stephanieelliott commented Mar 28, 2024

@paultsimura the Upwork job had been set at $250 so this was paid in 2 payments -- one $250 milestone payment, and one $250 bonus payment, so you should've received $500 total:

image

@paultsimura
Copy link
Contributor

My bad: I just noticed the payment summary but didn't check Upwork. My apologies 🙇

@stephanieelliott
Copy link
Contributor

No worries! That was my mistake on the summary, just updated it! 😄

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants