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-17] [$250] Android - Workspace - Workspace name is not displayed when navigate via join link #44639

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 28, 2024 · 25 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

@lanitochka17
Copy link

lanitochka17 commented Jun 28, 2024

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: 9.0.3-1
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
Email or phone of affected tester (no customers): gocemate+a470@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. [User B] Copy a workspace join link that User A is not a member
  2. [User A] Open the workspace join link

Expected Result:

Workspace name should be displayed when User A open join link

Actual Result:

Workspace name is not displayed when navigate to Workspace via join link until the member is accepted

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

mage__1_ (1)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0138fb5ddd26e517e8
  • Upwork Job ID: 1807485642236308668
  • Last Price Increase: 2024-06-30
  • Automatic offers:
    • hungvu193 | Reviewer | 102948824
    • bernhardoj | Contributor | 102948826
Issue OwnerCurrent Issue Owner: @lschurr
@lanitochka17 lanitochka17 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 @lschurr (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
Copy link
Author

@lschurr 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

@bernhardoj
Copy link
Contributor

Proposal

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

Pending join WS name isn't displayed in small screen.

What is the root cause of that problem?

The requested badge takes the whole space which hides the workspace name. (the green box is the requested badge container box)
Screenshot 2024-06-29 at 13 17 59

The badge view is wrapped with 2 view.

<View style={[styles.flexRow]}>
{isJoinRequestPending && (
<View style={[styles.flexRow, styles.gap2, styles.alignItemsCenter, styles.flex1, styles.justifyContentEnd, isNarrow && styles.workspaceListBadge]}>
<Badge

The first view, set the the flex1 style. The flex1 style will grow/shrink based on the space. However, the second View wrapper doesn't limit the width.

For example, if we set it to 50px width, then the WS name will be visible. Or if we set the flex1 to the second View, then the WS name will be visible too. But I think we don't have a static width for the container for now and we don't want to set the flex1 because it means it will have equal width between the Requested badge and the WS avatar + name.

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

Remove the badge view wrapper flex1 style

<View style={[styles.flexRow, styles.gap2, styles.alignItemsCenter, styles.flex1, styles.justifyContentEnd, isNarrow && styles.workspaceListBadge]}>
<Badge

But we have another problem. If you notice, the Requested badge is overflown the green box container and also not centered.
Screenshot 2024-06-29 at 13 14 03

That's because of the workspaceListBadge style, so we need to remove it too.

App/src/styles/index.ts

Lines 3357 to 3361 in 4622e19

workspaceListBadge: {
flexDirection: 'column',
justifyContent: 'flex-start',
marginTop: 6,
},

Last, another existing issue in large screen the requested badge doesn't have the same width as the 3-dot.
image

We can add padding left of 20 to the badge (large screen only) or have a static width for it, for example 128 (the 3-dot width).
image

Result on small screen
image

@lschurr lschurr added the External Added to denote the issue can be worked on by a contributor label Jun 30, 2024
@melvin-bot melvin-bot bot changed the title Android - Workspace - Workspace name is not displayed when navigate via join link [$250] Android - Workspace - Workspace name is not displayed when navigate via join link Jun 30, 2024
Copy link

melvin-bot bot commented Jun 30, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0138fb5ddd26e517e8

@melvin-bot melvin-bot bot added Overdue Help Wanted Apply this label when an issue is open to proposals by contributors labels Jun 30, 2024
Copy link

melvin-bot bot commented Jun 30, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jun 30, 2024
@hungvu193
Copy link
Contributor

I'll review today!

@hungvu193
Copy link
Contributor

@bernhardoj 's proposal here looks good to me!

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 1, 2024

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

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

melvin-bot bot commented Jul 1, 2024

📣 @hungvu193 🎉 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 Jul 1, 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 📖

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

PR is ready

cc: @hungvu193

@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 10, 2024
@melvin-bot melvin-bot bot changed the title [$250] Android - Workspace - Workspace name is not displayed when navigate via join link [HOLD for payment 2024-07-17] [$250] Android - Workspace - Workspace name is not displayed when navigate via join link Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 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 Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 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-17. 🎊

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

Copy link

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

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

@bernhardoj
Copy link
Contributor

I'll request in ND once payment is due.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-17] [$250] Android - Workspace - Workspace name is not displayed when navigate via join link [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Android - Workspace - Workspace name is not displayed when navigate via join link Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-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-22. 🎊

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

Copy link

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

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

@bernhardoj
Copy link
Contributor

The payment should be due tomorrow (07-17)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 16, 2024
@lschurr lschurr changed the title [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Android - Workspace - Workspace name is not displayed when navigate via join link [HOLD for payment 2024-07-17] [$250] Android - Workspace - Workspace name is not displayed when navigate via join link Jul 16, 2024
@bernhardoj
Copy link
Contributor

Requested in ND.

@hungvu193
Copy link
Contributor

@lschurr I will also request on ND, I'll withdraw my upwork offer.

@hungvu193
Copy link
Contributor

Regression test:

  1. [User B] Copy a workspace join link that User A is not a member.
  2. [User A] Open the workspace join link (On a mobile device).
  3. Verify that workspace name display correctly.

Do we 👍 or 👎

@lschurr
Copy link
Contributor

lschurr commented Jul 17, 2024

Payment summary:

@lschurr
Copy link
Contributor

lschurr commented Jul 17, 2024

Added QA test request. Closing :)

@lschurr lschurr closed this as completed Jul 17, 2024
@JmillsExpensify
Copy link

$250 approved for @bernhardoj

@JmillsExpensify
Copy link

$250 approved for @hungvu193

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
None yet
Development

No branches or pull requests

6 participants