Skip to content

Remove the walletConnectionStatus beta - #99754

Merged
Gonals merged 3 commits into
Expensify:mainfrom
marufsharifi:feat/remove-wallet-connection-status-beta
Sep 2, 2026
Merged

Gonals merged 3 commits into
Expensify:mainfrom
marufsharifi:feat/remove-wallet-connection-status-beta

Conversation

@marufsharifi

@marufsharifi marufsharifi commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

The connection status and last sync feature is ready for release, so this removes the walletConnectionStatus beta gate. Bank account and card connection statuses are now shown to everyone on the Wallet page and on Workspace > Workflows.

The shouldShowConnectionStatus prop on PaymentMethodList is intentionally kept. The issue scopes these statuses to the Wallet and Workflows pages, but PaymentMethodList is also rendered by WorkspaceInvoiceVBASection and ConnectExistingBusinessBankAccountPage, which rely on the prop's false default. Removing the prop would show the statuses on those two screens as well, which is out of scope here.

Fixed Issues

$ #91300
PROPOSAL:

Tests

  1. Sign in as an admin of a workspace with a business bank account that has not finished setup.
  2. Open Workspace > Workflows > Payments and verify the payment account row shows an Incomplete badge and the Finish adding bank account message with a Finish button.
  3. Click Finish and verify the bank account setup flow opens.
  4. Open Settings > Wallet and verify bank accounts show a status badge, and assigned company cards show a status badge and the date they were last synced.
  5. Open Workspace > Invoices and verify no status badge or message appears on any account in the Bank accounts list.
  6. Open the bank account picker from Workflows > Payments and verify no status badge or message appears on any account in the list.
  • Verify that no errors appear in the JS console

Offline tests

QA Steps

// TODO: These must be filled out, or the issue title must include "[No QA]."

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-08-28.at.6.41.33.PM.mov
Screen.Recording.2026-08-28.at.6.38.01.PM.mov

@melvin-bot
melvin-bot Bot requested review from mkhutornyi and removed request for a team August 28, 2026 14:13
@melvin-bot

melvin-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

@mkhutornyi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot requested review from garrettmknight and removed request for a team August 28, 2026 14:14
@mkhutornyi

mkhutornyi commented Aug 28, 2026 •

Copy link
Copy Markdown

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
Screen.Recording.2026-08-28.at.3.25.23.PM.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-08-28.at.3.23.06.PM.mov

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: a9a01075a2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@melvin-bot
melvin-bot Bot requested a review from Gonals August 28, 2026 14:48
@MelvinBot

Copy link
Copy Markdown
Contributor

Review: LGTM ✅

Clean, well-scoped removal of the walletConnectionStatus beta gate. The connection-status feature is now unconditionally on for the Wallet page and Workspace > Workflows > Payments, and I couldn't find anything to block on.

Code review

  • Beta constant removed from src/CONST/index.ts with no leftover references anywhere in src/tests (grepped WALLET_CONNECTION_STATUS, walletConnectionStatus, shouldShowWalletConnectionStatus, isWalletConnectionStatusBetaEnabled — all clean).
  • Dead code correctly cleaned up in WorkflowsPaymentsTab.tsx: the legacy getBadgeText helper, the DotIndicator icon (now only ['Plus']), the usePermissions import, and both ternary branches are gone — collapsed to the beta-enabled path, which is behavior-preserving.
  • usePermissions / isBetaEnabled fully removed from both pages; no orphaned imports.
  • The decision to keep the shouldShowConnectionStatus prop on PaymentMethodList (so WorkspaceInvoiceVBASection and ConnectExistingBusinessBankAccountPage keep the false default) is the right call and matches the issue scope — I verified those two usages don't pass the prop.

Web testing — result: partial (feature UI couldn't be seeded live, but all reachable pages render error-free and the wiring was confirmed in source). The test account had no bank accounts / assigned company cards / unfinished bank-account setup, so the badge and "Incomplete" states couldn't be triggered directly; empty states all rendered correctly with no console/network errors.

Step Status Observation
Settings > Wallet loads; badges/last-synced for accounts ✅ pass Page renders (Bank accounts + Cards sections), no errors; shouldShowConnectionStatus now passed unconditionally. Sections empty on this account so badge UI not exercised live
Workflows > Payments row; Incomplete badge for unfinished bank account ⚠️ partial Payments section renders correctly; no unfinished bank account existed to surface the Incomplete badge/Finish button, but getIncompleteBankAccountStatus → getBankAccountConnectionStatus wiring confirmed in source
Workspace > Invoices — no status badge on Bank accounts list ✅ pass No badge/message; confirmed the invoices PaymentMethodList usage does not pass shouldShowConnectionStatus
No JS console errors during navigation ⚠️ partial web driver has no console-capture verb; network dump showed all requests 200, no error UI across all flows

Human QA should still exercise the live badge / "Incomplete" / last-synced states with a workspace that has a business bank account mid-setup and assigned company cards, since that account state can't be seeded here.

Screenshots

Settings > Wallet page renders without errors after beta removal

Settings > Wallet page renders without errors after beta removal

Workspace > Workflows > Payments section renders correctly

Workspace > Workflows > Payments section renders correctly

view run

@MelvinBot

Copy link
Copy Markdown
Contributor

Regression hunt: none found ✅

I looked for bugs introduced by making the walletConnectionStatus code paths universal (they were already live for beta users). Every behavior change I found is exactly the intended connection-status feature — no new regressions. Two visible-but-intended UX changes are worth a quick product/design confirm for GA (below).

What I checked and why each is safe

Beta removal is complete & consistent — zero remaining references to WALLET_CONNECTION_STATUS / walletConnectionStatus anywhere in src, tests, or .github. Only WalletPage passes shouldShowConnectionStatus (now true); the other two PaymentMethodList callers (ConnectExistingBusinessBankAccountPage.tsx:134 and WorkspaceInvoiceVBASection.tsx:267) keep the false default and are unchanged.

Bank-account row interactivity — new onPress uses canInteractWithBankAccountRow (canWritePayments && !isOffline && !isBankAccountPendingDelete). This is a strict subset of the old canWritePayments gate — no user gains an action they didn't have. The only real delta (blocking taps on a pending-delete row) matches the old beta path and is correct. Offline was already disabled before via the disabled prop.

Badge coverage — the removed getBadgeText only produced SETUP ("Action required") and LOCKED ("Locked"); both are covered by getBankAccountConnectionStatus (SETUP→incomplete, LOCKED→locked). The new path is a superset (also OPEN/PENDING/VERIFYING) — no state loses its badge.

Card grouping change — with shouldShowConnectionStatus=true, same-domain Expensify cards no longer collapse into one row (PaymentMethodList.tsx:457); each renders individually with a last-sync line. Errors/brick-road indicators are preserved per-card (not lost), keys are per-cardID (no collision), and no downstream logic assumes one-row-per-domain. Non-Expensify cards continue before this block, so only Expensify domain cards are affected.

Worth a GA sign-off (intended, not bugs): all users — not just beta — will now see (1) an "Active" badge on open bank accounts, and (2) individual Expensify domain cards instead of a collapsed group. Both are the feature working as designed; just confirm design/product signed off on them going wide.

Live smoke test: the browser run this time got derailed into the in-app "Take a test drive" demo overlay before reaching the pages, so it couldn't complete. However, an earlier live pass on this same PR rendered Settings > Wallet, Workspace > Workflows > Payments, and Workspace > Invoices with no crashes, broken layout, or failed network requests. Given the account can't seed a bank-account-mid-setup or assigned company cards, human QA should still exercise the live SETUP / PENDING / LOCKED badge states and the card last-sync UI.


view run

@garrettmknight
garrettmknight removed their request for review August 28, 2026 16:10
@melvin-bot

melvin-bot Bot commented Aug 29, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running:

npx bun ./scripts/generateTranslations.ts --help

Typically, you'd want to translate only what you changed by running npx bun ./scripts/generateTranslations.ts --compare-ref main

@marufsharifi

Copy link
Copy Markdown
Contributor Author

@Gonals all yours, thanks!

@trjExpensify

Copy link
Copy Markdown
Contributor

Bump @Gonals.

@Gonals
Gonals merged commit 4dbbd13 into Expensify:main Sep 2, 2026
36 of 38 checks passed
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚧 Gonals has triggered a test Expensify/App build. You can view the workflow run here.

@m-natarajan

Copy link
Copy Markdown

@Gonals @marufsharifi No QA steps, Do we have to validate Test section steps or NO QA?

@OSBotify

OSBotify commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/Gonals in version: 9.4.69-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 Yes — help site changes are required. Draft PR: #100232

This PR made connection statuses generally available and deleted the common.actionRequired copy from every language file, so the Action required badge no longer exists anywhere in the product. Three help articles still tell members to look for it.

What I changed

New article — Check-Bank-Account-and-Card-Connection-Status.md, covering every bank account badge (Active, Incomplete, Pending, Verifying, Locked) and card badge (Active, Inactive), the message and action button under each row, and the Synced [time] / Never synced line on card rows.

Corrected stale copy — Validate-a-Business-Bank-Account.md, Connect-a-Business-Bank-Account.md, and Share-a-Business-Bank-Account.md all pointed at the retired Action required badge. They now name the badge and message members actually see.

Documented the now-GA behavior — added the payment account status badge to Workspace-Workflows.md, card statuses and sync times to Manage-Personal-Cards.md, the Wallet-side view of a broken feed to Fix-a-Broken-Company-Card-Feed-Connection.md, and real badge names to Set-up-your-wallet.md.

Where each label came from

Badge, message, and action labels are taken verbatim from src/languages/en.ts:2755-2776 and the mappings in src/libs/BankAccountUtils.ts:89-127 and src/libs/CardUtils.ts:1436-1476.

Section and button names were confirmed against the live web UI: Bank accounts and Cards on Settings > Wallet; Submissions, Approvals, Payments, Advanced and the Add bank account row on Workflows. That last one caught a second error — Workspace-Workflows.md said Connect Bank Account, which does not match the UI. The badges themselves could not be observed live, because the test account has no connected bank accounts or cards.

Two things I could not fix and flagged in the docs PR instead:

  • ExpensifyHelp-BetterBusinessBankAccount_02.png and _03.png still show the retired Action required badge. I updated the alt text and left a screenshot request comment; the images need recapturing.
  • I assumed a shared US business bank account lands in the Pending state (test transactions outstanding) rather than Incomplete. Worth confirming.

Checks run on the docs branch: npm run createDocsRoutes (no route changes needed), npm run spell-changed (8 files, 0 issues), npm run lint-changed (no lintable files).

@marufsharifi, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review


view run

@mkhutornyi

Copy link
Copy Markdown

No QA steps, Do we have to validate Test section steps or NO QA?

@m-natarajan you can validate Test section steps

@OSBotify

OSBotify commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/francoisl in version: 9.4.69-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

style={[styles.mt5, [shouldUseNarrowLayout ? styles.mhn5 : styles.mhn8]]}
listItemStyle={shouldUseNarrowLayout ? styles.ph5 : styles.ph8}
shouldShowConnectionStatus={shouldShowWalletConnectionStatus}
shouldShowConnectionStatus

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hardcoded shouldShowConnectionStatus broke PaymentMethodList's combo-card grouping, which only merges same-domain Expensify Cards into one row when !shouldShowConnectionStatus — removing the beta made that guard permanently false, so legacy combo cards (paired physical + virtual) started rendering as two duplicate rows. Fixed in #103199 by dropping the !shouldShowConnectionStatus check from the merge condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants