From cb44b03a6110321e7fcb732c6357f3a003a6794d Mon Sep 17 00:00:00 2001 From: Oleh Martsokha Date: Sat, 5 Dec 2026 09:41:59 +0100 Subject: [PATCH 1/2] Restyle shared primitives and components to a denser, quieter look Co-Authored-By: Claude Opus 5.5 --- packages/console/app/assets/css/tailwind.css | 10 +- .../components/avatar/AvatarUploadCard.vue | 90 ++-- .../app/components/avatar/EntityAvatar.vue | 23 +- .../app/components/label/LabelOptionList.vue | 2 +- .../app/components/pages/DataTableHead.vue | 20 - .../app/components/pages/RowActionItems.vue | 8 +- .../app/components/shared/ConfirmDialog.vue | 42 +- .../shared/CreateWorkspaceSheet.vue | 488 +++++++++--------- .../app/components/shared/DocumentPicker.vue | 30 +- .../app/components/shared/EmptyState.vue | 49 +- .../app/components/shared/ErrorView.vue | 67 +++ .../app/components/shared/RecordLayout.vue | 27 + .../app/components/shared/SectionHeader.vue | 25 + .../app/components/shared/SidePanel.vue | 61 +++ .../console/app/components/shared/index.ts | 4 + .../ui/alert-dialog/AlertDialogContent.vue | 2 +- .../alert-dialog/AlertDialogDescription.vue | 2 +- .../ui/alert-dialog/AlertDialogTitle.vue | 2 +- .../console/app/components/ui/badge/index.ts | 4 +- .../console/app/components/ui/button/index.ts | 19 +- .../console/app/components/ui/card/Card.vue | 2 +- .../app/components/ui/checkbox/Checkbox.vue | 4 +- .../components/ui/combobox/ComboboxItem.vue | 2 +- .../components/ui/command/CommandGroup.vue | 2 +- .../app/components/ui/command/CommandItem.vue | 2 +- .../components/ui/command/CommandShortcut.vue | 2 +- .../context-menu/ContextMenuCheckboxItem.vue | 2 +- .../ui/context-menu/ContextMenuItem.vue | 2 +- .../ui/context-menu/ContextMenuLabel.vue | 2 +- .../ui/context-menu/ContextMenuRadioItem.vue | 2 +- .../ui/context-menu/ContextMenuShortcut.vue | 2 +- .../ui/context-menu/ContextMenuSubTrigger.vue | 2 +- .../components/ui/dialog/DialogContent.vue | 4 +- .../ui/dialog/DialogDescription.vue | 2 +- .../app/components/ui/dialog/DialogHeader.vue | 2 +- .../ui/dialog/DialogScrollContent.vue | 2 +- .../app/components/ui/dialog/DialogTitle.vue | 2 +- .../DropdownMenuCheckboxItem.vue | 2 +- .../ui/dropdown-menu/DropdownMenuItem.vue | 2 +- .../ui/dropdown-menu/DropdownMenuLabel.vue | 2 +- .../dropdown-menu/DropdownMenuRadioItem.vue | 2 +- .../ui/dropdown-menu/DropdownMenuShortcut.vue | 2 +- .../dropdown-menu/DropdownMenuSubTrigger.vue | 2 +- .../components/ui/input-group/InputGroup.vue | 6 +- .../console/app/components/ui/input/Input.vue | 4 +- .../console/app/components/ui/label/Label.vue | 2 +- .../ui/menubar/MenubarCheckboxItem.vue | 2 +- .../app/components/ui/menubar/MenubarItem.vue | 2 +- .../components/ui/menubar/MenubarLabel.vue | 2 +- .../ui/menubar/MenubarRadioItem.vue | 2 +- .../components/ui/menubar/MenubarShortcut.vue | 2 +- .../ui/menubar/MenubarSubTrigger.vue | 2 +- .../app/components/ui/select/SelectItem.vue | 2 +- .../app/components/ui/select/SelectLabel.vue | 2 +- .../components/ui/select/SelectTrigger.vue | 4 +- .../components/ui/sheet/SheetDescription.vue | 2 +- .../app/components/ui/sheet/SheetTitle.vue | 2 +- .../components/ui/sidebar/SidebarInset.vue | 2 +- .../app/components/ui/switch/Switch.vue | 4 +- .../app/components/ui/tabs/TabsList.vue | 2 +- .../app/components/ui/tabs/TabsTrigger.vue | 2 +- .../app/components/ui/textarea/Textarea.vue | 2 +- .../ui/virtual-table/FilterOptions.vue | 70 +++ .../ui/virtual-table/FilterSeparator.vue | 4 + .../ui/virtual-table/TableFilter.vue | 17 +- .../ui/virtual-table/TableToolbar.vue | 54 +- .../ui/virtual-table/TableViewOptions.vue | 9 +- .../ui/virtual-table/VirtualTable.vue | 102 ++-- .../app/components/ui/virtual-table/index.ts | 2 + .../app/components/ui/virtual-table/menu.ts | 24 + .../components/ui/virtual-table/useColumns.ts | 2 +- packages/console/app/utils/naming.ts | 9 + packages/console/i18n/locales/de.json | 398 +++++++------- packages/console/i18n/locales/en.json | 406 ++++++++------- 74 files changed, 1333 insertions(+), 837 deletions(-) delete mode 100644 packages/console/app/components/pages/DataTableHead.vue create mode 100644 packages/console/app/components/shared/ErrorView.vue create mode 100644 packages/console/app/components/shared/RecordLayout.vue create mode 100644 packages/console/app/components/shared/SectionHeader.vue create mode 100644 packages/console/app/components/shared/SidePanel.vue create mode 100644 packages/console/app/components/ui/virtual-table/FilterOptions.vue create mode 100644 packages/console/app/components/ui/virtual-table/FilterSeparator.vue create mode 100644 packages/console/app/components/ui/virtual-table/menu.ts diff --git a/packages/console/app/assets/css/tailwind.css b/packages/console/app/assets/css/tailwind.css index 78f23a81..6abd5a3f 100644 --- a/packages/console/app/assets/css/tailwind.css +++ b/packages/console/app/assets/css/tailwind.css @@ -33,6 +33,7 @@ --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); + --color-signal: var(--signal); --color-chart-1: var(--chart-1); --color-chart-2: var(--chart-2); --color-chart-3: var(--chart-3); @@ -96,7 +97,9 @@ --border: oklch(0.922 0 0); --input: oklch(0.922 0 0); --ring: oklch(0.708 0 0); - --chart-1: oklch(0.646 0.222 41.116); + /* What needs attention or is switched on: unread, checked, the active step. */ + --signal: oklch(0.585 0.233 277); + --chart-1: oklch(0.585 0.233 277); --chart-2: oklch(0.6 0.118 184.704); --chart-3: oklch(0.398 0.07 227.392); --chart-4: oklch(0.828 0.189 84.429); @@ -133,6 +136,7 @@ --border: oklch(0.25 0 0); --input: oklch(0.2 0 0); --ring: oklch(0.439 0 0); + --signal: oklch(0.673 0.182 276.935); --chart-1: oklch(0.6 0.22 275); --chart-2: oklch(0.75 0.15 160); --chart-3: oklch(0.8 0.18 70); @@ -163,9 +167,9 @@ } } -/* The shared studio section-label: a small, tracked, uppercase muted heading. +/* The shared studio section-label: a small muted heading in sentence case. One definition so the Detect / Audit / Review tabs label their sections identically. */ @utility section-label { - @apply text-[11px] font-semibold uppercase tracking-wider text-muted-foreground; + @apply text-xs font-medium text-muted-foreground; } diff --git a/packages/console/app/components/avatar/AvatarUploadCard.vue b/packages/console/app/components/avatar/AvatarUploadCard.vue index 171d551a..883d7a04 100644 --- a/packages/console/app/components/avatar/AvatarUploadCard.vue +++ b/packages/console/app/components/avatar/AvatarUploadCard.vue @@ -2,7 +2,6 @@ import { Upload, Loader2, Trash2 } from "@lucide/vue"; import { Label } from "#console/components/ui/label"; import { Button } from "#console/components/ui/button"; -import { Card, CardContent, CardFooter } from "#console/components/ui/card"; import EntityAvatar from "./EntityAvatar.vue"; defineProps<{ @@ -28,55 +27,46 @@ const emit = defineEmits<{ diff --git a/packages/console/app/components/avatar/EntityAvatar.vue b/packages/console/app/components/avatar/EntityAvatar.vue index e96712b2..bf510f5f 100644 --- a/packages/console/app/components/avatar/EntityAvatar.vue +++ b/packages/console/app/components/avatar/EntityAvatar.vue @@ -5,10 +5,16 @@ import { AvatarImage, } from "#console/components/ui/avatar"; import { getInitials, gradientForName } from "#console/utils/naming"; +import { cn } from "#console/utils/shadcn"; + +// Attributes from the caller (a class, a title) land on the avatar itself, not +// the link or box around it. +defineOptions({ inheritAttrs: false }); +const attrs = useAttrs(); interface Props { href?: string; - size?: "sm" | "md" | "lg"; + size?: "xs" | "sm" | "md" | "lg"; name?: string; src?: string; alt?: string; @@ -20,12 +26,14 @@ const props = withDefaults(defineProps(), { const sizeClasses = computed(() => { switch (props.size) { + case "xs": + return "size-5 text-[9px]"; case "sm": - return "h-6 w-6 text-xs"; + return "size-6 text-xs"; case "lg": - return "h-12 w-12 text-lg"; + return "size-12 text-lg"; default: - return "h-8 w-8 text-sm"; + return "size-8 text-sm"; } }); @@ -43,10 +51,13 @@ const gradientStyle = computed(() => { diff --git a/packages/console/app/components/shared/ConfirmDialog.vue b/packages/console/app/components/shared/ConfirmDialog.vue index 9d719431..6f922245 100644 --- a/packages/console/app/components/shared/ConfirmDialog.vue +++ b/packages/console/app/components/shared/ConfirmDialog.vue @@ -1,5 +1,5 @@