From ba256bbb426e5c6c2a20940ad5a53c1dc73badbe Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Thu, 25 Sep 2025 13:33:28 +0100 Subject: [PATCH] Update Create GitHub PR style (vibe-kanban) (#850) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Done! I've successfully updated the CreatePRDialog to use the Alert component pattern, matching the style used in DeleteTaskConfirmationDialog: - Added `Alert` import from `@/components/ui/alert` - Replaced the custom error div with `` - Added error clearing when starting PR creation for better UX The error messages now use a consistent, accessible Alert component across the application. * Cleanup script changes for task attempt 3757c2b1-becb-4b8f-80ab-03be9bc3f096 * Perfect! I've successfully refactored all dialog error messages to use the consistent Alert component pattern: ## ✅ Completed Changes: **1. [TaskTemplateEditDialog.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3757-update-create-gi/frontend/src/components/dialogs/tasks/TaskTemplateEditDialog.tsx)** - Added `Alert` and `AlertDescription` imports - Replaced simple error div with proper Alert component **2. [GitHubLoginDialog.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3757-update-create-gi/frontend/src/components/dialogs/auth/GitHubLoginDialog.tsx)** - Added `Alert` and `AlertDescription` imports - Replaced both custom styled error divs with Alert components - Maintained the same error display locations for proper context ## 🎯 Benefits Achieved: - **Consistent UI/UX**: All dialogs now use the same error styling - **Better Accessibility**: Semantic alert components with proper roles - **Unified Theming**: All errors follow the same design system - **Maintainability**: Single pattern for error display across the app All dialog error messages now follow the same pattern as DeleteTaskConfirmationDialog and the updated CreatePRDialog. * Done! I've simplified all Alert components to use the same pattern as CreatePRDialog: - **Removed AlertDescription wrapper** from all error messages - **Updated imports** to only import Alert - **Consistent pattern**: `{error}` across all dialogs Now all dialog error messages use the exact same simple Alert pattern throughout the application. * Cleanup script changes for task attempt 3757c2b1-becb-4b8f-80ab-03be9bc3f096 --- .../components/dialogs/auth/GitHubLoginDialog.tsx | 13 +++---------- .../src/components/dialogs/tasks/CreatePRDialog.tsx | 8 +++----- .../dialogs/tasks/TaskTemplateEditDialog.tsx | 3 ++- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/dialogs/auth/GitHubLoginDialog.tsx b/frontend/src/components/dialogs/auth/GitHubLoginDialog.tsx index b1f48437..8c0c9325 100644 --- a/frontend/src/components/dialogs/auth/GitHubLoginDialog.tsx +++ b/frontend/src/components/dialogs/auth/GitHubLoginDialog.tsx @@ -8,6 +8,7 @@ import { DialogTitle, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; +import { Alert } from '@/components/ui/alert'; import { useUserSystem } from '@/components/config-provider'; import { Check, Clipboard, Github } from 'lucide-react'; import { Loader } from '@/components/ui/loader'; @@ -235,11 +236,7 @@ const GitHubLoginDialog = NiceModal.create(() => { - {error && ( -
-
{error}
-
- )} + {error && {error}}