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

[Ready for payment] Account switcher - No spacing between account switcher icon and the status icon #48261

Closed
2 of 6 tasks
lanitochka17 opened this issue Aug 29, 2024 · 48 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 29, 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: 9.0.26-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • Account is a copilot
  • Account has a very long name
  1. Launch New Expensify app
  2. Go to Account settings

Expected Result:

There will be spacing between account switcher icon and the status icon

Actual Result:

There is no spacing between account switcher icon and the status icon
On Android, the icons overlap with each other

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

Bug6585837_1724882296624.ScreenRecording_08-29-2024_05-20-40_1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @VictoriaExpensify
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 29, 2024
Copy link

melvin-bot bot commented Aug 29, 2024

Triggered auto assignment to @arosiclair (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@bernhardoj
Copy link
Contributor

Proposal

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

No spacing between the account switcher and the status button.

What is the root cause of that problem?

We already set a gap to the container so it will have space between the account switcher and the status button.

<View style={[styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter, styles.pb3, styles.gap3]}>
<AccountSwitcher />
<Tooltip text={translate('statusPage.status')}>
<PressableWithFeedback
accessibilityLabel={translate('statusPage.status')}

However, when the name is really long, it pushes the arrow up & down icon out of the display name box.
image

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

We can set a flex-shrink of 1 to the display name, so when the name is very long, instead of pushing out the icon, the display name will shrink.

<Text
numberOfLines={1}
style={[styles.textBold, styles.textLarge]}
>
{currentUserPersonalDetails?.displayName}

@puneetlath
Copy link
Contributor

demoting since Copilot is under beta cc @rushatgabhane

@puneetlath puneetlath added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 29, 2024
Copy link

melvin-bot bot commented Aug 29, 2024

Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@arosiclair
Copy link
Contributor

Looks like the account switcher was added in #47338. @dangrous can you take a look? @rushatgabhane should probably fix this.

@arosiclair arosiclair assigned dangrous and unassigned arosiclair Aug 29, 2024
@rushatgabhane
Copy link
Member

hello please assign it to me.

@dangrous
Copy link
Contributor

Assigned! there are a couple other ones that came through, I'm going to review and then probably assign those as well if that's okay!

@dangrous
Copy link
Contributor

@rushatgabhane setting flex-shrink here should fix it up, do you think you can add that in to the other fixes? Thanks!

@rushatgabhane
Copy link
Member

yes, one mega fix is needed

@melvin-bot melvin-bot bot added the Overdue label Sep 2, 2024
Copy link

melvin-bot bot commented Sep 2, 2024

@dangrous, @rushatgabhane, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@dangrous
Copy link
Contributor

dangrous commented Sep 3, 2024

let us know if it would be best to open this for a contributor @rushatgabhane, I know you've got a lot going on

@melvin-bot melvin-bot bot removed the Overdue label Sep 3, 2024
@rushatgabhane rushatgabhane mentioned this issue Sep 4, 2024
50 tasks
@dylanexpensify
Copy link
Contributor

@rushatgabhane we on track to raise today?? 🙏

@dylanexpensify
Copy link
Contributor

@rushatgabhane @allgandalf @mkhutornyi let's break this down for payment! Who handled which issues (that were priced at $250), and which issues had a regression attached (so $125)?

@allgandalf
Copy link
Contributor

allgandalf commented Oct 4, 2024

I reviewed (None of those caused regresssion):

Screenshot 2024-10-04 at 3 29 23 PM

Also i'm not sure about one more issue: #48244 , the bug was still reproducible when i tested here and was fixed after that in this commit here so idk if that counts mine or @mkhutornyi. so please help us with that specific issue, rest all seems good to me 👍 (@mkhutornyi correct me please if i am wrong here, no conflicts as such 🙇 )

@rushatgabhane
Copy link
Member

@dylanexpensify they shouldn't be priced at $250 per issue. The issues were one liners and that is why I created a single PR for them

@dylanexpensify
Copy link
Contributor

dylanexpensify commented Oct 7, 2024

Payment summary:

Contributor: @allgandalf $250 via Upwork
Contributor: @mkhutornyi $250 via Upwork

Please apply here!

@sscodez
Copy link

sscodez commented Oct 7, 2024

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

 <View style={[styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter, styles.pb3, styles.gap3]}> 
     <AccountSwitcher style={{flex:3}}  /> 
     <Tooltip  style={{flex:5}} > 
         <PressableWithFeedback {{flex:2}}
              </PressableWithFeedback >
              </View>

Follow this way make parent view flex 1

Copy link

melvin-bot bot commented Oct 7, 2024

📣 @sscodez! 📣
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>

@rakshwinder
Copy link

There are several ways to achieve the desired layout. One approach is to allocate 70% of the width for the user's email. If the email length exceeds the 70% container width, you can make it scrollable. Alternatively, you can break the text if needed to fit within the allocated space. In the remaining 30% of the width, display both icons, ensuring there is a 10% gap between them for proper spacing.

Copy link

melvin-bot bot commented Oct 7, 2024

📣 @rakshwinder! 📣
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>

@allgandalf
Copy link
Contributor

@dylanexpensify can you pay this one please :))

@dylanexpensify
Copy link
Contributor

Yes, @allgandalf @mkhutornyi from above, mind applying in the link!?

@allgandalf
Copy link
Contributor

done done !!!!

@dylanexpensify
Copy link
Contributor

@allgandalf @mkhutornyi offers sent!

@dylanexpensify dylanexpensify removed their assignment Oct 18, 2024
@dylanexpensify dylanexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Oct 18, 2024
Copy link

melvin-bot bot commented Oct 18, 2024

Triggered auto assignment to @VictoriaExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 18, 2024
@dylanexpensify
Copy link
Contributor

Hey @VictoriaExpensify! I'm heading out on parental leave so reassigning this! All that's left is paying out @mkhutornyi once he's accepted the offer! Job post found here! TY! 🙇‍♂️

@dangrous
Copy link
Contributor

What's the action here? What do we need still to close this out - has payment completed?

@dangrous dangrous changed the title Account switcher - No spacing between account switcher icon and the status icon [Ready for payment???] Account switcher - No spacing between account switcher icon and the status icon Oct 24, 2024
@mkhutornyi
Copy link
Contributor

I already accepted offer.

@dangrous dangrous changed the title [Ready for payment???] Account switcher - No spacing between account switcher icon and the status icon [Ready for payment] Account switcher - No spacing between account switcher icon and the status icon Oct 30, 2024
@dangrous
Copy link
Contributor

Got it - so @VictoriaExpensify I think it's up to you to pay out and close!

Copy link

melvin-bot bot commented Oct 31, 2024

@dangrous, @rushatgabhane, @VictoriaExpensify, @mkhutornyi, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!

@VictoriaExpensify
Copy link
Contributor

Sorry, i missed this! Finalising payments now!

@VictoriaExpensify
Copy link
Contributor

Payment summary:
@allgandalf paid $250 via Upwork (was already paid)
@mkhutornyi paid $250 via Upwork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests