browsertrix/frontend
Tessa Walsh f84f6f55e0
Add basic backend validation for selectLinks (#2510)
Follow-up to #2152 

Related to https://github.com/webrecorder/browsertrix/pull/2487

This PR provides very basic validation of the `config.selectLinks`
argument on workflow creation and update. Namely, it checks that:
- `config.selectLinks` is not an empty array
- Each entry consists of two non-empty text sequences separated by `->`

At this point we're not validating the actual CSS selector on the
backend, though we could add that down the road.

Tests have been added accordingly.

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2025-04-07 21:36:05 +02:00
..
.husky chore: Auto-commit extracted localization strings (#2089) 2024-09-30 10:48:13 -07:00
config Remove ANALYTICS_NAMESPACE, as it's only usable at build time (#2293) 2025-01-13 20:13:30 -08:00
docs feat: Specify custom link selectors (#2487) 2025-04-02 00:32:34 -07:00
lib
patches
scripts deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
src Add basic backend validation for selectLinks (#2510) 2025-04-07 21:36:05 +02:00
tests
xliff Translations update from Hosted Weblate (#2467) (#2471) 2025-03-07 12:40:43 -08:00
.dockerignore
.editorconfig
.eslintrc.js
.gitignore CI: Add Playwright UI e2e tests + CI (#614) 2023-03-22 16:23:22 -07:00
.prettierignore Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
.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 Local Deployment Work: Support running locally + test cluster on CI (#396) 2022-12-02 19:58:34 -08:00
package.json feat: Specify custom link selectors (#2487) 2025-04-02 00:32:34 -07:00
playwright.config.ts
postcss.config.js
prettier.config.js
README.md Update frontend local dev guide (#1073) 2023-08-15 12:03:39 -07:00
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
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
webpack.config.js Add pageCount to crawls and uploads and use in frontend for page counts (#2315) 2025-01-16 14:41:14 -08:00
webpack.dev.js deps: Improve Webpack build performance (#2288) 2025-01-14 12:55:12 -08:00
webpack.prod.js
yarn.lock feat: Specify custom link selectors (#2487) 2025-04-02 00:32:34 -07:00