From f3e421e9e342faa4cdc7687d0cfc2d44c4fed467 Mon Sep 17 00:00:00 2001 From: jason Date: Sun, 15 Mar 2026 20:07:48 -0500 Subject: [PATCH] no more pills --- client/src/components/ConfirmActionDialog.tsx | 3 +- .../src/components/FileAttachmentsPanel.tsx | 9 +-- client/src/main.tsx | 3 +- client/src/modules/crm/CrmContactsPanel.tsx | 7 ++- client/src/modules/crm/CrmDetailPage.tsx | 35 ++++++------ client/src/modules/crm/CrmFormPage.tsx | 5 +- client/src/modules/crm/CrmListPage.tsx | 7 ++- client/src/modules/gantt/GanttPage.tsx | 33 +++++------ .../modules/inventory/InventoryDetailPage.tsx | 53 ++++++++--------- .../modules/inventory/InventoryFormPage.tsx | 21 +++---- .../modules/inventory/InventoryListPage.tsx | 7 ++- .../modules/inventory/WarehouseDetailPage.tsx | 13 +++-- .../modules/inventory/WarehouseFormPage.tsx | 13 +++-- .../src/modules/inventory/WarehousesPage.tsx | 5 +- .../manufacturing/ManufacturingPage.tsx | 11 ++-- .../manufacturing/WorkOrderDetailPage.tsx | 57 ++++++++++--------- .../manufacturing/WorkOrderFormPage.tsx | 7 ++- .../manufacturing/WorkOrderListPage.tsx | 9 +-- .../modules/projects/ProjectDetailPage.tsx | 37 ++++++------ .../src/modules/projects/ProjectFormPage.tsx | 7 ++- .../src/modules/projects/ProjectListPage.tsx | 7 ++- .../modules/purchasing/PurchaseDetailPage.tsx | 55 +++++++++--------- .../modules/purchasing/PurchaseFormPage.tsx | 13 +++-- .../modules/purchasing/PurchaseListPage.tsx | 7 ++- client/src/modules/sales/SalesDetailPage.tsx | 57 ++++++++++--------- client/src/modules/sales/SalesFormPage.tsx | 13 +++-- client/src/modules/sales/SalesListPage.tsx | 7 ++- .../modules/settings/AdminDiagnosticsPage.tsx | 17 +++--- .../modules/settings/CompanySettingsPage.tsx | 11 ++-- .../modules/settings/UserManagementPage.tsx | 9 +-- .../modules/shipping/ShipmentDetailPage.tsx | 25 ++++---- .../src/modules/shipping/ShipmentFormPage.tsx | 7 ++- .../src/modules/shipping/ShipmentListPage.tsx | 7 ++- 33 files changed, 305 insertions(+), 272 deletions(-) diff --git a/client/src/components/ConfirmActionDialog.tsx b/client/src/components/ConfirmActionDialog.tsx index e56f428..ee7b6d7 100644 --- a/client/src/components/ConfirmActionDialog.tsx +++ b/client/src/components/ConfirmActionDialog.tsx @@ -52,7 +52,7 @@ export function ConfirmActionDialog({ return (
-
+

Confirm Action

{title}

{description}

@@ -105,3 +105,4 @@ export function ConfirmActionDialog({
); } + diff --git a/client/src/components/FileAttachmentsPanel.tsx b/client/src/components/FileAttachmentsPanel.tsx index 216419e..98ffda2 100644 --- a/client/src/components/FileAttachmentsPanel.tsx +++ b/client/src/components/FileAttachmentsPanel.tsx @@ -133,7 +133,7 @@ export function FileAttachmentsPanel({ } return ( -
+

{eyebrow}

@@ -149,11 +149,11 @@ export function FileAttachmentsPanel({
{status}
{!canReadFiles ? ( -
+
You do not have permission to view file attachments.
) : attachments.length === 0 ? ( -
+
{emptyMessage}
) : ( @@ -161,7 +161,7 @@ export function FileAttachmentsPanel({ {attachments.map((attachment) => (

{attachment.originalName}

@@ -218,3 +218,4 @@ export function FileAttachmentsPanel({
); } + diff --git a/client/src/main.tsx b/client/src/main.tsx index 3c6218f..13de16a 100644 --- a/client/src/main.tsx +++ b/client/src/main.tsx @@ -104,7 +104,7 @@ const GanttPage = React.lazy(() => function RouteFallback() { return ( -
+
Loading module...
); @@ -266,3 +266,4 @@ ReactDOM.createRoot(document.getElementById("root")!).render( ); + diff --git a/client/src/modules/crm/CrmContactsPanel.tsx b/client/src/modules/crm/CrmContactsPanel.tsx index 3a7e09d..cbad09d 100644 --- a/client/src/modules/crm/CrmContactsPanel.tsx +++ b/client/src/modules/crm/CrmContactsPanel.tsx @@ -58,17 +58,17 @@ export function CrmContactsPanel({ entity, ownerId, contacts, onContactsChange } } return ( -
+

Contacts

People on this account

{contacts.length === 0 ? ( -
+
No contacts have been added yet.
) : ( contacts.map((contact) => ( -
+
@@ -151,3 +151,4 @@ export function CrmContactsPanel({ entity, ownerId, contacts, onContactsChange }
); } + diff --git a/client/src/modules/crm/CrmDetailPage.tsx b/client/src/modules/crm/CrmDetailPage.tsx index 8ba0fee..30ba5a7 100644 --- a/client/src/modules/crm/CrmDetailPage.tsx +++ b/client/src/modules/crm/CrmDetailPage.tsx @@ -58,7 +58,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) { }, [config.singularLabel, entity, recordId, token]); if (!record) { - return
{status}
; + return
{status}
; } function updateContactEntryField(key: Key, value: CrmContactEntryInput[Key]) { @@ -112,7 +112,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) { return (
-
+

CRM Detail

@@ -146,7 +146,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
-
+

Contact

@@ -176,7 +176,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
-
+

Internal Notes

{record.notes || "No internal notes recorded for this account yet."} @@ -219,27 +219,27 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {

-
+

Last Contact

{record.rollups?.lastContactAt ? new Date(record.rollups.lastContactAt).toLocaleDateString() : "None"}
-
+

Timeline Entries

{record.rollups?.contactHistoryCount ?? record.contactHistory.length}
-
+

Account Contacts

{record.rollups?.contactCount ?? record.contacts?.length ?? 0}
-
+

Attachments

{record.rollups?.attachmentCount ?? 0}
{entity === "customer" && (record.childCustomers?.length ?? 0) > 0 ? ( -
+

Hierarchy

End customers under this reseller

@@ -247,7 +247,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
{child.name}
@@ -259,7 +259,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
) : null} {entity === "vendor" ? ( -
+

Purchasing Activity

@@ -277,11 +277,11 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
{relatedPurchaseOrders.length === 0 ? ( -
No purchase orders exist for this vendor yet.
+
No purchase orders exist for this vendor yet.
) : (
{relatedPurchaseOrders.slice(0, 8).map((order) => ( - +
{order.documentNumber}
@@ -319,7 +319,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) { />
{canManage ? ( -
+

Contact History

Add timeline entry

@@ -336,17 +336,17 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {

) : null} -
+

Timeline

Recent interactions

{record.contactHistory.length === 0 ? ( -
+
No contact history has been recorded for this account yet.
) : (
{record.contactHistory.map((entry) => ( -
+
@@ -389,3 +389,4 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) { ); } + diff --git a/client/src/modules/crm/CrmFormPage.tsx b/client/src/modules/crm/CrmFormPage.tsx index e60e584..c35cc36 100644 --- a/client/src/modules/crm/CrmFormPage.tsx +++ b/client/src/modules/crm/CrmFormPage.tsx @@ -111,7 +111,7 @@ export function CrmFormPage({ entity, mode }: CrmFormPageProps) { return (
-
+

CRM Editor

@@ -130,7 +130,7 @@ export function CrmFormPage({ entity, mode }: CrmFormPageProps) {
-
+
{status} @@ -146,3 +146,4 @@ export function CrmFormPage({ entity, mode }: CrmFormPageProps) { ); } + diff --git a/client/src/modules/crm/CrmListPage.tsx b/client/src/modules/crm/CrmListPage.tsx index 0b59a25..05670b0 100644 --- a/client/src/modules/crm/CrmListPage.tsx +++ b/client/src/modules/crm/CrmListPage.tsx @@ -55,7 +55,7 @@ export function CrmListPage({ entity }: CrmListPageProps) { }, [config.collectionLabel, entity, lifecycleFilter, operationalFilter, searchTerm, stateFilter, statusFilter, token]); return ( -
+

CRM

@@ -73,7 +73,7 @@ export function CrmListPage({ entity }: CrmListPageProps) { ) : null}
-
+
); } + diff --git a/client/src/modules/gantt/GanttPage.tsx b/client/src/modules/gantt/GanttPage.tsx index b5d6bf4..1d6533d 100644 --- a/client/src/modules/gantt/GanttPage.tsx +++ b/client/src/modules/gantt/GanttPage.tsx @@ -51,7 +51,7 @@ export function GanttPage() { return (
-
+

Planning

@@ -60,42 +60,42 @@ export function GanttPage() { The planning surface now reads directly from active projects and open work orders so schedule pressure, due-date risk, and standalone manufacturing load are visible in one place.

-
+
Timeline Status
{status}
-
+

Active Projects

{summary?.activeProjects ?? 0}
-
+

At Risk

{summary?.atRiskProjects ?? 0}
-
+

Overdue Projects

{summary?.overdueProjects ?? 0}
-
+

Active Work Orders

{summary?.activeWorkOrders ?? 0}
-
+

Overdue Work

{summary?.overdueWorkOrders ?? 0}
-
+

Unscheduled Work

{summary?.unscheduledWorkOrders ?? 0}
-
+

Shortage Items

{planningRollup?.summary.uncoveredItemCount ?? 0}
-
+

Build / Buy

{planningRollup ? `${planningRollup.summary.totalBuildQuantity} / ${planningRollup.summary.totalPurchaseQuantity}` : "0 / 0"} @@ -104,7 +104,7 @@ export function GanttPage() {
@@ -130,17 +130,17 @@ export function GanttPage() { />