[$175] Prompt is shown under "Please let us know what we can improve"
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:
- Open Concierge and ask a question, then wait for the answer
- Right click the answer and pick Reply in thread
- Press π on the message at the top of the thread, then remove it, and verify the prompt comes back
- Press π on it, and verify the prompt goes away
- Remove the π and verify the prompt comes back in the thread as well as in the chat
- 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
Applause Internal Information Exported by: Julia Ponikarchuk Bug ID: 7293267
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022113258724576067822
- Upwork Job ID: 2113258724576067822
- Last Price Increase: 2026-10-22
Issue Owner
Current Issue Owner: @tylerkaraszewski
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
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
- Concierge - Reacting to ""Please let us know what we can improve" with π shows response shows users do react to and open threads on this message.
- Concierge - Prompt is not shown in thread after removing π is the issue PR 103424 fixed.
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.
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?
- 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.
- 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;
}
-
Also return
falsewhen 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. -
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
- Open Concierge, ask a question and wait for the answer.
- Reply in thread on the answer. Press π, then remove it, and verify the prompt returns in both the chat and the thread.
- Press π and verify the prompt disappears.
- Remove the π and verify the prompt returns in both the thread and the chat.
- Open the feedback thread Concierge created and verify no π/π prompt appears under "Please let us know what we can improve".
- Reply in the feedback thread and verify no prompt appears after Concierge responds.
- Add unit tests for
isConciergeFeedbackRequestActionand 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). - Run the checks on Chrome (web) and also on native, since the logic is shared.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)
Job added to Upwork: https://www.upwork.com/jobs/~022113258724576067822
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?
- 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); - 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} AncestorReportActionItemchecks only whether the action is the author's newest answer inreport. It completely ignoresreportNameValuePairs?.conciergeFeedbackForReportActionIDon 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.
- In
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:
- Architectural consistency: Perfectly matches the existing logic in
ReportActionsList.tsx:408-411(reportNameValuePairs?.conciergeFeedbackForReportActionID). - Zero overhead: Reuses
reportNameValuePairsalready fetched byAncestorReportActionItemwithout introducing extra hooks, selectors, or API calls. - 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 authoritativeconciergeFeedbackForReportActionIDmetadata key is 100% robust and locale-agnostic. - Hiding prompt inside
ReportActionItem: Rejected. The decision belongs at the container level (AncestorReportActionItemandReportActionsList), maintaining single responsibility inReportActionItem.
What automated tests can you add to prevent this from re-occurring?
In tests/ui/AncestorReportActionItemTest.tsx:
- Render
AncestorReportActionItemwith a Concierge message where the parent report hasconciergeFeedbackForReportActionIDset:- Verify
isLatestConciergeFeedbackActionisfalseand no π/π feedback prompt renders.
- Verify
- Render
AncestorReportActionItemwith a Concierge message where the parent report has NOconciergeFeedbackForReportActionID:- Verify
isLatestConciergeFeedbackActionresolves totruewhen it matcheslatestConciergeFeedbackActionID.
- Verify
β Contributor details stored successfully. Thank you for contributing to Expensify!
β Contributor details stored successfully. Thank you for contributing to Expensify!
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?
- When a user clicks thumbs-down on a Concierge message,
submitConciergeFeedbackcreates a feedback thread whoseONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRSentry setsconciergeFeedbackForReportActionID, and Concierge posts"Please let us know what we can improve."inside that feedback thread (report_1). - Inside
report_1itself,src/pages/inbox/report/ReportActionsList.tsx:408-411checks:
and suppressesconst isConciergeFeedbackThread = Boolean(reportNameValuePairs?.conciergeFeedbackForReportActionID);shouldShowAgentFeedbackPromptat line 456 (!isConciergeFeedbackThread && ...). - However, when the user clicks Reply in thread on
"Please let us know what we can improve."(at01:08in the reproduction video), a nested child thread (report_2) opens and renders the ancestor message ("Please let us know what we can improve."fromreport_1) viasrc/pages/inbox/report/AncestorReportActionItem.tsx. - In
src/pages/inbox/report/AncestorReportActionItem.tsx:96-111, the component subscribes toancestorReportNameValuePairs(ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRSforancestor.report.reportID, i.e.report_1), which containsconciergeFeedbackForReportActionID, but never checksancestorReportNameValuePairs?.conciergeFeedbackForReportActionID. As a result,canAuthorCollectFeedbackevaluates totrue,useOnyxruns thegetLatestFeedbackActionIDByAuthorSelectorscan acrossreport_1's report actions, andshouldShowAgentFeedbackPrompt(line 178) evaluates totrue.
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:
getLatestFeedbackActionIDByAuthorSelectorinuseOnyx(${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${ancestor.report.reportID}, ...)(lines 105-109) short-circuits immediately (if (!reportActions || !canAuthorCollectFeedback) { return undefined; }atlines 68-70) without scanningObject.values(reportActions)on every action update in the parent thread, andlatestFeedbackActionIDForAuthorisundefined, soshouldShowAgentFeedbackPrompt(line 178) isfalseand the feedback prompt is not rendered under"Please let us know what we can improve.".
What alternative solutions did you explore? (Optional)
- Only adding
!isConciergeFeedbackThreadtoshouldShowAgentFeedbackPromptat line 178 while leavingcanAuthorCollectFeedbacktrue: That hides the prompt visually, butAncestorReportActionItemwould still run theO(N)Object.values(reportActions)selector insidegetLatestFeedbackActionIDByAuthorSelectorfor every Concierge feedback thread. GatingcanAuthorCollectFeedbackdirectly both suppresses the prompt and skips the unnecessary selector work.
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?
- When a Concierge feedback thread is created, its
ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRSentry hasconciergeFeedbackForReportActionIDset. - In
src/pages/inbox/report/ReportActionsList.tsx:409-413, the main message list checksreportNameValuePairs?.conciergeFeedbackForReportActionIDand suppresses feedback prompts for all messages inside the feedback thread:const latestConciergeFeedbackActionIDs = reportNameValuePairs?.conciergeFeedbackForReportActionID || isDraftPendingCompletion || hasNewerActions ? getEmptyArray<string>() : getFeedbackPromptActionIDs(renderedVisibleReportActions, allReportActionIDs, customAgentAccountIDs); - 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. - In
src/pages/inbox/report/AncestorReportActionItem.tsx:104-115and180:
Even thoughconst 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}`]);reportNameValuePairs(OnyxCollection<ReportNameValuePairs>) is already passed intoAncestorReportActionItemas a prop and indexed atline 114forreport?.reportID,canAuthorCollectFeedback(line 106) never checks whetherreporthasconciergeFeedbackForReportActionIDset. As a result,getLatestFeedbackActionIDByAuthorSelectorscansreport's actions, matches "Please let us know what we can improve" as Concierge's latest message in the feedback thread, and passesisLatestConciergeFeedbackAction={true}toReportActionItematline 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):
- Read
ancestorReportNameValuePairsonce from the existingreportNameValuePairsprop (reportNameValuePairs?.[${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}]) and reuse it for bothcanAuthorCollectFeedbackandisAncestorReportArchived: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); - By gating
canAuthorCollectFeedbackwith!isConciergeFeedbackThread(rather than only checking atline 180),getLatestFeedbackActionIDByAuthorSelector(undefined)short-circuits immediately (if (!actions || !targetAccountID) { return undefined; }atlines 68-70) without scanningObject.values(actions)on every report action update, andisLatestConciergeFeedbackActionatline 180evaluates tofalse. - Add a unit test in
tests/ui/AncestorReportActionItemTest.tsxverifying that whenreportNameValuePairsfor the ancestorreport.reportIDhasconciergeFeedbackForReportActionIDset,AncestorReportActionItemdoes not render the feedback prompt, whereas normal Concierge answers withoutconciergeFeedbackForReportActionIDstill 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, whereasconciergeFeedbackForReportActionIDonreportNameValuePairsis the authoritative marker already used byReportActionsList.tsx:410. - Only gating
isLatestConciergeFeedbackActionat line 180 while leavingcanAuthorCollectFeedbacktrue: Rejected becauseuseOnyxatline 107would still rungetLatestFeedbackActionIDByAuthorSelectorwithauthorAccountIDover all actions in the feedback thread unnecessarily.
π£ @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:
- Make sure you've read and understood the contributing guidelines.
- 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.
- 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.
- Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
@situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@situchan Eep! 4 days overdue now. Issues have feelings too...
@situchan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
@situchan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
@situchan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
@MelvinBot implement your proposal for testing
π€ 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.
| Step | Status |
|---|---|
1. Ask Concierge a question and receive an answerSent βHow do I create a workspace in Expensify?β No answer appeared.![]() |
β |
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
@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!
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?
- In
src/pages/inbox/report/AncestorReportActionItem.tsx(around lines 106β115 and 178, wherereportNameValuePairsfor the ancestor'sreportis already subscribed viauseOnyx), check!reportNameValuePairs?.conciergeFeedbackForReportActionIDbefore enablingshouldShowConciergeFeedbackPrompton the ancestor report action item. - Add a component/unit test verifying that an ancestor Concierge message belonging to a report with
conciergeFeedbackForReportActionIDset in itsreportNameValuePairsdoes 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.