browsertrix/frontend/src/components
Henry Wilkinson f507f1d2ec
Fixes allowed actions for viewers and crawlers throughout the app (#1326)
Closes #1294

### Changes
- `crawl-list` component
- Adds a check if there are any items in the actions menu. If not, skip
rendering the actions menu.
- This allows us to give the component no actions! Currently required to
remove them for viewers!
- Collection Details
  - Hides "Remove from Collection" option for viewers
- Crawls List
- Removes the single "View Crawl Details" option from archived items for
viewers
- All the other actions were already set up correctly to be used by all
roles!
- Dashboard
  - Hides org settings gear icon button unless the user is an admin
  - Hides "Create New" dropdown for viewers
- Workflow Details
  - Hides workflow edit icon button for viewers
  - Hides the "Delete Crawl" option in archived items for viewers
  - Hides the "Run Crawl" option for viewers
- Workflow List
- Hides all edit-related options for viewers, the only option now is
copying tags
- Removes the deactivate / delete options (were only visible when
running a crawl) in the workflow list actions

---------
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
Co-authored-by: sua yoo <sua@suayoo.com>
2023-11-17 14:41:21 -08:00
..
input Enforce strong passwords in UI (#1266) 2023-10-12 19:36:59 -07:00
account-settings.ts User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
alert.ts
badge.ts
button.ts
checkbox-list.ts
code.ts
collections-add.ts
combobox.ts
config-details.ts Make URLs in the settings viewer clickable, removes deeplinked titles (#1247) 2023-10-18 16:20:22 -07:00
config-editor.ts
copy-button.ts
crawl-list.ts Fixes allowed actions for viewers and crawlers throughout the app (#1326) 2023-11-17 14:41:21 -08:00
crawl-logs.ts
crawl-metadata-editor.ts
crawl-pending-exclusions.ts
crawl-queue.ts exclusion optimizations: dynamic exclusions (part of #1216): (#1268) 2023-11-06 09:36:25 -08:00
crawl-status.ts Replace partial_complete -> stopped_by_user or stopped_quota_reached + operator edge cases (#1368) 2023-11-14 11:17:16 -08:00
data-table.ts
desc-list.ts
details.ts
dialog.ts
exclusion-editor.ts exclusion optimizations: dynamic exclusions (part of #1216): (#1268) 2023-11-06 09:36:25 -08:00
file-list.ts
index.ts Enforce strong passwords in UI (#1266) 2023-10-12 19:36:59 -07:00
invite-form.ts
language-select.ts
locale-picker.ts
markdown-editor.ts
markdown-viewer.ts
meter.ts
not-found.ts
numbered-list.ts
observable.ts
orgs-list.ts Enforce quota and hard cap for monthly execution minutes (#1284) 2023-10-26 15:38:51 -07:00
pagination.ts
profile-browser.ts
pw-strength-alert.ts Enforce strong passwords in UI (#1266) 2023-10-12 19:36:59 -07:00
queue-exclusion-form.ts
queue-exclusion-table.ts
relative-duration.ts
screencast.ts
search-combobox.ts
section-heading.ts
select-browser-profile.ts Use org slug in place of UUIDs in app URLs (#1277) 2023-10-18 09:28:30 -07:00
sign-up-form.ts User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
tab-list.ts
tag-input.ts
tag.ts Update tag spacing and styling for remove button (#1283) 2023-10-20 16:02:32 -07:00
time-input.ts
workflow-list.ts Use org slug in place of UUIDs in app URLs (#1277) 2023-10-18 09:28:30 -07:00