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
config
docs feat: Specify custom link selectors (#2487) 2025-04-02 00:32:34 -07:00
lib
patches
scripts
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
.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 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
sample.env.local
tailwind.config.js
tsconfig.eslint.json
tsconfig.json
vendor.webpack.config.js
web-test-runner.config.mjs
webpack.config.js
webpack.dev.js
webpack.prod.js
yarn.lock feat: Specify custom link selectors (#2487) 2025-04-02 00:32:34 -07:00