Skip to content

[Submit] In-product modal for existing "Get paid back" intent users (Wave 4)#95099

Open
abzokhattab wants to merge 17 commits into
Expensify:mainfrom
abzokhattab:submit-in-product-modal-87912
Open

[Submit] In-product modal for existing "Get paid back" intent users (Wave 4)#95099
abzokhattab wants to merge 17 commits into
Expensify:mainfrom
abzokhattab:submit-in-product-modal-87912

Conversation

@abzokhattab

@abzokhattab abzokhattab commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

Wave 4 of the Submit plan project (#87912). Adds an in-product welcome modal that nudges existing users who previously selected the "Get paid back" (EMPLOYER) onboarding intent but are not an owner or member of any paid workspace to adopt the free Submit plan.

The whole feature is gated behind the SUBMIT_2026 beta and mirrors the existing MigratedUserWelcomeModal architecture: a centered modal in its own navigator, proactively shown by a navigation guard, and dismissed once via the DismissedProductTraining NVP.

Behavior:

  • Get the free plan → records the dismissal and calls useAutoCreateSubmitWorkspace(firstName, lastName), which creates a SUBMIT workspace, completes onboarding (producing the #admins Concierge welcome message), and routes the user to Workspace → Categories with #admins open in the RHP.
  • No thanks / backdrop / ESC → records the dismissal so the modal never reappears.

Trigger conditions (all required): authenticated and app not loading, SUBMIT_2026 beta enabled, introSelected.choice === EMPLOYER, onboarding completed, no paid (Team/Corporate) policy, and not previously dismissed.

Main changes:

  • New SubmitPlanWelcomeModal component, SubmitPlanWelcomeModalNavigator, and SubmitPlanWelcomeModalGuard (registered in guards/index.ts).
  • Navigation scaffolding: SCREENS, NAVIGATORS, ROUTES (submit-plan-welcome dynamic route), navigation param-list types, linkingConfig, and a RootStack.Screen in AuthScreens.
  • New SUBMIT_PLAN_WELCOME_MODAL constant + DismissedProductTraining type entry.
  • Copy added to all 10 language files.
  • Unit test for the guard and UI test for the modal.

Fixed Issues

$ #87912
PROPOSAL:

Tests

  • Enable the SUBMIT_2026 beta for your account.

  • Use an eligible account: chose "Get paid back by my employer" during onboarding, finished onboarding, and is not in any group workspace — either log in with an account that has no workspace, or delete all existing workspaces.

  • Open the app. The "Get paid back, for free" modal should appear automatically.

    • If it doesn't show, clear cache and restart (or re-login) and check again.
  • Tap Get the free plan and verify a Submit workspace is created and you are routed to Workspace → Categories.

  • Reload the app and verify the modal does not appear again.

  • Repeat with another eligible account, tap No thanks (or backdrop / ESC), and verify the modal closes and does not reappear after reload.

  • Verify that no errors appear in the JS console

Offline tests

  1. With an eligible account, go offline.
  2. Verify the modal still renders and is dismissible.
  3. Tap Get the free plan while offline and verify the workspace is created optimistically and the navigation to Categories still occurs; the request syncs when back online.

QA Steps

Same as tests.

  • 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: Native
Android: mWeb Chrome
iOS: Native
Screen.Recording.2026-07-11.at.21.53.45.mov
iOS: mWeb Safari
Screen.Recording.2026-07-11.at.21.56.04.mov
MacOS: Chrome / Safari
Screen.Recording.2026-07-11.at.21.35.10.mov
Screen.Recording.2026-07-11.at.21.51.14.mov

… users

Introduces a guard-triggered, dismiss-once modal (behind the SUBMIT_2026 beta)
for users who previously selected the "Get paid back" (EMPLOYER) onboarding
intent but are not on any paid workspace. "Get the free plan" creates a Submit
workspace via useAutoCreateSubmitWorkspace and routes to Categories with the
#admins room in the RHP; "No thanks" dismisses it permanently via the
DismissedProductTraining NVP.
@melvin-bot

melvin-bot Bot commented Jul 1, 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 ts-node ./scripts/generateTranslations.ts --help

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

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/CONST/index.ts 94.81% <ø> (ø)
src/ONYXKEYS.ts 100.00% <ø> (ø)
src/ROUTES.ts 20.78% <ø> (ø)
src/SCREENS.ts 100.00% <ø> (ø)
src/components/SubmitPlanWelcomeModal.tsx 100.00% <100.00%> (ø)
src/libs/Navigation/AppNavigator/AuthScreens.tsx 82.97% <100.00%> (+0.18%) ⬆️
...ateRootStackNavigator/GetStateForActionHandlers.ts 65.84% <ø> (ø)
src/libs/Navigation/guards/index.ts 100.00% <100.00%> (ø)
src/libs/Navigation/linkingConfig/config.ts 76.92% <ø> (ø)
src/styles/variables.ts 100.00% <ø> (ø)
... and 4 more
... and 22 files with indirect coverage changes

Update the title/intro copy and add the four-item benefits bullet list
("Get reimbursed faster", "Build expense reports in seconds", "Categorize
your expenses", "Invite your boss when you're ready") to match the design
mockup, across all supported languages.
Per the design doc, the modal targets the legacy cohort who selected the
"Get paid back" intent before the Submit workspace existed and are therefore
"not on a workspace". Gate on getGroupPoliciesWhereReportCanBeCreated (paid
Team/Corporate AND free Submit workspaces) instead of only paid policies, so
users who already own a Submit workspace - including anyone who just completed
the EMPLOYER onboarding flow - are excluded. This also removes the transient
NotFound /home flash caused by the guard racing the onboarding navigation.
- Persist "modal shown" via new nvp_submitMigrationModalShown NVP (SetNameValuePair) instead of the product-training NVP, per BE decision
- Skip CompleteGuidedSetup for already-onboarded users so the modal closes immediately on "Get the free plan"
- Use the ReceiptWrangler lasso illustration on a yellow panel to match the design
Add SUBMIT_PLAN_MODAL_NAVIGATOR to MODAL_ROUTES_TO_DISMISS so that
Navigation.dismissModal() actually pops the modal when the user taps
"Get the free plan", instead of leaving it on screen while navigating
to Categories.
@abzokhattab

Copy link
Copy Markdown
Contributor Author

it looks like the backend doesn't preserve the choice value yet ... am i passing the values right? @iwiznia

Screenshot 2026-07-03 at 01 38 12 Screenshot 2026-07-03 at 01 38 27 Screenshot 2026-07-03 at 01 38 31

@abzokhattab

Copy link
Copy Markdown
Contributor Author

also @garrettmknight let me know when the new illustration is ready so that i can use it

@abzokhattab

abzokhattab commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Also, I have another question ... given that a user does the following steps

  1. Sign up with a submit-enabled beta acc
  2. Click on Get Paid by employer --> a new submit workpsace is created
  3. user deletes the current workspace

now should the Get the free plan modal show up since the conditions are satisfied? (the user chose "get paid by employer" + has no workspaces) Or should it only happen on login?

@iwiznia

iwiznia commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

it looks like the backend doesn't preserve the choice value yet ... am i passing the values right? @iwiznia

I'm not sure what I am looking there exactly, if your refer that the NVP is not returned in openapp nor updates are sent to it, that's because it was deployed: 6 hours ago (Jul 3, 2026, 6:33 AM GMT+2)

When the guard proactively opens the modal on boot, the active route can
be a screen that isn't a valid entry screen for the submit-plan-welcome
dynamic route (e.g. /settings/troubleshoot after "Clear cache and
restart"), which made the route resolve to NotFound. Because the modal
never mounted, it also never persisted the "shown" NVP and kept
re-triggering. Fall back to HOME when the active route isn't an allowed
entry screen so the modal renders correctly and records that it was seen.
@abzokhattab

Copy link
Copy Markdown
Contributor Author

@iwiznia thanks! but it still doesn't work even after the deploy .. repro:

  1. click "Get the free plan"
  2. remove the workspace
  3. clear cache and restart
    --> the modal shows up again

i'm setting it via SetNameValuePair with name: nvp_submitMigrationModalShown, value: true -- exact same way as nvp_hasSeenTrackTraining / nvp_dismissedHoldUseExplanation etc, so the payload looks right (screenshot below). but it's not coming back in openapp, so the modal keeps re-triggering.

can you check if it's being persisted/returned on the BE side?

Screen.Recording.2026-07-05.at.12.26.54.mov

@garrettmknight

Copy link
Copy Markdown
Contributor

@abzokhattab illustration has been added here, but hasn't deployed yet.

@abzokhattab

Copy link
Copy Markdown
Contributor Author

great thanks for tackling that ... i will get back on this once this BE is handled #95099 (comment)

@iwiznia

iwiznia commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

i'm setting it via SetNameValuePair with name: nvp_submitMigrationModalShown

That's the problem. The NVPs in onyx are prefixed with nvp_ but the actual NVP name is submitMigrationModalShown, that's what you need to send in the API

The backend NVP is named `submitMigrationModalShown`; the `nvp_` prefix
is an Onyx-key-only convention. Sending the prefixed key as the API name
meant the value was never persisted or returned in OpenApp, so the modal
kept re-triggering. Send the unprefixed name to the API while still
storing the value under the prefixed Onyx key.
…odal-87912

# Conflicts:
#	src/CONST/index.ts
#	src/NAVIGATORS.ts
#	src/ROUTES.ts
#	src/SCREENS.ts
#	src/languages/en.ts
#	src/libs/Navigation/AppNavigator/AuthScreens.tsx
#	src/libs/Navigation/guards/index.ts
#	src/libs/Navigation/linkingConfig/config.ts
#	src/libs/Navigation/types.ts
Coalesce the guard's proactive-navigation decision onto a microtask so it
runs once after the OpenApp Onyx batch fully settles, preventing a
callback-ordering race where a stale hasShownSubmitMigrationModal reopened
the modal for users who already saw it. Data subscriptions now only feed the
cache; the one-shot redirect is driven solely by the app-load/session signal.

Also swaps the modal illustration to ReceiptWranglerSpaceCowgirl with the
correct aspect ratio and inset padding.
Drop the unused shouldShowSubmitPlanWelcomeModal export and add a UI test
asserting setSubmitMigrationModalShown fires when the modal is removed from
the navigation stack.
Gate the submit plan welcome decision on HAS_LOADED_APP so it waits for
OpenApp to deliver this session's account data (including the shown-flag).
This closes the sign-in race where SignInUser authenticates and delivers the
eligibility NVPs before OpenApp fetches nvp_submitMigrationModalShown, which
made the modal reappear for users who had already seen it.

Also removes the debug/info logs from the guard and modal and drops the
onboarding-completion warn log (the catch now swallows with an explanation).
@abzokhattab abzokhattab marked this pull request as ready for review July 11, 2026 20:02
@abzokhattab abzokhattab requested review from a team as code owners July 11, 2026 20:02
@melvin-bot melvin-bot Bot requested review from gijoe0295 and trjExpensify July 11, 2026 20:02
…ayload type guard

- Log.warn in getValidModalBasePath catch for debuggability
- Condense scheduleSubmitPlanWelcomeModalEvaluation doc comment
- Replace unsafe RESET payload cast with isNavigationStatePayload type guard
@github-actions

Copy link
Copy Markdown
Contributor

This PR adds a new Onyx.connectWithoutView call, so I've requested a review from the Onyx performance reviewers (@tgolen, @mountiny, @luacmartins) — a review from any one of them is enough. Please add a link in your PR description to the Slack discussion where the @frontend-performance team approved using connectWithoutView here.

@abzokhattab

abzokhattab commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

@abzokhattab This step confused me. Doesn't that we will create Submit workspace if you choose Get paid back by my employer? Do I need to delete the workspace after onboarding?

Good question! Yeah, if a new user picks "Get paid back by my employer" during onboarding today (with the beta on), we auto-create the Submit workspace for them, so they won't see this modal.

This modal is a migration modal — it targets existing users who chose the EMPLOYER intent in the past (before we started auto-creating the Submit workspace) and therefore don't own/belong to any group workspace yet. The guard only fires when the user has zero group workspaces (getGroupPoliciesWhereReportCanBeCreated(...).length === 0).

So for QA there's no real migrated account handy, and deleting the workspace is just the easiest way to reproduce that target state (EMPLOYER intent + no group workspace) on a fresh account. Once you delete it, the modal should pop.

@hungvu193

hungvu193 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

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 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
    • 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
    • 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 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 Screenshot 2026-07-12 at 22 13 43
Android: mWeb Chrome
Screen.Recording.2026-07-12.at.21.47.02.mov
iOS: HybridApp
Screen.Recording.2026-07-12.at.22.12.38.mov
iOS: mWeb Safari
Screen.Recording.2026-07-12.at.21.27.52.mov
Screen.Recording.2026-07-12.at.21.46.04.mov
MacOS: Chrome / Safari
Screen.Recording.2026-07-12.at.21.27.27.mov

@hungvu193

Copy link
Copy Markdown
Contributor

@abzokhattab Can you fix the test?

@github-actions

Copy link
Copy Markdown
Contributor

This PR adds a new Onyx.connectWithoutView call, so I've requested a review from the Onyx performance reviewers (@tgolen, @mountiny, @luacmartins) — a review from any one of them is enough. Please add a link in your PR description to the Slack discussion where the @frontend-performance team approved using connectWithoutView here.

@abzokhattab abzokhattab requested a review from hungvu193 July 12, 2026 15:09
@hungvu193

Copy link
Copy Markdown
Contributor

@abzokhattab On web or mWeb, after I deleted Workspace, In-Product modal will show up, but with native. It only show up after a refresh, is that expected?

Screen.Recording.2026-07-12.at.22.10.28.mov

@abzokhattab

abzokhattab commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

per the project doc, the important thing is that it shows up on logging in .. the steps are just a simluation for old accounts ...

also lets check with product if its fine for the modal to show when a workspace is deleted or should it be only shown on logging in ,, See also my earlier question.

Proposed backend change: Set the submitMigrationModalShown NVP to true by default for all new accounts created going forward. That would prevent the modal from reappearing if a user later deletes their Submit workspace. For existing accounts who chose the "Get paid back by my employer" onboarding intent, set it to false so they still see the modal once on their next login.

cc @garrettmknight @iwiznia

@tgolen tgolen left a comment

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.

I agree with your explanation of why it's OK to use connectWithoutView() in the guards.

Comment thread src/libs/Navigation/guards/index.ts Outdated

import MigratedUserWelcomeModalGuard, {onSessionOrLoadingAppChanged} from './MigratedUserWelcomeModalGuard';
import OnboardingGuard from './OnboardingGuard';
import SubmitPlanWelcomeModalGuard, {onSessionOrLoadingAppChanged as onSessionOrLoadingAppChangedForSubmitPlanModal} from './SubmitPlanWelcomeModalGuard';

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.

I am not a very big fan of this pattern. It's fine to duplicate the connectWithoutView() calls in the different guards (eg. having multiple guards connected to SESSION is just fine). The subscriptions themselves are meant to be super cheap.

I think these callbacks add more complexity than they should, and ultimately, I don't think this index.ts. file needs any Onyx references (only the guards themselves).

Could you please refactor this? I know you aren't adding onSessionOrLoadingAppChanged but I think it makes sense that if this PR follows the right pattern, then doing a little bit of cleanup to also remove onSessionOrLoadingAppChanged is worth it. I'm also fine with cleaning onSessionOrLoadingAppChanged up in a separate PR, as long as SubmitPlanWelcomeModalGuard follows the proper pattern in this PR.

@abzokhattab abzokhattab Jul 12, 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.

Great point, agreed.
SubmitPlanWelcomeModalGuard now owns its own connectWithoutView subscriptions for SESSION and IS_LOADING_APP (it already self-subscribed to everything else — betas/intro/onboarding/policies/etc.), so I removed the exported onSessionOrLoadingAppChanged callback and its wiring from index.ts. index.ts no longer references this guard for any Onyx data.

I left MigratedUserWelcomeModalGuard's onSessionOrLoadingAppChanged (and the session/isLoadingApp subscriptions that createGuardContext still relies on) as-is, since that touches another guard and the shared context

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 here 25007cc

…eModalGuard

Subscribe to SESSION and IS_LOADING_APP directly in the guard instead of
receiving them via an onSessionOrLoadingAppChanged callback wired from
guards/index.ts, so the guard owns all its subscriptions and index.ts no
longer references it for Onyx data (per @tgolen).
@shawnborton

Copy link
Copy Markdown
Contributor

The illustration feels quite big compared to Figma. Is it showing at 264x160?

@hungvu193 hungvu193 requested a review from iwiznia July 13, 2026 02:21
@mountiny mountiny removed their request for review July 13, 2026 17:41
@luacmartins luacmartins removed their request for review July 13, 2026 20:11
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.

7 participants