From 8727963c54e3eef0df3bd99ceff4fc63ee4e7f4e Mon Sep 17 00:00:00 2001 From: "santasri.pachhal" Date: Thu, 9 Jul 2026 23:06:25 +0530 Subject: [PATCH] style: refine shared UI primitives and management flows --- src/app/(full-page)/reset-password/page.tsx | 2 +- .../_components/module-shell-header.tsx | 2 +- .../clients/components/ClientSheet.tsx | 15 +- .../package/components/PackageDialog.tsx | 15 +- src/app/(modules)/package/page.tsx | 62 +++++- .../(modules)/plans/components/PlanSheet.tsx | 6 +- .../project/components/ProjectDialog.tsx | 15 +- src/app/(modules)/project/page.tsx | 64 +++++- .../components/VideoResultsSkeleton.tsx | 14 +- .../(modules)/roles/components/RoleSheet.tsx | 2 +- .../segment/components/SegmentDialog.tsx | 15 +- src/app/(modules)/segment/page.tsx | 66 +++++- .../tenants/components/TenantSheet.tsx | 19 +- .../components/TicketClassDetailSkeleton.tsx | 8 +- .../TicketClassDetectionPreview.tsx | 16 +- .../components/TicketDefectClassTabs.tsx | 12 +- .../components/TicketDetailHeader.tsx | 3 +- .../components/TicketHistoryCard.tsx | 10 +- .../components/TicketOverviewCard.tsx | 23 +- .../components/actions/ClosedTicketAction.tsx | 2 +- .../components/actions/RepairEvidenceForm.tsx | 12 +- .../components/actions/ReviewRepairAction.tsx | 1 + .../components/actions/TicketActionCard.tsx | 2 +- .../components/repair/RepairProofGallery.tsx | 6 +- .../components/repair/RepairProofSummary.tsx | 4 +- .../upload/components/CreateUploadDialog.tsx | 9 +- .../upload/components/UploadFileDropzone.tsx | 4 +- .../upload/components/UploadListColumns.tsx | 2 +- .../upload/components/VideoPreviewDialog.tsx | 20 +- .../(modules)/users/components/UserSheet.tsx | 21 +- src/app/globals.css | 2 +- src/components/LogoWrapper.tsx | 4 +- src/components/app-breadcrumb.tsx | 9 +- src/components/auth/AuthBackground.tsx | 2 +- src/components/data-table/TableHeader.tsx | 2 +- src/components/data-table/index.tsx | 2 +- src/components/form/MultiSelectPopover.tsx | 6 +- src/components/form/SelectPopover.tsx | 2 +- .../form/phone-input/CountryCombobox.tsx | 2 +- .../form/phone-input/CountryFlag.tsx | 2 +- .../form/phone-input/PhoneInput.tsx | 4 +- src/components/map/detectionLocationMap.tsx | 4 +- src/components/media/ProtectedVideoPlayer.tsx | 8 +- src/components/ui/alert-dialog.tsx | 199 ++++++++++++++++++ src/components/ui/badge.tsx | 2 +- src/components/ui/button.tsx | 12 +- src/components/ui/calendar-grid-picker.tsx | 8 +- src/components/ui/calendar.tsx | 22 +- src/components/ui/card.tsx | 6 +- src/components/ui/chart.tsx | 4 +- src/components/ui/combobox.tsx | 8 +- src/components/ui/dialog.tsx | 17 +- src/components/ui/drawer.tsx | 2 +- src/components/ui/dropdown-menu.tsx | 12 +- src/components/ui/input-group.tsx | 12 +- src/components/ui/input.tsx | 2 +- src/components/ui/popover.tsx | 2 +- src/components/ui/scroll-area.tsx | 2 +- src/components/ui/select.tsx | 6 +- src/components/ui/sidebar.tsx | 18 +- src/components/ui/skeleton.tsx | 2 +- src/components/ui/tabs.tsx | 4 +- src/components/ui/textarea.tsx | 2 +- src/components/ui/tooltip.tsx | 4 +- src/components/ui/tree.tsx | 8 +- .../video/annotatedDetectionImage.tsx | 6 +- src/components/video/currentDetectionBar.tsx | 10 +- src/components/video/detectionLogs.tsx | 10 +- src/components/video/resultStatsGrid.tsx | 2 +- src/components/videoPlayerSection.tsx | 2 +- 70 files changed, 631 insertions(+), 254 deletions(-) create mode 100644 src/components/ui/alert-dialog.tsx diff --git a/src/app/(full-page)/reset-password/page.tsx b/src/app/(full-page)/reset-password/page.tsx index 60ef73f..3c03604 100644 --- a/src/app/(full-page)/reset-password/page.tsx +++ b/src/app/(full-page)/reset-password/page.tsx @@ -33,7 +33,7 @@ function ResetPasswordContent() { {!hasToken ? ( -
+
Password reset token is missing.
) : ( diff --git a/src/app/(modules)/_components/module-shell-header.tsx b/src/app/(modules)/_components/module-shell-header.tsx index 74a5973..8fbdf07 100644 --- a/src/app/(modules)/_components/module-shell-header.tsx +++ b/src/app/(modules)/_components/module-shell-header.tsx @@ -9,7 +9,7 @@ export function ModuleShellHeader() { const { isMobile } = useSidebar(); return ( -
+
{isMobile ? ( <> diff --git a/src/app/(modules)/clients/components/ClientSheet.tsx b/src/app/(modules)/clients/components/ClientSheet.tsx index 06e645f..25a5d56 100644 --- a/src/app/(modules)/clients/components/ClientSheet.tsx +++ b/src/app/(modules)/clients/components/ClientSheet.tsx @@ -13,6 +13,7 @@ import { FormField, PhoneInput } from '@/components/form'; import { Button } from '@/components/ui/button'; import { Dialog, + DialogBody, DialogContent, DialogDescription, DialogFooter, @@ -71,12 +72,12 @@ export function ClientSheet({ return ( - - - + + + {clientId ? 'Edit Client' : 'Create Client'} - + Manage company and primary contact details. @@ -86,7 +87,7 @@ export function ClientSheet({ onSubmit={onSubmit} className="flex min-h-0 flex-1 flex-col" > -
+
-
+ - +
@@ -232,16 +233,16 @@ export function TicketOverviewCard({ - - - - {analysisTitle} - - + + + {analysisTitle} + Video analysis with annotation overlay - + + +
diff --git a/src/app/(modules)/ticket/[ticketId]/components/actions/ClosedTicketAction.tsx b/src/app/(modules)/ticket/[ticketId]/components/actions/ClosedTicketAction.tsx index d808eba..f99bebc 100644 --- a/src/app/(modules)/ticket/[ticketId]/components/actions/ClosedTicketAction.tsx +++ b/src/app/(modules)/ticket/[ticketId]/components/actions/ClosedTicketAction.tsx @@ -89,7 +89,7 @@ export function ClosedTicketAction({ ticket }: { ticket: TicketDetail }) { -
+
} diff --git a/src/app/(modules)/ticket/[ticketId]/components/actions/RepairEvidenceForm.tsx b/src/app/(modules)/ticket/[ticketId]/components/actions/RepairEvidenceForm.tsx index f476e18..f321147 100644 --- a/src/app/(modules)/ticket/[ticketId]/components/actions/RepairEvidenceForm.tsx +++ b/src/app/(modules)/ticket/[ticketId]/components/actions/RepairEvidenceForm.tsx @@ -56,11 +56,11 @@ function MediaSectionHeader({
{duration ? ( - + {duration} ) : null} @@ -382,7 +382,7 @@ export function RepairEvidenceForm({ description="Tap to upload repair photos" disabled={isSubmitting} onClick={openImagePicker} - className="min-h-[104px]" + className="min-h-26" /> ) : (
@@ -457,7 +457,7 @@ export function RepairEvidenceForm({
{error ? ( -
+
{error}
) : null} diff --git a/src/app/(modules)/ticket/[ticketId]/components/actions/ReviewRepairAction.tsx b/src/app/(modules)/ticket/[ticketId]/components/actions/ReviewRepairAction.tsx index a71b7a7..fb45014 100644 --- a/src/app/(modules)/ticket/[ticketId]/components/actions/ReviewRepairAction.tsx +++ b/src/app/(modules)/ticket/[ticketId]/components/actions/ReviewRepairAction.tsx @@ -32,6 +32,7 @@ export function ReviewRepairAction({ ticket }: { ticket: TicketDetail }) {