browsertrix/frontend
Emma Segal-Grossman eeda4cd9ff
Persist pagination state in url (#2538)
Closes #1944 

## Changes
- Pagination stores page number in url search params, rather than
internal state, allowing going back to a specific page in a list
- Pagination navigation pushes to history stack, and listens to history
changes to be able to respond to browser history navigation
(back/forward)
- Search parameter reactive controller powers pagination component
- Pagination component allows for multiple simultaneous paginations via
custom `name` property

## Manual testing

1. Log in as any role
2. Go to one of the list views on an org with enough items in the list
to span more than one page
3. Click on one of the pages, and navigate back in your browser. The
selected page should respect this navigation and return to the initial
numbered page.
4. Navigate forward in your browser. The selected page should respect
this navigation and switch to the numbered page from the previous step.
5. Click on a non-default page, and then click on one of the items in
the list to go to its detail page. Then, using your browser's back
button, return to the list page. You should be on the same numbered page
as before.

---------

Co-authored-by: sua yoo <sua@suayoo.com>
2025-04-09 15:40:30 -04:00
..
.husky
config
docs Move custom behaviors behind checkbox (#2545) 2025-04-09 00:16:02 +02:00
lib
patches
public Add basic opengraph & twitter card tags & image to browsertrix root (#2547) 2025-04-08 19:23:26 -04:00
scripts deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
src Persist pagination state in url (#2538) 2025-04-09 15:40:30 -04:00
tests
xliff Translations update from Hosted Weblate (#2467) (#2471) 2025-03-07 12:40:43 -08:00
.dockerignore
.editorconfig
.eslintrc.js
.gitignore
.prettierignore
.vscode
.yarnrc
00-browsertrix-nginx-init.sh
Dockerfile quickfix: add missing dependency for docs (#2388) 2025-02-12 16:39:06 -05:00
frontend.conf.template misc fixes: cors + disable buffering for uploads (#2395) 2025-02-13 19:38:20 -08:00
index.d.ts
lit-localize.json
minio.conf
package.json fix: Handle no crawling defaults (#2549) 2025-04-09 12:48:12 -04:00
playwright.config.ts
postcss.config.js
prettier.config.js
README.md
sample.env.local
tailwind.config.js
tsconfig.eslint.json
tsconfig.json
vendor.webpack.config.js
web-test-runner.config.mjs feat: Track collection events (#2256) 2025-01-13 15:15:49 -08:00
webpack.config.js Add basic opengraph & twitter card tags & image to browsertrix root (#2547) 2025-04-08 19:23:26 -04:00
webpack.dev.js
webpack.prod.js
yarn.lock fix: Handle no crawling defaults (#2549) 2025-04-09 12:48:12 -04:00