From 0bd8748e68b55797d103237e91c70c566f8e41f5 Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Fri, 13 Oct 2023 19:55:54 -0400 Subject: [PATCH] Minor Workflow Creator UX Changes (#1267) - Adds `position: sticky` to the workflow creator / editor controls to affix them to the bottom of the screen, they are now always visible! - Renames "Extra URLs in Scope" to "Extra URL Prefixes in Scope" - Updates documentation accordingly - Adjusts casing for checkboxes - Adds the multiplication sign to the crawler instances settings to better communicate that they are increases in scale and not arbitrary numbers. --- docs/user-guide/workflow-setup.md | 4 +-- frontend/src/components/config-details.ts | 7 +++-- frontend/src/pages/org/workflow-detail.ts | 6 ++-- frontend/src/pages/org/workflow-editor.ts | 35 ++++++++++------------- 4 files changed, 25 insertions(+), 27 deletions(-) diff --git a/docs/user-guide/workflow-setup.md b/docs/user-guide/workflow-setup.md index 5c2eb4d3..ad1b3f7b 100644 --- a/docs/user-guide/workflow-setup.md +++ b/docs/user-guide/workflow-setup.md @@ -62,7 +62,7 @@ You must specify the protocol (likely `http://` or `https://`) as a part of the : This scope will crawl all pages on the domain and any subdomains found. If `example.com` is set as the _Crawl Start URL_, both pages on `example.com` and `subdomain.example.com` will be crawled. `Custom Page Prefix` -: This scope will crawl all pages that begin with the _Crawl Start URL_ as well as pages from any URL that begin with the URLs listed in `Extra URLs in Scope` +: This scope will crawl all pages that begin with the _Crawl Start URL_ as well as pages from any URL that begin with the URLs listed in `Extra URL Prefixes in Scope` ### Max Depth @@ -70,7 +70,7 @@ You must specify the protocol (likely `http://` or `https://`) as a part of the Only shown with a _Start URL Scope_ of `Pages on This Domain` and above, the _Max Depth_ setting instructs the crawler to stop visiting new links past a specified depth. -### Extra URLs in Scope +### Extra URL Prefixes in Scope `Seeded Crawl`{ .badge-orange } diff --git a/frontend/src/components/config-details.ts b/frontend/src/components/config-details.ts index c4ceac74..2d5ede4d 100644 --- a/frontend/src/components/config-details.ts +++ b/frontend/src/components/config-details.ts @@ -188,7 +188,10 @@ export class ConfigDetails extends LiteElement { msg("Crawl Size Limit"), renderSize(crawlConfig?.maxCrawlSize) )} - ${this.renderSetting(msg("Crawler Instances"), crawlConfig?.scale)} + ${this.renderSetting( + msg("Crawler Instances"), + crawlConfig?.scale ? `${crawlConfig.scale}×` : "" + )}
@@ -330,7 +333,7 @@ export class ConfigDetails extends LiteElement { ] )} ${this.renderSetting( - msg("Extra URLs in Scope"), + msg("Extra URL Prefixes in Scope"), includeUrlList?.length ? html`