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

[HOLD for payment 2024-11-13] [$250] Initial switch to chat is jarring #48762

Closed
2 of 6 tasks
m-natarajan opened this issue Sep 7, 2024 · 66 comments
Closed
2 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Design External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Sep 7, 2024

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.29-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: @flodnv
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1725455595449419

Action Performed:

Maybe pre-req: Switch to focus mode

  1. Sign out and back in
  2. Use the chat switcher to go to a chat with many messages
  3. Observe jarring transition between empty state and full message view

Expected Result:

The transition should be smoother, perhaps with a loading skeleton or something.

Actual Result:

It feels like the product blinks between screens

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

Screen.Recording.2024-09-04.at.3.13.48.PM.mov
Recording.3158.mp4

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021833309825524574048
  • Upwork Job ID: 1833309825524574048
  • Last Price Increase: 2024-09-10
Issue OwnerCurrent Issue Owner: @mallenexpensify / @isabelastisser
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 7, 2024
Copy link

melvin-bot bot commented Sep 7, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@flodnv
Copy link
Contributor

flodnv commented Sep 9, 2024

I also experienced this bug on Android Native today.

@mallenexpensify mallenexpensify added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Sep 10, 2024
@melvin-bot melvin-bot bot changed the title Initial switch to chat is jarring [$250] Initial switch to chat is jarring Sep 10, 2024
Copy link

melvin-bot bot commented Sep 10, 2024

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

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

melvin-bot bot commented Sep 10, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Sep 10, 2024
@mallenexpensify
Copy link
Contributor

I don't think I was able to reproduce on Desktop, @Ollyws can you attempt reproduction and post your findings? Thx

@Ollyws
Copy link
Contributor

Ollyws commented Sep 10, 2024

I don't see any issue here, the skeleton is loading correctly for me.

@flodnv
Copy link
Contributor

flodnv commented Sep 10, 2024

Did you try in focus mode?

What else can I do to help diagnose this? I encounter it several times a week...

@puneetlath
Copy link
Contributor

I think there's not really a bug here, but @flodnv is proposing that we make this UI transition smoother somehow, right?

@muttmuure
Copy link
Contributor

This seems to be the same issue with how the optimistic chat load is jarring. I think what Flo is seeing is:

  1. Switch Chats
  2. You see an optimistic chat first
  3. Then you see the loading skeleton
  4. Then you see the full chat history

@muttmuure

This comment was marked as off-topic.

@puneetlath
Copy link
Contributor

I thought we established the correct pattern here:
#43791

That is the case when you are clicking on a report in the LHN that you already have locally. Whereas the "jarring" effect being referred to here is when you don't already have the chat with someone locally. So instead what is happening is that you are:

  • using the chat switcher to start a chat with someone
  • an optimistic report is created, since once doesn't already exist locally
  • the OpenReport API call responds that there is already a pre-existing report with that user
  • you are re-directed to the pre-existing report

And the expected behavior is here:
https://expensify.slack.com/archives/C05LX9D6E07/p1718644857351619?thread_ts=1718365848.007159&cid=C05LX9D6E07

I don't think this is really possible in the scenario described above because the client doesn't know that there is an existing report until the API responds. If we were to disallow chatting until the API responds, then you'd never be able to start a chat with someone offline if you don't already have a chat with them locally.

@muttmuure
Copy link
Contributor

Got it, yeah that makes sense.

So I think I'm again landing on what I asked a few days back:

image

It sounds like @flodnv agrees, we could propose some ways to make the transition "less blinky"

@flodnv
Copy link
Contributor

flodnv commented Sep 11, 2024

I think at the very least we should show the newly loaded messages gently appearing at the bottom of the current screen, instead of making it feel like the screen is completely removed and added back.

@muttmuure
Copy link
Contributor

muttmuure commented Sep 11, 2024

that's a good idea, it would be cool if we didn't render the full report window component, just added the messages as they are loaded

@puneetlath
Copy link
Contributor

Yeah I like that idea too. @muttmuure this seems like a good one for an agency.

@mallenexpensify mallenexpensify removed their assignment Sep 11, 2024
@mallenexpensify mallenexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 11, 2024
@melvin-bot melvin-bot bot added the Overdue label Nov 1, 2024
@perunt
Copy link
Contributor

perunt commented Nov 1, 2024

I pulled the latest main. Sorry for the delay.

Copy link

melvin-bot bot commented Nov 4, 2024

@Ollyws, @chrispader, @luacmartins, @mallenexpensify, @isabelastisser, @dubielzyk-expensify Eep! 4 days overdue now. Issues have feelings too...

@isabelastisser
Copy link
Contributor

@Ollyws, can you please provide an update? Thanks!

@Ollyws
Copy link
Contributor

Ollyws commented Nov 4, 2024

The PR has been merged.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Overdue Daily KSv2 labels Nov 4, 2024
@melvin-bot melvin-bot bot changed the title [$250] Initial switch to chat is jarring [HOLD for payment 2024-11-13] [$250] Initial switch to chat is jarring Nov 6, 2024
Copy link

melvin-bot bot commented Nov 6, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 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-13. 🎊

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

  • @Ollyws requires payment through NewDot Manual Requests
  • @chrispader does not require payment (Contractor)

Copy link

melvin-bot bot commented Nov 6, 2024

@Ollyws @mallenexpensify / @isabelastisser 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]

@mallenexpensify
Copy link
Contributor

I get back on Nov 14th and will pay this then.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 12, 2024
Copy link

melvin-bot bot commented Nov 13, 2024

Payment Summary

Upwork Job

  • Reviewer: @Ollyws owed $250 via NewDot
  • Contributor: @chrispader is from an agency-contributor and not due payment

BugZero Checklist (@mallenexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1833309825524574048/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@puneetlath
Copy link
Contributor

@flodnv how are you finding the chat switch experience now?

@melvin-bot melvin-bot bot added the Overdue label Nov 14, 2024
@flodnv
Copy link
Contributor

flodnv commented Nov 14, 2024

It looks better. I think it can be even better as previously discussed above, but maybe it's good enough for now.

@isabelastisser
Copy link
Contributor

Payment summary:

Reviewer: @Ollyws owed $250 via NewDot PENDING
Contributor: @chrispader is from an agency-contributor and not due payment

@melvin-bot melvin-bot bot removed the Overdue label Nov 14, 2024
@Ollyws
Copy link
Contributor

Ollyws commented Nov 14, 2024

Requested in ND.

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 2024
Copy link

melvin-bot bot commented Nov 18, 2024

@Ollyws, @chrispader, @luacmartins, @mallenexpensify, @isabelastisser, @dubielzyk-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@isabelastisser
Copy link
Contributor

All set!

@garrettmknight
Copy link
Contributor

$250 approved for @Ollyws

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Design External Added to denote the issue can be worked on by a contributor
Projects
Development

No branches or pull requests