feat(ui): complete redesign of tools pages, prominent buttons below photo upload, and futuristic processing animations

This commit is contained in:
2026-11-11 10:47:00 +05:30
parent 4eff5ae66c
commit d035f48319
6 changed files with 520 additions and 111 deletions
@@ -14,11 +14,14 @@ import {
Maximize2
} from 'lucide-react';
import { MaskingConfig, resolveLocalised } from '@/types';
import { ProcessingOverlay } from './ProcessingOverlay';
interface MaskCanvasEditorProps {
imageUrl: string;
config?: MaskingConfig;
locale?: string;
isProcessing?: boolean;
toolName?: string;
onMaskChange?: (hasMask: boolean) => void;
onExportReady?: (getMaskBlob: () => Promise<Blob | null>) => void;
}
@@ -27,6 +30,8 @@ export function MaskCanvasEditor({
imageUrl,
config,
locale = 'en',
isProcessing = false,
toolName,
onMaskChange,
onExportReady,
}: MaskCanvasEditorProps) {
@@ -520,6 +525,9 @@ export function MaskCanvasEditor({
}}
/>
)}
{/* Laser Scanning Processing Animation Overlay */}
{isProcessing && <ProcessingOverlay toolName={toolName || 'Inpainting Model'} />}
</div>
{/* Canvas Helper Hint */}