From 5a6cb0d8872eb5a42dd9ad1a435e1aeca2fe316b Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Thu, 18 Sep 2025 12:42:17 +0800 Subject: [PATCH] feat: enhance API key modal step indicator with active dots and improved styling --- .../subscription-list/create/common-modal.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx index 9e7e112c0a..a086bb21cf 100644 --- a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx +++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx @@ -31,18 +31,22 @@ enum ApiKeyStep { } const StatusStep = ({ isActive, text }: { isActive: boolean, text: string }) => { - return
+ {/* Active indicator dot */} + {isActive && ( +
+ )} {text}
} const MultiSteps = ({ currentStep }: { currentStep: ApiKeyStep }) => { const { t } = useTranslation() - return
+ return
-
+
} @@ -213,6 +217,7 @@ export const CommonCreateModal = ({ onClose, createType }: Props) => {
)} @@ -258,6 +263,7 @@ export const CommonCreateModal = ({ onClose, createType }: Props) => { )} {createType === SupportedCreationMethods.MANUAL && <> @@ -266,6 +272,7 @@ export const CommonCreateModal = ({ onClose, createType }: Props) => { )}