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 Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
patches Fix attribute casing & lit-analyzer issues (#1429) 2023-12-11 12:34:03 -05:00
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 test: Update Playwright E2E test settings (#2247) 2024-12-16 17:36:21 -08:00
xliff Translations update from Hosted Weblate (#2467) (#2471) 2025-03-07 12:40:43 -08:00
.dockerignore Optimizing Frontend Dockerfile (#60) 2021-12-05 18:39:45 -08:00
.editorconfig chore: add editorconfig in frontend 2023-02-24 13:04:11 -08:00
.eslintrc.js Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
.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 add vscode config symlink in frontend dir 2023-11-20 16:56:48 -05:00
.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 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 feat: Collection thumbnails, start page, and public view updates (#2209) 2025-01-13 15:15:48 -08:00
lit-localize.json Add new locales (#2240) 2024-12-13 19:59:09 -08:00
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 test: Update Playwright E2E test settings (#2247) 2024-12-16 17:36:21 -08:00
postcss.config.js
prettier.config.js Changes to support weblate workflow (#2210) 2024-12-09 15:16:47 -08:00
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 deps: Upgrade to Node 22 (#2274) 2025-01-07 11:58:23 -08:00
tsconfig.eslint.json Upgrade Prettier to 3 (#1513) 2024-01-31 20:56:17 -05:00
tsconfig.json Use types from ReplayWebPage (#2265) 2024-12-23 16:38:37 -05:00
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 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