Skip to content

[HOLD for payment 2024-11-20] [$250] Web - Sign Up - Concierge chat is not auto scrolled to the bottom after onboarding process #52025

Closed

Description

@IuliiaHerets

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.57-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team

Action Performed:

  1. Open the staging.new.expensify.com website.
  2. Sign up with a new account.
  3. Select "Manage my team´s expenses"
  4. Complete the onboarding process selecting any option on the following steps.
  5. Verify you land on Concierge chat and the conversation is auto scrolled to the bottom.

Expected Result:

When landing on Concierge chat, the conversation should be auto scrolled to the bottom.

Actual Result:

When selecting "Manage my team´s expenses" during onboarding process, Concierge chat is not auto scrolled to the bottom when the user is redirected to it.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6655025_1730778650817.Concierge.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021853799179762467415
  • Upwork Job ID: 1853799179762467415
  • Last Price Increase: 2024-11-05
  • Automatic offers:
    • brunovjk | Reviewer | 104756320
    • FitseTLT | Contributor | 104756322
Issue OwnerCurrent Issue Owner: @twisterdotcom

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Nov 5, 2024
  2. melvin-bot commented on Nov 5, 2024

    @melvin-bot

    Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. FitseTLT commented on Nov 5, 2024

    @FitseTLT
    Contributor

    Proposal

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

    Web - Sign Up - Concierge chat is not auto scrolled to the bottom after onboarding process

    What is the root cause of that problem?

    The root cause of the problem is we haven't provided lastVisibleActionCreated optimistically for the target chat Report here

    App/src/libs/actions/Report.ts

    Lines 3643 to 3651 in 210db71

    optimisticData.push(
    {
    onyxMethod: Onyx.METHOD.MERGE,
    key: `${ONYXKEYS.COLLECTION.REPORT}${targetChatReportID}`,
    value: {
    lastMentionedTime: DateUtils.getDBTime(),
    hasOutstandingChildTask,
    },
    },

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

    We need to set the lastVisibleActionCreated to last action added to the targetChatReportID optimistically
    so we will set it to the last task report action timestamp and if it is not available we will set it to the video comment action otherwise to the text comment action's created timestamp.

        const lastVisibleActionCreated =
            tasksData.at(-1)?.completedTaskReportAction?.created ?? tasksData.at(-1)?.taskReportAction.reportAction.created ?? videoCommentAction?.created ?? textCommentAction.created;
    
        const optimisticData: OnyxUpdate[] = [...tasksForOptimisticData];
        optimisticData.push(
            {
                onyxMethod: Onyx.METHOD.MERGE,
                key: `${ONYXKEYS.COLLECTION.REPORT}${targetChatReportID}`,
                value: {
                    lastMentionedTime: DateUtils.getDBTime(),
                    hasOutstandingChildTask,
                    lastVisibleActionCreated,
                },
            },       
    

    What alternative solutions did you explore? (Optional)

  4. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Nov 5, 2024
  5. changed the title [-]Web - Sign Up - Concierge chat is not auto scrolled to the bottom after onboarding process[/-] [+][$250] Web - Sign Up - Concierge chat is not auto scrolled to the bottom after onboarding process[/+] on Nov 5, 2024
  6. melvin-bot commented on Nov 5, 2024

    @melvin-bot
  7. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Nov 5, 2024
  8. melvin-bot commented on Nov 5, 2024

    @melvin-bot

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

  9. twisterdotcom commented on Nov 5, 2024

    @twisterdotcom
    Contributor

    Possibly linked: #49599

  10. FitseTLT commented on Nov 5, 2024

    @FitseTLT
    Contributor

    Possibly linked: #49599

    Nope, that is completely different issue. 👍

  11. luckydaniel1993 commented on Nov 5, 2024

    @luckydaniel1993

    Proposal

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

    Web - Sign Up - Concierge chat is not auto scrolled to the bottom after onboarding process

    What is the root cause of that problem?

    After completing the onboard flow, we didn't notify that is a new action.

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

    At the end of completeOnboarding function (after API.write), I added notifyNewAction.
    notifyNewAction(targetChatReportID, currentUserAccountID);

    What alternative solutions did you explore? (Optional)

    N/A

    Contributor details

    Your Expensify account email: anasup1995@gmail.com
    Upwork Profile Link: https://www.upwork.com/freelancers/~01aff093c9a804b145

  12. melvin-bot commented on Nov 5, 2024

    @melvin-bot

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

  13. 13 remaining items

  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Nov 7, 2024
  15. changed the title [-][$250] Web - Sign Up - Concierge chat is not auto scrolled to the bottom after onboarding process[/-] [+][HOLD for payment 2024-11-20] [$250] Web - Sign Up - Concierge chat is not auto scrolled to the bottom after onboarding process[/+] on Nov 13, 2024
  16. melvin-bot commented on Nov 13, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Nov 13, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.60-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2024-11-20. 🎊

    For reference, here are some details about the assignees on this issue:

  18. melvin-bot commented on Nov 13, 2024

    @melvin-bot

    @brunovjk @twisterdotcom @brunovjk The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  19. brunovjk commented on Nov 19, 2024

    @brunovjk
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production
    • 2b. Reported on staging (deploy blocker)
    • 2c. Reported on both staging and production
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other: Applause Internal Team
    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: Tasks for guided setup #39951 (comment)

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Regression Test Proposal

    Test:

    1. Sign up with a new account.
    2. Select "Manage my team´s expenses".
    3. Complete the onboarding process selecting any option on the following steps.
    4. Verify you land on Concierge chat and the conversation is auto scrolled to the bottom.

    Do we agree 👍 or 👎

  20. twisterdotcom commented on Nov 19, 2024

    @twisterdotcom
    Contributor

    Payment Summary:

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions