Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

[$250] Workspace - Workspace name is truncated inconsistently in mWeb and android #41327

Open lanitochka17 opened 2 weeks ago

lanitochka17 commented 2 weeks ago

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


Version Number: 1.4.68 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team

Action Performed:

  1. Open mweb and android app
  2. Tap profile --- Workspaces---new Workspace
  3. Tap profile
  4. Paste text in both mweb and app-RtTest Workspace testingtestingtestingtestingtestingtestinggghhhhhhggggggf722222222222mmmmmmmmmmmmm7

Expected Result:

Workspace name truncated must be consistent in mweb and android

Actual Result:

Workspace name is truncated inconsistently in mweb and android

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6466484_1714480580012!Screenshot_2024-04-30-18-05-58-555_com android chrome-edit

Bug6466484_1714480627044!Screenshot_2024-04-30-18-06-38-862_com expensify chat-edit

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0106a5ae69cbfb2cf2
  • Upwork Job ID: 1785354421533896704
  • Last Price Increase: 2024-04-30
  • Automatic offers:
    • getusha | Reviewer | 0
    • Krishna2323 | Contributor | 0
Issue OwnerCurrent Issue Owner: @getusha
melvin-bot[bot] commented 2 weeks ago

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

lanitochka17 commented 2 weeks ago

@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

lanitochka17 commented 2 weeks ago

We think that this bug might be related to #vip-vsp

melvin-bot[bot] commented 2 weeks ago

Job added to Upwork: https://www.upwork.com/jobs/~0106a5ae69cbfb2cf2

melvin-bot[bot] commented 2 weeks ago

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

Krishna2323 commented 2 weeks ago

Proposal

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

Workspace - Workspace name is truncated inconsistently in mWeb and android

What is the root cause of that problem?

The title doesn't take the full width because flex1 isn't applied to workspaceTitleStyle. https://github.com/Expensify/App/blob/1abad69fa3e3144c0a0959be8e57fbba5cc639a5/src/styles/index.ts#L4851-L4854

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

Apply flex:1/styles.flex1 to workspaceTitleStyle style object and also check for similar issues in other fields.

What alternative solutions did you explore? (Optional)

Add flex1 to menu item title and description if needed.

Before

https://github.com/Expensify/App/assets/85894871/7b71f4d4-c191-4154-b0e6-1b598c3e6cfe

After

https://github.com/Expensify/App/assets/85894871/675e4db8-8f33-4a63-b99f-4658b4c5d090

Krishna2323 commented 2 weeks ago

Proposal Updated

getusha commented 2 weeks ago

@tienifr didn't we fix this before?

tienifr commented 2 weeks ago

@getusha Hmm I'm not sure, I've been working on many PRs relating to truncation. Could you link the PR you mentioned?

getusha commented 2 weeks ago

@tienifr here, this one https://github.com/Expensify/App/pull/40824 I copied your PR to fix some conflicts.

tienifr commented 2 weeks ago

I think we missed that case on Android, the PR was merged too fast. But this issue is external and the solution from @Krishna2323 will fix the issue. Should we fix that problem here? @getusha

getusha commented 2 weeks ago

Actually after a closer look, looks like it's on a different place. Workspace profile and Workspace list.

getusha commented 2 weeks ago

@Krishna2323 why was this happening only on android native?

Krishna2323 commented 1 week ago

@getusha, this is a known issue in android native, the text component doesn't fill up the space automatically. We have already applied flex1 to fix this issue in many places, e.g., https://github.com/Expensify/App/issues/30222.

getusha commented 1 week ago

@Krishna2323's proposal looks good to me πŸŽ€ πŸ‘€ πŸŽ€ C+ Reviewed!

melvin-bot[bot] commented 1 week ago

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

hayata-suenaga commented 1 week ago

I agree that @Krishna2323's proposal looks good.

melvin-bot[bot] commented 1 week ago

πŸ“£ @getusha πŸŽ‰ 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

melvin-bot[bot] commented 1 week ago

πŸ“£ @Krishna2323 πŸŽ‰ 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 πŸ“–

Krishna2323 commented 1 week ago

@getusha, PR ready for review.