From b6a4174c935d884a2ceddc8c45fdced4e4343477 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Tue, 23 Sep 2025 18:37:57 +0900 Subject: [PATCH 1/5] feat(website): improve timeout handling with warning display - Add onAbort callback to distinguish timeouts from errors - Implement errorType system to differentiate warnings from errors - Update TryItResultErrorContent to show warning styling for timeouts - Change timeout message to suggest using Include/Ignore Patterns - Timeout now displays with yellow warning icon instead of red error --- website/client/components/Home/TryIt.vue | 2 ++ .../client/components/Home/TryItResult.vue | 2 ++ .../Home/TryItResultErrorContent.vue | 30 ++++++++++++++----- .../components/utils/requestHandlers.ts | 23 +++++++++++--- website/client/composables/usePackRequest.ts | 15 ++++++++-- 5 files changed, 59 insertions(+), 13 deletions(-) diff --git a/website/client/components/Home/TryIt.vue b/website/client/components/Home/TryIt.vue index d143bec27..b35249c77 100644 --- a/website/client/components/Home/TryIt.vue +++ b/website/client/components/Home/TryIt.vue @@ -92,6 +92,7 @@ :result="result" :loading="loading" :error="error" + :error-type="errorType" :repository-url="inputRepositoryUrl" @repack="handleRepack" /> @@ -129,6 +130,7 @@ const { // Request states loading, error, + errorType, result, hasExecuted, diff --git a/website/client/components/Home/TryItResult.vue b/website/client/components/Home/TryItResult.vue index 9e3fd8c6d..bff3b380a 100644 --- a/website/client/components/Home/TryItResult.vue +++ b/website/client/components/Home/TryItResult.vue @@ -11,6 +11,7 @@ interface Props { result?: PackResult | null; loading?: boolean; error?: string | null; + errorType?: 'error' | 'warning'; repositoryUrl?: string; } @@ -50,6 +51,7 @@ const handleRepack = (selectedFiles: FileInfo[]) => {
diff --git a/website/client/components/Home/TryItResultErrorContent.vue b/website/client/components/Home/TryItResultErrorContent.vue index fddfeb7d1..14367f8d5 100644 --- a/website/client/components/Home/TryItResultErrorContent.vue +++ b/website/client/components/Home/TryItResultErrorContent.vue @@ -1,10 +1,11 @@