ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
257 stars 442 forks source link

Enhance Discussion Notes Chat History with Infinite Scrolling or Better Navigation Solution #9188

Open nihal467 opened 2 days ago

nihal467 commented 2 days ago

Describe the bug

When scrolling from the bottom to the top of a discussion with 20 chat entries in the any "Discussion Notes" section, the page reloads unexpectedly after reaching the 15th chat. This forces the user to start scrolling from the bottom again, disrupting the navigation experience.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to the Patient tab and select any patient card.
  2. Click on the Discussion Notes section.
  3. Add 20 chat messages.
  4. Attempt to scroll from the bottom to the top of the chat history.
  5. See error

Expected behavior

The user should be able to smoothly scroll from the bottom to the top of the chat history without the page reloading or resetting the scroll position.

Screenshots

Image

JavidSumra commented 2 days ago

Hey @nihal467 I would like to work on this issue

JavidSumra commented 1 day ago

Hey @nihal467 same issue persist with Discussion Notes shall i fix that as well?

nihal467 commented 1 day ago

Yup fix it for both @JavidSumra

JavidSumra commented 1 day ago

@nihal467 can you please test the PR #9190