Skip to content

[$1000] Jump to last unread chat when opening a report #35011

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

Open
6 tasks done
kbecciv opened this issue Jan 23, 2024 · 138 comments
Open
6 tasks done

[$1000] Jump to last unread chat when opening a report #35011

kbecciv opened this issue Jan 23, 2024 · 138 comments
Assignees
Labels
Engineering Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Jan 23, 2024

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: 1.4.28.0
Reproducible in staging?: y
Reproducible in production?: y
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: @MonilBhavsar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1705558628672569

Action Performed:

  1. A is participant of a chat or room
  2. As another user send some good number of messages to chat report, so new messages can be scrolled up and down
  3. As user A, open the chat report

Expected Result:

The chat report view opens from where the messages are unread and user can scroll down

Actual Result:

The chat report view is scrolled down to the last message and user needs to scroll up to find last read message

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Recording.5931.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fc144b2f2f5df388
  • Upwork Job ID: 1749920553887232000
  • Last Price Increase: 2024-06-11
  • Automatic offers:
    • ikevin127 | Contributor | 0
    • ishpaul777 | Contributor | 102670752
@kbecciv kbecciv added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Jan 23, 2024
Copy link

melvin-bot bot commented Jan 23, 2024

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor and removed Needs Reproduction Reproducible steps needed labels Jan 23, 2024
@melvin-bot melvin-bot bot changed the title Chat - When opening a chat with lots of unread messages user needs to scroll up to find last read message [$500] Chat - When opening a chat with lots of unread messages user needs to scroll up to find last read message Jan 23, 2024
Copy link

melvin-bot bot commented Jan 23, 2024

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

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

melvin-bot bot commented Jan 23, 2024

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

@jeremy-croff
Copy link
Contributor

This PR #28793 specifically makes it scrolled to the bottom, seems like NAB

@trjExpensify
Copy link
Contributor

trjExpensify commented Jan 24, 2024

I'm a bit confused by the bug report @MonilBhavsar, so asking about it here. I thought this was something we'd implement via comment linking.

@roryabraham roryabraham changed the title [$500] Chat - When opening a chat with lots of unread messages user needs to scroll up to find last read message [HOLD #30269] [$500] Chat - When opening a chat with lots of unread messages user needs to scroll up to find last read message Jan 24, 2024
@roryabraham
Copy link
Contributor

HOLD for comment linking: #30269

@roryabraham roryabraham added NewFeature Something to build that is a new item. and removed Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels Jan 24, 2024
Copy link

melvin-bot bot commented Jan 24, 2024

Current assignee @trjExpensify is eligible for the NewFeature assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jan 24, 2024
@roryabraham roryabraham moved this to HOLD in Comment Linking Jan 24, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 2, 2024
@trjExpensify
Copy link
Contributor

No change, still on hold Melv!

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 13, 2024
@trjExpensify
Copy link
Contributor

Samesies, Melv!

@melvin-bot melvin-bot bot removed the Overdue label Feb 14, 2024
@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2025
@rlinoz
Copy link
Contributor

rlinoz commented Feb 14, 2025

Hey @janicduplessis any updates here?

@janicduplessis
Copy link
Contributor

Sorry about the delay, I didn't end up having much time to work on this this week. It should be ready by early next week :)

@janicduplessis
Copy link
Contributor

Still working on this, I hit a little issue where for some reason the first unread action is now wrong. It seems to be a regression since it happened after merging main. Trying to pinpoint what caused this.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Feb 22, 2025
@janicduplessis
Copy link
Contributor

Good news, after updating to latest main the regression is gone. PR #51366 is now ready for review and further testing!

@rlinoz
Copy link
Contributor

rlinoz commented Mar 7, 2025

PR is being reviewed, looks like there is one outstanding bug reported here #51366 (comment)

@rlinoz
Copy link
Contributor

rlinoz commented Mar 14, 2025

@janicduplessis should be able to continue the work on the PR soon.

@rlinoz
Copy link
Contributor

rlinoz commented Mar 28, 2025

@chrispader took over while @janicduplessis is OOO, we are still ironing out some bugs.

@trjExpensify
Copy link
Contributor

What's the latest here? We've had this issue/PR open a while at this point.

@rlinoz
Copy link
Contributor

rlinoz commented Apr 15, 2025

@chrispader can you give us an update here?

@chrispader
Copy link
Contributor

I'm working on it right now. Basically the/a problem right now is, that when we have an unread report, then go offline, and then open the report, the messages and report will still be marked as read. This messes up the logic where we jump to the last unread message, once the user goes online and the rest of the messages loads.

I think i've found a potential solution, but still have to work on some edge-cases

@rlinoz
Copy link
Contributor

rlinoz commented Apr 25, 2025

PR is ready for a new review, we are looking whether there is a new bug or not.

@melvin-bot melvin-bot bot removed the Weekly KSv2 label May 19, 2025
Copy link

melvin-bot bot commented May 19, 2025

This issue has not been updated in over 15 days. @janicduplessis, @rlinoz, @trjExpensify, @ishpaul777 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@melvin-bot melvin-bot bot added the Monthly KSv2 label May 19, 2025
@trjExpensify
Copy link
Contributor

Looks like the PR is still in review. Also, not sure if this has been considered already, but you might want to test multi-expense reports with the tableReportView beta as that's super close to being released. CC: @Expensify/design @mountiny @luacmartins

@trjExpensify trjExpensify added Weekly KSv2 and removed Monthly KSv2 labels May 19, 2025
@rlinoz
Copy link
Contributor

rlinoz commented May 19, 2025

Ah totally, @chrispader is fixing one more bug, and meanwhile I can test with the tableReportView

@shawnborton
Copy link
Contributor

Good shout Tom!

@rlinoz
Copy link
Contributor

rlinoz commented May 19, 2025

@trjExpensify is the expected behavior that it always open at the first message?

@trjExpensify
Copy link
Contributor

Might need to be a litttttle more specific man, haha. In what scenario? 😅

@rlinoz
Copy link
Contributor

rlinoz commented May 19, 2025

hahaha fair

in the tableReportView, given an expense report with multiple expenses and 100 comments, should it always open at the top showing the expenses of the report or at the last unread message?

@trjExpensify
Copy link
Contributor

Gotcha! So yeah, if the expense report has an unread comment, we'd scroll to the unread comment. If not, the top of the report where the transaction table is in view.

I will say though, bugs like this where expense reports are unread because of rogue system messages make me a bit worried about applying this logic to expense reports. So it would be great to fix those once and for all. CC: @deetergp

@rlinoz
Copy link
Contributor

rlinoz commented May 19, 2025

@chrispader given the comment above, from what I was testing we are always opening at the top and load all the messages in between the unread and the oldest one. Can you also take a look at that, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2
Projects
Status: In Progress
Development

No branches or pull requests