App icon indicating copy to clipboard operation
App copied to clipboard

[$175] Prompt is shown under "Please let us know what we can improve"

Open applause-bot[bot] opened this issue 1 month ago β€’ 27 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.16-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://github.com/Expensify/App/pull/103424 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: Mac/Chrome App Component: Other

Action Performed:

  1. Open Concierge and ask a question, then wait for the answer
  2. Right click the answer and pick Reply in thread
  3. Press πŸ‘ on the message at the top of the thread, then remove it, and verify the prompt comes back
  4. Press πŸ‘Ž on it, and verify the prompt goes away
  5. Remove the πŸ‘Ž and verify the prompt comes back in the thread as well as in the chat
  6. Open the thread Concierge created for the feedback and verify no prompt is shown under "Please let us know what we can improve"

Expected Result:

"Please let us know what we can improve" should not have prompt shown

Actual Result:

"πŸ‘ or πŸ‘Ž" prompt is shown after "Please let us know what we can improve"

Workaround:

Unknown

Platforms:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [x] Windows: Chrome
  • [x] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/ca4b5c1d-4571-469c-b906-7b769634d8a8

View all open jobs on GitHub

Applause Internal Information Exported by: Julia Ponikarchuk Bug ID: 7293267

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @tylerkaraszewski

applause-bot[bot] avatar Oct 22 '26 12:10 applause-bot[bot]

While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/b7b877d9c2e0af968b2dec41fd695d2f48e93d58224037d84477608badf4dd1b

applause-bot[bot] avatar Oct 22 '26 12:10 applause-bot[bot]

Proposal

What is the root cause of that problem?

When a Concierge message is shown as the parent message at the top of a thread, nothing checks whether that message sits inside a Concierge feedback thread.

  • The feedback thread is marked with conciergeFeedbackForReportActionID. The message list hides the prompt for every message in a marked thread (ReportActionsList.tsx:408-411).
  • The parent-message path only asks "is this Concierge's newest message in its report?" (AncestorReportActionItem.tsx:106-108, AncestorReportActionItem.tsx:178). It never reads the mark.
  • "Please let us know what we can improve" is Concierge's newest message in the feedback thread and has no reaction. So when you open a thread on it, it renders at the top with the πŸ‘/πŸ‘Ž prompt.

This started with Show the Concierge feedback prompt on the message a thread hangs off, which is already in production. That PR checked the mark on the thread being viewed instead of the report the message lives in. Let the reaction decide the Concierge feedback prompt on a thread's parent message then removed the check entirely.

What changes do you think we should make in order to solve the problem?

In AncestorReportActionItem, hide the prompt when the message's own report (report) has conciergeFeedbackForReportActionID set. That report's name-value pairs are already loaded there for the archived check (line 111).

This does not bring back Concierge - Prompt is not shown in thread after removing πŸ‘Ž. The original answer lives in the Concierge chat, which has no mark, so its prompt still comes back after you remove the πŸ‘Ž.

Add a UI test: mark a thread, open a thread on a Concierge message inside it, and expect no prompt.

What alternative solutions did you explore? (Optional)

If QA saw the prompt in the feedback thread's own message list, the cause is different: the client would be missing the mark on that thread. I couldn't rule this out. I couldn't view the QA video, and the automated web run couldn't open the message menu to reproduce the steps.

Related issues

Next Steps for Contributor+ team: To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/104728) to create a draft PR. To refine: @MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.


view run Β· view recording

MelvinBot avatar Oct 22 '26 13:10 MelvinBot

Proposal

Please re-state the problem that we are trying to solve in this issue.

Concierge answers show a "πŸ‘ or πŸ‘Ž" feedback prompt when the user hasn't reacted yet. Reacting πŸ‘Ž makes Concierge post a follow-up, "Please let us know what we can improve", and open a feedback thread for it. When that thread is opened, the follow-up message is its top message, and the πŸ‘/πŸ‘Ž prompt is shown under it. Asking for feedback on a feedback request makes no sense, so the prompt must not appear there.

What is the root cause of that problem?

This is based on the repro, because I haven't verified the code from the PR #103424 area. The visibility check for the Concierge reaction prompt is too broad. It seems to ask only whether:

  • the message is authored by Concierge,
  • it is the latest/top Concierge message in the report (or thread), and
  • the user has not left a πŸ‘/πŸ‘Ž reaction on it.

It never asks whether the message is itself a feedback follow-up. The "Please let us know what we can improve" message is also written by Concierge and has no reaction. It is the top (parent) message of the feedback thread, so it passes every condition and the prompt renders under it.

What changes do you think we should make in order to solve the problem?

  1. Add a helper that identifies the feedback follow-up message, next to the existing prompt helper (likely ReportUtils / ReportActionsUtils):
function isConciergeFeedbackRequestAction(action: OnyxEntry<ReportAction>): boolean {
    if (!action) {
        return false;
    }
    // Preferred: a marker set when Concierge creates the feedback follow-up.
    // Fallback: compare the message to the known follow-up text.
    return !!getOriginalMessage(action)?.isConciergeFeedbackRequest
        || getReportActionText(action).trim() === CONST.CONCIERGE.FEEDBACK_FOLLOW_UP_TEXT;
}

If the backend does not send a marker, the fallback should compare against a single shared constant or translation key. It should not use a string duplicated in several places.

  1. Use the helper in the function that decides whether to show the prompt, for example shouldShowConciergeReactionPrompt. It runs both when the message is rendered in the main chat and when it is the parent action in a thread.
if (isConciergeFeedbackRequestAction(reportAction)) {
    return false;
}
  1. Also return false when the report is a thread whose parent action is a feedback request. This covers later Concierge messages inside the feedback thread, because a user's reply there would otherwise get the prompt after Concierge responds.

  2. Leave the existing behavior unchanged for normal Concierge answers:

    • The prompt is shown, hidden after πŸ‘Ž or πŸ‘, and shown again when the reaction is removed.
    • The prompt is shown in both the chat and the thread.

What alternative solutions did you explore? (Optional)

  • Hiding the prompt by thread depth or "is thread" alone. Rejected because step 2 of the repro expects the prompt to show in a normal thread on an answer.
  • Hiding the prompt in the UI component (ReportActionItem) only. Rejected because it splits the logic, and the helper that decides visibility should be the single source of truth.
  • Relying only on text matching. This is fragile with localization, so the preferred approach is a marker or constant, with text matching only as a fallback.

Testing

  1. Open Concierge, ask a question and wait for the answer.
  2. Reply in thread on the answer. Press πŸ‘, then remove it, and verify the prompt returns in both the chat and the thread.
  3. Press πŸ‘Ž and verify the prompt disappears.
  4. Remove the πŸ‘Ž and verify the prompt returns in both the thread and the chat.
  5. Open the feedback thread Concierge created and verify no πŸ‘/πŸ‘Ž prompt appears under "Please let us know what we can improve".
  6. Reply in the feedback thread and verify no prompt appears after Concierge responds.
  7. Add unit tests for isConciergeFeedbackRequestAction and for the prompt-visibility helper. They should cover a normal Concierge answer (true), a feedback request (false), a message inside a feedback thread (false), and a non-Concierge message (false).
  8. Run the checks on Chrome (web) and also on native, since the logic is shared.

Abdallah-1551 avatar Oct 22 '26 13:10 Abdallah-1551

Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)

melvin-bot[bot] avatar Oct 22 '26 13:10 melvin-bot[bot]

Job added to Upwork: https://www.upwork.com/jobs/~022113258724576067822

melvin-bot[bot] avatar Oct 22 '26 13:10 melvin-bot[bot]

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~0170d6b02e9440e604

Proposal

Please re-state the problem that we are trying to solve in this issue.

In Concierge chat, when a user reacts with πŸ‘Ž to an answer, Concierge automatically generates a dedicated feedback thread containing the message: "Please let us know what we can improve". When the user opens or views this thread, the πŸ‘/πŸ‘Ž feedback prompt is displayed underneath "Please let us know what we can improve", which is redundant and confusing because the message is itself the feedback follow-up.

What is the root cause of that problem?

  1. In src/pages/inbox/report/ReportActionsList.tsx:408-411: The message list in chat views already suppresses feedback prompts for all messages inside a feedback thread:
    const latestConciergeFeedbackActionIDs =
        reportNameValuePairs?.conciergeFeedbackForReportActionID || isDraftPendingCompletion || hasNewerActions
            ? getEmptyArray<string>()
            : getFeedbackPromptActionIDs(renderedVisibleReportActions, allReportActionIDs, customAgentAccountIDs);
    
  2. However, when viewing a thread where "Please let us know what we can improve" is the parent action (or when rendered via AncestorReportActionItem.tsx):
    • In src/pages/inbox/report/AncestorReportActionItem.tsx:107-108:
      const [latestConciergeFeedbackActionID] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${getNonEmptyStringOnyxID(report?.reportID)}`, {
          selector: getLatestFeedbackActionIDByAuthorSelector(canAuthorCollectFeedback ? authorAccountID : undefined),
      });
      
    • In line 178, it passes:
      isLatestConciergeFeedbackAction={!!latestConciergeFeedbackActionID && latestConciergeFeedbackActionID === reportAction.reportActionID}
      
    • AncestorReportActionItem checks only whether the action is the author's newest answer in report. It completely ignores reportNameValuePairs?.conciergeFeedbackForReportActionID on the message's report (report).
    • Because "Please let us know what we can improve" is Concierge's newest message in that feedback thread and has no reaction, it qualifies as latestConciergeFeedbackActionID === reportAction.reportActionID, causing the πŸ‘/πŸ‘Ž prompt to render underneath it.

What changes do you think we should make in order to solve the problem?

In src/pages/inbox/report/AncestorReportActionItem.tsx: Suppresses isLatestConciergeFeedbackAction when the ancestor report (report) is marked as a feedback thread via conciergeFeedbackForReportActionID.

reportNameValuePairs for report?.reportID is already loaded in AncestorReportActionItem (see line 112 for isAncestorReportArchived). We simply inspect conciergeFeedbackForReportActionID:

--- a/src/pages/inbox/report/AncestorReportActionItem.tsx
+++ b/src/pages/inbox/report/AncestorReportActionItem.tsx
@@ -109,6 +109,8 @@ function AncestorReportActionItem({
         selector: getLatestFeedbackActionIDByAuthorSelector(canAuthorCollectFeedback ? authorAccountID : undefined),
     });

+    const isConciergeFeedbackThread = !!reportNameValuePairs?.[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}`]?.conciergeFeedbackForReportActionID;
+
     const shouldDisplayThreadDivider = !isTripPreview(reportAction);
     const isAncestorReportArchived = isArchivedReport(reportNameValuePairs?.[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}`]);
     const canOpenAncestorReport = canCurrentUserOpenReport(report, isBetaEnabled(CONST.BETAS.DEFAULT_ROOMS), hasGuidesEmails, isAncestorReportArchived);
@@ -175,7 +177,10 @@ function AncestorReportActionItem({
                 isFirstVisibleReportAction={isFirstVisibleReportAction}
                 shouldUseThreadDividerLine={shouldUseThreadDividerLine}
                 isThreadReportParentAction
-                isLatestConciergeFeedbackAction={!!latestConciergeFeedbackActionID && latestConciergeFeedbackActionID === reportAction.reportActionID}
+                isLatestConciergeFeedbackAction={
+                    !isConciergeFeedbackThread &&
+                    !!latestConciergeFeedbackActionID &&
+                    latestConciergeFeedbackActionID === reportAction.reportActionID
+                }
                 linkedTransactionRouteError={linkedTransactionRouteError}
                 reportsParentHierarchy={reportsParentHierarchy}
             />

Why this solution is optimal:

  1. Architectural consistency: Perfectly matches the existing logic in ReportActionsList.tsx:408-411 (reportNameValuePairs?.conciergeFeedbackForReportActionID).
  2. Zero overhead: Reuses reportNameValuePairs already fetched by AncestorReportActionItem without introducing extra hooks, selectors, or API calls.
  3. Preserves answer thread rating: Does not regress PR #103424 or issue #102824: normal threads opened on regular Concierge answers live in the main Concierge chat (which does NOT have conciergeFeedbackForReportActionID), so normal answers still retain their πŸ‘/πŸ‘Ž rating prompts and re-appear if reactions are unselected.

What alternative solutions did you explore? (Optional)

  • Competitor suggestion to match text against "Please let us know what we can improve": Rejected. Hardcoding or matching translated text strings is fragile, breaks across localizations (Spanish, Greek, French, etc.), and violates Expensify's engineering guidelines. Inspecting the authoritative conciergeFeedbackForReportActionID metadata key is 100% robust and locale-agnostic.
  • Hiding prompt inside ReportActionItem: Rejected. The decision belongs at the container level (AncestorReportActionItem and ReportActionsList), maintaining single responsibility in ReportActionItem.

What automated tests can you add to prevent this from re-occurring?

In tests/ui/AncestorReportActionItemTest.tsx:

  1. Render AncestorReportActionItem with a Concierge message where the parent report has conciergeFeedbackForReportActionID set:
    • Verify isLatestConciergeFeedbackAction is false and no πŸ‘/πŸ‘Ž feedback prompt renders.
  2. Render AncestorReportActionItem with a Concierge message where the parent report has NO conciergeFeedbackForReportActionID:
    • Verify isLatestConciergeFeedbackAction resolves to true when it matches latestConciergeFeedbackActionID.

camesenin avatar Oct 22 '26 13:10 camesenin

βœ… Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Oct 22 '26 13:10 melvin-bot[bot]

βœ… Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Oct 22 '26 13:10 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

After clicking thumbs-down on a Concierge message (which opens a thread where Concierge posts "Please let us know what we can improve.") and then clicking Reply in thread on that "Please let us know what we can improve." message, the nested thread displays the "Did this answer your question?" thumbs-up/down prompt under the "Please let us know what we can improve." ancestor message.

What is the root cause of that problem?

  1. When a user clicks thumbs-down on a Concierge message, submitConciergeFeedback creates a feedback thread whose ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS entry sets conciergeFeedbackForReportActionID, and Concierge posts "Please let us know what we can improve." inside that feedback thread (report_1).
  2. Inside report_1 itself, src/pages/inbox/report/ReportActionsList.tsx:408-411 checks:
    const isConciergeFeedbackThread = Boolean(reportNameValuePairs?.conciergeFeedbackForReportActionID);
    
    and suppresses shouldShowAgentFeedbackPrompt at line 456 (!isConciergeFeedbackThread && ...).
  3. However, when the user clicks Reply in thread on "Please let us know what we can improve." (at 01:08 in the reproduction video), a nested child thread (report_2) opens and renders the ancestor message ("Please let us know what we can improve." from report_1) via src/pages/inbox/report/AncestorReportActionItem.tsx.
  4. In src/pages/inbox/report/AncestorReportActionItem.tsx:96-111, the component subscribes to ancestorReportNameValuePairs (ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS for ancestor.report.reportID, i.e. report_1), which contains conciergeFeedbackForReportActionID, but never checks ancestorReportNameValuePairs?.conciergeFeedbackForReportActionID. As a result, canAuthorCollectFeedback evaluates to true, useOnyx runs the getLatestFeedbackActionIDByAuthorSelector scan across report_1's report actions, and shouldShowAgentFeedbackPrompt (line 178) evaluates to true.

What changes do you think we should make in order to solve the problem?

In src/pages/inbox/report/AncestorReportActionItem.tsx, derive isConciergeFeedbackThread from the already-loaded ancestorReportNameValuePairs and gate canAuthorCollectFeedback before subscribing to ONYXKEYS.COLLECTION.REPORT_ACTIONS:

const isConciergeFeedbackThread = Boolean(ancestorReportNameValuePairs?.conciergeFeedbackForReportActionID);
const canAuthorCollectFeedback =
    !isConciergeFeedbackThread &&
    (authorAccountID === CONST.ACCOUNT_ID.CONCIERGE || (isAuthorCustomAgent && authorAccountID !== currentUserAccountID));

Because canAuthorCollectFeedback is false whenever the ancestor report is a Concierge feedback thread:

  • getLatestFeedbackActionIDByAuthorSelector in useOnyx(${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${ancestor.report.reportID}, ...) (lines 105-109) short-circuits immediately (if (!reportActions || !canAuthorCollectFeedback) { return undefined; } at lines 68-70) without scanning Object.values(reportActions) on every action update in the parent thread, and
  • latestFeedbackActionIDForAuthor is undefined, so shouldShowAgentFeedbackPrompt (line 178) is false and the feedback prompt is not rendered under "Please let us know what we can improve.".

What alternative solutions did you explore? (Optional)

  • Only adding !isConciergeFeedbackThread to shouldShowAgentFeedbackPrompt at line 178 while leaving canAuthorCollectFeedback true: That hides the prompt visually, but AncestorReportActionItem would still run the O(N) Object.values(reportActions) selector inside getLatestFeedbackActionIDByAuthorSelector for every Concierge feedback thread. Gating canAuthorCollectFeedback directly both suppresses the prompt and skips the unnecessary selector work.

shilo1979jk avatar Oct 25 '26 00:10 shilo1979jk

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a user reacts with πŸ‘Ž to a Concierge message, Concierge opens a feedback thread and posts "Please let us know what we can improve". If the user replies in a thread on that "Please let us know what we can improve" message, the πŸ‘/πŸ‘Ž feedback prompt ("Did this answer your question?") is erroneously displayed underneath the "Please let us know what we can improve" parent message at the top of the nested thread.

What is the root cause of that problem?

  1. When a Concierge feedback thread is created, its ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS entry has conciergeFeedbackForReportActionID set.
  2. In src/pages/inbox/report/ReportActionsList.tsx:409-413, the main message list checks reportNameValuePairs?.conciergeFeedbackForReportActionID and suppresses feedback prompts for all messages inside the feedback thread:
    const latestConciergeFeedbackActionIDs =
        reportNameValuePairs?.conciergeFeedbackForReportActionID || isDraftPendingCompletion || hasNewerActions
            ? getEmptyArray<string>()
            : getFeedbackPromptActionIDs(renderedVisibleReportActions, allReportActionIDs, customAgentAccountIDs);
    
  3. However, when the user opens a child thread on "Please let us know what we can improve", that ancestor message is rendered by src/pages/inbox/report/AncestorReportActionItem.tsx.
  4. In src/pages/inbox/report/AncestorReportActionItem.tsx:104-115 and 180:
    const authorAccountID = reportAction.actorAccountID;
    const isAuthorCustomAgent = authorAccountID !== undefined && customAgentAccountIDs.has(authorAccountID);
    const canAuthorCollectFeedback = authorAccountID === CONST.ACCOUNT_ID.CONCIERGE || (isAuthorCustomAgent && authorAccountID !== currentUserAccountID);
    const [latestConciergeFeedbackActionID] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${getNonEmptyStringOnyxID(report?.reportID)}`, {
        selector: getLatestFeedbackActionIDByAuthorSelector(canAuthorCollectFeedback ? authorAccountID : undefined),
    });
    ...
    const isAncestorReportArchived = isArchivedReport(reportNameValuePairs?.[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}`]);
    
    Even though reportNameValuePairs (OnyxCollection<ReportNameValuePairs>) is already passed into AncestorReportActionItem as a prop and indexed at line 114 for report?.reportID, canAuthorCollectFeedback (line 106) never checks whether report has conciergeFeedbackForReportActionID set. As a result, getLatestFeedbackActionIDByAuthorSelector scans report's actions, matches "Please let us know what we can improve" as Concierge's latest message in the feedback thread, and passes isLatestConciergeFeedbackAction={true} to ReportActionItem at line 180.

What changes do you think we should make in order to solve the problem?

In src/pages/inbox/report/AncestorReportActionItem.tsx (lines 104-115):

  1. Read ancestorReportNameValuePairs once from the existing reportNameValuePairs prop (reportNameValuePairs?.[${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}]) and reuse it for both canAuthorCollectFeedback and isAncestorReportArchived:
    const ancestorReportNameValuePairs = reportNameValuePairs?.[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}`];
    const isConciergeFeedbackThread = !!ancestorReportNameValuePairs?.conciergeFeedbackForReportActionID;
    const authorAccountID = reportAction.actorAccountID;
    const isAuthorCustomAgent = authorAccountID !== undefined && customAgentAccountIDs.has(authorAccountID);
    const canAuthorCollectFeedback =
        !isConciergeFeedbackThread &&
        (authorAccountID === CONST.ACCOUNT_ID.CONCIERGE || (isAuthorCustomAgent && authorAccountID !== currentUserAccountID));
    const [latestConciergeFeedbackActionID] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${getNonEmptyStringOnyxID(report?.reportID)}`, {
        selector: getLatestFeedbackActionIDByAuthorSelector(canAuthorCollectFeedback ? authorAccountID : undefined),
    });
    ...
    const isAncestorReportArchived = isArchivedReport(ancestorReportNameValuePairs);
    
  2. By gating canAuthorCollectFeedback with !isConciergeFeedbackThread (rather than only checking at line 180), getLatestFeedbackActionIDByAuthorSelector(undefined) short-circuits immediately (if (!actions || !targetAccountID) { return undefined; } at lines 68-70) without scanning Object.values(actions) on every report action update, and isLatestConciergeFeedbackAction at line 180 evaluates to false.
  3. Add a unit test in tests/ui/AncestorReportActionItemTest.tsx verifying that when reportNameValuePairs for the ancestor report.reportID has conciergeFeedbackForReportActionID set, AncestorReportActionItem does not render the feedback prompt, whereas normal Concierge answers without conciergeFeedbackForReportActionID still show the prompt.

What alternative solutions did you explore? (Optional)

  • Matching the message text against "Please let us know what we can improve": Rejected because matching English copy is brittle and breaks across locales, whereas conciergeFeedbackForReportActionID on reportNameValuePairs is the authoritative marker already used by ReportActionsList.tsx:410.
  • Only gating isLatestConciergeFeedbackAction at line 180 while leaving canAuthorCollectFeedback true: Rejected because useOnyx at line 107 would still run getLatestFeedbackActionIDByAuthorSelector with authorAccountID over all actions in the feedback thread unnecessarily.

xian96xx avatar Oct 26 '26 01:10 xian96xx

πŸ“£ @xian96xx! πŸ“£ Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details. Screen Shot 2022-11-16 at 4 42 54 PM Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

melvin-bot[bot] avatar Oct 26 '26 01:10 melvin-bot[bot]

@situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar Oct 28 '26 21:10 melvin-bot[bot]

@situchan Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Oct 30 '26 21:10 melvin-bot[bot]

@situchan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

melvin-bot[bot] avatar Nov 03 '26 23:11 melvin-bot[bot]

@situchan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

melvin-bot[bot] avatar Nov 04 '26 02:11 melvin-bot[bot]

@situchan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

melvin-bot[bot] avatar Nov 04 '26 03:11 melvin-bot[bot]

@MelvinBot implement your proposal for testing

situchan avatar Nov 04 '26 21:11 situchan

πŸ€– Web test steps verification results: ⚠️ partial

The question was sent, but Concierge did not answer during the 60-second wait. The feedback-thread fix could not be verified in the browser.

Question thread without a Concierge answer after waiting
Step Status
1. Ask Concierge a question and receive an answerSent β€œHow do I create a workspace in Expensify?” No answer appeared.
Question thread without a Concierge answer after waiting
❌
2. Reply in thread on the answerBlocked: no answer was available.
⚠️
3. Add and remove πŸ‘; verify the prompt returnsBlocked: requires a Concierge answer.
⚠️
4. Add πŸ‘Ž; verify the prompt disappearsBlocked: requires a Concierge answer.
⚠️
5. Remove πŸ‘Ž; verify the prompt returns in thread and chatBlocked: requires a Concierge answer.
⚠️
6a. Verify no prompt under the feedback follow-upBlocked: could not create the feedback follow-up.
⚠️
6b. Verify no prompt on the follow-up's nested-thread parentBlocked: the feedback follow-up was unavailable.
⚠️

Implemented in draft PR Hide feedback prompts inside Concierge feedback threads, assigned to situchan. All six focused tests, changed-file lint, typecheck, spelling, and Storybook passed. Full checks remain incomplete; details are in the PR. Please mark it ready for review when your testing is complete.


view run Β· no recording available

MelvinBot avatar Nov 04 '26 22:11 MelvinBot

@situchan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Nov 05 '26 21:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

After clicking the thumbs-down feedback button on a Concierge message (which opens a dedicated feedback thread where Concierge posts "Please let us know what we can improve") and then starting a reply thread on that "Please let us know what we can improve" message, the thumbs-up/thumbs-down Concierge feedback prompt is erroneously displayed under "Please let us know what we can improve" at the top of the sub-thread.

What is the root cause of that problem?

In src/pages/inbox/report/ReportActionsList.tsx (lines 408–411), the main message list suppresses the Concierge feedback prompt for any message inside a feedback thread by checking whether the report's name-value pairs contain conciergeFeedbackForReportActionID. However, when a message is rendered as the parent/ancestor message at the top of a thread via src/pages/inbox/report/AncestorReportActionItem.tsx (lines 106–108 and 178, introduced in PR #102148), AncestorReportActionItem only checks whether the ancestor action is Concierge's newest message in its parent report and never checks reportNameValuePairs?.conciergeFeedbackForReportActionID. Because "Please let us know what we can improve" is Concierge's latest message in the feedback thread, opening a thread on it causes AncestorReportActionItem to render the feedback prompt on it.

What changes do you think we should make in order to solve the problem?

  1. In src/pages/inbox/report/AncestorReportActionItem.tsx (around lines 106–115 and 178, where reportNameValuePairs for the ancestor's report is already subscribed via useOnyx), check !reportNameValuePairs?.conciergeFeedbackForReportActionID before enabling shouldShowConciergeFeedbackPrompt on the ancestor report action item.
  2. Add a component/unit test verifying that an ancestor Concierge message belonging to a report with conciergeFeedbackForReportActionID set in its reportNameValuePairs does not display the Concierge feedback prompt.

What alternative solutions did you explore? (Optional)

We considered moving the conciergeFeedbackForReportActionID check inside ReportActionItem itself, but keeping the check in AncestorReportActionItem alongside ReportActionsList avoids adding extra Onyx subscriptions to every ReportActionItem row.

jeffrey-graham avatar Nov 07 '26 01:11 jeffrey-graham