From 03856d56f00fef2f0ebd877cbacdb58dc74f9972 Mon Sep 17 00:00:00 2001 From: Peyton Lee Date: Thu, 12 Nov 2026 11:20:26 -0800 Subject: [PATCH 1/3] fix: Automatically fixup allen program paths to S3 URLs --- website/utils/urls.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/website/utils/urls.ts b/website/utils/urls.ts index d47be99cd..447f9b036 100644 --- a/website/utils/urls.ts +++ b/website/utils/urls.ts @@ -1,10 +1,14 @@ import type { MultisceneUrls } from "../../src/aics-image-viewer/components/App/types"; +const ALLEN_PROGRAMS_PATH = "/allen/programs/allencell/data/proj0"; +const ALLEN_PROGRAMS_S3_PATH = "https://s3.us-west-2.amazonaws.com/production.files.allencell.org"; + export function isValidUrl(url: string): boolean { return ( url.startsWith("http://") || url.startsWith("https://") || - url.startsWith("/allen/aics/") || + url.startsWith("/allen/aics") || + url.startsWith(ALLEN_PROGRAMS_PATH) || url.startsWith("s3://") || url.startsWith("gs://") ); @@ -22,6 +26,9 @@ export function normalizeFilePathSlashes(input: string): string { if (input.startsWith("//")) { input = input.slice(1); } + if (input.startsWith(ALLEN_PROGRAMS_PATH)) { + input = input.replace(ALLEN_PROGRAMS_PATH, ALLEN_PROGRAMS_S3_PATH); + } return input; } From 44ac513aaa1e91daafa435dbcfd390a00eec63c3 Mon Sep 17 00:00:00 2001 From: Peyton Lee Date: Thu, 12 Nov 2026 15:12:29 -0800 Subject: [PATCH 2/3] fix: Searchbar overflow --- website/components/Modals/LoadModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/components/Modals/LoadModal.tsx b/website/components/Modals/LoadModal.tsx index 2a12b0301..1487dec66 100644 --- a/website/components/Modals/LoadModal.tsx +++ b/website/components/Modals/LoadModal.tsx @@ -169,7 +169,7 @@ export default function LoadModal({ onLoad }: LoadModalProps): ReactElement { value={urlInput} onChange={(value) => setUrlInput(value)} onSelect={setUrlInput} - style={{ width: "100%" }} + style={{ width: "calc(100% - 68px)" }} allowClear={true} options={autoCompleteOptions} getPopupContainer={getAutoCompletePopupContainer} From 95411ea638a04f64b0a4271e37eaf4c91d1f6896 Mon Sep 17 00:00:00 2001 From: Peyton Lee Date: Thu, 12 Nov 2026 15:12:46 -0800 Subject: [PATCH 3/3] refactor: Allow paths, do not remap URLs --- website/utils/urls.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/website/utils/urls.ts b/website/utils/urls.ts index 447f9b036..0927ae96b 100644 --- a/website/utils/urls.ts +++ b/website/utils/urls.ts @@ -1,7 +1,6 @@ import type { MultisceneUrls } from "../../src/aics-image-viewer/components/App/types"; const ALLEN_PROGRAMS_PATH = "/allen/programs/allencell/data/proj0"; -const ALLEN_PROGRAMS_S3_PATH = "https://s3.us-west-2.amazonaws.com/production.files.allencell.org"; export function isValidUrl(url: string): boolean { return ( @@ -26,9 +25,6 @@ export function normalizeFilePathSlashes(input: string): string { if (input.startsWith("//")) { input = input.slice(1); } - if (input.startsWith(ALLEN_PROGRAMS_PATH)) { - input = input.replace(ALLEN_PROGRAMS_PATH, ALLEN_PROGRAMS_S3_PATH); - } return input; }