Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[$250] Trip summary not displayed for thread replies #56061

Open
1 of 8 tasks
m-natarajan opened this issue Jan 30, 2025 · 29 comments
Open
1 of 8 tasks

[$250] Trip summary not displayed for thread replies #56061

m-natarajan opened this issue Jan 30, 2025 · 29 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Jan 30, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.92-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @shubham1206agra
Slack conversation (hyperlinked to channel name): travel

Action Performed:

  1. Go to a trip room
  2. Write a test message in the room
  3. Click on reply in thread to open thread

Expected Result:

It should look like a normal thread

Actual Result:

Empty trip summary appears

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Image

Image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021885343111802950570
  • Upwork Job ID: 1885343111802950570
  • Last Price Increase: 2025-01-31
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @blazejkustra
@m-natarajan m-natarajan added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

Triggered auto assignment to @slafortune (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.

@blazejkustra
Copy link
Contributor

I'm Błażej Kustra from SWM, and I'm commenting for assignment!

@sumo-slonik
Copy link
Contributor

Hi, I'll be helping out @blazejkustra here.

@slafortune slafortune added the External Added to denote the issue can be worked on by a contributor label Jan 31, 2025
@melvin-bot melvin-bot bot changed the title Trip summary not displayed for thread replies [$250] Trip summary not displayed for thread replies Jan 31, 2025
Copy link

melvin-bot bot commented Jan 31, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 31, 2025
Copy link

melvin-bot bot commented Jan 31, 2025

Current assignee @shubham1206agra is eligible for the External assigner, not assigning anyone new.

@blimpich blimpich self-assigned this Jan 31, 2025
@blimpich blimpich removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 31, 2025
@blimpich
Copy link
Contributor

Assigned to myself so that there is an Expensify CME for this who is focused on travel.

Removed Help Wanted since there are engineers already working on this.

@melvin-bot melvin-bot bot added the Overdue label Feb 3, 2025
@shubham1206agra
Copy link
Contributor

Waiting for @sumo-slonik to raise a PR.

@melvin-bot melvin-bot bot removed the Overdue label Feb 3, 2025
@sumo-slonik
Copy link
Contributor

@shubham1206agra Could you help me reproduce the bug?
I see the thread seems normal to me, both for the hotel and the flight.

Image

@shubham1206agra
Copy link
Contributor

@sumo-slonik Go inside a comment thread from here.

Image

@sumo-slonik
Copy link
Contributor

sumo-slonik commented Feb 5, 2025

@shubham1206agra could you include a video of you entering the trip room and adding a comment in addition to the screenshot?

@shubham1206agra
Copy link
Contributor

@sumo-slonik Here you go

Screen.Recording.2025-02-05.at.8.04.13.PM.mov

@sumo-slonik
Copy link
Contributor

thanks :D

@sumo-slonik
Copy link
Contributor

I managed to reproduce, without recording I did not understand the flow

@sumo-slonik
Copy link
Contributor

sumo-slonik commented Feb 7, 2025

Hi @shubham1206agra @blimpich, could you confirm if the thread is working as it should in the attached video?

Screen.Recording.2025-02-07.at.12.29.25.mov

@shubham1206agra
Copy link
Contributor

@sumo-slonik Chat header looks wrong.

Also, I don't think we need trip preview in the thread. But I will let @Expensify/design decide on this.

@melvin-bot melvin-bot bot added the Overdue label Feb 9, 2025
@shawnborton
Copy link
Contributor

Hmm I am not following, do you mind rephrasing? Maybe it would be helpful to show the parent view of each step down into the thread history as well?

Copy link

melvin-bot bot commented Feb 11, 2025

@slafortune, @blimpich, @blazejkustra, @shubham1206agra, @sumo-slonik Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@blazejkustra
Copy link
Contributor

I'll take over as @sumo-slonik is OOO this week. I'm going leave an update later today, so stay tuned 😄

@dannymcclain
Copy link
Contributor

Maybe it would be helpful to show the parent view of each step down into the thread history as well?

Yeah this would be helpful for me too. I'm having trouble following the different cases here so it's hard for me to know what the expected behavior should be.

@blazejkustra
Copy link
Contributor

The issue we are trying to fix is that currently nested threads aren't displayed properly for trip rooms:

  • Empty trip summary is shown to the user
  • There is no parent message displayed which is usually a thing we do in other type of rooms
before.mov

My suggested approach is to display both: trip summary and the parent message of a thread, like in this video below:

fix.mov

Let me know if it looks good to you both @dannymcclain & @shawnborton 👀

@dannymcclain
Copy link
Contributor

Ahhh I see! So in that case, I think your second thread would just have THREAD START as the parent message and nothing else. You can see how in the nested expense thread we don't also include the expense summary, so I don't see why the trip one would behave any different.

@shawnborton
Copy link
Contributor

Yeah, I think I agree with Danny. Basically this should have THREAD START as the parent thread:

Image

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Feb 12, 2025
@blazejkustra
Copy link
Contributor

Makes sense! PR is ready for review @shubham1206agra 😄

www.mov

@dannymcclain
Copy link
Contributor

Looks good—any idea why the title of all these threads is Chat report instead of the actual title?

Image

Image

@blazejkustra
Copy link
Contributor

blazejkustra commented Feb 12, 2025

Good question @dannymcclain, this looks weird. I briefly looked through the code and we use the report name from the backend. Could you have a look @rlinoz / @stitesExpensify?

       if (isTripRoom(report)) {
            return report?.reportName ?? '';
        }

@blazejkustra
Copy link
Contributor

This doesn't mean we have to block the above PR, as this seems unrelated. cc @shubham1206agra

@rlinoz
Copy link
Contributor

rlinoz commented Feb 13, 2025

Every thread has the report name set to Chat Report so the code is not wrong, but we will have to figure out when a thread is a thread inside a tripRoom and when we are looking at the tripRoom as a thread, as in it is a thread from the policy expense chat.

@rlinoz
Copy link
Contributor

rlinoz commented Feb 13, 2025

Maybe just update it to

        if (isTripRoom(report) && report?.reportName !== CONST.REPORT.DEFAULT_REPORT_NAME) {
            return report?.reportName ?? '';
        }

@blimpich
Copy link
Contributor

Maybe just update it to

        if (isTripRoom(report) && report?.reportName !== CONST.REPORT.DEFAULT_REPORT_NAME) {
            return report?.reportName ?? '';
        }

I think this should work, @blazejkustra if you try this do you see any issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Development

No branches or pull requests

9 participants