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

[$500] Workflows - Offline indicator is not at the bottom of the page #37721

Closed
5 of 6 tasks
izarutskaya opened this issue Mar 5, 2024 · 26 comments
Closed
5 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Mar 5, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Found when validating PR : #37391

Version Number: 1.4.47-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team

Action Performed:

Precondition:

  • User is the owner of Collect workspace.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Collect workspace.
  3. Go to Workflows.
  4. Go offline.

Expected Result:

The offline indicator locates at the bottom of the page.

Actual Result:

The offline indicator locates below the workflow card.

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

Bug6402295_1709609668564!Screenshot_2024-03-05_at_11 16 19

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f79caf6c04f732a8
  • Upwork Job ID: 1765150505634082816
  • Last Price Increase: 2024-04-25
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 5, 2024
Copy link

melvin-bot bot commented Mar 5, 2024

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

@izarutskaya
Copy link
Author

@johncschuster 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.

@izarutskaya
Copy link
Author

We think that this bug might be related to #wave8-collect-admins.
CC @zanyrenney

@Krishna2323
Copy link
Contributor

Krishna2323 commented Mar 5, 2024

Proposal

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

Workflows - Offline indicator is not at the bottom of the page

What is the root cause of that problem?

The content doesn't take the full height available because we haven't wrapped with a View which has styles.w100, styles.flex1 applied to it.

We don't pass shouldUseScrollView to WorkspacePageWithSections from WorkspaceWorkflowsPage.

shouldShowNotFoundPage={!isPaidGroupPolicy || !isPolicyAdmin}

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

Wrap content with a View element and apply styles.w100, styles.flex1, so it takes all the height/width available.


<View style={[styles.w100, styles.flex1]}>{content}</View>

There might be more instances of similar issue, we will check fix all of those.

Alternatively

  1. We can directly apply styles.mtAuto to OfflineIndicator inside ScreenWrapper.
  2. Pass offlineIndicatorStyle={styles.mtAuto} to ScreenWrapper from WorkspacePageWithSections
  3. Pass shouldUseScrollView to WorkspacePageWithSections from WorkspaceWorkflowsPage### Result

@Krishna2323
Copy link
Contributor

Proposal Updated

  • Added alternatives
  • Updated root cause

@rushatgabhane
Copy link
Member

This is not a bug. It's expected result. cc: @luacmartins

@luacmartins
Copy link
Contributor

@Expensify/design is the offline indicator supposed to be where it is in the image above?

@dannymcclain
Copy link
Contributor

I would expect it to be at the bottom like on similar screens:

CleanShot 2024-03-05 at 14 54 52@2x

@dubielzyk-expensify
Copy link
Contributor

Yep that looks good to me too. Fixed to the bottom of the "current" view.

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Mar 5, 2024
Copy link

melvin-bot bot commented Mar 5, 2024

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

@melvin-bot melvin-bot bot changed the title Workflows - Offline indicator is not at the bottom of the page [$500] Workflows - Offline indicator is not at the bottom of the page Mar 5, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 5, 2024
@luacmartins
Copy link
Contributor

Thanks for confirming! Adding external label

Copy link

melvin-bot bot commented Mar 5, 2024

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

@allgandalf
Copy link
Contributor

allgandalf commented Mar 5, 2024

Proposal

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

Offline indicator is not at the bottom of the page

What is the root cause of that problem?

We miss the should shouldUseScrollView prop:

<WorkspacePageWithSections
headerText={translate('workspace.common.workflows')}
icon={Illustrations.Workflows}
route={route}
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_WORKFLOWS}
shouldShowOfflineIndicatorInWideScreen
shouldShowNotFoundPage={!isPaidGroupPolicy || !isPolicyAdmin}
>

And hence we are not able to wrap the whole component

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

We need to pass the shouldUseScrollView prop in the component

We already do this in a bunch of places where WorkspacePageWithSections.tsx is used:

<WorkspacePageWithSections
headerText={translate('workspace.common.profile')}
route={route}
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_PROFILE}
shouldShowLoading={false}
shouldUseScrollView

<WorkspacePageWithSections
shouldUseScrollView

<WorkspacePageWithSections
shouldUseScrollView

What alternative solutions did you explore? (Optional)

N/A

@mkhutornyi
Copy link
Contributor

Dupe of #37403

@shawnborton
Copy link
Contributor

Yup, I agree with the designers.

@eh2077
Copy link
Contributor

eh2077 commented Mar 6, 2024

Dupe of #37403

@mkhutornyi Yeah, they very likely share the same root cause. Both of them have solid discussions - this one is about the design part, and the other one covers the coding part.

@luacmartins I saw you commented on both. Should we put this one on hold for the other one #37403 created earlier?

@luacmartins
Copy link
Contributor

Sure, let's put it on hold in favor of #37403

@luacmartins luacmartins changed the title [$500] Workflows - Offline indicator is not at the bottom of the page [HOLD #37403][$500] Workflows - Offline indicator is not at the bottom of the page Mar 6, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 8, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

@johncschuster, @eh2077 Eep! 4 days overdue now. Issues have feelings too...

@johncschuster johncschuster added Weekly KSv2 and removed Daily KSv2 labels Mar 11, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 11, 2024
@johncschuster
Copy link
Contributor

This is on hold. Downgrading to Weekly while we wait on the above linked issue.

@johncschuster
Copy link
Contributor

Still holding

@johncschuster
Copy link
Contributor

Same

@melvin-bot melvin-bot bot removed the Overdue label Apr 9, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 18, 2024
@johncschuster
Copy link
Contributor

Looks like #37403 is now closed. Taking this off hold!

@melvin-bot melvin-bot bot removed the Overdue label Apr 24, 2024
@johncschuster johncschuster changed the title [HOLD #37403][$500] Workflows - Offline indicator is not at the bottom of the page [$500] Workflows - Offline indicator is not at the bottom of the page Apr 24, 2024
@eh2077
Copy link
Contributor

eh2077 commented Apr 25, 2024

image

@johncschuster I think we can close it as it's been fixed by #37403

Copy link

melvin-bot bot commented Apr 25, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@eh2077
Copy link
Contributor

eh2077 commented Apr 29, 2024

@johncschuster Friendly bump! I think it's good to close this issue.

@luacmartins
Copy link
Contributor

Nice! Thanks for testing again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests