From 1ac32eadc5ff89fe373af316b5567b7b35424e90 Mon Sep 17 00:00:00 2001 From: Kawa Date: Wed, 1 Apr 2026 05:08:33 +0200 Subject: [PATCH] feat(08-02): migrate wizard components to semantic MD3 token classes - AzureAuthToggle: border-gray-300 -> border-outline, bg-blue-600/text-white -> bg-primary/text-on-primary, bg-white/text-gray-700/hover:bg-gray-50 -> bg-surface-container/text-on-surface-container/hover:bg-surface - SftpAuthToggle: same tab/info-tooltip mapping as AzureAuthToggle + text-gray-700 -> text-on-surface-container - DeploymentStep: Back button border-gray-300/hover:bg-gray-50 -> border-outline/hover:bg-surface; Next bg-blue-600 -> bg-primary/text-on-primary - OutputBlock: text-gray-700 -> text-on-surface-container, border-gray-300 -> border-outline (x2), bg-gray-900/text-gray-100 -> bg-surface-variant/text-on-surface-variant - RemoteConfigStep: Back/Next buttons same as DeploymentStep pattern - ReviewStep: text-green-700/bg-green-50 -> text-success/bg-success/10, bg-yellow-50/border-yellow-300 -> bg-warning/10/border-warning, text-yellow-800/900 -> text-warning, Back/Download buttons semantic tokens - FieldRenderer (fix): text branch label text-gray-700 -> text-on-surface-container, text branch tooltip bg-blue-50/border-blue-200 -> bg-primary/10/border-primary/30 --- src/components/ui/FieldRenderer.tsx | 4 ++-- src/components/wizard/AzureAuthToggle.tsx | 10 +++++----- src/components/wizard/DeploymentStep.tsx | 4 ++-- src/components/wizard/OutputBlock.tsx | 8 ++++---- src/components/wizard/RemoteConfigStep.tsx | 4 ++-- src/components/wizard/ReviewStep.tsx | 12 ++++++------ src/components/wizard/SftpAuthToggle.tsx | 16 ++++++++-------- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/components/ui/FieldRenderer.tsx b/src/components/ui/FieldRenderer.tsx index 2cb1c91..bea8e8d 100644 --- a/src/components/ui/FieldRenderer.tsx +++ b/src/components/ui/FieldRenderer.tsx @@ -83,7 +83,7 @@ export function FieldRenderer({ field, register, error }: FieldRendererProps) { return (
-
{field.tooltipText && showTooltip && ( -

+

{field.tooltipText}

)} diff --git a/src/components/wizard/AzureAuthToggle.tsx b/src/components/wizard/AzureAuthToggle.tsx index 321995a..a7393f9 100644 --- a/src/components/wizard/AzureAuthToggle.tsx +++ b/src/components/wizard/AzureAuthToggle.tsx @@ -22,15 +22,15 @@ export function AzureAuthToggle({ register, errors }: AzureAuthToggleProps) { return (
{/* Segmented control */} -
+
diff --git a/src/components/wizard/OutputBlock.tsx b/src/components/wizard/OutputBlock.tsx index c52bcd7..1a5e821 100644 --- a/src/components/wizard/OutputBlock.tsx +++ b/src/components/wizard/OutputBlock.tsx @@ -23,13 +23,13 @@ export function OutputBlock({ label, content, filename, disabled = false }: Outp return (
- {label} + {label}
@@ -38,14 +38,14 @@ export function OutputBlock({ label, content, filename, disabled = false }: Outp type="button" disabled={disabled} onClick={() => downloadFile(content, filename)} - className="text-xs px-2 py-1 rounded border border-gray-300 disabled:opacity-40" + className="text-xs px-2 py-1 rounded border border-outline disabled:opacity-40" > Download )}
-
+      
         {content}
       
diff --git a/src/components/wizard/RemoteConfigStep.tsx b/src/components/wizard/RemoteConfigStep.tsx index cd53a1e..0c865cd 100644 --- a/src/components/wizard/RemoteConfigStep.tsx +++ b/src/components/wizard/RemoteConfigStep.tsx @@ -110,13 +110,13 @@ export function RemoteConfigStep() { diff --git a/src/components/wizard/ReviewStep.tsx b/src/components/wizard/ReviewStep.tsx index ba92c7d..670bd79 100644 --- a/src/components/wizard/ReviewStep.tsx +++ b/src/components/wizard/ReviewStep.tsx @@ -72,16 +72,16 @@ export function ReviewStep() { return (
{/* SECU-02: client-side only notice */} -

+

No data is sent to any server. All file generation happens in your browser.

{/* SECU-01: security acknowledgement gate */} -
-

+

+

Security warning: generated files contain credentials in plain text.

-