Skip to content

Add isLoading guard to onboarding pages to prevent duplicate tasks - #89991

Merged
Gonals merged 16 commits into
mainfrom
claude-onboardingDuplicateTaskGuard
Jun 22, 2026
Merged

Gonals merged 16 commits into
mainfrom
claude-onboardingDuplicateTaskGuard

Conversation

@MelvinBot

@MelvinBot MelvinBot commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

During onboarding, clicking "Continue" multiple times (after FormProvider's 1-second debounce window) fires completeOnboarding repeatedly, and each call generates fresh optimistic task IDs via prepareOnboardingOnyxData — producing duplicate tasks in Concierge.

This adds an isLoading state guard to the three onboarding pages that call completeOnboarding without one:

  • BaseOnboardingPersonalDetails — adds isLoading state and passes it to FormProvider
  • BaseOnboardingPurpose — adds isLoading state to guard the onPress handlers
  • BaseOnboardingWorkspaceOptional — adds isLoading state to guard both completeOnboarding and createWorkspaceAndCompleteOnboarding, and passes it to the Skip and Create Workspace buttons

This matches the existing pattern in BaseOnboardingInterestedFeatures, which already has this guard.

Fixed Issues

$ #89904
PROPOSAL: #89904 (comment)

Tests

  1. Open https://staging.new.expensify.com/
  2. Enter an email that hasn’t been registered yet and click Join
  3. On the ‘What do you want to do today?’ screen, select ‘Track expenses’
  4. Enter any name
  5. Click the Continue button two, three, or four times
  6. In the Inbox, open the Concierge chat
  7. Verify that the task is not duplicated
  8. Log out and repeat steps 1–6 if the task does not appear duplicated on the first attempt
  • Verify that no errors appear in the JS console

Offline tests

  1. Turn off your network connection.
  2. Go through the onboarding flow and rapidly click Continue / Skip / Create workspace on each page.
  3. Verify only a single set of optimistic onboarding tasks is created and no duplicates appear while offline.

QA Steps

  1. Open https://staging.new.expensify.com/
  2. Enter an email that hasn’t been registered yet and click Join
  3. On the ‘What do you want to do today?’ screen, select ‘Track expenses’
  4. Enter any name
  5. Click the Continue button two, three, or four times
  6. In the Inbox, open the Concierge chat
  7. Verify that the task is not duplicated
  8. Log out and repeat steps 1–6 if the task does not appear duplicated on the first attempt
  • 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 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 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 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 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: HybridApp
Screen.Recording.2026-06-03.at.16.23.28.mov
Android: mWeb Chrome
Screen.Recording.2026-06-03.at.16.34.09.mov
iOS: HybridApp
Screen.Recording.2026-06-03.at.16.34.09.mov
iOS: mWeb Safari
Screen.Recording.2026-06-03.at.16.23.28.mov
MacOS: Chrome / Safari
Screen.Recording.2026-06-03.at.16.22.35.mov
AI Tests
  • lint-changed: passed
  • typecheck-tsgo: passed (pre-existing errors in unrelated files only)
  • onboarding tests (12 suites, 147 tests): all passed

…ation

When clicking Continue multiple times during onboarding, each click
fires completeOnboarding with fresh optimistic task IDs, creating
duplicate tasks in Concierge. Add isLoading state to
BaseOnboardingPersonalDetails, BaseOnboardingPurpose, and
BaseOnboardingWorkspaceOptional, matching the existing pattern in
BaseOnboardingInterestedFeatures.

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@codecov

codecov Bot commented May 8, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
src/hooks/useAutoCreateSubmitWorkspace.ts 90.90% <66.66%> (-9.10%) ⬇️
...gPersonalDetails/BaseOnboardingPersonalDetails.tsx 87.75% <42.85%> (-2.57%) ⬇️
... and 12 files with indirect coverage changes

@linhvovan29546

Copy link
Copy Markdown
Contributor

@MelvinBot Please recheck this change to ensure it matches BaseOnboardingInterestedFeatures. In BaseOnboardingInterestedFeatures, we added async/await for completeOnboarding. And reset loading after complete onboarding

@linhvovan29546

Copy link
Copy Markdown
Contributor

@MelvinBot Also please resolve conflict

Match the pattern from BaseOnboardingInterestedFeatures:
- Make completeOnboarding calls async with await
- Add try/catch/finally to reset isLoading after completion
- Add Log.warn for error cases

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Updated all three files to match the BaseOnboardingInterestedFeatures pattern:

  • async/await for completeOnboarding / completeOnboardingReport calls
  • try/catch/finally with setIsLoading(false) in the finally block to reset loading state
  • Log.warn in catch blocks for error visibility

Changes per file:

  • BaseOnboardingPersonalDetails: local completeOnboarding is now async with await completeOnboardingReport(...) + try/catch/finally
  • BaseOnboardingPurpose: onPress handler is now async with await completeOnboarding(...) + try/catch/finally
  • BaseOnboardingWorkspaceOptional: both completeOnboarding and createWorkspaceAndCompleteOnboarding are now async with await + try/catch/finally

…icateTaskGuard

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>

# Conflicts:
#	src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx
#	src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx
#	src/pages/OnboardingWorkspaceOptional/BaseOnboardingWorkspaceOptional.tsx
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Resolved merge conflicts with main. The conflicts were in all three onboarding files where main replaced CONST.ONBOARDING_CHOICES.PERSONAL_SPEND checks with isTrackOnboardingChoice() and updated the engagementChoice variable in createWorkspaceAndCompleteOnboarding. Both sets of changes are now combined.

Replace try/catch/finally with try/catch, placing setIsLoading(false)
in both the success path and catch block. React Compiler cannot handle
TryStatement with a finalizer clause.

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Fixed the failing React Compiler Compliance check: replaced try/catch/finally with try/catch (duplicating setIsLoading(false) in both the success path and catch block) in all three onboarding files. React Compiler cannot handle TryStatement with a finally clause.

@linhvovan29546

Copy link
Copy Markdown
Contributor

@MelvinBot Resolve conflict and mark PR as "Ready for review"

Resolve conflicts: keep async/await + try/catch pattern from PR,
adopt main's removal of betas parameter from onboarding calls.

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@MelvinBot
MelvinBot marked this pull request as ready for review May 21, 2026 07:37
@MelvinBot
MelvinBot requested a review from a team as a code owner May 21, 2026 07:37
@melvin-bot
melvin-bot Bot requested review from heyjennahay and linhvovan29546 and removed request for a team May 21, 2026 07:37
@melvin-bot

melvin-bot Bot commented May 21, 2026

Copy link
Copy Markdown

@linhvovan29546 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]

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Resolved merge conflicts and marked as ready for review.

Conflicts resolved in 3 files — kept the async/await + try/catch pattern from this PR, adopted main's removal of the betas parameter from onboarding calls:

  • BaseOnboardingPersonalDetails.tsx
  • BaseOnboardingPurpose.tsx
  • BaseOnboardingWorkspaceOptional.tsx

@MelvinBot

Copy link
Copy Markdown
Contributor Author

⚠️ MelvinBot CI Fix Loop Detected

MelvinBot has made 5 consecutive commits trying to fix CI failures. Automatic CI fix dispatches are now paused for this PR.

Next steps: A human should review the recent commits and resolve the conflicting CI errors manually.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ddef3b135b

ℹ️ 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".

return;
}

setIsLoading(true);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clear loading state when purpose is unset before submit

handleSubmit now sets isLoading to true before calling completeOnboarding, but completeOnboarding immediately returns when onboardingPurposeSelected is falsy. In that state (which can happen if the page is reached via direct navigation/rehydration without a selected purpose), the loading flag is never reset, so the form stays stuck in loading and Continue cannot be pressed again without a reload.

Useful? React with 👍 / 👎.

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.

@MelvinBot Please address this. I think we can move setIsLoading to completeOnboarding.

@MelvinBot MelvinBot May 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — moved setIsLoading(true) into the completeOnboarding callback (after the guards), matching the existing pattern in BaseOnboardingWorkspaceOptional. Also added isLoading to the guard and dependency array. The track onboarding path in handleSubmit keeps its own setIsLoading(true) since it does not go through this callback.

Moves setIsLoading(true) from handleSubmit into the completeOnboarding
useCallback, after the guard checks. This prevents isLoading from being
set when completeOnboarding returns early (e.g. when
onboardingPurposeSelected is falsy), which would leave the form stuck
in a loading state.

Matches the existing pattern in BaseOnboardingWorkspaceOptional.

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team as a code owner May 21, 2026 08:05
@melvin-bot
melvin-bot Bot requested a review from Gonals May 21, 2026 08:05
@melvin-bot

melvin-bot Bot commented May 21, 2026

Copy link
Copy Markdown

@Gonals 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 removed the request for review from a team May 21, 2026 08:05
@linhvovan29546

Copy link
Copy Markdown
Contributor

I left "I included screenshots or videos for tests on all platforms" unchecked, because the Screenshots/Videos section in the description is still empty — checking that box would assert media is included when it isn't. If you'd like it checked, add the screenshots/videos to that section (or let me know if you'd like me to mark it anyway).

@MelvinBot I’ve verified these separately, so you can mark the checkboxes as completed.

@linhvovan29546

Copy link
Copy Markdown
Contributor

@MelvinBot Please make the PR ready for review

@MelvinBot
MelvinBot marked this pull request as ready for review June 3, 2026 13:24
@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 This PR is now marked Ready for review.

);
setIsLoading(false);
} catch (error) {
Log.warn('[BaseOnboardingPersonalDetails] Error completing onboarding', {error});

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.

❌ CONSISTENCY-3 (docs)

setIsLoading(false) is duplicated in both the try and catch blocks. This can be consolidated using a finally block to avoid duplication and ensure the loading state is always reset regardless of the outcome.

try {
    await completeOnboardingReport({...});
    setOnboardingAdminsChatReportID();
    setOnboardingPolicyID();
    navigateAfterOnboardingWithMicrotaskQueue(...);
} catch (error) {
    Log.warn('[BaseOnboardingPersonalDetails] Error completing onboarding', {error});
} finally {
    setIsLoading(false);
}

Reviewed at: 4be7927 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

@Gonals

Gonals commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

@linhvovan29546, what is going on here? The issue does not have a C+ reviewer or an Expensify employee assigned, and the proposal was never approved by an Expensify employee

@linhvovan29546

Copy link
Copy Markdown
Contributor

@linhvovan29546, what is going on here? The issue does not have a C+ reviewer or an Expensify employee assigned, and the proposal was never approved by an Expensify employee

@Gonals Hmm, I’m not sure I understand your question. The process is that a C+ is assigned to the issue. If the C+ agrees with Melvin’s proposal, then Melvin can open the PR.

@Gonals

Gonals commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@linhvovan29546, what is going on here? The issue does not have a C+ reviewer or an Expensify employee assigned, and the proposal was never approved by an Expensify employee

@Gonals Hmm, I’m not sure I understand your question. The process is that a C+ is assigned to the issue. If the C+ agrees with Melvin’s proposal, then Melvin can open the PR.

Can you point at the documentation indicating so? It may be obsolete or a miscommunication, as the process should be the same regardless of whether the proposal comes from a contributor or Melvin, and final approval should be given by an employee before the PR is created.

@linhvovan29546

Copy link
Copy Markdown
Contributor

@Gonals

Gonals commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@Gonals This is documented in the C+ https://docs.google.com/document/d/1BvohU05MTaHnjOD_vwJv_aqDAirv-ChkyRnKCAvOVyQ/edit?tab=t.0#bookmark=id.55p9yuo9cgl

Thanks! We have to update that 😅

We'll go with that approach for this one, since it is our fault the documentation is not up-to-date. Let's resolve conflicts here :)

@linhvovan29546

Copy link
Copy Markdown
Contributor

@MelvinBot Please merge the main branch and resolve conflict

Resolve conflict in BaseOnboardingPersonalDetails.tsx: keep the isLoading
guard/try-catch added by this PR while adopting main's archivedReportsIdSet -> archivedReportsIDSet rename.
@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Merged main and resolved the conflict.

There was one conflict, in src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx, inside completeOnboarding.

Resolution: kept this PR's isLoading guard / try–catch / setIsLoading logic, and adopted main's rename of archivedReportsIdSet → archivedReportsIDSet (the hook is now useArchivedReportsIDSet(), defined at line 50). Both sides still call setOnboardingAdminsChatReportID() / setOnboardingPolicyID(), so those were preserved.

The PR now reports as MERGEABLE.

⚠️ I wasn't able to run Prettier/lint/typecheck locally in this run (the tooling required interactive approval that isn't available here). The change was limited to removing conflict markers and the variable rename — no whitespace or structural changes — so it should be clean, but please rely on CI to confirm.

@linhvovan29546

Copy link
Copy Markdown
Contributor

Let me test the changes in this PR again.

@linhvovan29546

Copy link
Copy Markdown
Contributor

@MelvinBot please change your Author Checklist to this:

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 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 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 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 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: HybridApp
Screen.Recording.2026-06-03.at.16.23.28.mov
Android: mWeb Chrome
Screen.Recording.2026-06-03.at.16.34.09.mov
iOS: HybridApp
Screen.Recording.2026-06-03.at.16.34.09.mov
iOS: mWeb Safari
Screen.Recording.2026-06-03.at.16.23.28.mov
MacOS: Chrome / Safari
Screen.Recording.2026-06-03.at.16.22.35.mov

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Updated the PR description's PR Author Checklist to the version you provided, and replaced the Screenshots/Videos section with your recordings (Android HybridApp, Android mWeb Chrome, iOS HybridApp, iOS mWeb Safari, MacOS).

Everything above the checklist (Explanation, Fixed Issues, Tests, Offline tests, QA Steps) was left byte-for-byte unchanged, and I kept the existing AI Tests results block at the end. Let me know if you'd like that AI Tests block removed.

@Gonals
Gonals merged commit 6640025 into main Jun 22, 2026
38 of 40 checks passed
@Gonals
Gonals deleted the claude-onboardingDuplicateTaskGuard branch June 22, 2026 10:28
@github-actions

Copy link
Copy Markdown
Contributor

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

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

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

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

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 No help site changes required.

This PR is an internal bug fix and does not change any user-facing feature, label, setting, or documented workflow.

What it does: Adds an isLoading guard to the onboarding pages (BaseOnboardingPersonalDetails, plus the useAutoCreateSubmitWorkspace hook) so that rapidly clicking Continue / Skip / Create workspace during onboarding no longer fires completeOnboarding multiple times and creates duplicate Concierge tasks. The user-visible flow, screens, button labels, and outcomes are unchanged — the only difference is that the buttons are now disabled while the request is in flight.

Why no docs update: The help site articles under App/docs/articles document how to use Expensify features and workflows. This change is a debounce/duplicate-prevention safeguard with no impact on any documented behavior, feature name, or UI copy. There is no help article describing the onboarding "Continue" click behavior that this would need to reflect.

Because no changes are required, I have not created a draft help site PR.


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

(Note: no help site PR was created since no documentation changes are required for this internal bug fix. If you believe a docs update is warranted, let me know and I'll create one.)

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀

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

1 similar comment
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀

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

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.

4 participants