Store onboarding: Fix issue showing tasks in full view #16369
Merged
+27
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Closes WOOMOB-1733
Description
Context
Recently we added the functionality to switch to direct requests with remote sites for Jetpack sites that support application passwords.
Upon logging to the app or first switching to a store, the app would need to check if the site supports application passwords first. While that is in progress, all requests are made with Jetpack proxy by default.
Problem
There's an issue with the
GET /wc-admin/onboarding/tasksAPI:On the app, we load the store onboarding card early upon logging in or switching stores. When this happens before the app could finish determining application password support in the site, the onboarding cards are loaded with Jetpack proxy.
When the user taps on view all tasks, the onboarding cards are loaded again. When this happens after the app determines that application password is supported and network switching is eligible, onboarding cards are loaded directly with the remote sites.
The inconsistent data causes a glitch: one can see 2 incomplete tasks on the dashboard screen but then sees an empty view on the full list.
Solution
To fix the above issue, I'm sending the loaded tasks from the dashboard card to the full view. I'm keeping the original logic in #9185 to fall back to loaded tasks when reloading tasks returns an empty list.
We'll need to contact someone on the backend side to look into the empty list returned from direct requests.
Test Steps
Screenshots
Simulator.Screen.Recording.-.iPhone.17.-.2025-11-19.at.17.46.48.mov
RELEASE-NOTES.txtif necessary.