parse-community / parse-dashboard

A dashboard for managing Parse Server
https://parseplatform.org
Other
3.73k stars 1.38k forks source link

Dashboard scrolls when selecting row in data browser #2545

Closed mtrezza closed 1 month ago

mtrezza commented 2 months ago

New Issue Checklist

Issue Description

Dashboard scrolls when selecting row in data browser. This has only been observed when a filter is set.

Uploading recording.mov…

Steps to reproduce

  1. Open dashboard collection in data browser; collection needs to be large enough so it contains enough rows to scroll multiple pages; e.g. see screen recording which uses 300 rows.
  2. Set filter "objectId exists".
  3. Select a row without scrolling down.
  4. Scroll down at least 2 pages and select a row --> data browser jump-scrolls up.

Environment

Dashboard

parse-github-assistant[bot] commented 2 months ago

Thanks for opening this issue!

devbymak commented 2 months ago

I tried doing steps but didn't see jump-scrolls up, can you upload the record?

mtrezza commented 1 month ago

Sometimes I can't get it to replicate neither. I believe it has something to do with:

You'd have to play around a bit.

  1. Create class "Test".
  2. Open the JS console and run:

    const objs = [];
    
    for (let i=0; i<1000; i++) {
      const obj = new Parse.Object('Test');
      objs.push(obj);
    }
    
    await Parse.Object.saveAll(objs);
  3. Set filter "objectId exists".
  4. Select individual rows --> view scrolls

I'll post a comment if I managed to pin it down.

devbymak commented 1 month ago

Actually, I realized that when a cell is selected and we scroll down to select a row, the row isn't properly selected(selected objectId is different), and the scroll jumps back up. Is that correct?

mtrezza commented 1 month ago

Yes that sounds like the issue I tried to describe here. It seems to be difficult to reproduce with only a few rows in a class, although I managed to do it sometimes with only 100 - 1k rows. But it occurs reliably in classes with a large number of rows and a filter set.

Could you share a video of what you observed?