Greenstand / treetracker-admin-client

The Admin Panel is the part of the Treetracker project for verifying, processing and managing data collected by the Treetracker app
GNU Affero General Public License v3.0
33 stars 193 forks source link

Adding page number in page url (enhancement) #1090

Open SuspenseFallback opened 1 year ago

SuspenseFallback commented 1 year ago

Along with adding the filter values in the url (see issue #915 ), for certain pages such as Verify, should the page number, along with the image size and number of images shown be also added as query parameters?

nmcharlton commented 1 year ago

I think that's a great idea. Page number and images per page are important pieces of view state information that should be retained on refresh and should link into the browser back/forward buttons.

I've already included pagination parameters in the draft PR for the filter persistence: #1010. I'll link this issue in as resolve by that PR for completeness.

Image size is a little different, as it's more like a user preference – it would make sense to store this in localStorage.