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-07-24] [$250] New search - Words are simply cut off in new search page without showing continuation dots #44608

Closed
2 of 6 tasks
izarutskaya opened this issue Jun 28, 2024 · 24 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

@izarutskaya
Copy link

izarutskaya commented Jun 28, 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: v9.0.3-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

PreCondition user has workspace with a long name

  1. Access www.staging.new.expensify.com
  2. Sign into a valid account
  3. Go to New search page at the bottom and observe the header (Make sure you have switched to the WS with longer name in WS dropdown)

Expected Result:

User expects that if wording is cut off, then the continuous dots will be shown, for example: "......."

Actual Result:

Word is simply cut off and the user can not read it

The same with Inbox and Search.

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

Bug6526990_1719551092457!Wording_is_cut_off_in_new_search_page_

View all open jobs on GitHub

Bug6526990_1719551201764.No_continuos_dots_shown_in_new_search_page.mp4

Screenshot 2024-06-28 at 13 25 48

Screenshot 2024-06-28 at 13 27 59

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c0c5682e2c9e9d31
  • Upwork Job ID: 1808995110537691379
  • Last Price Increase: 2024-07-04
Issue OwnerCurrent Issue Owner: @RachCHopkins
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Triggered auto assignment to @RachCHopkins (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.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@bernhardoj
Copy link
Contributor

Proposal

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

The topbar header text just overflows the container without any ellipsis.

What is the root cause of that problem?

This happens after #43429. Previously, we just have flexShrink0 without flex1 style.

<Text
numberOfLines={1}
style={[styles.mw75, styles.flexShrink0, styles.breadcrumb, styles.flex1]}
>
{secondaryBreadcrumb.text}
</Text>

flexShrink0 will make the topbar title (Inbox/Search) not shrink and instead, the workspace name will shrink. But it causes this issue where the title text is overflown when there is no workspace selected, thus the Expensify logo is shown. So, the solution is to add flex1 style which overrides the flexShrink0 style.

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

To solve this issue and doesn't reintroduce #43426, we can conditionally apply the style based on whether we want to show the Expensify logo or the selected workspace.

const isRootBreadcrumb = primaryBreadcrumb.type === CONST.BREADCRUMB_TYPE.ROOT;

<Text ... style={[..., isRootBreadcrumb ? styles.flex1 : styles.flexShrink0]}>

Result:
image
image

we can adjust the max width of the header title if we want

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

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

@RachCHopkins
Copy link
Contributor

I can't replicate this, my admins room is playing up, but what I see here seems pretty clear as to what the issue is.

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 4, 2024
@RachCHopkins RachCHopkins added the External Added to denote the issue can be worked on by a contributor label Jul 4, 2024
@melvin-bot melvin-bot bot changed the title New search - Words are simply cut off in new search page without showing continuation dots [$250] New search - Words are simply cut off in new search page without showing continuation dots Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01c0c5682e2c9e9d31

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

melvin-bot bot commented Jul 4, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jul 4, 2024
@RachCHopkins
Copy link
Contributor

Sorry, I'm still learning!

@sandipanghos
Copy link

is this issue still open for proposal? - @mollfpr

@mollfpr
Copy link
Contributor

mollfpr commented Jul 6, 2024

Screenshot 2024-07-06 at 22 53 39

The issue reproduces differently on my end, but the secondary breadcrumbs still have not appeared.

The proposal from @bernhardoj looks good to me and it does fix the issue.

🎀 👀 🎀 C+ reviewed!

Copy link

melvin-bot bot commented Jul 6, 2024

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

@mollfpr
Copy link
Contributor

mollfpr commented Jul 6, 2024

@sandipanghos You can still send a proposal as long no contributors are hired and the Help Wanted label still applies.

Copy link

melvin-bot bot commented Jul 9, 2024

@pecanoro, @mollfpr, @RachCHopkins Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Jul 9, 2024
@pecanoro
Copy link
Contributor

pecanoro commented Jul 9, 2024

Assigning @bernhardoj to the issue!

@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors Overdue labels Jul 9, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 10, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @mollfpr

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] New search - Words are simply cut off in new search page without showing continuation dots [HOLD for payment 2024-07-24] [$250] New search - Words are simply cut off in new search page without showing continuation dots Jul 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊

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

  • @mollfpr requires payment through NewDot Manual Requests
  • @bernhardoj requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Jul 17, 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:

  • [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
  • [@mollfpr] 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:
  • [@mollfpr] 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:
  • [@mollfpr] Determine if we should create a regression test for this bug.
  • [@mollfpr] 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.
  • [@RachCHopkins] 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 Jul 23, 2024
@mollfpr
Copy link
Contributor

mollfpr commented Jul 24, 2024

[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:

#43429

[@mollfpr] 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:

https://github.com/Expensify/App/pull/43429/files#r1689333048

[@mollfpr] 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:

I don't think we need a new checklist, the regression step should be enough.

[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] 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.

  1. Open workspace switcher page
  2. Switch to a workspace with a long name
  3. Go to the Search page
  4. Verify the Search title text isn't cut off
  5. Go to Settings > Preferences
  6. Change the language to Spanish
  7. Go back to Inbox
  8. Open workspace switcher page again
  9. Change back to Expensify
  10. Verify the Inbox title in Spanish (Bandeja de entrada) isn't cut off
  11. 👍 or 👎

@bernhardoj
Copy link
Contributor

Requested in ND.

Copy link

melvin-bot bot commented Jul 24, 2024

Payment Summary

Upwork Job

BugZero Checklist (@RachCHopkins)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1808995110537691379/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@JmillsExpensify
Copy link

$250 approved for @bernhardoj

@JmillsExpensify
Copy link

$250 approved for @mollfpr

@RachCHopkins
Copy link
Contributor

Contributors have been paid, the contract has been completed, and the Upwork post has been closed.

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
Archived in project
Development

No branches or pull requests

7 participants