browsertrix/frontend
Emma Segal-Grossman a35c311571
Redirect previous crawl paths to new paths under their workflow (#2214)
Closes #2213 

This ended up being a bit of a variety PR, but primarily this fixes
issues around archived item pages for crawls at URL locations we no
longer support — specifically, crawls, which now live at
`/orgs/{oid}/workflows/{workflow_id}/crawl/{crawl_id}`, rather than
`/orgs/{oid}/items/crawl/{crawl_id}`, including the QA pages at
sub-paths of these. Attempting to view a crawl at the old (unsupported)
URL will now redirect you to the correct URL!

Other changes include:
- Updated links in various parts of the app — nothing should link to the
old URL pattern anymore for crawls!
- Improved `APIRouter` and `ViewState` typing
- A couple extra `APIRouter` tests
- An addition to the route definition for crawls at
`/orgs/{oid}/items/crawl/{crawl_id}` that allows for redirections from
QA review page URLs, rather than 404 errors — this was the actual
reported problem!
- Caching in CI for playwright tests
- `needsLogin` conversion from the deprecated `LiteElement` to
`BtrixElement`, along with all the components that use it


---------

Co-authored-by: emma-sg <emma-sg@users.noreply.github.com>
2024-12-06 16:06:59 -08:00
..
.husky chore: Auto-commit extracted localization strings (#2089) 2024-09-30 10:48:13 -07:00
config/tailwind/plugins Add detailed permissions & permission summaries to user invite popup (#2003) 2024-08-20 20:34:29 -04:00
docs Add site_url (#2130) 2024-12-04 21:56:19 +00:00
lib Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
patches
scripts Redirect previous crawl paths to new paths under their workflow (#2214) 2024-12-06 16:06:59 -08:00
src Redirect previous crawl paths to new paths under their workflow (#2214) 2024-12-06 16:06:59 -08:00
tests fix: Hide login link on login page (#2039) 2024-08-21 15:33:24 -07:00
xliff Redirect previous crawl paths to new paths under their workflow (#2214) 2024-12-06 16:06:59 -08:00
.dockerignore
.editorconfig
.eslintrc.js Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
.gitignore
.prettierignore Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
.vscode
.yarnrc refactor: Implement brand colors (#2141) 2024-11-12 08:54:11 -08:00
00-browsertrix-nginx-init.sh
Dockerfile Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
frontend.conf.template Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
index.d.ts
lit-localize.json feat: Localization workflow improvements (#2069) 2024-09-10 14:15:26 -07:00
minio.conf
package.json Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
playwright.config.ts Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
postcss.config.js Add detailed permissions & permission summaries to user invite popup (#2003) 2024-08-20 20:34:29 -04:00
prettier.config.js chore: Format XLIFF files (#2074) 2024-09-11 10:46:39 -07:00
README.md
sample.env.local feat: Merge workflow job types (#2068) 2024-09-25 10:37:18 -04:00
tailwind.config.js refactor: Implement brand colors (#2141) 2024-11-12 08:54:11 -08:00
tsconfig.eslint.json
tsconfig.json chore: Improve time to load org UI (#2044) 2024-08-26 10:45:10 -07:00
web-test-runner.config.mjs Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
webpack.config.js Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
webpack.dev.js [Chore] Webpack: Migrate from onBeforeSetupMiddleware to setupMiddlewares (#2080) 2024-10-02 19:35:32 -07:00
webpack.prod.js
yarn.lock Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00