2026-07-07 15:22:03 +00:00
|
|
|
@import "tailwindcss";
|
|
|
|
|
@import "tw-animate-css";
|
|
|
|
|
@import "shadcn/tailwind.css";
|
|
|
|
|
@import "../styles/themes.css";
|
|
|
|
|
|
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
|
|
|
|
|
|
@theme inline {
|
|
|
|
|
--color-background: var(--background);
|
|
|
|
|
--color-foreground: var(--foreground);
|
|
|
|
|
--font-sans: var(--font-body);
|
|
|
|
|
--font-mono: var(--font-geist-mono);
|
|
|
|
|
--font-heading: var(--font-heading);
|
|
|
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
|
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
|
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
|
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
|
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
|
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
|
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
|
|
|
--color-sidebar: var(--sidebar);
|
|
|
|
|
--color-chart-5: var(--chart-5);
|
|
|
|
|
--color-chart-4: var(--chart-4);
|
|
|
|
|
--color-chart-3: var(--chart-3);
|
|
|
|
|
--color-chart-2: var(--chart-2);
|
|
|
|
|
--color-chart-1: var(--chart-1);
|
|
|
|
|
--color-ring: var(--ring);
|
|
|
|
|
--color-input-highlight: var(--input-highlight);
|
|
|
|
|
--color-input: var(--input);
|
|
|
|
|
--color-border: var(--border);
|
|
|
|
|
--color-destructive: var(--destructive);
|
|
|
|
|
--color-success: var(--success);
|
|
|
|
|
--color-success-foreground: var(--success-foreground);
|
|
|
|
|
--color-warn: var(--warn);
|
|
|
|
|
--color-warn-foreground: var(--warn-foreground);
|
|
|
|
|
--color-info: var(--info);
|
|
|
|
|
--color-info-foreground: var(--info-foreground);
|
|
|
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
|
|
|
--color-accent: var(--accent);
|
|
|
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
|
|
|
--color-muted: var(--muted);
|
|
|
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
|
|
|
--color-secondary: var(--secondary);
|
|
|
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
|
|
|
--color-primary: var(--primary);
|
|
|
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
|
|
|
--color-popover: var(--popover);
|
|
|
|
|
--color-card-foreground: var(--card-foreground);
|
|
|
|
|
--color-card: var(--card);
|
|
|
|
|
--radius-sm: calc(var(--radius) * 0.6);
|
|
|
|
|
--radius-md: calc(var(--radius) * 0.8);
|
|
|
|
|
--radius-lg: var(--radius);
|
|
|
|
|
--radius-xl: calc(var(--radius) * 1.4);
|
|
|
|
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
|
|
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
|
|
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
|
|
|
}
|
|
|
|
|
|
feat: add UI components for separator, sheet, sonner, switch, table, tabs, textarea, tooltip
- Introduced a new Separator component for visual separation in UI.
- Added Sheet component for modal-like functionality with triggers and overlays.
- Implemented Toaster component for notifications using Sonner library.
- Created Switch component for toggle functionality.
- Developed Table component with headers, body, footer, and rows for structured data display.
- Added Tabs component for organizing content into tabbed interfaces.
- Implemented Textarea component for multi-line text input.
- Created Tooltip component for displaying additional information on hover.
feat: add PocketBase helpers and types
- Implemented various helper functions for interacting with PocketBase collections (customers, companies, suppliers, quotes, orders).
- Added type definitions for entities such as Customer, Company, Supplier, Quote, Order, and their respective items.
- Included utility functions for generating unique identifiers for quotes, orders, and purchase orders.
- Added functions for calculating totals and formatting currency and dates.
chore: add TypeScript configuration
- Added tsconfig.json for TypeScript support with strict type checking and module resolution.
2026-05-24 14:31:01 +00:00
|
|
|
@layer base {
|
|
|
|
|
* {
|
|
|
|
|
@apply border-border outline-ring/50;
|
|
|
|
|
}
|
|
|
|
|
body {
|
|
|
|
|
@apply bg-background text-foreground;
|
|
|
|
|
}
|
|
|
|
|
html {
|
|
|
|
|
@apply font-sans;
|
|
|
|
|
}
|
2026-07-07 15:22:03 +00:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
|
font-family: var(--font-heading);
|
|
|
|
|
letter-spacing: -0.01em;
|
|
|
|
|
}
|
|
|
|
|
body {
|
|
|
|
|
font-family: var(--font-body);
|
|
|
|
|
}
|
Add PocketBase collections, APIs & migration docs
Introduce PocketBase workflow support, migration tooling, server APIs and documentation. Adds a set of PocketBase collection JSONs (order_items, order_items_v2, collection_pool, delivery_notes, delivery_note_items, repairs) and a large import manifest for workflow collections; includes docs describing MCP/API layer, migration audit, order-item schema and rollout plans. Adds server-side agent/MCP endpoints and services (api/mcp, api/v1/orders, collection-pool, order-items status, health) plus helper modules (pocketbase-admin, orders-service, order-item-status, agent-auth) and a migration script to create order_items_v2/collection_pool. UI: new pages for collection-pool, delivery-notes, repairs and several updates to orders/quotes pages, sidebar, tooltip and pb helpers/types. Also updates package.json (migration script and related changes) and global styles. Required env vars and suggested migration command are documented (e.g. NEXT_PUBLIC_POCKETBASE_URL, PB_ADMIN_EMAIL, PB_ADMIN_PASSWORD, ORDER_ITEMS_COLLECTION; run npm run pb:migrate:orders-v2).
2026-05-25 16:39:33 +00:00
|
|
|
}
|
2026-05-27 12:53:54 +00:00
|
|
|
|
2026-07-07 15:22:03 +00:00
|
|
|
/* ============================================================================
|
|
|
|
|
* Map labels — clean rounded pills on the supplier map. Token-driven so
|
|
|
|
|
* every theme picks up its sidebar/card colours automatically.
|
|
|
|
|
* ========================================================================= */
|
2026-05-27 12:53:54 +00:00
|
|
|
.supplier-map-label {
|
|
|
|
|
border: 0;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
|
2026-07-07 15:22:03 +00:00
|
|
|
background: var(--card);
|
2026-05-27 12:53:54 +00:00
|
|
|
color: var(--foreground);
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
padding: 3px 7px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.supplier-map-label::before {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2026-05-27 15:57:24 +00:00
|
|
|
|
|
|
|
|
.dark .supplier-map-label {
|
2026-07-07 15:22:03 +00:00
|
|
|
background: oklch(0.20 0.01 240);
|
|
|
|
|
color: oklch(0.94 0.005 240);
|
2026-05-27 15:57:24 +00:00
|
|
|
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.leaflet-container {
|
|
|
|
|
z-index: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.leaflet-pane,
|
|
|
|
|
.leaflet-top,
|
|
|
|
|
.leaflet-bottom {
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark .leaflet-control-zoom a,
|
|
|
|
|
.dark .leaflet-control-attribution,
|
|
|
|
|
.dark .leaflet-popup-content-wrapper,
|
|
|
|
|
.dark .leaflet-popup-tip {
|
|
|
|
|
background: var(--card);
|
|
|
|
|
color: var(--card-foreground);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark .leaflet-control-zoom a {
|
|
|
|
|
border-color: var(--border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark .leaflet-control-attribution a,
|
|
|
|
|
.dark .leaflet-popup-content a {
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
}
|
2026-07-07 15:22:03 +00:00
|
|
|
|
|
|
|
|
/* ============================================================================
|
|
|
|
|
* Modal shell — single source of truth for dialog/sheet padding rhythm.
|
|
|
|
|
* Every dialog in the app composes this so they all line up.
|
|
|
|
|
* ========================================================================= */
|
|
|
|
|
.modal-shell {
|
|
|
|
|
@apply flex max-h-[90vh] flex-col gap-0 overflow-hidden bg-card text-card-foreground;
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
}
|
|
|
|
|
.modal-shell__header {
|
|
|
|
|
@apply flex flex-row items-center justify-between gap-3 border-b px-6 py-4;
|
|
|
|
|
}
|
|
|
|
|
.modal-shell__title {
|
|
|
|
|
@apply truncate text-base font-semibold tracking-tight;
|
|
|
|
|
}
|
|
|
|
|
.modal-shell__body {
|
|
|
|
|
@apply flex-1 overflow-y-auto px-6 py-5;
|
|
|
|
|
}
|
|
|
|
|
.modal-shell__footer {
|
|
|
|
|
@apply flex flex-row flex-wrap items-center justify-end gap-2 border-t px-6 py-3;
|
|
|
|
|
}
|
|
|
|
|
.modal-shell__footer--split {
|
|
|
|
|
@apply justify-between;
|
|
|
|
|
}
|