browsertrix/frontend
Tessa Walsh 5684e896af
Add support for autoclick (#2313)
Fixes #2259 

This PR brings backend and frontend support for the new autoclick
behavior in Browsertrix, introduces in Browsertrix 1.5.0+

On the backend, we introduce `min_autoclick_crawler_image` to
`values.yaml`, with a default value of
`"docker.io/webrecorder/browsertrix-crawler:1.5.0"`. If this is set and
the crawler version for a new crawl is less than this value, the
autoclick behavior is removed from the behaviors list in the configmap
created for the crawl.

The one caveat for this is that a crawler image tag like "latest" will
always be parsed as greater than `min_autoclick_crawler_image`, so there
is the potential for the crawler to run into issues if using a
non-numeric image tag with an older version of the crawler. For
production we use hardcoded specific versions of the crawler except for
the dev channel, which from here on out will including autoclick
support, so I think this should be okay (and is also true of the
existing implementation for checking `min_qa_crawler_image`).

On the frontend, I've added a checkbox (unchecked by default) in the
"Limits" section just below the current checkbox for autoscroll. We
might want to move these to a different section eventually - I'm not
sure Limits is the right place for them - but I wanted to be consistent
with things as they are.

---------

Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
2025-01-16 12:44:00 -08:00
..
.husky
config Remove ANALYTICS_NAMESPACE, as it's only usable at build time (#2293) 2025-01-13 20:13:30 -08:00
docs feat: Add slug to collections and use it in public collection URLs (#2301) 2025-01-15 22:44:32 -08:00
lib
patches
scripts deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
src Add support for autoclick (#2313) 2025-01-16 12:44:00 -08:00
tests
xliff Translations update from Hosted Weblate (#2296) (#2314) 2025-01-15 23:19:02 -08:00
.dockerignore
.editorconfig
.eslintrc.js
.gitignore
.prettierignore
.vscode
.yarnrc deps: Upgrade to Node 22 (#2274) 2025-01-07 11:58:23 -08:00
00-browsertrix-nginx-init.sh feat: Track collection events (#2256) 2025-01-13 15:15:49 -08:00
Dockerfile deps: Upgrade to Node 22 (#2274) 2025-01-07 11:58:23 -08:00
frontend.conf.template
index.d.ts feat: Collection thumbnails, start page, and public view updates (#2209) 2025-01-13 15:15:48 -08:00
lit-localize.json
minio.conf
package.json deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
playwright.config.ts
postcss.config.js
prettier.config.js
README.md
sample.env.local Remove ANALYTICS_NAMESPACE, as it's only usable at build time (#2293) 2025-01-13 20:13:30 -08:00
tailwind.config.js deps: Upgrade to Node 22 (#2274) 2025-01-07 11:58:23 -08:00
tsconfig.eslint.json
tsconfig.json
vendor.webpack.config.js deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
web-test-runner.config.mjs feat: Track collection events (#2256) 2025-01-13 15:15:49 -08:00
webpack.config.js deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
webpack.dev.js deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
webpack.prod.js
yarn.lock deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00