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

Category - Offline indicator appears below "Members must categorize.." instead of page bottom #37507

Closed
4 of 6 tasks
m-natarajan opened this issue Feb 29, 2024 · 10 comments
Closed
4 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Hourly KSv2

Comments

@m-natarajan
Copy link

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: v1.4.45-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

Precondition:

  • User is admin of Collect workspace that has categories.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings.
  3. Select the Collect workspace.
  4. Tap Categories.
  5. Tap Settings.
  6. Go offline

Expected Result:

The offline indicator will be displayed at the bottom of the screen.

Actual Result:

The offline indicator is displayed below "Members must categorize all spend",

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

Bug6397087_1709215508809.Screen_Recording_20240229_113715_New_Expensify.mp4

Add any screenshot/video evidence

View all open jobs on GitHub

@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 29, 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 Feb 29, 2024

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

@m-natarajan
Copy link
Author

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

@m-natarajan
Copy link
Author

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

@eucool
Copy link
Contributor

eucool commented Feb 29, 2024

Proposal

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

Offline indicator appears below "Members must categorize.." instead of page bottom

What is the root cause of that problem?

we wrap OfflineWithFeedback at wrong place:

>
<HeaderWithBackButton title={translate('common.settings')} />
<OfflineWithFeedback
errors={policy?.errorFields?.requiresCategory}
pendingAction={policy?.pendingFields?.requiresCategory as OnyxCommon.PendingAction}
errorRowStyles={styles.mh5}
>
<View style={[styles.mt2, styles.mh4]}>

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

Wrap the whole page instead:

use the OfflineWithFeedback here instead:

return (
<AdminPolicyAccessOrNotFoundWrapper policyID={route.params.policyID}>

What alternative solutions did you explore? (Optional)

N/A

@neonbhai
Copy link
Contributor

Proposal

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

Offline indicator appears below "Members must categorize.." instead of page bottom

What is the root cause of that problem?

The ScreenWrapper component here does not take all available space

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

We should pass styles.flexGrow1 to the ScreenWrapper

Alternatively

  • We should make ScreenWrapper the outermost component
  • We can wrap with a View containing the style flexGrow1

@lakchote
Copy link
Contributor

lakchote commented Feb 29, 2024

@ArekChr @allroundexperts since you worked on the PR related to categories.

Looks like @shawnborton comment about showing offline indicator at the bottom for mobile got overlooked.

Please address this issue, thanks.

@luacmartins
Copy link
Contributor

We're fixing that here #37209 (comment)

@luacmartins
Copy link
Contributor

Gonna close this issue as it's not a blocker

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. Engineering Hourly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants