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-10] [$250] Android - Workspaces - "Workspaces" title is shown in two lines #44210

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 22, 2024 · 27 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 22, 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.1-0
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
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • Device font size must be large
  • Or use a narrow screen device like Samsung Galaxy Z Fold (front display) and use minimum font size in this case
  1. Launch New Expensify app
  2. Go to Account settings
  3. Go to Workspaces

Expected Result:

"Workspaces" title will not be shown in two lines

Actual Result:

"Workspaces" title is shown in two lines

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

Samsung_Notes

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01db4b9a25dfd3bca7
  • Upwork Job ID: 1804562341394542349
  • Last Price Increase: 2024-06-22
  • Automatic offers:
    • Krishna2323 | Contributor | 102838388
Issue OwnerCurrent Issue Owner: @eh2077
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 22, 2024
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.

Copy link

melvin-bot bot commented Jun 22, 2024

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

@lanitochka17
Copy link
Author

@tgolen 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
Copy link
Author

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Jun 22, 2024

Proposal

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

Android - Workspaces - "Workspaces" title is shown in two lines

What is the root cause of that problem?

When the screen is small we don't render the button outside of HeaderWithBackButton.

<HeaderWithBackButton
title={translate('common.workspaces')}
shouldShowBackButton={isSmallScreenWidth}
onBackButtonPress={() => Navigation.goBack()}
icon={Illustrations.BigRocket}
>
<Button
accessibilityLabel={translate('workspace.new.newWorkspace')}
success
medium
text={translate('workspace.new.newWorkspace')}
onPress={() => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt())}
/>
</HeaderWithBackButton>

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

We need to follow other workspace pages and render the button outside the HeaderWithBackButton so it will be below the header.

                <HeaderWithBackButton
                    title={translate('common.workspaces')}
                    shouldShowBackButton={isSmallScreenWidth}
                    onBackButtonPress={() => Navigation.goBack()}
                    icon={Illustrations.BigRocket}
                >
                    {!isSmallScreenWidth && (
                        <Button
                            accessibilityLabel={translate('workspace.new.newWorkspace')}
                            success
                            medium
                            text={translate('workspace.new.newWorkspace')}
                            onPress={() => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt())}
                        />
                    )}
                </HeaderWithBackButton>
                {isSmallScreenWidth && (
                    <View style={[styles.pl5, styles.pr5]}>
                        {' '}
                        <Button
                            accessibilityLabel={translate('workspace.new.newWorkspace')}
                            success
                            medium
                            text={translate('workspace.new.newWorkspace')}
                            onPress={() => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt())}
                            style={isSmallScreenWidth && styles.flexGrow1, isSmallScreenWidth && styles.mb3}
                        />
                    </View>
                )}

Note we also need to do the same when rendering the empty workspace section and we can create a function to return the button like we do in other components.

<HeaderWithBackButton
title={translate('workspace.common.members')}
icon={Illustrations.ReceiptWrangler}
onBackButtonPress={() => {
Navigation.goBack();
}}
shouldShowBackButton={isSmallScreenWidth}
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_MEMBERS}
>
{!isSmallScreenWidth && getHeaderButtons()}
</HeaderWithBackButton>
{isSmallScreenWidth && <View style={[styles.pl5, styles.pr5]}>{getHeaderButtons()}</View>}

What alternative solutions did you explore? (Optional)

Result

workspace_list_page_title_line_break.mp4

@tgolen tgolen added External Added to denote the issue can be worked on by a contributor Bug Something is broken. Auto assigns a BugZero manager. labels Jun 22, 2024
@melvin-bot melvin-bot bot changed the title Android - Workspaces - "Workspaces" title is shown in two lines [$250] Android - Workspaces - "Workspaces" title is shown in two lines Jun 22, 2024
Copy link

melvin-bot bot commented Jun 22, 2024

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

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

melvin-bot bot commented Jun 22, 2024

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

Copy link

melvin-bot bot commented Jun 22, 2024

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

@tgolen
Copy link
Contributor

tgolen commented Jun 22, 2024

Thanks for the proposal @Krishna2323

It looks good to me! Can you please do a PR?

@tgolen tgolen assigned Krishna2323 and unassigned johncschuster and eh2077 Jun 22, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 22, 2024
Copy link

melvin-bot bot commented Jun 22, 2024

📣 @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
Copy link
Contributor

@tgolen, PR will be ready in a hour.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review and removed Hourly KSv2 labels Jun 22, 2024
@melvin-bot melvin-bot bot added the Weekly KSv2 label Jun 22, 2024
@Krishna2323
Copy link
Contributor

Krishna2323 commented Jun 22, 2024

@tgolen, the PR is almost ready. I just need to record for Android native. I'm facing build issues and have been trying to resolve them for the last hour. Will update as soon as it get resolved.

Monosnap App 2024-06-23 00-30-49

@ishpaul777
Copy link
Contributor

I was also having build issues, Deleting android/app/.cxx and rebuilding worked for me @Krishna2323 you may want to try that else let know i'll give you the screenshot/Video for Android : )

@parasharrajat
Copy link
Member

We can remove this from the deploy blocker list. It is not really a blocker. @tgolen

@Krishna2323
Copy link
Contributor

Thanks for the help, @ishpaul777, but it didn't work for me. It would be great if you could record a video for Android native. I moved the project code to an external SSD to free up some space, maybe that's causing the error.

@Krishna2323
Copy link
Contributor

@tgolen, PR is ready for review, all recordings have been added. @ishpaul777, thanks for the help.

@mountiny mountiny removed DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment labels Jun 24, 2024
@mountiny
Copy link
Contributor

I agree this does not have to be a blocker given the preconditions of narrow screen and increased base font size

@parasharrajat
Copy link
Member

I was C+ on the PR. Please assign me.

@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 3, 2024
@melvin-bot melvin-bot bot changed the title [$250] Android - Workspaces - "Workspaces" title is shown in two lines [HOLD for payment 2024-07-10] [$250] Android - Workspaces - "Workspaces" title is shown in two lines Jul 3, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

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

Copy link

melvin-bot bot commented Jul 3, 2024

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

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

Copy link

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

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

@parasharrajat parasharrajat mentioned this issue Jul 4, 2024
50 tasks
@parasharrajat
Copy link
Member

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:

Regression Test Steps

For devices with width greater than 800px

  1. Launch New Expensify app
  2. Go to Account settings
  3. Go to Workspaces
  4. Verify the New Workspace is in the same line as header text Workspaces

For devices with width less than 800px

  1. Launch New Expensify app
  2. Go to Account settings
  3. Go to Workspaces
  4. Verify the New Workspace is below the header text Workspaces

Do you agree 👍 or 👎 ?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

Issue is ready for payment but no BZ is assigned. @MitchExpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

@MitchExpensify
Copy link
Contributor

Payment summary:

@MitchExpensify
Copy link
Contributor

Paid and contract ended @Krishna2323

@parasharrajat
Copy link
Member

Payment requested as per #44210 (comment)

@JmillsExpensify
Copy link

$250 approved for @parasharrajat

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants