App icon indicating copy to clipboard operation
App copied to clipboard

[$175] Login-Set up feature task message is not shown.

Open applause-bot[bot] opened this issue 1 week ago • 14 comments

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


Version Number: V9.5.52-1 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://test-management.browserstack.com/projects/2219752/test-runs/84952869/folder/13176677/69142633/1998357523?sort=%2Bname Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: Redmi note 10s android 13 App Component: User Settings

Action Performed:

  1. Launch app
  2. Login without plus new gmail account
  3. Select 5-9 manage my team and disable all features
  4. Open admin room

Expected Result:

Set up feature task message must be shown.

Actual Result:

Set up feature task message is not shown.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

https://github.com/user-attachments/assets/3bd4046a-dd80-49ca-9f02-38cf404cd054

View all open jobs on GitHub

Applause Internal Information Exported by: Chandana Kiran Bug ID: 7320982

Upwork Automation - Do Not Edit

applause-bot[bot] avatar Nov 22 '26 05:11 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/f516290751c801c2fcbdee3714f3aef9ac49058bbedb44ff52f62bb9fccbfab2

applause-bot[bot] avatar Nov 22 '26 05:11 applause-bot[bot]

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

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

Investigation Progress:

  • [x] Steps 1–4: Extracted symptoms, formed and challenged the hypothesis, scanned related issues, and gathered code evidence.
  • [x] Steps 5–6: Confirmed server-owned task creation; an App defect is not established.
  • [x] Step 7: Attempted runtime confirmation. Web reproduction lacked the required account fixture, and production logs were unavailable.
  • [x] Step 8: Prepared the analysis with those limits explicit.

The key unresolved facts are the affected account’s onboarding variant and the actions returned by CompleteGuidedSetup. 🤖 Web test steps verification results: ⚠️ partial

Preliminary analysis (low confidence): An App regression is not established: “Manage my team” task creation is server-owned, and a supported onboarding variant intentionally replaces tasks with a welcome message. Web reproduction was blocked by an already-onboarded plus-address account; production logs were unavailable.

Existing inbox showing Concierge rather than the required admin room
Step Status
Launch AppHome rendered with the main navigation.
✅
Sign in with a new accountThe available account was already signed in and used a Gmail plus-address. Fresh, no-plus registration was not verified.
⚠️
Choose Manage my team, 5–9 people, and disable all featuresBlocked: onboarding was already complete, so the required choices could not be exercised.
❌
Open admin room and verify the feature-setup taskThe available account showed Concierge rather than the required admin room. This does not demonstrate reproduction.

Root-cause findings: The App deliberately defers Manage-team task creation to the server (ReportUtils.ts:13925–13931). The documented inboxAdminsBespoke variant replaces onboarding tasks with a bespoke welcome (OnboardingRHPVariant.ts:2–11).

Hypothesis challenged: Disabling every feature does not empty the standard guided-setup task payload (ReportUtils.ts:14013–14034). The empty selected-feature array instead becomes an omitted API parameter; its server-side interpretation remains unverified (Report/index.ts:6680–6695).

Required confirmation: Capture the affected account’s onboarding variant and CompleteGuidedSetup response. Establish whether the task was expected, generated, and returned before proposing a fix. If expected content was never generated, an internal engineer should investigate the server-owned path; no App change is justified yet.

Possibly related: “Your free trial has started!” welcome message not displayed in admin room. Similar symptom, not a confirmed duplicate.
Existing inbox showing Concierge rather than the required admin room
❌

view run · view recording

MelvinBot avatar Nov 22 '26 05:11 MelvinBot

I was able to reproduce this on web (macOS Chrome, local dev build on main @ a7622fcc, production API), and I think I found why nothing shows up.

Steps

  1. Sign up with a brand-new Gmail account (no +)
  2. Choose Manage my team's expenses → 5-9 employees
  3. Uncheck every feature (including the 4 pre-selected ones) → Continue
  4. Open #admins

Result

Concierge posts "…here are some recommended next steps based on your selections:" and the message ends there. Nothing is listed after the colon. No onboarding tasks are created either.

What I found

  • The account received nvp_onboardingRHPVariant = inboxAdminsBespoke. In this variant the server posts a bespoke welcome in #admins instead of creating onboarding tasks (see the comment in ReportUtils.prepareOnboardingOnyxData). So the "Set up features" task isn't expected to be created in this variant.
  • The welcome message's HTML does contain the next steps. It has a <followup-list source="welcome"> with 3 <followup> items (accounting, categories, approvals).
  • But that list arrives already marked as selected (<followup-list source="welcome" selected>). parseFollowupsFromHtml (src/libs/ReportActionFollowupUtils/index.ts) returns [] for a selected list, so no followup buttons are rendered. That leaves the sentence ending in a colon.
  • On the App side, the only places that add selected are buildOptimisticResolvedFollowups, which runs when the user picks a followup (SuggestedFollowup.ts) or posts a comment (addComment). I did neither on this account. So the selected attribute appears to come from the server, possibly when it posts the second Concierge message ("Let me know what you'd like to set up…") below the welcome.

Conclusion

This looks like a backend issue in how the inboxAdminsBespoke welcome is posted: its followup list is resolved before the user interacts. If that's intended, the copy "here are some recommended next steps based on your selections:" should change when there are no visible steps. I don't see an App-side root cause, but I'm happy to test again or help if an App change is wanted (e.g. different copy when the list is empty).

praveendasi avatar Nov 23 '26 07:11 praveendasi

📣 @praveendasi! 📣 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 Nov 23 '26 07:11 melvin-bot[bot]

Proposal

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

A new admin who picks "Manage my team" and turns off every feature gets a Concierge welcome in #admins that ends with "here are some recommended next steps based on your selections:", and nothing is listed after it.

What is the root cause of that problem?

Building on @praveendasi's repro above: this account is on the inboxAdminsBespoke onboarding variant, so no onboarding tasks are created. The next steps live inside the welcome message as a <followup-list source="welcome"> with 3 items.

The App only ever shows followup items as tappable buttons, and only while the list is unresolved:

  • parseFollowupsFromHtml returns [] as soon as the list has the selected attribute.
  • ChatActionableButtons then renders nothing.
  • The list is also stripped from the message text (stripFollowupListFromHtml), so the items appear nowhere.

The welcome's list arrives already selected, because Concierge posts a second message right below it. The same "a newer comment resolves the list above it" rule that addComment applies on the client (buildOptimisticResolvedFollowups) also resolves it on the server.

That rule makes sense for one-off reply suggestions. But for the welcome list, the items are the content the sentence introduces, so hiding them leaves the message broken.

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

Treat a resolved welcome followup list as content rather than hiding it:

  1. In ReportActionFollowupUtils, let parseFollowupsFromHtml optionally return a resolved list's items (for example an includeResolved option, or a small getResolvedFollowups(html) helper), together with its source.
  2. In ChatActionableButtons, when the followup list is resolved and its source is welcome, render its items as a plain, non-tappable bulleted list (same text, normal message styling) under the message. This replaces rendering nothing.
  3. Leave all other sources unchanged: resolved reply suggestions stay hidden, and unresolved lists still render as SuggestedFollowupButtons.

That way the next steps always show under "…based on your selections:". If the server later stops pre-resolving the list, the buttons simply show as they do today.

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

  • Unit (ReportActionsFollowupUtilsTest): a selected welcome list returns its 3 items when resolved items are requested, and still returns [] by default.
  • UI (ReportActionItemTest): a Concierge action with a selected <followup-list source="welcome"> shows the item text as static rows, with no buttons. A selected list with any other source shows nothing. An unselected list still shows buttons.

What alternative solutions did you explore? (Optional)

  • Backend: don't mark the welcome list selected when Concierge itself posts the follow-up message. Only a user action should resolve it. This is the cleaner fix, but it's internal, and the App change above still guards against it.
  • Keep the welcome items tappable even after they're resolved. This is more useful but riskier, since tapping would post a question into a conversation that has already moved on.
  • Change the copy when no steps are visible. This is server-owned, and it hides the recommendations instead of showing them.

okiie12-code avatar Nov 23 '26 08:11 okiie12-code

📣 @okiie12-code! 📣 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 Nov 23 '26 08:11 melvin-bot[bot]

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

okiie12-code avatar Nov 23 '26 08:11 okiie12-code

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

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

Hi, @FitseTLT

I reproduced this on web with a new account that has no + in the email, on production. Right after onboarding, #admins shows the Concierge welcome with 3 next steps (before screenshot).

About 25 seconds later Concierge posts a second message, "Hi there, what would you like help with next in Expensify?". After that the welcome's list comes back as <followup-list source="welcome" selected>, the 3 steps disappear, and the text ends at "based on your selections:" (after screenshot).

I didn't type or click anything in between, and the app sent no AddComment. Also, the app's own resolver rewrites the tag to plain <followup-list selected> and drops source, so this one was set by the server.

So I think this is a backend issue: Concierge's own follow-up message shouldn't resolve the welcome list.

Before:

03-admins-t0

After:

04-admins-after-second-message

oqildev avatar Nov 24 '26 08:11 oqildev

Reviewing

FitseTLT avatar Nov 24 '26 11:11 FitseTLT

@marcochavezf I think you are more knowledgable on onboarding feature. Is this a bug or the Test Case is obsolete? This is what you see when you sign up with all features unselected

image

FitseTLT avatar Nov 24 '26 17:11 FitseTLT

Ah yes, we're showing the bespoke welcome message with follow-ups instead of tasks in some cases (I don't remember exactly when, since there have been a few changes since it was implemented). So the test case is stale

marcochavezf avatar Nov 25 '26 22:11 marcochavezf