Skip to content

[HOLD] Revert "[Home Page] Add Concierge prompt box to home For You section" - #99572

Closed
puneetlath wants to merge 1 commit into
mainfrom
puneet/revert-98336
Closed

[HOLD] Revert "[Home Page] Add Concierge prompt box to home For You section"#99572
puneetlath wants to merge 1 commit into
mainfrom
puneet/revert-98336

Conversation

@puneetlath

Copy link
Copy Markdown
Contributor

Explanation of Change

Reverts Expensify/App#98336, removing the Concierge prompt box and its related Home page changes.

Fixed Issues

$
PROPOSAL:

Tests

  1. Open the Home page.
  2. Verify the Concierge prompt box is not displayed above the For You section.
  3. Verify the remaining Home page sections render without errors.

Automated checks could not run because this checkout is missing bun, jest, and storybook.

  • Verify that no errors appear in the JS console

Offline tests

  1. Disconnect the network connection.
  2. Open the Home page.
  3. Verify the Concierge prompt box remains absent and the remaining Home page sections render.

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 added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.

Screenshots/Videos

Android: Native

Not tested.

Android: mWeb Chrome

Not tested.

iOS: Native

Not tested.

iOS: mWeb Safari

Not tested.

MacOS: Chrome / Safari

Not tested.

…ybowski/home-ask-concierge"

This reverts commit 3af1a34, reversing
changes made to d57ad07.
@puneetlath
puneetlath requested review from a team as code owners August 26, 2026 14:04
@melvin-bot
melvin-bot Bot requested review from Valforte and garrettmknight and removed request for a team August 26, 2026 14:04
@melvin-bot

melvin-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

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

@OSBotify

Copy link
Copy Markdown
Contributor

🦜 Polyglot Parrot! 🦜

Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues:

View the translation diff
diff --git a/src/languages/es.ts b/src/languages/es.ts
index 1ed6d28a..5979d560 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -9,7 +9,6 @@
  * - Improve the prompts in prompts/translation, or
  * - Improve context annotations in src/languages/en.ts
  */
-
 import CONST from '@src/CONST';
 import type {OriginalMessageReportPreview, OriginalMessageSettlementAccountLocked, PersonalRulesModifiedFields, PolicyRulesModifiedFields} from '@src/types/onyx/OriginalMessage';
 

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

@codecov

codecov Bot commented Aug 26, 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/CONST/index.ts 92.59% <ø> (ø)
...components/Search/SearchRouter/useAskConcierge.tsx 71.42% <100.00%> (-23.31%) ⬇️
src/hooks/useConciergeSidePanelReportActions.ts 95.12% <ø> (+3.35%) ⬆️
src/libs/DateUtils.ts 76.74% <ø> (-0.47%) ⬇️
src/pages/home/ForYouSection/index.tsx 100.00% <100.00%> (ø)
...ages/home/ForYouSection/shouldHideForYouSection.ts 100.00% <100.00%> (ø)
src/pages/home/HomePage.tsx 100.00% <ø> (ø)
...ortActionCompose/AttachmentPickerWithMenuItems.tsx 85.58% <100.00%> (+0.13%) ⬆️
...s/report/ReportAddAttachmentModalContent/index.tsx 0.00% <ø> (ø)
src/styles/index.ts 63.00% <ø> (-0.37%) ⬇️
... and 3 more
... and 10 files with indirect coverage changes

@puneetlath puneetlath changed the title Revert "[Home Page] Add Concierge prompt box to home For You section" [HOLD] Revert "[Home Page] Add Concierge prompt box to home For You section" Aug 26, 2026
@puneetlath

Copy link
Copy Markdown
Contributor Author

Putting this on hold. We might not need to revert after all.

@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: 9ea07af681

ℹ️ 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 181 to 183
const filtered = actions.filter(isCurrentSessionAction);
if (filtered.length === 0) {
// Side panel: nothing matched the current session yet (e.g. just after reopen, before the new
// message propagates). Show the greeting instead of `actions` to avoid flashing stale history.
if (!isConciergeMainDM && conciergeGreetingAction) {
const createdAction = actions.find(isCreatedAction);
return createdAction ? [conciergeGreetingAction, createdAction] : [conciergeGreetingAction];
}
return actions;

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 Keep stale history hidden while a new message propagates

When a contextual Concierge side panel is reopened with hidden prior history and the user sends a new message, there is a window before the optimistic/server action reaches this list where filtered is empty. Returning the original actions in that window exposes all pre-session messages, causing the stale-history flash that the removed branch specifically prevented; return the greeting/created actions for non-main-DM side panels instead.

Useful? React with 👍 / 👎.

Comment on lines +101 to 104
const adminPoliciesSelectorWrapper = useCallback((policies: OnyxCollection<Policy>) => activeAdminPoliciesSelector(policies, login ?? ''), [login]);
const [adminPolicies] = useOnyx(ONYXKEYS.COLLECTION.POLICY, {
selector: adminPoliciesSelectorWrapper,
});

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 Preserve the narrow selector for time-sensitive policies

For workspace admins, activeAdminPoliciesSelector returns complete policy objects, so unrelated changes to large fields such as employee lists, connections, or custom units change the selected value and rerender the Home section. This also restores per-render connection scanning below, undoing the recently added createTimeSensitiveAdminPoliciesSelector optimization; the standalone section should continue selecting only the policy fields and derived broken connections it consumes.

Useful? React with 👍 / 👎.

@puneetlath

Copy link
Copy Markdown
Contributor Author

Not going to revert after all.

@puneetlath puneetlath closed this Aug 26, 2026
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.

2 participants