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 2023-07-12] [HOLD for payment 2023-07-10] [$1000] Date is not being displayed correctly when single digit day is entered #21404

Closed
1 of 6 tasks
kavimuru opened this issue Jun 23, 2023 · 56 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 Reviewing Has a PR in review Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Jun 23, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Login to ND
  2. Open Settings
  3. Open Profile
  4. Open Personal Details
  5. Click on Date of Birth
  6. Choose the date 1 June, 2023 > Save Changes

Expected Result:

The date is fully visible

Actual Result:

The date is not fully visible

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.31-2
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation

WhatsApp.Video.2023-06-17.at.15.20.12.mp4
SVDK7066.1.MP4

Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686991387615589

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01046c3f7c49b615ed
  • Upwork Job ID: 1673481863409926144
  • Last Price Increase: 2023-06-27
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kevinksullivan
Copy link
Contributor

taking to slack thread since I cannot reproduce

IMG_F971FD29952A-1

@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2023
@Pujan92
Copy link
Contributor

Pujan92 commented Jun 26, 2023

@kevinksullivan It gets truncated when you select a date between 1 to 9.

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!

@kevinksullivan
Copy link
Contributor

ha, got it. I updated the steps to make that a bit clearer.

@melvin-bot melvin-bot bot removed the Overdue label Jun 27, 2023
@kevinksullivan
Copy link
Contributor

Reproduced and sending to the pool

@kevinksullivan kevinksullivan added the External Added to denote the issue can be worked on by a contributor label Jun 27, 2023
@melvin-bot melvin-bot bot changed the title Date is not being displayed correctly when single digit day is entered [$1000] Date is not being displayed correctly when single digit day is entered Jun 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01046c3f7c49b615ed

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

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

@dukenv0307
Copy link
Contributor

dukenv0307 commented Jun 27, 2023

Proposal

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

The date is not fully visible

What is the root cause of that problem?

It's this line where we're using white-space: pre

styles.pre,
. For some cases like above when the calculated width of the Text is smaller than the actual width, the Text will show ellipsis.

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

We just need to make the Text takes full available width, for example by adding styles.flex1 or styles.w100 below this line

isDeleted ? styles.offlineFeedback.deleted : undefined,
.

What alternative solutions did you explore? (Optional)

We might want to check other places, it might have the same issues and can apply the same fix.

@mananjadhav
Copy link
Collaborator

@dukenv0307's proposal here looks good. I think we should focus on MenuItem because this itself will require testing across the app where we're using the component.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

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

@manjesh-yadav
Copy link
Contributor

manjesh-yadav commented Jun 27, 2023

Proposal

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

Date is not being displayed correctly when single digit day is entered

What is the root cause of that problem?

The actual problem with our ExpensifyNeue and ExpensifyMono font, In our font whitespace is not handled for the IOS Safari browser. When you change the font which is supported like 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif it's works fine

We do not set Text component with full width or flex as proposed above it causes another problem when we use this with the icon, we already used it in 'src/components/MoneyRequestHeader.js:187'

When set full width or flex @mananjadhav

WhatsApp Image 2023-06-27 at 11 43 05 AM

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

When we set white-space: pre whitespace is preserved by the browser and the browser handled itself and it course problem

We can remove this style or replace a property nowrap then it's work normally and Text will wrap when necessary
App/src/components/MenuItem.js

-  styles.pre

or

-  styles.pre
+ styles.noWrap

It always works fine in a single line because we already use numberOfLines={1}

Result Text ellipsis problem

WhatsApp Image 2023-06-27 at 11 59 30 AM
Text does not ellipsis with an icon
WhatsApp Image 2023-06-27 at 11 59 40 AM
Large text in a single line
IMG_CA4152CF997C-1

What alternative solutions did you explore? (Optional)

  1. Change our font family
  2. Correct whitespace of our ExpensifyNeue and ExpensifyMono font

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

📣 @dukenv0307 You have been assigned to this job by @cristipaval!
Please apply to this job in Upwork 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 📖

@kevinksullivan
Copy link
Contributor

Hi @dukenv0307 , what melvin said ^ 😄 . Please apply for the job in upwork as I'm not sure what your name would be for searching it. Thanks!

@kevinksullivan
Copy link
Contributor

Offer sent for C+ @mananjadhav

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

@mananjadhav, @cristipaval, @kevinksullivan, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@mananjadhav
Copy link
Collaborator

@kevinksullivan did you get a chance to look at the previous comment?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 15, 2023
@kevinksullivan
Copy link
Contributor

@mananjadhav so are you asking for the standard $1,000 then?

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@mananjadhav
Copy link
Collaborator

@kevinksullivan Yes the standard 1000$.

@mananjadhav
Copy link
Collaborator

@kevinsullivan did you get a chance to look at my previous comment? This is pending for payout.

@kevinsullivan
Copy link

kevinsullivan commented Jul 18, 2023

@kevinsullivan did you get a chance to look at my previous comment? This is pending for payout.

Please let me know what I need to do
Thank you. Kevin

PS I think you meant @kevinksullivan.

@melvin-bot
Copy link

melvin-bot bot commented Jul 18, 2023

📣 @kevinsullivan! 📣
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. 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.
  2. 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.
  3. 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>

@mananjadhav
Copy link
Collaborator

Apologies for the issue. Yes I meant to tag @kevinksullivan

@kevinsullivan
Copy link

kevinsullivan commented Jul 18, 2023 via email

@kevinksullivan
Copy link
Contributor

Paid out

@mananjadhav
Copy link
Collaborator

Thanks the payout @kevinksullivan. Is it possible to do a refund without additional charges? I am currently raising requests from NewDot.

@kevinksullivan
Copy link
Contributor

So you already got paid for this in newdot @mananjadhav ?

@mananjadhav
Copy link
Collaborator

DMed you @kevinksullivan.

@kevinksullivan
Copy link
Contributor

just sent a refund request @mananjadhav

@mananjadhav
Copy link
Collaborator

Thanks @kevinksullivan.

@anmurali
Copy link

Approved 1000 to Manan based on #21404 (comment), which has been refunded on Upwork!

@dukenv0307
Copy link
Contributor

@kevinksullivan The PR is merged within 3 working days so I think I am eligible for a bonus timeline

@mananjadhav
Copy link
Collaborator

@dukenv0307 We missed a case here, hence this isn't eligible for the timeline bonus.

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 Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants