getgrav / getgrav/grav-plugin-admin
Mediapicker location filters don't work until full list is loaded for all pages.
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
Hi,
If a new mediapicker window opens it automatically opens with the filter "All Pages" so it loads all media available in all of the pages.
If the entire list hasn't loaded, user hasn't scrolled to the bottom several times to load the rest of the list until nothing is left, changing the filter to a specific location just reloads the same list as with the filter set to "All Pages".
If the user scrolls to the bottom several times until the entire list for filter "all Pages" is loaded and then chooses a page to filter by the filters work and restrict the results to the required page filter.
Can this be fixed to allow the filters to specific locations to work even thought there was no initial "full load" of the list with the "All Pages" filter? It makes working with lots of media(we have hundreds of images) very hard.
Contributor guide
Research direction
No file or test is named in the issue. Locate the admin media picker implementation and trace how the initial “All Pages” list is loaded and how a location filter is applied before loading finishes; done means selecting a specific location immediately restricts results without requiring the full list to load first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100