Resolves https://github.com/webrecorder/browsertrix-cloud/issues/1333 - Moves "Select Crawls" / "Select Uploads" steps into a single "Select Archived Items" dialog - Refactors new collection metadata dialog to accept editing existing collection - Prevents RWP component from rendering if there are no archived items (@Shrinks99 made a comment about this figma, but this prevents unnecessary requests when there isn't an archive to replay) - Shows collection description at bottom of detail page at all times (@Shrinks99 seems useful to see even on archived items view?) - Switches collection detail primary action to "Add Archived Items" if none are included (cc @Shrinks99) - Displays friendlier "name taken" error - Removes unused Collection edit route - Upgrades markdown dependencies for fixes/improvements to description editing --------- Co-authored-by: Henry Wilkinson <henry@wilkinson.graphics>
29 lines
936 B
TypeScript
29 lines
936 B
TypeScript
export const ROUTES = {
|
|
home: "/",
|
|
join: "/join/:token",
|
|
signUp: "/sign-up",
|
|
acceptInvite: "/invite/accept/:token",
|
|
verify: "/verify",
|
|
login: "/log-in",
|
|
loginWithRedirect: "/log-in?redirectUrl",
|
|
forgotPassword: "/log-in/forgot-password",
|
|
resetPassword: "/reset-password",
|
|
accountSettings: "/account/settings",
|
|
orgs: "/orgs",
|
|
org: [
|
|
"/orgs/:slug",
|
|
// Org sections:
|
|
"(/workflows(/crawls)(/crawl/:workflowId))",
|
|
"(/items(/:itemType(/:itemId)))",
|
|
"(/collections(/new)(/view/:collectionId(/:collectionTab)))",
|
|
"(/browser-profiles(/profile(/browser/:browserId)(/:browserProfileId)))",
|
|
"(/settings(/:settingsTab))",
|
|
].join(""),
|
|
users: "/users",
|
|
usersInvite: "/users/invite",
|
|
crawls: "/crawls",
|
|
crawl: "/crawls/crawl/:crawlId",
|
|
// Redirect for https://github.com/webrecorder/browsertrix-cloud/issues/935
|
|
awpUploadRedirect: "/orgs/:orgId/artifacts/upload/:uploadId",
|
|
} as const;
|