[$250] Android - Workflow - "Next" and "Add Approval" buttons are overlapped by offline indicator.
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.4.8-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://github.com/Expensify/App/pull/80449 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Motorola MotoG60 / Android 12 (Hybrid app) App Component: Workspace Settings
Action Performed:
Prerequisite: User is owner of a "Control" workspace. Prerequisite 2: Workspace has "Approvals" enabled.
- Open the Expensify app.
- Navigate to "Workspaces" > Workspace > "Workflows"
- Turn off internet connection.
- Scroll down to "Approvals" and tap on "Add approval workflows"
- On "Expenses From" select any user > "Next"
- Select any user as approver.
- On "Approval limit" page, note that "Next" button is overlapped by offline indicator.
- Tap on "Skip"
- Note that "Add Workflow" button is overlapped by offline indicator.
Expected Result:
Buttons during "Add approval workflow" should not be displayed behind the offline indicator.
Actual Result:
"Next" and "Add Approval" buttons are overlapped by offline indicator during "Add Approval" Workflow.
Workaround:
Unknown
Platforms:
- [x] Android: App
- [ ] Android: mWeb Chrome
- [ ] iOS: App
- [ ] iOS: mWeb Safari
- [ ] iOS: mWeb Chrome
- [ ] Windows: Chrome
- [ ] MacOS: Chrome Safari
Screenshots/Videos
https://github.com/user-attachments/assets/3e546c48-8f0e-4d5e-add0-d904958e70c3
Applause Internal Information Exported by: Rizky Gunawan Bug ID: 7181655
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022066721283969960073
- Upwork Job ID: 2066721283969960073
- Last Price Increase: 2026-07-07
While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/b0b81a88b4e7a85652eb03f898b7f07326d01ca18c91608c3bd4672e0e2ba5ab
Proposal
Please re-state the problem that we are trying to solve in this issue.
In the Workspace > Workflows > Approvals > Add approval workflow flow, when the device is offline the bottom action buttons get overlapped by the sticky offline indicator on two screens:
- Approval limit page — the
Nextbutton is covered. - Add workflow page — the
Add workflowbutton is covered.
What is the root cause of that problem?
These two screens hand-roll their footer button in a plain <View> styled by useBottomSafeSafeAreaPaddingStyle, instead of using the canonical FixedFooter component that every non-overlapping screen in this same flow uses. The hand-rolled approach is fragile and diverges from the proven pattern:
- Approval limit — the button container is a
<View style={buttonContainerStyle}>placed as a sibling after the<ScrollView>, wherebuttonContainerStylecomes fromuseBottomSafeSafeAreaPaddingStyle(...):WorkspaceWorkflowsApprovalsApprovalLimitPage.tsx:294-309. - Add workflow —
FormAlertWithSubmitButtonreceivescontainerStyles={submitButtonContainerStyles}from the same hand-rolled hook call:WorkspaceWorkflowsApprovalsCreatePage.tsx:87-95.
By contrast, the screens in the same flow that do NOT overlap (e.g. "Expenses from" / approver selection) render their footer through SelectionList's footerContent, which routes through FixedFooter — see WorkspaceWorkflowsApprovalsExpensesFromPage.tsx:499.
Why the hand-rolled version is fragile (evidence)
The reserved space below the button depends on the offline-indicator safe-area value coming from ScreenWrapperOfflineIndicatorContext (useBottomSafeSafeAreaPaddingStyle.ts:42,52-54). The hook only adds CONST.OFFLINE_INDICATOR_HEIGHT (25px, CONST/index.ts:7850) when isOffline && isOfflineIndicatorSafeAreaPaddingEnabled is true. That flag is resolved at runtime in ScreenWrapper/index.tsx:148-167 from isInNarrowPane / isSmallScreenWidth, and the indicator itself sticks to the bottom (styles.stickToBottom, absolute bottom: 0) in ScreenWrapperOfflineIndicators.tsx:95,122, with a soft-key-vs-gesture-nav branch (:56,84) that changes whether the offset is applied as bottom or paddingBottom.
FixedFooter centralizes all of this (additionalPaddingBottom: styles.pb5.paddingBottom, the sticky-vs-padding branch) so it stays correct across platforms; the two hand-rolled footers re-implement only part of it and miss the device-specific (Android soft-key) case the report hit. The bug is reported only on Android Hybrid (Motorola MotoG60 / Android 12), which is consistent with a soft-key navigation-bar layout difference the hand-rolled footer does not account for.
What changes do you think we should make in order to solve the problem?
Replace the hand-rolled footer containers on both screens with the canonical FixedFooter addBottomSafeAreaPadding, matching the sibling pages that already render correctly:
WorkspaceWorkflowsApprovalsApprovalLimitPage.tsx— remove thebuttonContainerStylehook call and wrap theSkip/Nextbuttons in<FixedFooter addBottomSafeAreaPadding>.WorkspaceWorkflowsApprovalsCreatePage.tsx— removesubmitButtonContainerStylesand wrapFormAlertWithSubmitButtonin<FixedFooter addBottomSafeAreaPadding>(drop thecontainerStylesprop).- Apply the same change to
WorkspaceWorkflowsApprovalsEditPage.tsx:159,202for consistency, since it uses the identical hand-rolled pattern and is likely affected too.
After the change, verify offline on an Android device with soft-key navigation that the Next / Add workflow / Save buttons sit fully above the offline indicator.
What alternative solutions did you explore?
Keeping the hand-rolled <View> and instead passing an explicit additionalPaddingBottom / correcting styleProperty for the soft-key case — rejected because it duplicates logic FixedFooter already owns and would drift again. Migrating to FixedFooter removes the divergence at the source.
Note on confidence (medium): I'm confident about the affected files and that they diverge from the proven FixedFooter pattern used by the non-overlapping sibling pages. The exact pixel mechanism is Android-soft-key specific and I could not reproduce it from static analysis alone, so the fix should be verified on an Android device before merge.
Next Steps for Contributor+ team:
To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/93653) to create a draft PR.
To refine: @MelvinBot <your feedback>
To reject: Explain why you are rejecting Melvin's proposal.
Proposal
Please re-state the problem that we are trying to solve in this issue.
On Android, while creating an approval workflow offline, the bottom action buttons on the "Approval limit" page ("Next" / "Skip") and the create page ("Add approval") are rendered behind the "You appear to be offline" indicator instead of sitting above it. The indicator overlaps and partially hides the buttons, so the footer is not fully tappable/visible during the "Add approval workflow" flow.
What is the root cause of that problem?
In edge-to-edge mode the offline indicator is not part of the normal layout flow — it is rendered absolutely. ScreenWrapper enables shouldMobileOfflineIndicatorStickToBottom by default whenever enableEdgeToEdgeBottomSafeAreaPadding is set, and ScreenWrapperOfflineIndicators then wraps the OfflineIndicator in a container styled with styles.stickToBottom (position: 'absolute', bottom: 0, left: 0, right: 0). Because it is absolutely positioned, it does not push footer content up — it floats on top of whatever is at the bottom of the screen. The only way a footer avoids the overlap is to reserve CONST.OFFLINE_INDICATOR_HEIGHT (25px) of bottom padding for itself.
https://github.com/Expensify/App/blob/e6d12ef6495825fde703d57519d4a75ce1005c35/src/components/ScreenWrapper/ScreenWrapperOfflineIndicators.tsx#L119-L126
That reservation only happens when a footer requests the offline-indicator-aware padding via useBottomSafeSafeAreaPaddingStyle, which adds the 25px only when addOfflineIndicatorBottomSafeAreaPadding && isOffline && isOfflineIndicatorSafeAreaPaddingEnabled. The working sibling screen, "Expenses from" (WorkspaceWorkflowsApprovalsExpensesFromPage), renders its "Next" button through ApproverSelectionList → SelectionList → Footer, which uses FixedFooter with addBottomSafeAreaPadding. FixedFooter passes that through to useBottomSafeSafeAreaPaddingStyle, so its button correctly reserves the offline-indicator height and never overlaps — which is exactly why steps 5–6 don't reproduce but steps 7 and 9 do.
The two broken screens don't go through FixedFooter. They build a hand-rolled footer: a plain <View> whose padding comes from useBottomSafeSafeAreaPaddingStyle({addBottomSafeAreaPadding: true, style: [styles.mh5, styles.mb5]}), with the Button / FormAlertWithSubmitButton placed inside. This footer sits as a sibling after the scrollable content, pinned to the bottom of the edge-to-edge screen, in the same band the absolutely-positioned offline indicator occupies — but it does not reliably reserve the extra 25px of offline-indicator space, so the indicator paints over the buttons.
https://github.com/Expensify/App/blob/e6d12ef6495825fde703d57519d4a75ce1005c35/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApprovalLimitPage.tsx#L177-L177
This is the same class of bug fixed in AttachmentModalBaseContent (commit 3e26a9c161, "the You appear to be offline message overlaps the Send button"), where a footer that only reserved the safe-area inset was switched to useBottomSafeSafeAreaPaddingStyle({addBottomSafeAreaPadding: true, addOfflineIndicatorBottomSafeAreaPadding: true}).
What changes do you think we should make in order to solve the problem?
Make the two hand-rolled footers reserve the offline-indicator height the same way FixedFooter (and the precedent AttachmentModalBaseContent fix) do, by explicitly opting into the offline-indicator-aware padding. In WorkspaceWorkflowsApprovalsApprovalLimitPage change the footer container style, and apply the identical change to submitButtonContainerStyles in WorkspaceWorkflowsApprovalsCreatePage:
const buttonContainerStyle = useBottomSafeSafeAreaPaddingStyle({
addBottomSafeAreaPadding: true,
addOfflineIndicatorBottomSafeAreaPadding: true,
style: [styles.mh5, styles.mb5],
});
This adds CONST.OFFLINE_INDICATOR_HEIGHT to the footer's paddingBottom while offline (and only while offline, since the hook gates it on isOffline), pushing the buttons above the absolutely-positioned indicator. It is safe because the offline-indicator branch in useBottomSafeSafeAreaPaddingStyle is no-op when online and when the screen's ScreenWrapperOfflineIndicatorContext has addSafeAreaPadding disabled, so it can't add stray padding on other layouts or platforms. The change is local to these two screens and mirrors exactly how the already-correct "Expenses from" footer behaves. The "Approver" page (step 6) renders no footer button at all, so it is unaffected.
What alternative solutions did you explore? (Optional)
Wrapping these footers in FixedFooter (the component SelectionList already uses) instead of a raw <View> — this is arguably the most consistent option, but it changes the footer's horizontal padding and margins and touches more markup; explicitly enabling addOfflineIndicatorBottomSafeAreaPadding on the existing hook call is the minimal change that matches the established precedent fix.
Proposal
What is the root cause of that problem?
Both screens in the "Add approval workflow" flow render their action button as a normal in-flow child of ScreenWrapper, and neither supplies the bottomContent prop.
On the Approval limit page the Skip/Next buttons are a plain <View> sibling placed after the ScrollView:
https://github.com/Expensify/App/blob/7af4b0e5ee70a0fc66b7c5458ebe1d664fb4b126/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApprovalLimitPage.tsx#L294-L309
and on the Create page the "Add workflow" submit button is the same:
https://github.com/Expensify/App/blob/7af4b0e5ee70a0fc66b7c5458ebe1d664fb4b126/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsCreatePage.tsx#L87-L96
Because no bottomContent is supplied and these screens run in edge-to-edge mode, ScreenWrapper keeps the mobile offline indicator sticky:
https://github.com/Expensify/App/blob/7af4b0e5ee70a0fc66b7c5458ebe1d664fb4b126/src/components/ScreenWrapper/index.tsx#L170
displayStickySmallScreenOfflineIndicator = shouldSmallScreenOfflineIndicatorStickToBottom && !bottomContent. With no bottomContent, that resolves to true, so ScreenWrapperOfflineIndicators wraps the indicator in a styles.stickToBottom container (position: absolute; bottom: 0). An absolutely-positioned indicator does not push the footer up — it floats over whatever is at the bottom, landing on top of the buttons when offline.
The sibling Expenses-from / Approver pages don't hit this because their button is rendered through SelectionList → FixedFooter, which reserves the offline-indicator height, so their footer never collides with the indicator.
What changes do you think we should make in order to solve the problem?
Pass the footer button block to ScreenWrapper's bottomContent prop instead of rendering it as an in-flow child. Once bottomContent is set, displayStickySmallScreenOfflineIndicator becomes false, so the indicator is rendered non-sticky, in normal flow, directly above the footer (the same way the offline indicator sits above the bottom tab bar on the tab screens). The footer itself is rendered by ScreenWrapperContainer in its own bottom-docked <View> that already gets the bottom safe-area padding:
https://github.com/Expensify/App/blob/7af4b0e5ee70a0fc66b7c5458ebe1d664fb4b126/src/components/ScreenWrapper/ScreenWrapperContainer.tsx#L243
So the buttons keep correct safe-area spacing on both gesture-nav and soft-key (the reported MotoG60) devices, and the indicator no longer overlaps them.
Two important details so this doesn't regress:
- Guard the
bottomContentagainst the blocking/loading states. Today the buttons live insideFullPageNotFoundView, which replaces its children with the blocking view whenshouldShowis true:
https://github.com/Expensify/App/blob/7af4b0e5ee70a0fc66b7c5458ebe1d664fb4b126/src/components/BlockingViews/FullPageNotFoundView.tsx#L89-L121
bottomContent lives on ScreenWrapper, outside FullPageNotFoundView, so if we move the footer there unconditionally it would also appear on the "not found"/not-authorized page. Pass it conditionally:
- Approval limit page:
bottomContent={shouldShowNotFoundView ? undefined : <View style={buttonContainerStyle}>…</View>}. - Create page: only when the editor is shown, i.e.
bottomContent={!shouldShowNotFoundView && !!approvalWorkflow ? <FormAlertWithSubmitButton … /> : undefined}(it is currently gated on!!approvalWorkflow, so the loadingActivityIndicatorbranch must not get a footer either).
- Avoid double bottom padding.
ScreenWrapperContaineralready applies bottom safe-area padding to thebottomContentwrapper, so reduce the inner container to its margins only ([styles.mh5, styles.mb5]) and drop theaddBottomSafeAreaPaddingfrom theuseBottomSafeSafeAreaPaddingStylecall (Approval limit page) /containerStyles(Create page) to prevent stacking the safe-area inset twice.
What alternative solutions did you explore? (Optional)
- Migrate both footers to
FixedFooter addBottomSafeAreaPadding(the component the working sibling pages reach throughSelectionList). This is idiomatic and would also fix it, but it changes the footer's horizontal padding/margins and touches more markup than routing the existing block throughbottomContent. - Keep the hand-rolled
<View>and addaddOfflineIndicatorBottomSafeAreaPadding: trueto theuseBottomSafeSafeAreaPaddingStylecall so the footer reservesCONST.OFFLINE_INDICATOR_HEIGHTwhile offline. This leaves the indicator sticky/absolute and only pads the footer out from under it; it works but keeps the footer outsideScreenWrapper's footer slot and relies on the offline-only padding branch rather than lettingScreenWrapperown footer placement. - Set
shouldMobileOfflineIndicatorStickToBottom={false}while leaving the buttons as in-flow children. This drops the sticky indicator without moving the footer, but on soft-key devices the indicator container'sbottomsafe-area offset is applied to a non-absolute element and is ignored, so it risks sitting flush against the soft-key navigation bar on the exact device reported — rejected for that reason.
Using bottomContent is preferable because ScreenWrapper then owns both the footer's safe-area padding and the indicator's (non-overlapping) placement, with the device-specific soft-key handling already centralized in ScreenWrapperContainer.
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
Job added to Upwork: https://www.upwork.com/jobs/~022066721283969960073
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
⚠️ @lorretheboy Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).
⚠️ @ahmdshrif Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
⚠️ @wildan-m Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
⚠️ @moxw Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
⚠️ @ReaperOAK Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
⚠️ @joneshipit Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
⚠️ @aswin-s Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
Corrected the mechanism (with bottomContent the indicator becomes non-sticky and renders above the footer like the bottom-tab screens — it is not drawn "below" the buttons and extraContent is only a flag, not the rendered footer) and added the missing guard so the footer isn't pushed outside FullPageNotFoundView and shown on the blocking/loading view.