This commit is contained in:
2026-03-14 22:03:51 -05:00
parent ce2f94c17e
commit a6b24a6609
8 changed files with 76 additions and 76 deletions

View File

@@ -31,7 +31,7 @@ export function AppShell() {
key={link.to}
to={link.to}
className={({ isActive }) =>
`block rounded-2xl px-4 py-3 text-sm font-semibold transition ${
`block rounded-2xl px-2 py-2 text-sm font-semibold transition ${
isActive ? "bg-brand text-white" : "text-text hover:bg-page"
}`
}
@@ -53,10 +53,10 @@ export function AppShell() {
</div>
</aside>
<main className="min-w-0 flex-1">
<div className="mb-4 flex items-center justify-between rounded-[28px] border border-line/70 bg-surface/90 px-5 py-4 shadow-panel backdrop-blur 2xl:px-6">
<div className="mb-4 flex items-center justify-between rounded-[28px] border border-line/70 bg-surface/90 px-4 py-3 shadow-panel backdrop-blur 2xl:px-5">
<div>
<p className="text-xs font-semibold uppercase tracking-[0.22em] text-muted">Operations Command</p>
<h2 className="text-2xl font-bold text-text">Foundation Console</h2>
<h2 className="text-xl font-bold text-text">Foundation Console</h2>
</div>
<ThemeToggle />
</div>

View File

@@ -55,11 +55,11 @@ export function CrmListPage({ entity }: CrmListPageProps) {
}, [config.collectionLabel, entity, lifecycleFilter, operationalFilter, searchTerm, stateFilter, statusFilter, token]);
return (
<section className="rounded-[28px] border border-line/70 bg-surface/90 p-8 shadow-panel">
<section className="rounded-[28px] border border-line/70 bg-surface/90 p-6 shadow-panel">
<div className="flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between">
<div>
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">CRM</p>
<h3 className="mt-3 text-2xl font-bold text-text">{config.collectionLabel}</h3>
<h3 className="mt-3 text-xl font-bold text-text">{config.collectionLabel}</h3>
<p className="mt-2 max-w-2xl text-sm text-muted">
Operational contact records, shipping addresses, and account context for active {config.collectionLabel.toLowerCase()}.
</p>
@@ -67,7 +67,7 @@ export function CrmListPage({ entity }: CrmListPageProps) {
{canManage ? (
<Link
to={`${config.routeBase}/new`}
className="inline-flex items-center justify-center rounded-2xl bg-brand px-5 py-3 text-sm font-semibold text-white"
className="inline-flex items-center justify-center rounded-2xl bg-brand px-3 py-2 text-sm font-semibold text-white"
>
New {config.singularLabel.toLowerCase()}
</Link>
@@ -137,9 +137,9 @@ export function CrmListPage({ entity }: CrmListPageProps) {
</select>
</label>
</div>
<div className="mt-6 rounded-2xl border border-line/70 bg-page/60 px-4 py-3 text-sm text-muted">{status}</div>
<div className="mt-6 rounded-2xl border border-line/70 bg-page/60 px-2 py-2 text-sm text-muted">{status}</div>
{records.length === 0 ? (
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-6 py-12 text-center text-sm text-muted">
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-4 py-8 text-center text-sm text-muted">
{config.emptyMessage}
</div>
) : (
@@ -147,19 +147,19 @@ export function CrmListPage({ entity }: CrmListPageProps) {
<table className="min-w-full divide-y divide-line/70 text-sm">
<thead className="bg-page/80 text-left text-muted">
<tr>
<th className="px-4 py-3">Name</th>
<th className="px-4 py-3">Status</th>
<th className="px-4 py-3">Lifecycle</th>
<th className="px-4 py-3">Operational</th>
<th className="px-4 py-3">Activity</th>
<th className="px-4 py-3">Contact</th>
<th className="px-4 py-3">Updated</th>
<th className="px-2 py-2">Name</th>
<th className="px-2 py-2">Status</th>
<th className="px-2 py-2">Lifecycle</th>
<th className="px-2 py-2">Operational</th>
<th className="px-2 py-2">Activity</th>
<th className="px-2 py-2">Contact</th>
<th className="px-2 py-2">Updated</th>
</tr>
</thead>
<tbody className="divide-y divide-line/70 bg-surface">
{records.map((record) => (
<tr key={record.id} className="transition hover:bg-page/70">
<td className="px-4 py-3 font-semibold text-text">
<td className="px-2 py-2 font-semibold text-text">
<Link to={`${config.routeBase}/${record.id}`} className="hover:text-brand">
{record.name}
</Link>
@@ -170,13 +170,13 @@ export function CrmListPage({ entity }: CrmListPageProps) {
</div>
) : null}
</td>
<td className="px-4 py-3">
<td className="px-2 py-2">
<CrmStatusBadge status={record.status} />
</td>
<td className="px-4 py-3 text-muted">
<td className="px-2 py-2 text-muted">
{record.lifecycleStage ? <CrmLifecycleBadge stage={record.lifecycleStage} /> : null}
</td>
<td className="px-4 py-3 text-xs text-muted">
<td className="px-2 py-2 text-xs text-muted">
<div className="flex flex-wrap gap-2">
{record.preferredAccount ? <span className="rounded-full border border-line/70 px-2 py-1">Preferred</span> : null}
{record.strategicAccount ? <span className="rounded-full border border-line/70 px-2 py-1">Strategic</span> : null}
@@ -187,19 +187,19 @@ export function CrmListPage({ entity }: CrmListPageProps) {
) : null}
</div>
</td>
<td className="px-4 py-3 text-xs text-muted">
<td className="px-2 py-2 text-xs text-muted">
<div>{record.rollups?.contactHistoryCount ?? 0} timeline entries</div>
<div>{record.rollups?.attachmentCount ?? 0} attachments</div>
{entity === "customer" ? <div>{record.rollups?.childCustomerCount ?? 0} child accounts</div> : null}
</td>
<td className="px-4 py-3 text-muted">
<td className="px-2 py-2 text-muted">
<div>{record.email}</div>
<div className="mt-1 text-xs">
{record.city}, {record.state}, {record.country}
</div>
<div className="mt-1 text-xs">{record.phone}</div>
</td>
<td className="px-4 py-3 text-muted">{new Date(record.updatedAt).toLocaleDateString()}</td>
<td className="px-2 py-2 text-muted">{new Date(record.updatedAt).toLocaleDateString()}</td>
</tr>
))}
</tbody>

View File

@@ -3,25 +3,25 @@ import { Link } from "react-router-dom";
export function DashboardPage() {
return (
<div className="grid gap-6 xl:grid-cols-[1.15fr_0.85fr]">
<section className="rounded-[28px] border border-line/70 bg-surface/90 p-8 shadow-panel backdrop-blur">
<section className="rounded-[28px] border border-line/70 bg-surface/90 p-6 shadow-panel backdrop-blur">
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Foundation Status</p>
<h3 className="mt-3 text-3xl font-bold text-text">Platform primitives are online.</h3>
<h3 className="mt-3 text-2xl font-bold text-text">Platform primitives are online.</h3>
<p className="mt-4 max-w-2xl text-sm leading-7 text-muted">
Authentication, RBAC, runtime branding, attachment storage, Docker deployment, and a planning visualization wrapper are now structured for future domain expansion.
</p>
<div className="mt-8 flex flex-wrap gap-3">
<Link className="rounded-2xl bg-brand px-5 py-3 text-sm font-semibold text-white" to="/settings/company">
<Link className="rounded-2xl bg-brand px-3 py-2 text-sm font-semibold text-white" to="/settings/company">
Manage company profile
</Link>
<Link className="rounded-2xl border border-line/70 px-5 py-3 text-sm font-semibold text-text" to="/inventory/items">
<Link className="rounded-2xl border border-line/70 px-3 py-2 text-sm font-semibold text-text" to="/inventory/items">
Open inventory
</Link>
<Link className="rounded-2xl border border-line/70 px-5 py-3 text-sm font-semibold text-text" to="/planning/gantt">
<Link className="rounded-2xl border border-line/70 px-3 py-2 text-sm font-semibold text-text" to="/planning/gantt">
Open gantt preview
</Link>
</div>
</section>
<section className="rounded-[28px] border border-line/70 bg-surface/90 p-8 shadow-panel backdrop-blur">
<section className="rounded-[28px] border border-line/70 bg-surface/90 p-6 shadow-panel backdrop-blur">
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Roadmap</p>
<div className="mt-5 space-y-4">
{[

View File

@@ -34,7 +34,7 @@ export function InventoryDetailPage() {
}, [itemId, token]);
if (!item) {
return <div className="rounded-[28px] border border-line/70 bg-surface/90 p-8 text-sm text-muted shadow-panel">{status}</div>;
return <div className="rounded-[28px] border border-line/70 bg-surface/90 p-6 text-sm text-muted shadow-panel">{status}</div>;
}
return (
@@ -43,7 +43,7 @@ export function InventoryDetailPage() {
<div className="flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between">
<div>
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Inventory Detail</p>
<h3 className="mt-3 text-3xl font-bold text-text">{item.sku}</h3>
<h3 className="mt-3 text-2xl font-bold text-text">{item.sku}</h3>
<p className="mt-2 text-base text-text">{item.name}</p>
<div className="mt-4 flex flex-wrap gap-3">
<InventoryTypeBadge type={item.type} />
@@ -56,7 +56,7 @@ export function InventoryDetailPage() {
Back to items
</Link>
{canManage ? (
<Link to={`/inventory/items/${item.id}/edit`} className="inline-flex items-center justify-center rounded-2xl bg-brand px-5 py-3 text-sm font-semibold text-white">
<Link to={`/inventory/items/${item.id}/edit`} className="inline-flex items-center justify-center rounded-2xl bg-brand px-3 py-2 text-sm font-semibold text-white">
Edit item
</Link>
) : null}
@@ -99,7 +99,7 @@ export function InventoryDetailPage() {
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Bill Of Materials</p>
<h4 className="mt-3 text-xl font-bold text-text">Component structure</h4>
{item.bomLines.length === 0 ? (
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-6 py-12 text-center text-sm text-muted">
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-4 py-8 text-center text-sm text-muted">
No BOM lines are defined for this item yet.
</div>
) : (
@@ -107,24 +107,24 @@ export function InventoryDetailPage() {
<table className="min-w-full divide-y divide-line/70 text-sm">
<thead className="bg-page/80 text-left text-muted">
<tr>
<th className="px-4 py-3">Position</th>
<th className="px-4 py-3">Component</th>
<th className="px-4 py-3">Quantity</th>
<th className="px-4 py-3">UOM</th>
<th className="px-4 py-3">Notes</th>
<th className="px-2 py-2">Position</th>
<th className="px-2 py-2">Component</th>
<th className="px-2 py-2">Quantity</th>
<th className="px-2 py-2">UOM</th>
<th className="px-2 py-2">Notes</th>
</tr>
</thead>
<tbody className="divide-y divide-line/70 bg-surface">
{item.bomLines.map((line) => (
<tr key={line.id}>
<td className="px-4 py-3 text-muted">{line.position}</td>
<td className="px-4 py-3">
<td className="px-2 py-2 text-muted">{line.position}</td>
<td className="px-2 py-2">
<div className="font-semibold text-text">{line.componentSku}</div>
<div className="mt-1 text-xs text-muted">{line.componentName}</div>
</td>
<td className="px-4 py-3 text-muted">{line.quantity}</td>
<td className="px-4 py-3 text-muted">{line.unitOfMeasure}</td>
<td className="px-4 py-3 text-muted">{line.notes || "—"}</td>
<td className="px-2 py-2 text-muted">{line.quantity}</td>
<td className="px-2 py-2 text-muted">{line.unitOfMeasure}</td>
<td className="px-2 py-2 text-muted">{line.notes || "—"}</td>
</tr>
))}
</tbody>

View File

@@ -45,13 +45,13 @@ export function InventoryListPage() {
<div className="flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between">
<div>
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Inventory</p>
<h3 className="mt-3 text-2xl font-bold text-text">Item Master</h3>
<h3 className="mt-3 text-xl font-bold text-text">Item Master</h3>
<p className="mt-2 max-w-2xl text-sm text-muted">
Core item and BOM definitions for purchased parts, manufactured items, assemblies, and service SKUs.
</p>
</div>
{canManage ? (
<Link to="/inventory/items/new" className="inline-flex items-center justify-center rounded-2xl bg-brand px-5 py-3 text-sm font-semibold text-white">
<Link to="/inventory/items/new" className="inline-flex items-center justify-center rounded-2xl bg-brand px-3 py-2 text-sm font-semibold text-white">
New item
</Link>
) : null}
@@ -95,9 +95,9 @@ export function InventoryListPage() {
</select>
</label>
</div>
<div className="mt-6 rounded-2xl border border-line/70 bg-page/60 px-4 py-3 text-sm text-muted">{status}</div>
<div className="mt-6 rounded-2xl border border-line/70 bg-page/60 px-2 py-2 text-sm text-muted">{status}</div>
{items.length === 0 ? (
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-6 py-12 text-center text-sm text-muted">
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-4 py-8 text-center text-sm text-muted">
No inventory items have been added yet.
</div>
) : (
@@ -105,37 +105,37 @@ export function InventoryListPage() {
<table className="min-w-full divide-y divide-line/70 text-sm">
<thead className="bg-page/80 text-left text-muted">
<tr>
<th className="px-4 py-3">Item</th>
<th className="px-4 py-3">Type</th>
<th className="px-4 py-3">Status</th>
<th className="px-4 py-3">UOM</th>
<th className="px-4 py-3">Flags</th>
<th className="px-4 py-3">BOM</th>
<th className="px-4 py-3">Updated</th>
<th className="px-2 py-2">Item</th>
<th className="px-2 py-2">Type</th>
<th className="px-2 py-2">Status</th>
<th className="px-2 py-2">UOM</th>
<th className="px-2 py-2">Flags</th>
<th className="px-2 py-2">BOM</th>
<th className="px-2 py-2">Updated</th>
</tr>
</thead>
<tbody className="divide-y divide-line/70 bg-surface">
{items.map((item) => (
<tr key={item.id} className="transition hover:bg-page/70">
<td className="px-4 py-3">
<td className="px-2 py-2">
<Link to={`/inventory/items/${item.id}`} className="font-semibold text-text hover:text-brand">
{item.sku}
</Link>
<div className="mt-1 text-xs text-muted">{item.name}</div>
</td>
<td className="px-4 py-3">
<td className="px-2 py-2">
<InventoryTypeBadge type={item.type} />
</td>
<td className="px-4 py-3">
<td className="px-2 py-2">
<InventoryStatusBadge status={item.status} />
</td>
<td className="px-4 py-3 text-muted">{item.unitOfMeasure}</td>
<td className="px-4 py-3 text-xs text-muted">
<td className="px-2 py-2 text-muted">{item.unitOfMeasure}</td>
<td className="px-2 py-2 text-xs text-muted">
<div>{item.isSellable ? "Sellable" : "Not sellable"}</div>
<div>{item.isPurchasable ? "Purchasable" : "Not purchasable"}</div>
</td>
<td className="px-4 py-3 text-muted">{item.bomLineCount} lines</td>
<td className="px-4 py-3 text-muted">{new Date(item.updatedAt).toLocaleDateString()}</td>
<td className="px-2 py-2 text-muted">{item.bomLineCount} lines</td>
<td className="px-2 py-2 text-muted">{new Date(item.updatedAt).toLocaleDateString()}</td>
</tr>
))}
</tbody>

View File

@@ -35,18 +35,18 @@ export function WarehousesPage() {
<div className="flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between">
<div>
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Inventory</p>
<h3 className="mt-3 text-2xl font-bold text-text">Warehouses</h3>
<h3 className="mt-3 text-xl font-bold text-text">Warehouses</h3>
<p className="mt-2 max-w-2xl text-sm text-muted">Physical warehouse records and their internal stock locations.</p>
</div>
{canManage ? (
<Link to="/inventory/warehouses/new" className="inline-flex items-center justify-center rounded-2xl bg-brand px-5 py-3 text-sm font-semibold text-white">
<Link to="/inventory/warehouses/new" className="inline-flex items-center justify-center rounded-2xl bg-brand px-3 py-2 text-sm font-semibold text-white">
New warehouse
</Link>
) : null}
</div>
<div className="mt-6 rounded-2xl border border-line/70 bg-page/60 px-4 py-3 text-sm text-muted">{status}</div>
<div className="mt-6 rounded-2xl border border-line/70 bg-page/60 px-2 py-2 text-sm text-muted">{status}</div>
{warehouses.length === 0 ? (
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-6 py-12 text-center text-sm text-muted">
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-4 py-8 text-center text-sm text-muted">
No warehouses have been added yet.
</div>
) : (
@@ -54,23 +54,23 @@ export function WarehousesPage() {
<table className="min-w-full divide-y divide-line/70 text-sm">
<thead className="bg-page/80 text-left text-muted">
<tr>
<th className="px-4 py-3">Code</th>
<th className="px-4 py-3">Name</th>
<th className="px-4 py-3">Locations</th>
<th className="px-4 py-3">Updated</th>
<th className="px-2 py-2">Code</th>
<th className="px-2 py-2">Name</th>
<th className="px-2 py-2">Locations</th>
<th className="px-2 py-2">Updated</th>
</tr>
</thead>
<tbody className="divide-y divide-line/70 bg-surface">
{warehouses.map((warehouse) => (
<tr key={warehouse.id} className="transition hover:bg-page/70">
<td className="px-4 py-3 font-semibold text-text">
<td className="px-2 py-2 font-semibold text-text">
<Link to={`/inventory/warehouses/${warehouse.id}`} className="hover:text-brand">
{warehouse.code}
</Link>
</td>
<td className="px-4 py-3 text-muted">{warehouse.name}</td>
<td className="px-4 py-3 text-muted">{warehouse.locationCount}</td>
<td className="px-4 py-3 text-muted">{new Date(warehouse.updatedAt).toLocaleDateString()}</td>
<td className="px-2 py-2 text-muted">{warehouse.name}</td>
<td className="px-2 py-2 text-muted">{warehouse.locationCount}</td>
<td className="px-2 py-2 text-muted">{new Date(warehouse.updatedAt).toLocaleDateString()}</td>
</tr>
))}
</tbody>

View File

@@ -39,7 +39,7 @@ export function LoginPage() {
</p>
</section>
<section className="px-8 py-12 md:px-12">
<h2 className="text-2xl font-bold text-text">Sign in</h2>
<h2 className="text-xl font-bold text-text">Sign in</h2>
<p className="mt-2 text-sm text-muted">Use the seeded admin account to access the initial platform shell.</p>
<form className="mt-8 space-y-5" onSubmit={handleSubmit}>
<label className="block">

View File

@@ -92,7 +92,7 @@ export function CompanySettingsPage() {
}, [logoUrl]);
if (!form || !token) {
return <div className="rounded-[28px] border border-line/70 bg-surface/90 p-8 text-sm text-muted shadow-panel">{status}</div>;
return <div className="rounded-[28px] border border-line/70 bg-surface/90 p-6 text-sm text-muted shadow-panel">{status}</div>;
}
async function handleSave(event: React.FormEvent<HTMLFormElement>) {
@@ -149,7 +149,7 @@ export function CompanySettingsPage() {
<div className="flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between">
<div>
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Company Profile</p>
<h3 className="mt-3 text-2xl font-bold text-text">Branding and legal identity</h3>
<h3 className="mt-3 text-xl font-bold text-text">Branding and legal identity</h3>
<p className="mt-2 max-w-2xl text-sm text-muted">Every internal document and PDF template will inherit its company identity from this profile.</p>
</div>
<div className="rounded-3xl border border-dashed border-line/70 bg-page/80 p-4">
@@ -216,7 +216,7 @@ export function CompanySettingsPage() {
>
Preview PDF
</button>
<button type="submit" className="rounded-2xl bg-brand px-5 py-3 text-sm font-semibold text-white">
<button type="submit" className="rounded-2xl bg-brand px-3 py-2 text-sm font-semibold text-white">
Save changes
</button>
</div>