feat: update font sizing in filter components, add extensive architectural design documentation, and configure build environment for mobile app.
This commit is contained in:
parent
f4f677ebec
commit
23e4307e80
13 changed files with 118 additions and 125 deletions
|
|
@ -66,16 +66,16 @@
|
|||
|
||||
/* Sidebar */
|
||||
--sidebar: oklch(1 0 0);
|
||||
--sidebar-foreground: oklch(0.18 0 0);
|
||||
--sidebar-foreground: #111827;
|
||||
--sidebar-primary: #ea580c;
|
||||
--sidebar-primary-foreground: oklch(0.995 0 0);
|
||||
--sidebar-accent: oklch(0.96 0 0);
|
||||
--sidebar-accent-foreground: oklch(0.18 0 0);
|
||||
--sidebar-accent-foreground: #111827;
|
||||
--sidebar-border: oklch(0.94 0 0);
|
||||
--sidebar-ring: #ea580c;
|
||||
--sidebar-active-fill: oklch(0.94 0 0);
|
||||
--sidebar-muted: oklch(0.55 0 0);
|
||||
--sidebar-subtle: oklch(0.65 0 0);
|
||||
--sidebar-muted: #4b5563;
|
||||
--sidebar-subtle: #9ca3af;
|
||||
|
||||
/* ─────────────────────────────────────────────────────────────────────────
|
||||
PRIMARY COLOR SCALE
|
||||
|
|
@ -134,9 +134,9 @@
|
|||
/* ─────────────────────────────────────────────────────────────────────────
|
||||
TEXT COLORS
|
||||
───────────────────────────────────────────────────────────────────────── */
|
||||
--text-primary: #212121;
|
||||
--text-secondary: #616161;
|
||||
--text-tertiary: #9e9e9e;
|
||||
--text-primary: #111827;
|
||||
--text-secondary: #4b5563;
|
||||
--text-tertiary: #9ca3af;
|
||||
--text-disabled: #bdbdbd;
|
||||
--text-inverse: #ffffff;
|
||||
--text-link: #ea580c;
|
||||
|
|
@ -436,9 +436,9 @@
|
|||
--focus-ring: rgba(17, 17, 17, 0.10);
|
||||
|
||||
/* Text */
|
||||
--text: #111111;
|
||||
--text-muted: #525252;
|
||||
--text-subtle: #999999;
|
||||
--text: #111827;
|
||||
--text-muted: #4b5563;
|
||||
--text-subtle: #9ca3af;
|
||||
|
||||
/* Accents — semantic */
|
||||
--green: #10b981;
|
||||
|
|
@ -518,16 +518,16 @@
|
|||
|
||||
/* Sidebar */
|
||||
--sidebar: oklch(0.14 0 0);
|
||||
--sidebar-foreground: oklch(0.92 0 0);
|
||||
--sidebar-foreground: rgba(255, 255, 255, 0.95);
|
||||
--sidebar-primary: #fb923c;
|
||||
--sidebar-primary-foreground: oklch(0.12 0.01 30);
|
||||
--sidebar-accent: rgba(255, 255, 255, 0.06);
|
||||
--sidebar-accent-foreground: oklch(0.92 0 0);
|
||||
--sidebar-accent-foreground: rgba(255, 255, 255, 0.95);
|
||||
--sidebar-border: rgba(255, 255, 255, 0.08);
|
||||
--sidebar-ring: #fb923c;
|
||||
--sidebar-active-fill: rgba(255, 255, 255, 0.10);
|
||||
--sidebar-muted: rgba(255, 255, 255, 0.65);
|
||||
--sidebar-subtle: rgba(255, 255, 255, 0.45);
|
||||
--sidebar-muted: #9ca3af;
|
||||
--sidebar-subtle: #6b7280;
|
||||
|
||||
/* Primary color scale - Dark mode */
|
||||
--color-primary-default: #fb923c;
|
||||
|
|
@ -543,9 +543,9 @@
|
|||
--surface-overlay: #2d2d2d;
|
||||
|
||||
/* Text Colors - Dark mode */
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: #b0b0b0;
|
||||
--text-tertiary: #757575;
|
||||
--text-primary: rgba(255, 255, 255, 0.95);
|
||||
--text-secondary: #9ca3af;
|
||||
--text-tertiary: #6b7280;
|
||||
--text-disabled: #525252;
|
||||
--text-inverse: #212121;
|
||||
--text-link: #fb923c;
|
||||
|
|
@ -656,9 +656,9 @@
|
|||
--focus-ring: rgba(237, 242, 245, 0.14);
|
||||
|
||||
/* Text */
|
||||
--text: #edf2f5;
|
||||
--text-muted: #828282;
|
||||
--text-subtle: #555555;
|
||||
--text: rgba(255, 255, 255, 0.95);
|
||||
--text-muted: #9ca3af;
|
||||
--text-subtle: #6b7280;
|
||||
|
||||
/* Accents — semantic */
|
||||
--green: #10b981;
|
||||
|
|
@ -1204,32 +1204,32 @@ select {
|
|||
}
|
||||
|
||||
.h-section {
|
||||
font-size: 16px;
|
||||
font-size: 14.4px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
letter-spacing: -0.025em;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.t-body {
|
||||
font-size: 13.5px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.t-body-sm {
|
||||
font-size: 12.5px;
|
||||
font-size: 13.5px;
|
||||
font-weight: 400;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.t-meta {
|
||||
font-size: 11.5px;
|
||||
font-size: 11.2px;
|
||||
font-weight: 400;
|
||||
color: var(--text-subtle);
|
||||
}
|
||||
|
||||
.label-section {
|
||||
font-size: 11px;
|
||||
font-size: 10.4px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
|
|
@ -1237,7 +1237,7 @@ select {
|
|||
}
|
||||
|
||||
.label-tiny {
|
||||
font-size: 10px;
|
||||
font-size: 10.4px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
|
|
|
|||
|
|
@ -264,24 +264,24 @@
|
|||
class="flex min-w-0 flex-1 items-center gap-2.5 rounded-md px-1 py-1 transition-colors hover:bg-[color:var(--sidebar-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--sidebar-ring)]"
|
||||
>
|
||||
<Avatar class="size-[26px] shrink-0 rounded-md">
|
||||
<AvatarFallback workspace class="rounded-md text-[12px] font-semibold">
|
||||
<AvatarFallback workspace class="rounded-md text-[13.5px] font-semibold">
|
||||
{orgInitial}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
<div class="flex min-w-0 flex-1 flex-col leading-none group-data-[collapsible=icon]:hidden">
|
||||
<div class="flex items-center gap-1.5">
|
||||
<span class="truncate text-[13px] font-semibold text-[color:var(--sidebar-foreground)]">
|
||||
<span class="truncate text-[14px] font-semibold text-[color:var(--sidebar-foreground)]">
|
||||
{org_name}
|
||||
</span>
|
||||
{#if tier}
|
||||
<span
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] border border-[color:var(--sidebar-border)] px-1 py-px text-[9.5px] font-semibold uppercase tracking-wide text-[color:var(--sidebar-subtle)]"
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] border border-[color:var(--sidebar-border)] px-1 py-px text-[10.4px] font-semibold uppercase tracking-wide text-[color:var(--sidebar-subtle)]"
|
||||
>
|
||||
{tier}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
<span class="mt-0.5 truncate text-[11px] text-[color:var(--sidebar-subtle)]">
|
||||
<span class="mt-0.5 truncate text-[11.2px] text-[color:var(--sidebar-subtle)]">
|
||||
{user.email ?? ''}
|
||||
</span>
|
||||
</div>
|
||||
|
|
@ -296,7 +296,7 @@
|
|||
<!-- Workspace Section -->
|
||||
<Sidebar.Group>
|
||||
<Sidebar.GroupLabel
|
||||
class="mb-1 h-auto px-3 text-[11.5px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
class="mb-1 h-auto px-3 text-[10.4px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
>
|
||||
Workspace
|
||||
</Sidebar.GroupLabel>
|
||||
|
|
@ -337,11 +337,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
<ChevronDown
|
||||
|
|
@ -374,11 +374,11 @@
|
|||
></span>
|
||||
{/if}
|
||||
<span
|
||||
class="flex-1 truncate text-[12px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[13.5px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{navChild.label}</span>
|
||||
{#if navChild.count !== undefined && navChild.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
>{navChild.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -419,11 +419,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -439,7 +439,7 @@
|
|||
<!-- Records Section -->
|
||||
<Sidebar.Group class="mt-1.5">
|
||||
<Sidebar.GroupLabel
|
||||
class="mb-1 h-auto px-3 text-[11.5px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
class="mb-1 h-auto px-3 text-[10.4px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
>
|
||||
Records
|
||||
</Sidebar.GroupLabel>
|
||||
|
|
@ -480,11 +480,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
<ChevronDown
|
||||
|
|
@ -517,11 +517,11 @@
|
|||
></span>
|
||||
{/if}
|
||||
<span
|
||||
class="flex-1 truncate text-[12px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[13.5px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{navChild.label}</span>
|
||||
{#if navChild.count !== undefined && navChild.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
>{navChild.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -562,11 +562,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -582,7 +582,7 @@
|
|||
<!-- Work Section -->
|
||||
<Sidebar.Group class="mt-1.5">
|
||||
<Sidebar.GroupLabel
|
||||
class="mb-1 h-auto px-3 text-[11.5px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
class="mb-1 h-auto px-3 text-[10.4px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
>
|
||||
Work
|
||||
</Sidebar.GroupLabel>
|
||||
|
|
@ -623,11 +623,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
<ChevronDown
|
||||
|
|
@ -660,11 +660,11 @@
|
|||
></span>
|
||||
{/if}
|
||||
<span
|
||||
class="flex-1 truncate text-[12px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[13.5px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{navChild.label}</span>
|
||||
{#if navChild.count !== undefined && navChild.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
>{navChild.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -705,11 +705,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -725,7 +725,7 @@
|
|||
<!-- Revenue Section -->
|
||||
<Sidebar.Group class="mt-1.5">
|
||||
<Sidebar.GroupLabel
|
||||
class="mb-1 h-auto px-3 text-[11.5px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
class="mb-1 h-auto px-3 text-[10.4px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
>
|
||||
Revenue
|
||||
</Sidebar.GroupLabel>
|
||||
|
|
@ -766,11 +766,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
<ChevronDown
|
||||
|
|
@ -803,11 +803,11 @@
|
|||
></span>
|
||||
{/if}
|
||||
<span
|
||||
class="flex-1 truncate text-[12px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[13.5px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{navChild.label}</span>
|
||||
{#if navChild.count !== undefined && navChild.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
>{navChild.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -848,11 +848,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -868,7 +868,7 @@
|
|||
<!-- Support Section -->
|
||||
<Sidebar.Group class="mt-1.5">
|
||||
<Sidebar.GroupLabel
|
||||
class="mb-1 h-auto px-3 text-[11.5px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
class="mb-1 h-auto px-3 text-[10.4px] font-semibold leading-none text-[color:var(--sidebar-subtle)] [font-variant:small-caps] [text-transform:lowercase] group-data-[collapsible=icon]:hidden"
|
||||
>
|
||||
Support
|
||||
</Sidebar.GroupLabel>
|
||||
|
|
@ -909,11 +909,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {hasActiveChild(item.children ?? []) ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
<ChevronDown
|
||||
|
|
@ -946,11 +946,11 @@
|
|||
></span>
|
||||
{/if}
|
||||
<span
|
||||
class="flex-1 truncate text-[12px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[13.5px] {currentPath === navChild.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{navChild.label}</span>
|
||||
{#if navChild.count !== undefined && navChild.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] bg-[color:var(--sidebar-accent)] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)]"
|
||||
>{navChild.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -991,11 +991,11 @@
|
|||
strokeWidth={1.6}
|
||||
/>
|
||||
<span
|
||||
class="flex-1 truncate text-[13px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
class="flex-1 truncate text-[14px] group-data-[collapsible=icon]:hidden {currentPath === item.href ? 'font-semibold' : 'font-medium'}"
|
||||
>{item.label}</span>
|
||||
{#if item.count !== undefined && item.count !== null}
|
||||
<span
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
class="ml-auto inline-flex shrink-0 items-center rounded-[4px] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden"
|
||||
>{item.count}</span>
|
||||
{/if}
|
||||
</a>
|
||||
|
|
@ -1036,7 +1036,7 @@
|
|||
<span class="relative inline-flex size-1.5 rounded-full bg-emerald-500"></span>
|
||||
</span>
|
||||
</span>
|
||||
<span class="flex-1 text-[12px] font-medium group-data-[collapsible=icon]:hidden">
|
||||
<span class="flex-1 text-[13.5px] font-medium group-data-[collapsible=icon]:hidden">
|
||||
Download app
|
||||
</span>
|
||||
</a>
|
||||
|
|
@ -1059,7 +1059,7 @@
|
|||
{:else}
|
||||
<PanelLeftClose class="size-[15px] shrink-0 text-[color:var(--sidebar-subtle)]" strokeWidth={1.6} />
|
||||
{/if}
|
||||
<span class="flex-1 text-[12px] font-medium group-data-[collapsible=icon]:hidden">
|
||||
<span class="flex-1 text-[13.5px] font-medium group-data-[collapsible=icon]:hidden">
|
||||
Collapse
|
||||
</span>
|
||||
</button>
|
||||
|
|
@ -1087,14 +1087,14 @@
|
|||
/>
|
||||
{:else}
|
||||
<Avatar class="size-6 shrink-0 rounded-full">
|
||||
<AvatarFallback gradientSeed={user.email ?? user.name ?? 'user'} class="rounded-full text-[10px] font-semibold">
|
||||
<AvatarFallback gradientSeed={user.email ?? user.name ?? 'user'} class="rounded-full text-[10.4px] font-semibold">
|
||||
{getInitials(user.name)}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
{/if}
|
||||
<div class="flex min-w-0 flex-1 flex-col leading-tight group-data-[collapsible=icon]:hidden">
|
||||
<span class="truncate text-[13px] font-semibold text-[color:var(--sidebar-foreground)]">{user.name}</span>
|
||||
<span class="truncate text-[11px] text-[color:var(--sidebar-subtle)]">{user.email}</span>
|
||||
<span class="truncate text-[14px] font-semibold text-[color:var(--sidebar-foreground)]">{user.name}</span>
|
||||
<span class="truncate text-[11.2px] text-[color:var(--sidebar-subtle)]">{user.email}</span>
|
||||
</div>
|
||||
<ChevronsUpDown class="ml-auto size-3.5 shrink-0 text-[color:var(--sidebar-subtle)] group-data-[collapsible=icon]:hidden" strokeWidth={1.6} />
|
||||
</Sidebar.MenuButton>
|
||||
|
|
@ -1106,7 +1106,7 @@
|
|||
class="w-[--bits-dropdown-menu-anchor-width] min-w-56"
|
||||
>
|
||||
<DropdownMenu.Label
|
||||
class="text-muted-foreground text-[10px] font-bold tracking-wider uppercase"
|
||||
class="text-muted-foreground text-[10.4px] font-bold tracking-wider uppercase"
|
||||
>
|
||||
My Account
|
||||
</DropdownMenu.Label>
|
||||
|
|
@ -1219,7 +1219,7 @@
|
|||
</DropdownMenu.Group>
|
||||
<DropdownMenu.Separator />
|
||||
<DropdownMenu.Label
|
||||
class="text-muted-foreground text-[10px] font-bold tracking-wider uppercase"
|
||||
class="text-muted-foreground text-[10.4px] font-bold tracking-wider uppercase"
|
||||
>
|
||||
Theme
|
||||
</DropdownMenu.Label>
|
||||
|
|
@ -1232,7 +1232,7 @@
|
|||
: 'hover:bg-sidebar-accent text-muted-foreground hover:text-foreground'}"
|
||||
>
|
||||
<Sun class="size-4" />
|
||||
<span class="text-[10px] font-medium">Light</span>
|
||||
<span class="text-[10.4px] font-medium">Light</span>
|
||||
</button>
|
||||
<button
|
||||
onclick={() => setTheme('dark')}
|
||||
|
|
@ -1242,7 +1242,7 @@
|
|||
: 'hover:bg-sidebar-accent text-muted-foreground hover:text-foreground'}"
|
||||
>
|
||||
<Moon class="size-4" />
|
||||
<span class="text-[10px] font-medium">Dark</span>
|
||||
<span class="text-[10.4px] font-medium">Dark</span>
|
||||
</button>
|
||||
<button
|
||||
onclick={() => setTheme('system')}
|
||||
|
|
@ -1252,7 +1252,7 @@
|
|||
: 'hover:bg-sidebar-accent text-muted-foreground hover:text-foreground'}"
|
||||
>
|
||||
<Monitor class="size-4" />
|
||||
<span class="text-[10px] font-medium">System</span>
|
||||
<span class="text-[10.4px] font-medium">System</span>
|
||||
</button>
|
||||
</DropdownMenu.Group>
|
||||
<DropdownMenu.Separator />
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
let { label, active = false, value = '', icon, onclick, onclear, dashed = false, class: className = '' } = $props();
|
||||
|
||||
const base =
|
||||
'inline-flex h-6 items-center gap-1.5 rounded-[var(--r-sm)] px-[9px] text-[11.5px] font-medium leading-none transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--ring)]';
|
||||
'inline-flex h-7 items-center gap-1.5 rounded-[var(--r-sm)] px-[9px] text-[13.5px] font-medium leading-none transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--ring)]';
|
||||
const neutral =
|
||||
'border border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] text-[color:var(--text-muted)] hover:bg-[color:var(--bg-hover)]';
|
||||
const activeCls =
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
{@render children?.()}
|
||||
</div>
|
||||
{#if meta}
|
||||
<div class="ml-auto flex items-center gap-2 text-[11.5px] text-[color:var(--text-subtle)]">
|
||||
<div class="ml-auto flex items-center gap-2 text-[13.5px] text-[color:var(--text-subtle)]">
|
||||
{@render meta()}
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
{#if breadcrumb.length > 0}
|
||||
<nav
|
||||
aria-label="Breadcrumb"
|
||||
class="flex items-center gap-1 text-[12px] leading-none text-[color:var(--text-subtle)]"
|
||||
class="flex items-center gap-1 text-[13.5px] leading-none text-[color:var(--text-subtle)]"
|
||||
>
|
||||
{#each breadcrumb as crumb, i (i)}
|
||||
{#if i > 0}
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
{/if}
|
||||
<h1 class={size === 'display' ? 'h-display truncate' : 'h-page truncate'}>{title}</h1>
|
||||
{#if subtitle}
|
||||
<p class="t-meta truncate">{subtitle}</p>
|
||||
<p class="t-body-sm truncate">{subtitle}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -17,13 +17,13 @@
|
|||
role="tab"
|
||||
aria-selected={isActive}
|
||||
onclick={() => onSelect?.(v.id)}
|
||||
class="-mb-px inline-flex items-center gap-1.5 px-3 pt-2 pb-[11px] text-[12.5px] leading-none transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--ring)] {isActive
|
||||
class="-mb-px inline-flex items-center gap-1.5 px-3 pt-2 pb-[11px] text-[14px] leading-none transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--ring)] {isActive
|
||||
? 'font-medium text-[color:var(--text)] border-b-2 border-[color:var(--text)]'
|
||||
: 'text-[color:var(--text-muted)] border-b-2 border-transparent hover:text-[color:var(--text)]'}"
|
||||
>
|
||||
<span>{v.label}</span>
|
||||
{#if v.count != null}
|
||||
<span class="inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-[var(--r-sm)] border border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] px-1.5 text-[10.5px] tabular-nums text-[color:var(--text-muted)]">
|
||||
<span class="inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-[var(--r-sm)] border border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] px-1.5 text-[11.2px] tabular-nums text-[color:var(--text-muted)]">
|
||||
{v.count}
|
||||
</span>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@
|
|||
type="button"
|
||||
{...props}
|
||||
class={cn(
|
||||
'inline-flex h-7 items-center gap-1.5 rounded-[var(--r-sm)] border px-2.5 text-[11.5px] font-medium leading-none transition-colors focus:outline-none focus:ring-1 focus:ring-[color:var(--ring)]',
|
||||
'inline-flex h-7 items-center gap-1.5 rounded-[var(--r-sm)] border px-2.5 text-[13.5px] font-medium leading-none transition-colors focus:outline-none focus:ring-1 focus:ring-[color:var(--ring)]',
|
||||
hasValue
|
||||
? 'border-[color:var(--violet)]/40 bg-[color:var(--violet-soft)] text-[color:var(--violet-soft-text)]'
|
||||
: 'border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] text-[color:var(--text-muted)] hover:bg-[color:var(--bg-hover)]',
|
||||
|
|
@ -209,7 +209,7 @@
|
|||
<Popover.Content
|
||||
align="start"
|
||||
sideOffset={4}
|
||||
class="overflow-hidden rounded-[var(--r-md)] border border-[color:var(--border)] bg-[color:var(--bg-card)] p-0 shadow-lg shadow-black/5"
|
||||
class="w-auto overflow-hidden rounded-[var(--r-md)] border border-[color:var(--border)] bg-[color:var(--bg-card)] p-0 shadow-lg shadow-black/5"
|
||||
>
|
||||
<div class="flex">
|
||||
<!-- Presets sidebar -->
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
onblur={handleBlur}
|
||||
onkeydown={handleKeydown}
|
||||
{placeholder}
|
||||
class="h-7 w-full rounded-[var(--r-sm)] border border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] py-0 pl-8 pr-7 text-[11.5px] text-[color:var(--text)] placeholder:text-[color:var(--text-subtle)] outline-none transition-colors focus:border-[color:var(--violet)]/50 focus:ring-1 focus:ring-[color:var(--violet)]/30"
|
||||
class="h-7 w-full rounded-[var(--r-sm)] border border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] py-0 pl-8 pr-7 text-[13.5px] text-[color:var(--text)] placeholder:text-[color:var(--text-subtle)] outline-none transition-colors focus:border-[color:var(--violet)]/50 focus:ring-1 focus:ring-[color:var(--violet)]/30"
|
||||
/>
|
||||
{#if inputValue}
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@
|
|||
type="button"
|
||||
{...props}
|
||||
class={cn(
|
||||
'inline-flex h-7 items-center gap-1.5 rounded-[var(--r-sm)] border px-2.5 text-[11.5px] font-medium leading-none transition-colors focus:outline-none focus:ring-1 focus:ring-[color:var(--ring)]',
|
||||
'inline-flex h-7 items-center gap-1.5 rounded-[var(--r-sm)] border px-2.5 text-[13.5px] font-medium leading-none transition-colors focus:outline-none focus:ring-1 focus:ring-[color:var(--ring)]',
|
||||
hasValue
|
||||
? 'border-[color:var(--violet)]/40 bg-[color:var(--violet-soft)] text-[color:var(--violet-soft-text)]'
|
||||
: 'border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] text-[color:var(--text-muted)] hover:bg-[color:var(--bg-hover)]',
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
type="button"
|
||||
{...props}
|
||||
class={cn(
|
||||
'inline-flex h-7 items-center gap-1.5 rounded-[var(--r-sm)] border px-2.5 text-[11.5px] font-medium leading-none transition-colors focus:outline-none focus:ring-1 focus:ring-[color:var(--ring)]',
|
||||
'inline-flex h-7 items-center gap-1.5 rounded-[var(--r-sm)] border px-2.5 text-[13.5px] font-medium leading-none transition-colors focus:outline-none focus:ring-1 focus:ring-[color:var(--ring)]',
|
||||
hasSelection
|
||||
? 'border-[color:var(--violet)]/40 bg-[color:var(--violet-soft)] text-[color:var(--violet-soft-text)]'
|
||||
: 'border-[color:var(--border-faint)] bg-[color:var(--bg-elevated)] text-[color:var(--text-muted)] hover:bg-[color:var(--bg-hover)]',
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
<span class="truncate">{displayText}</span>
|
||||
{#if hasSelection}
|
||||
<span
|
||||
class="inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-[var(--r-sm)] px-1.5 text-[10.5px] font-medium tabular-nums text-[color:var(--violet-soft-text)] opacity-90"
|
||||
class="inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-[var(--r-sm)] px-1.5 text-[11.2px] font-medium tabular-nums text-[color:var(--violet-soft-text)] opacity-90"
|
||||
>
|
||||
{selectedIds.length}
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -271,8 +271,9 @@
|
|||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="flex h-full flex-col">
|
||||
<!-- Desktop: Horizontal scroll container with all columns -->
|
||||
<div class="kanban-board hidden md:block">
|
||||
<div class="kanban-board hidden md:flex md:flex-1 md:flex-col md:min-h-0">
|
||||
<!-- Pipeline Stats Bar -->
|
||||
{#if pipelineStats().totalValue > 0}
|
||||
<div
|
||||
|
|
@ -339,9 +340,9 @@
|
|||
{/if}
|
||||
|
||||
<!-- Kanban Columns -->
|
||||
<div class="columns-container flex gap-4 overflow-x-auto pb-4" style="min-height: 400px">
|
||||
<div class="columns-container flex min-h-0 flex-1 gap-4 overflow-x-auto pb-4">
|
||||
{#each sortedColumns as column, index (column.id)}
|
||||
<div class="column-animate" style="animation-delay: {index * 80}ms">
|
||||
<div class="column-animate flex" style="animation-delay: {index * 80}ms">
|
||||
<KanbanColumn
|
||||
{column}
|
||||
{itemName}
|
||||
|
|
@ -360,7 +361,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Mobile: Tab-based single column view -->
|
||||
<div class="md:hidden">
|
||||
<div class="flex min-h-0 flex-1 flex-col md:hidden">
|
||||
<!-- Column selector - Pill style -->
|
||||
<div class="mb-4 overflow-x-auto">
|
||||
<div class="flex gap-2 pb-2">
|
||||
|
|
@ -429,6 +430,7 @@
|
|||
class="h-px flex-1 bg-gradient-to-r from-transparent via-gray-200 to-transparent dark:via-white/10"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@
|
|||
</script>
|
||||
|
||||
<div
|
||||
class="kanban-column group flex w-[280px] shrink-0 flex-col rounded-2xl transition-all duration-300"
|
||||
class="kanban-column group flex h-full max-h-full w-[280px] shrink-0 flex-col rounded-2xl transition-all duration-300"
|
||||
class:drag-over={isDragOver}
|
||||
class:wip-exceeded={isAtWipLimit}
|
||||
ondragover={handleDragOver}
|
||||
|
|
@ -171,11 +171,10 @@
|
|||
|
||||
<!-- Column Content - Cards container -->
|
||||
<div
|
||||
class="column-content flex-1 space-y-2.5 overflow-y-auto border-x border-white/20
|
||||
class="column-content min-h-0 flex-1 space-y-2.5 overflow-y-auto border-x border-white/20
|
||||
bg-gradient-to-b from-gray-50/80 to-gray-100/50
|
||||
px-2 py-3
|
||||
dark:border-white/[0.04] dark:from-white/[0.02] dark:to-white/[0.01]"
|
||||
style="max-height: calc(100vh - 280px)"
|
||||
>
|
||||
{#each column.items as item, index (item.id)}
|
||||
<div class="card-wrapper animate-in" style="animation-delay: {Math.min(index * 40, 300)}ms">
|
||||
|
|
@ -283,29 +282,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* Scrollbar styling */
|
||||
/* Hide column scrollbars while keeping scroll behavior (mouse wheel / trackpad). */
|
||||
.column-content {
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.column-content::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.column-content::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.column-content::-webkit-scrollbar-thumb {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
:global(.dark) .column-content::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.column-content::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
:global(.dark) .column-content::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1485,7 +1485,11 @@
|
|||
<title>Leads - BottleCRM</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="flex flex-col">
|
||||
<div
|
||||
class="flex flex-col"
|
||||
class:h-svh={viewMode === 'kanban'}
|
||||
class:overflow-hidden={viewMode === 'kanban'}
|
||||
>
|
||||
<PageHeader
|
||||
title="Leads"
|
||||
subtitle="{viewMode === 'kanban'
|
||||
|
|
@ -1602,7 +1606,10 @@
|
|||
{/snippet}
|
||||
</PageHeader>
|
||||
|
||||
<div class="flex-1">
|
||||
<div
|
||||
class="flex flex-1 flex-col"
|
||||
class:min-h-0={viewMode === 'kanban'}
|
||||
>
|
||||
<FilterStrip>
|
||||
<SearchInput
|
||||
value={filters.search}
|
||||
|
|
@ -1649,11 +1656,13 @@
|
|||
<!-- Content: Table or Kanban -->
|
||||
{#if viewMode === 'kanban'}
|
||||
<!-- Kanban View -->
|
||||
<LeadKanban
|
||||
data={kanbanData}
|
||||
onStatusChange={handleKanbanStatusChange}
|
||||
onCardClick={(lead) => openLead(lead, true)}
|
||||
/>
|
||||
<div class="flex min-h-0 flex-1 flex-col">
|
||||
<LeadKanban
|
||||
data={kanbanData}
|
||||
onStatusChange={handleKanbanStatusChange}
|
||||
onCardClick={(lead) => openLead(lead, true)}
|
||||
/>
|
||||
</div>
|
||||
{:else}
|
||||
<!-- Table View -->
|
||||
{#if filteredLeads.length === 0}
|
||||
|
|
|
|||
Loading…
Reference in a new issue