Skip to content

[CP Staging] Revert "fix: prevent "Something went wrong" screen flash on failed spend query"#94743

Merged
mountiny merged 1 commit into
mainfrom
revert-93752-fix/spend-failing-query-error-screen-flash
Jun 29, 2026
Merged

[CP Staging] Revert "fix: prevent "Something went wrong" screen flash on failed spend query"#94743
mountiny merged 1 commit into
mainfrom
revert-93752-fix/spend-failing-query-error-screen-flash

Conversation

@blimpich

@blimpich blimpich commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Jun 27, 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/components/Search/index.tsx 0.75% <0.00%> (-0.01%) ⬇️
... and 8 files with indirect coverage changes

@mountiny mountiny changed the title Revert "fix: prevent "Something went wrong" screen flash on failed spend query" [CP Staging] Revert "fix: prevent "Something went wrong" screen flash on failed spend query" Jun 29, 2026
@mountiny mountiny marked this pull request as ready for review June 29, 2026 07:24
@mountiny mountiny requested review from a team as code owners June 29, 2026 07:24
@melvin-bot melvin-bot Bot requested review from heyjennahay and tylerkaraszewski and removed request for a team June 29, 2026 07:24
@melvin-bot

melvin-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

@mountiny mountiny 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.

Straight revert

@mountiny mountiny merged commit c38b401 into main Jun 29, 2026
44 checks passed
@mountiny mountiny deleted the revert-93752-fix/spend-failing-query-error-screen-flash branch June 29, 2026 07:26

@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: 3dbd6cd721

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

Comment on lines +365 to +366
if (!comingBackOnlineWithNoResults && ((!isFocused && !isMigratedModalDisplayed) || isOffline)) {
return;

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 Add back the error guard before retrying searches

When a failed or invalid search leaves searchResults.errors populated, this guard still falls through and calls handleSearch on mount/reconnect. handleSearchAction clears searchRequestResponseStatusCode before the optimistic Search update clears errors, so the render path sees hasErrors with a null status and briefly shows the generic FullPageErrorView instead of the invalid-query message. Please return while hasErrors is true before retrying.

Useful? React with 👍 / 👎.

@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.

@github-actions

Copy link
Copy Markdown
Contributor

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

OSBotify pushed a commit that referenced this pull request Jun 29, 2026
…ng-query-error-screen-flash

[CP Staging] Revert "fix: prevent "Something went wrong" screen flash on failed spend query"

(cherry picked from commit c38b401)

(cherry-picked to staging by mountiny)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Jun 29, 2026
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.21-5 🚀

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

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

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants