Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: cards, modals, drawers

Brad Barbin4d7500407af6
diff --git a/apps/academy/app/styles/tailwind.css b/apps/academy/app/styles/tailwind.css
index 27721bdbbd..64707196b0 100644
--- a/apps/academy/app/styles/tailwind.css
+++ b/apps/academy/app/styles/tailwind.css
@@ -28,7 +28,7 @@
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 10% 3.9%;
- --radius: 0.5rem;
+ --radius: 0.675rem;
--sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
diff --git a/apps/erp/app/components/Documents.tsx b/apps/erp/app/components/Documents.tsx
index f4dfcdfb2a..103895b9b0 100644
--- a/apps/erp/app/components/Documents.tsx
+++ b/apps/erp/app/components/Documents.tsx
@@ -3,7 +3,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
DropdownMenu,
@@ -250,9 +249,6 @@ const Documents = ({
<HStack className="justify-between items-start">
<CardHeader>
<CardTitle>Files</CardTitle>
- {sourceDocument && (
- <CardDescription>{sourceDocument} documents</CardDescription>
- )}
</CardHeader>
<CardAction>
<File
diff --git a/apps/erp/app/components/FileDropzone.tsx b/apps/erp/app/components/FileDropzone.tsx
index a40c25481f..29aaf6171b 100644
--- a/apps/erp/app/components/FileDropzone.tsx
+++ b/apps/erp/app/components/FileDropzone.tsx
@@ -13,7 +13,7 @@ const FileDropzone: React.FC<FileDropzoneProps> = ({ onDrop }) => {
<div
{...getRootProps()}
className={`mt-4 border-2 border-dashed rounded-md p-6 text-center hover:border-primary hover:bg-primary/10 ${
- isDragActive ? "border-primary bg-primary/10" : "border-muted"
+ isDragActive ? "border-primary bg-primary/10" : "border-card"
}`}
>
<input {...getInputProps()} />
diff --git a/apps/erp/app/components/Gantt/Gantt.tsx b/apps/erp/app/components/Gantt/Gantt.tsx
index 47ee5df2f9..c1752e3c93 100644
--- a/apps/erp/app/components/Gantt/Gantt.tsx
+++ b/apps/erp/app/components/Gantt/Gantt.tsx
@@ -173,8 +173,8 @@ const Gantt = ({
className={cn(
"flex h-8 cursor-pointer items-center overflow-hidden rounded-l-sm pr-2",
state.selected
- ? "bg-muted hover:bg-muted/90"
- : "bg-transparent hover:bg-muted/90"
+ ? "bg-muted hover:bg-accent"
+ : "bg-transparent hover:bg-accent"
)}
onClick={() => {
selectNode(node.id);
@@ -513,7 +513,7 @@ const GanttTimeline = ({
className={cn(
"group flex h-8 items-center",
state.selected
- ? "bg-muted hover:bg-muted/90"
+ ? "bg-muted hover:bg-accent"
: "bg-transparent hover:bg-muted"
)}
// onMouseOver={() => console.log(`hover ${index}`)}
diff --git a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
index 2ae19de49d..55db27727b 100644
--- a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
+++ b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
@@ -73,7 +73,7 @@ const NavigationIconLink = forwardRef<
NavigationIconButtonProps
>(({ link, isActive = false, isOpen = false, onClick, ...props }, ref) => {
const iconClasses = [
- "absolute left-3 top-3 flex rounded-md items-center items-center justify-center" // Layout
+ "absolute left-3 top-3 flex items-center items-center justify-center" // Layout
];
const classes = [
diff --git a/apps/erp/app/components/OnshapeSync.tsx b/apps/erp/app/components/OnshapeSync.tsx
index 6dac8bdc61..02bbff2b3b 100644
--- a/apps/erp/app/components/OnshapeSync.tsx
+++ b/apps/erp/app/components/OnshapeSync.tsx
@@ -403,7 +403,7 @@ export const OnshapeSync = ({
<div
key={row.index}
className={cn(
- "flex min-h-8 cursor-pointer items-center overflow-hidden rounded-sm pr-2 w-full gap-1 hover:bg-muted/90"
+ "flex min-h-8 cursor-pointer items-center overflow-hidden rounded-sm pr-2 w-full gap-1 hover:bg-accent"
)}
style={{
paddingLeft: `${row.level * 12}px`
diff --git a/apps/erp/app/components/SortableList.tsx b/apps/erp/app/components/SortableList.tsx
index fa39704d80..648a5ca568 100644
--- a/apps/erp/app/components/SortableList.tsx
+++ b/apps/erp/app/components/SortableList.tsx
@@ -84,7 +84,7 @@ function SortableListItem<T>({
value={item}
className={cn(
"relative z-auto grow",
- "h-full rounded-md bg-muted/30",
+ "h-full rounded-md bg-muted/40",
"border border-border rounded-lg ",
!isExpanded && !isReadOnly && "cursor-grab",
isHighlighted && "border-2 border-primary",
diff --git a/apps/erp/app/components/Table/Table.tsx b/apps/erp/app/components/Table/Table.tsx
index 34374fc8ed..f33493bcad 100644
--- a/apps/erp/app/components/Table/Table.tsx
+++ b/apps/erp/app/components/Table/Table.tsx
@@ -844,7 +844,7 @@ const Table = <T extends object>({
<Th
key={colIndex}
className={cn(
- "h-[44px] w-[200px]",
+ "h-[44px] w-[200px] bg-card",
colIndex === 0 && "border-r border-border"
)}
>
@@ -922,7 +922,7 @@ const Table = <T extends object>({
colSpan={header.colSpan}
id={`header-${header.id}`}
className={cn(
- "px-4 py-3 whitespace-nowrap",
+ "px-4 py-3 whitespace-nowrap bg-card",
editMode && "border-r-1 border-border",
sortable && "cursor-pointer"
)}
@@ -1063,7 +1063,7 @@ const Table = <T extends object>({
colSpan={footer.colSpan}
id={`header-${footer.id}`}
className={cn(
- "px-4 py-3 whitespace-nowrap",
+ "px-4 py-3 whitespace-nowrap bg-card",
editMode && "border-r-1 border-border"
)}
style={{
diff --git a/apps/erp/app/components/Table/components/TableHeader.tsx b/apps/erp/app/components/Table/components/TableHeader.tsx
index 0870e80d49..b513d50d0c 100644
--- a/apps/erp/app/components/Table/components/TableHeader.tsx
+++ b/apps/erp/app/components/Table/components/TableHeader.tsx
@@ -150,7 +150,7 @@ const TableHeader = <T extends object>({
defaultValues={currentView ?? {}}
fetcher={fetcher}
>
- <Card className="my-4 p-0">
+ <Card className="my-4">
<Hidden name="id" value={currentView?.id} />
<Hidden
name="state"
@@ -164,7 +164,7 @@ const TableHeader = <T extends object>({
/>
<Hidden name="table" value={table} />
<Hidden name="type" value="Private" />
- <CardContent className="flex flex-col gap-0 p-4">
+ <CardContent>
<Input
autoFocus
name="name"
@@ -181,7 +181,7 @@ const TableHeader = <T extends object>({
borderless
/>
</CardContent>
- <CardFooter className="border-t bg-muted/30 p-4">
+ <CardFooter>
<Button variant="secondary" onClick={savedViewDisclosure.onClose}>
Cancel
</Button>
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx
index d47ed6d4d4..703d7d90ca 100644
--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx
+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx
@@ -37,7 +37,7 @@ export type PurchaseInvoiceDeliveryFormRef = {
const PurchaseInvoiceDeliveryForm = forwardRef<
PurchaseInvoiceDeliveryFormRef,
PurchaseInvoiceDeliveryFormProps
->(({ initialValues, currencyCode, defaultCollapsed = true }, ref) => {
+>(({ initialValues, currencyCode, defaultCollapsed = false }, ref) => {
const { invoiceId } = useParams();
if (!invoiceId) {
throw new Error("invoiceId not found");
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx
index f7372c31b3..fcd22f034f 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx
@@ -37,7 +37,7 @@ export type SalesInvoiceShipmentFormRef = {
const SalesInvoiceShipmentForm = forwardRef<
SalesInvoiceShipmentFormRef,
SalesInvoiceShipmentFormProps
->(({ initialValues, currencyCode, defaultCollapsed = true }, ref) => {
+>(({ initialValues, currencyCode, defaultCollapsed = false }, ref) => {
const { invoiceId } = useParams();
if (!invoiceId) {
throw new Error("invoiceId not found");
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
index 853212b732..81a4c29487 100644
--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
@@ -286,8 +286,8 @@ const BoMExplorer = ({
className={cn(
"flex h-8 cursor-pointer items-center overflow-hidden rounded-sm pr-2 gap-1 group/node",
state.selected
- ? "bg-muted hover:bg-muted/90"
- : "bg-transparent hover:bg-muted/90"
+ ? "bg-muted hover:bg-accent"
+ : "bg-transparent hover:bg-accent"
)}
onClick={() => {
selectNode(node.id, false);
@@ -354,7 +354,7 @@ const BoMExplorer = ({
<div className="flex w-full items-center justify-between gap-2">
<div className="flex items-center gap-2 overflow-x-hidden">
{bomIdMap.get(node.id) && (
- <Badge variant="outline">
+ <Badge variant="outline" className="flex-shrink-0">
{bomIdMap.get(node.id)}
</Badge>
)}
diff --git a/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx b/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx
index 46765db5ac..2918131d71 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx
@@ -3,7 +3,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
DropdownMenu,
@@ -90,7 +89,6 @@ const ItemDocuments = ({
<HStack className="justify-between items-start">
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>Item documents</CardDescription>
</CardHeader>
<CardAction>
<ItemDocumentForm type={type} itemId={itemId} />
diff --git a/apps/erp/app/modules/items/ui/Item/UsedIn.tsx b/apps/erp/app/modules/items/ui/Item/UsedIn.tsx
index 6a0eb1c805..ac3a00a5a5 100644
--- a/apps/erp/app/modules/items/ui/Item/UsedIn.tsx
+++ b/apps/erp/app/modules/items/ui/Item/UsedIn.tsx
@@ -197,7 +197,7 @@ export function RevisionsItem({
<>
<div className="relative w-full">
<button
- className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-2 gap-2 text-sm hover:bg-muted/90 w-full font-medium"
+ className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-2 gap-2 text-sm hover:bg-accent w-full font-medium"
onClick={(e) => {
e.stopPropagation();
setIsExpanded(!isExpanded);
@@ -255,8 +255,8 @@ export function RevisionsItem({
<Hyperlink
to={getUseInLink(child, node.key, "")}
className={cn(
- "pr-6 flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-muted/90 w-full font-medium whitespace-nowrap",
- isActive && "bg-muted/90"
+ "pr-6 flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-accent w-full font-medium whitespace-nowrap",
+ isActive && "bg-accent"
)}
>
<LevelLine isSelected={isActive} className="mr-2" />
@@ -394,7 +394,7 @@ export function UsedInItem({
return (
<>
<button
- className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-2 gap-2 text-sm hover:bg-muted/90 w-full font-medium"
+ className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-2 gap-2 text-sm hover:bg-accent w-full font-medium"
onClick={(e) => {
e.stopPropagation();
setIsExpanded(!isExpanded);
@@ -424,7 +424,7 @@ export function UsedInItem({
<Hyperlink
key={index}
to={getUseInLink(child, node.key, itemReadableIdWithRevision)}
- className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-muted/90 w-full font-medium whitespace-nowrap"
+ className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-accent w-full font-medium whitespace-nowrap"
>
<LevelLine isSelected={false} className="mr-2" />
{child.methodType === "Shipment" ? (
diff --git a/apps/erp/app/modules/people/ui/Person/PersonJob.tsx b/apps/erp/app/modules/people/ui/Person/PersonJob.tsx
index f62dbd1562..ae619c4ff6 100644
--- a/apps/erp/app/modules/people/ui/Person/PersonJob.tsx
+++ b/apps/erp/app/modules/people/ui/Person/PersonJob.tsx
@@ -1,11 +1,5 @@
import { ValidatedForm } from "@carbon/form";
-import {
- Card,
- CardContent,
- CardFooter,
- CardHeader,
- CardTitle
-} from "@carbon/react";
+import { Card, CardContent, CardHeader, CardTitle } from "@carbon/react";
import { useState } from "react";
import type { z } from "zod";
import {
@@ -38,7 +32,7 @@ const PersonJob = ({ initialValues }: PersonJobProps) => {
<CardHeader>
<CardTitle>Job</CardTitle>
</CardHeader>
- <CardContent>
+ <CardContent className="flex flex-col gap-4">
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<Input name="title" label="Title" />
<DatePicker name="startDate" label="Start Date" />
@@ -56,10 +50,10 @@ const PersonJob = ({ initialValues }: PersonJobProps) => {
<Hidden name="intent" value="job" />
<CustomFormFields table="employeeJob" />
</div>
+ <div>
+ <Submit>Save</Submit>
+ </div>
</CardContent>
- <CardFooter>
- <Submit>Save</Submit>
- </CardFooter>
</Card>
</ValidatedForm>
);
diff --git a/apps/erp/app/modules/people/ui/Person/PersonPreview.tsx b/apps/erp/app/modules/people/ui/Person/PersonPreview.tsx
index 2b13cb7ca2..a1bd9bd224 100644
--- a/apps/erp/app/modules/people/ui/Person/PersonPreview.tsx
+++ b/apps/erp/app/modules/people/ui/Person/PersonPreview.tsx
@@ -28,7 +28,9 @@ const PersonHeader = () => {
<Card>
<HStack className="justify-between items-center p-6 pl-0">
<CardHeader className="pt-0">
- <CardTitle>{routeData?.employeeSummary?.name}</CardTitle>
+ <CardTitle className="text-2xl">
+ {routeData?.employeeSummary?.name}
+ </CardTitle>
<CardDescription>{routeData?.employeeSummary?.title}</CardDescription>
</CardHeader>
<Avatar
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
index 1e0e16c472..e3968c6f12 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
@@ -249,8 +249,8 @@ const JobBoMExplorer = ({ method }: JobBoMExplorerProps) => {
className={cn(
"flex h-8 cursor-pointer items-center overflow-hidden rounded-sm pr-2 gap-1",
state.selected
- ? "bg-muted hover:bg-muted/90"
- : "bg-transparent hover:bg-muted/90"
+ ? "bg-muted hover:bg-accent"
+ : "bg-transparent hover:bg-accent"
)}
onClick={() => {
selectNode(node.id, false);
@@ -308,7 +308,7 @@ const JobBoMExplorer = ({ method }: JobBoMExplorerProps) => {
<div className="flex w-full items-center justify-between gap-2">
<div className="flex items-center gap-2 overflow-x-hidden">
{bomIdMap.get(node.id) && (
- <Badge variant="outline">
+ <Badge variant="outline" className="flex-shrink-0">
{bomIdMap.get(node.id)}
</Badge>
)}
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx b/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx
index 52761197d3..4be7b10330 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx
@@ -3,7 +3,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
DropdownMenu,
@@ -377,7 +376,6 @@ const JobDocuments = ({
<HStack className="justify-between items-start">
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>Job documents</CardDescription>
</CardHeader>
<CardAction>
<JobDocumentForm jobId={jobId} itemId={itemId} bucket={bucket} />
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
index 5466ccbe8d..1fa9535267 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
@@ -12,7 +12,6 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
- Switch,
Table,
Tabs,
TabsContent,
@@ -28,7 +27,6 @@ import {
TooltipTrigger,
Tr,
toast,
- useDisclosure,
VStack
} from "@carbon/react";
import { formatDurationMilliseconds, getItemReadableId } from "@carbon/utils";
@@ -101,7 +99,6 @@ const JobEstimatesVsActuals = ({
const [items] = useItems();
const currencyFormatter = useCurrencyFormatter();
const percentFormatter = usePercentFormatter();
- const detailsDisclosure = useDisclosure();
const [currentUnitCosts, setCurrentUnitCosts] = useState<
Record<string, number>
@@ -264,20 +261,6 @@ const JobEstimatesVsActuals = ({
<TabsTrigger value="processes">Processes</TabsTrigger>
<TabsTrigger value="materials">Material</TabsTrigger>
</TabsList>
- <div className="flex items-center justify-start flex-row-reverse gap-2">
- <Switch
- variant="small"
- checked={detailsDisclosure.isOpen}
- onCheckedChange={detailsDisclosure.onToggle}
- id="cost-details"
- />
- <label
- className="text-xs text-muted-foreground"
- htmlFor="cost-details"
- >
- Show Details
- </label>
- </div>
</CardAction>
</HStack>
<CardContent>
@@ -404,115 +387,112 @@ const JobEstimatesVsActuals = ({
</HStack>
</Td>
</Tr>
- {detailsDisclosure.isOpen && (
- <>
- {timeTypes.map((type) => {
- if (
- estimated[
- type.toLowerCase() as keyof typeof estimated
- ] === 0
- ) {
- return null;
- }
- const employeeIds = getEmployeeIds(operation, type);
- const notes = getNotes(operation, type);
- return (
- <Tr key={type} className="border-b border-border">
- <Td className="border-r border-border pl-10">
- <HStack className="justify-between w-full">
- <HStack>
- <TimeTypeIcon type={type} />
- <span>{type}</span>
- </HStack>
- {employeeIds.length > 0 && (
- <EmployeeAvatarGroup
- employeeIds={employeeIds}
- size="xs"
- limit={3}
- />
- )}
- </HStack>
- </Td>
- <Td className="px-2">
- {formatDurationMilliseconds(
- estimated[
- type.toLowerCase() as keyof typeof estimated
- ]
- )}
- </Td>
- <Td className="px-2">
- {formatDurationMilliseconds(
- actual[
- type.toLowerCase() as keyof typeof actual
- ]
- )}
- </Td>
- <Td className="px-2">
- {percentFormatter.format(
- actual[
- type.toLowerCase() as keyof typeof actual
- ] /
- estimated[
- type.toLowerCase() as keyof typeof estimated
- ]
- )}
- </Td>
- <Td className="px-2" />
- <Td className="px-2" />
- <Td className="px-2">
- <HStack spacing={0} className="justify-end">
- {notes && notes.length > 0 && (
- <Popover>
- <PopoverTrigger asChild>
- <IconButton
- variant="ghost"
- icon={<LuNotebook />}
- aria-label="Notes"
- />
- </PopoverTrigger>
- <PopoverContent className="w-96 max-h-[300px] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-gray-300">
- <div className="flex flex-col gap-3 p-2">
- {notes.map((note, index) => (
- <div
- key={index}
- className="flex gap-2 items-center"
- >
- <div className="flex-shrink-0">
- <EmployeeAvatar
- employeeId={note.employeeId}
- size="sm"
- withName={false}
- />
- </div>
- <div className="flex-1 rounded-lg bg-muted p-2 text-sm">
- {note.notes}
- </div>
- </div>
- ))}
- </div>
- </PopoverContent>
- </Popover>
- )}
- <Link
- to={`${path.to.jobProductionEvents(
- jobId
- )}?filter=jobOperationId:eq:${
- operation.id
- }&filter=type:eq:${type}`}
- >
+
+ {timeTypes.map((type) => {
+ if (
+ estimated[
+ type.toLowerCase() as keyof typeof estimated
+ ] === 0
+ ) {
+ return null;
+ }
+ const employeeIds = getEmployeeIds(operation, type);
+ const notes = getNotes(operation, type);
+ return (
+ <Tr key={type} className="border-b border-border">
+ <Td className="border-r border-border pl-10">
+ <HStack className="justify-between w-full">
+ <HStack>
+ <TimeTypeIcon type={type} />
+ <span>{type}</span>
+ </HStack>
+ {employeeIds.length > 0 && (
+ <EmployeeAvatarGroup
+ employeeIds={employeeIds}
+ size="xs"
+ limit={3}
+ />
+ )}
+ </HStack>
+ </Td>
+ <Td className="px-2">
+ {formatDurationMilliseconds(
+ estimated[
+ type.toLowerCase() as keyof typeof estimated
+ ]
+ )}
+ </Td>
+ <Td className="px-2">
+ {formatDurationMilliseconds(
+ actual[
+ type.toLowerCase() as keyof typeof actual
+ ]
+ )}
+ </Td>
+ <Td className="px-2">
+ {percentFormatter.format(
+ actual[
+ type.toLowerCase() as keyof typeof actual
+ ] /
+ estimated[
+ type.toLowerCase() as keyof typeof estimated
+ ]
+ )}
+ </Td>
+ <Td className="px-2" />
+ <Td className="px-2" />
+ <Td className="px-2">
+ <HStack spacing={0} className="justify-end">
+ {notes && notes.length > 0 && (
+ <Popover>
+ <PopoverTrigger asChild>
<IconButton
variant="ghost"
- icon={<LuCircleChevronRight />}
- aria-label="View Production Events"
+ icon={<LuNotebook />}
+ aria-label="Notes"
/>
- </Link>
- </HStack>
- </Td>
- </Tr>
- );
- })}
- </>
- )}
+ </PopoverTrigger>
+ <PopoverContent className="w-96 max-h-[300px] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-gray-300">
+ <div className="flex flex-col gap-3 p-2">
+ {notes.map((note, index) => (
+ <div
+ key={index}
+ className="flex gap-2 items-center"
+ >
+ <div className="flex-shrink-0">
+ <EmployeeAvatar
+ employeeId={note.employeeId}
+ size="sm"
+ withName={false}
+ />
+ </div>
+ <div className="flex-1 rounded-lg bg-muted p-2 text-sm">
+ {note.notes}
+ </div>
+ </div>
+ ))}
+ </div>
+ </PopoverContent>
+ </Popover>
+ )}
+ <Link
+ to={`${path.to.jobProductionEvents(
+ jobId
+ )}?filter=jobOperationId:eq:${
+ operation.id
+ }&filter=type:eq:${type}`}
+ >
+ <IconButton
+ variant="ghost"
+ icon={<LuCircleChevronRight />}
+ aria-label="View Production Events"
+ />
+ </Link>
+ </HStack>
+ </Td>
+ </Tr>
+ );
+ })}
</>
);
})}
@@ -537,12 +517,9 @@ const JobEstimatesVsActuals = ({
<Th>Estimated</Th>
<Th>Actual</Th>
<Th>%</Th>
- {detailsDisclosure.isOpen && (
- <>
- <Th>Estimated</Th>
- <Th>Actual</Th>
- </>
- )}
+
+ <Th>Estimated</Th>
+ <Th>Actual</Th>
</Tr>
</Thead>
<Tbody>
@@ -560,101 +537,81 @@ const JobEstimatesVsActuals = ({
(material.quantityIssued ?? 0) * currentUnitCost;
return (
- <>
- <Tr key={material.id} className="border-b border-border">
- <Td className="border-r border-border">
- <HStack className="w-full justify-start">
- <Tooltip>
- <TooltipTrigger>
- <MethodIcon type={material.methodType} />
- </TooltipTrigger>
- <TooltipContent>
- {material.methodType}
- </TooltipContent>
- </Tooltip>
- <span>
- {getItemReadableId(items, material.itemId)}
- </span>
- </HStack>
- </Td>
- <Td>{material.estimatedQuantity}</Td>
- <Td className={cn(exceedsEstimate && "text-red-500")}>
- {material.methodType === "Make" ? (
- <MethodIcon type="Make" />
- ) : (
- material.quantityIssued
- )}
- </Td>
-
- <Td className={cn(exceedsEstimate && "text-red-500")}>
- {material.methodType !== "Make" &&
- material.estimatedQuantity &&
+ <Tr key={material.id} className="border-b border-border">
+ <Td className="border-r border-border">
+ <HStack className="w-full justify-start">
+ <Tooltip>
+ <TooltipTrigger>
+ <MethodIcon type={material.methodType} />
+ </TooltipTrigger>
+ <TooltipContent>
+ {material.methodType}
+ </TooltipContent>
+ </Tooltip>
+ <span>
+ {getItemReadableId(items, material.itemId)}
+ </span>
+ </HStack>
+ </Td>
+ <Td>{material.estimatedQuantity}</Td>
+ <Td className={cn(exceedsEstimate && "text-red-500")}>
+ {material.methodType === "Make" ? (
+ <MethodIcon type="Make" />
+ ) : (
material.quantityIssued
- ? percentFormatter.format(
- material.quantityIssued /
- material.estimatedQuantity
- )
- : null}
- </Td>
- {detailsDisclosure.isOpen && (
- <>
- <Td>
- {material.methodType === "Make" ? null : (
- <VStack spacing={0} className="py-1">
- <span className="text-sm">
- {currencyFormatter.format(
- estimatedTotalCost
- )}
- </span>
- <span className="text-xxs">
- {currencyFormatter.format(
- material.unitCost ?? 0
- )}
- </span>
- </VStack>
+ )}
+ </Td>
+
+ <Td className={cn(exceedsEstimate && "text-red-500")}>
+ {material.methodType !== "Make" &&
+ material.estimatedQuantity &&
+ material.quantityIssued
+ ? percentFormatter.format(
+ material.quantityIssued /
+ material.estimatedQuantity
+ )
+ : null}
+ </Td>
+ <Td>
+ {material.methodType === "Make" ? null : (
+ <VStack spacing={0} className="py-1">
+ <span className="text-sm">
+ {currencyFormatter.format(estimatedTotalCost)}
+ </span>
+ <span className="text-xxs">
+ {currencyFormatter.format(material.unitCost ?? 0)}
+ </span>
+ </VStack>
+ )}
+ </Td>
+ <Td>
+ {material.methodType === "Make" ? null : (
+ <VStack spacing={0} className="py-1">
+ <span
+ className={cn(
+ "text-sm",
+ actualTotalCost > estimatedTotalCost &&
+ "text-red-500"
)}
- </Td>
- <Td>
- {material.methodType === "Make" ? null : (
- <VStack spacing={0} className="py-1">
- <span
- className={cn(
- "text-sm",
- actualTotalCost > estimatedTotalCost &&
- "text-red-500"
- )}
- >
- {currencyFormatter.format(actualTotalCost)}
- </span>
- <span
- className={cn(
- "text-xxs",
- currentUnitCost > material.unitCost &&
- "text-red-500"
- )}
- >
- {currencyFormatter.format(currentUnitCost)}
- </span>
- </VStack>
+ >
+ {currencyFormatter.format(actualTotalCost)}
+ </span>
+ <span
+ className={cn(
+ "text-xxs",
+ currentUnitCost > material.unitCost &&
+ "text-red-500"
)}
- </Td>
- </>
+ >
+ {currencyFormatter.format(currentUnitCost)}
+ </span>
+ </VStack>
)}
- </Tr>
- </>
+ </Td>
+ </Tr>
);
})}
</Tbody>
- <Tfoot>
- {/* <Tr className="font-bold">
- <Td className="border-r border-border" />
- {types.map((type) => (
- <Td key={type}>
- <Button variant="secondary">Add</Button>
- </Td>
- ))}
- </Tr> */}
- </Tfoot>
</Table>
</TabsContent>
</CardContent>
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx b/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
index 0f0305967b..91768eeb16 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
@@ -652,12 +652,6 @@ export function JobStartModal({
>
<ModalHeader>
<ModalTitle>Release Job {job?.jobId}</ModalTitle>
- {eachAssemblyHasAnOperation && eachOutsideOperationHasASupplier && (
- <ModalDescription>
- Are you sure you want to release this job? It will become
- available to the shop floor, and drive purchasing and production.
- </ModalDescription>
- )}
</ModalHeader>
{loading ? (
<ModalBody>
@@ -670,6 +664,14 @@ export function JobStartModal({
<>
<ModalBody>
<VStack>
+ {eachAssemblyHasAnOperation &&
+ eachOutsideOperationHasASupplier && (
+ <p className="text-sm">
+ Are you sure you want to release this job? It will become
+ available to the shop floor, and drive purchasing and
+ production.
+ </p>
+ )}
{hasOutsideOperations && eachOutsideOperationHasASupplier && (
<>
<Alert>
diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
index 2e2bf5ede9..b98260ba82 100644
--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
@@ -90,27 +90,6 @@ const cardVariants = cva(
}
);
-const cardHeaderVariants = cva(
- "-mx-4 relative border-b border-border/50 pt-4 pl-4 pr-6 rounded-t-lg",
- {
- variants: {
- status: {
- "In Progress": "",
- Ready: "",
- Done: "",
- Todo: "",
- Paused: "",
- Canceled: "",
- Cancelled: "",
- Waiting: ""
- }
- },
- defaultVariants: {
- status: "Todo"
- }
- }
-);
-
type ItemCardProps = {
item: Item;
isOverlay?: boolean;
@@ -163,7 +142,7 @@ export function ItemCard({ item, isOverlay, progressByItemId }: ItemCardProps) {
ref={setNodeRef}
style={style}
className={cn(
- "max-w-[330px] shadow-sm dark:shadow-sm py-0",
+ "max-w-[330px] shadow-sm dark:shadow-sm",
cardVariants({
dragging: isOverlay ? "overlay" : isDragging ? "over" : undefined,
status: status,
@@ -171,13 +150,7 @@ export function ItemCard({ item, isOverlay, progressByItemId }: ItemCardProps) {
})
)}
>
- <CardHeader
- className={cn(
- cardHeaderVariants({
- status: status
- })
- )}
- >
+ <CardHeader className="flex flex-col justify-between relative gap-2">
<div className="flex w-full max-w-full justify-between items-start gap-0">
<div className="flex flex-col space-y-0 min-w-0">
{item.itemReadableId && (
@@ -296,7 +269,7 @@ export function ItemCard({ item, isOverlay, progressByItemId }: ItemCardProps) {
</HStack>
)}
</CardHeader>
- <CardContent className="pt-3 px-1 gap-2 text-left whitespace-pre-wrap text-sm">
+ <CardContent className="gap-2 text-left whitespace-pre-wrap text-sm">
{displaySettings.showThumbnail && item.thumbnailPath && (
<div className="flex justify-center">
<img
@@ -406,7 +379,7 @@ export function ItemCard({ item, isOverlay, progressByItemId }: ItemCardProps) {
</HStack>
)}
</CardContent>
- <CardFooter className="bg-accent/50 -mx-4 border-t px-4 py-2 items-center justify-between rounded-b-lg">
+ <CardFooter className="items-center justify-between text-xs flex-wrap">
<HStack>
<Assignee
table="jobOperation"
diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx
index 3316aecc34..cbbb9ba009 100644
--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx
@@ -81,28 +81,6 @@ const cardVariants = cva(
}
);
-const cardHeaderVariants = cva(
- "-mx-4 relative border-b border-border/50 pt-4 pl-4 pr-6 rounded-t-lg",
- {
- variants: {
- status: {
- Draft: "",
- Planned: "",
- Ready: "",
- "In Progress": "",
- Paused: "",
- Completed: "",
- Cancelled: "",
- Overdue: "",
- "Due Today": ""
- }
- },
- defaultVariants: {
- status: "Planned"
- }
- }
-);
-
type JobCardProps = {
item: JobItem;
isOverlay?: boolean;
@@ -163,7 +141,7 @@ export function JobCard({ item, isOverlay, progressByItemId }: JobCardProps) {
ref={setNodeRef}
style={style}
className={cn(
- "max-w-[330px] shadow-sm dark:shadow-sm py-0",
+ "max-w-[330px] shadow-sm dark:shadow-sm",
item.hasConflict && "border-red-500 border-2",
cardVariants({
dragging: isOverlay ? "overlay" : isDragging ? "over" : undefined,
@@ -172,13 +150,7 @@ export function JobCard({ item, isOverlay, progressByItemId }: JobCardProps) {
})
)}
>
- <CardHeader
- className={cn(
- cardHeaderVariants({
- status: status
- })
- )}
- >
+ <CardHeader className="flex flex-col justify-between relative gap-2">
<div className="flex w-full max-w-full justify-between items-start gap-0">
<div className="flex flex-col gap-0.5 space-y-0 min-w-0">
{item.itemReadableId && (
@@ -273,7 +245,7 @@ export function JobCard({ item, isOverlay, progressByItemId }: JobCardProps) {
</HStack>
)}
</CardHeader>
- <CardContent className="pt-3 px-1 gap-2 text-left whitespace-pre-wrap text-sm">
+ <CardContent className="gap-2 text-left whitespace-pre-wrap text-sm">
{displaySettings.showThumbnail && item.thumbnailPath && (
<div className="flex justify-center">
<img
@@ -361,7 +333,7 @@ export function JobCard({ item, isOverlay, progressByItemId }: JobCardProps) {
</HStack>
)}
</CardContent>
- <CardFooter className="bg-accent/50 -mx-4 border-t px-4 py-2 items-center justify-between rounded-b-lg">
+ <CardFooter className="items-center justify-between text-xs flex-wrap">
<HStack className="justify-start gap-2 w-full">
<Assignee
table="job"
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx
index ce4229e606..ecd190caaf 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx
@@ -46,7 +46,7 @@ export type PurchaseOrderDeliveryFormRef = {
const PurchaseOrderDeliveryForm = forwardRef<
PurchaseOrderDeliveryFormRef,
PurchaseOrderDeliveryFormProps
->(({ initialValues, currencyCode, defaultCollapsed = true }, ref) => {
+>(({ initialValues, currencyCode, defaultCollapsed = false }, ref) => {
const { orderId } = useParams();
if (!orderId) {
throw new Error("orderId not found");
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx
index 138dc4201c..638b8f4b17 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx
@@ -45,7 +45,7 @@ const PurchaseOrderPaymentForm = ({
);
return (
- <Card isCollapsible defaultCollapsed>
+ <Card>
<ValidatedForm
method="post"
action={path.to.purchaseOrderPayment(orderId)}
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx
index b6ad02f409..01a3884f4d 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx
@@ -3,7 +3,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
DropdownMenu,
@@ -71,7 +70,6 @@ const SupplierInteractionDocuments = ({
<HStack className="justify-between items-start">
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>Supplier interaction documents</CardDescription>
</CardHeader>
<CardAction>
<SupplierInteractionDocumentForm
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx
index f1102afcb1..608c89ebc5 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx
@@ -3,7 +3,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
DropdownMenu,
@@ -227,9 +226,6 @@ const SupplierInteractionLineDocuments = ({
<HStack className="justify-between items-start">
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>
- Supplier interaction line documents
- </CardDescription>
</CardHeader>
<CardAction>
<SupplierInteractionLineDocumentForm
diff --git a/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx
index 22a9d2d667..9372646059 100644
--- a/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx
@@ -185,7 +185,7 @@ export function IssueAssociationItem({
return (
<>
- <div className="flex h-8 items-center overflow-hidden rounded-sm px-2 gap-2 text-sm w-full hover:bg-muted/90">
+ <div className="flex h-8 items-center overflow-hidden rounded-sm px-2 gap-2 text-sm w-full hover:bg-accent">
<button
className="flex flex-grow cursor-pointer items-center overflow-hidden font-medium"
onClick={(e) => {
@@ -236,7 +236,7 @@ export function IssueAssociationItem({
>
<Link
to={getAssociationLink(child, node.key)}
- className="flex pr-7 h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-2 text-sm hover:bg-muted/90 w-full font-medium whitespace-nowrap"
+ className="flex pr-7 h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-2 text-sm hover:bg-accent w-full font-medium whitespace-nowrap"
>
<LevelLine isSelected={false} />
<div className="flex flex-grow justify-between gap-2">
diff --git a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterCard.tsx b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterCard.tsx
index febc350037..7b6e6e23a5 100644
--- a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterCard.tsx
+++ b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterCard.tsx
@@ -112,7 +112,7 @@ export default function RiskRegisterCard({
<Loading isLoading={true} />
</div>
) : risks.length === 0 ? (
- <Empty className="pb-8">No risks registered</Empty>
+ <Empty className="py-8" />
) : (
<div className="flex flex-col gap-4 p-4">
{risks.map((risk) => (
diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx
index b395f4152f..7d5d7bd120 100644
--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx
+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx
@@ -228,7 +228,7 @@ function MaintenanceExplorerItem({
return (
<>
- <div className="flex h-8 items-center overflow-hidden rounded-sm px-2 gap-2 text-sm w-full hover:bg-muted/90">
+ <div className="flex h-8 items-center overflow-hidden rounded-sm px-2 gap-2 text-sm w-full hover:bg-accent">
<button
className="flex flex-grow cursor-pointer items-center overflow-hidden font-medium"
onClick={(e) => {
@@ -323,7 +323,7 @@ function MaintenanceExplorerChildItem({
const permissions = usePermissions();
const content = (
- <div className="flex pr-7 h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-2 text-sm hover:bg-muted/90 w-full font-medium whitespace-nowrap">
+ <div className="flex pr-7 h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-2 text-sm hover:bg-accent w-full font-medium whitespace-nowrap">
<LevelLine isSelected={false} />
<div className="flex flex-grow items-center gap-2">
{icon}
diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx
index 0c84c6981b..589e93cac3 100644
--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx
+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx
@@ -130,9 +130,6 @@ export function MaintenanceDispatchFilesSkeleton() {
<Card>
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>
- Attachments and documents related to this dispatch
- </CardDescription>
</CardHeader>
<CardContent>
<div className="flex flex-col gap-2">
@@ -160,9 +157,6 @@ export function MaintenanceDispatchFiles({
<Card>
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>
- Attachments and documents related to this dispatch
- </CardDescription>
</CardHeader>
<CardContent>
<Suspense fallback={<MaintenanceDispatchFilesSkeleton />}>
diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx
index c64397a56b..fc4cf1d99d 100644
--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx
+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx
@@ -4,7 +4,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
DropdownMenu,
@@ -93,7 +92,6 @@ const OpportunityDocuments = ({
<HStack className="justify-between items-start">
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>Opportunity documents</CardDescription>
</CardHeader>
<CardAction>
<OpportunityDocumentForm
diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
index 8cb6faccdc..d975537854 100644
--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
@@ -3,7 +3,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
DropdownMenu,
@@ -433,7 +432,6 @@ const OpportunityLineDocuments = ({
<HStack className="justify-between items-start">
<CardHeader>
<CardTitle>Files</CardTitle>
- <CardDescription>Opportunity line documents</CardDescription>
</CardHeader>
<CardAction>
<OpportunityLineDocumentForm
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
index f14f9172d4..a130b8c459 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
@@ -187,8 +187,8 @@ const QuoteBoMExplorer = ({
className={cn(
"flex h-8 cursor-pointer items-center overflow-hidden rounded-sm pr-2 gap-1 group/node",
state.selected
- ? "bg-muted hover:bg-muted/90"
- : "bg-transparent hover:bg-muted/90"
+ ? "bg-muted hover:bg-accent"
+ : "bg-transparent hover:bg-accent"
)}
onClick={(e) => {
selectNode(node.id);
@@ -245,7 +245,7 @@ const QuoteBoMExplorer = ({
<div className="flex w-full items-center justify-between gap-2">
<div className="flex items-center gap-2 overflow-x-hidden">
{bomIdMap.get(node.id) && (
- <Badge variant="outline">
+ <Badge variant="outline" className="flex-shrink-0">
{bomIdMap.get(node.id)}
</Badge>
)}
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx
index 73b86dbf46..8b94574418 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx
@@ -66,7 +66,7 @@ const QuoteLinePricingHistory = ({
const [customers] = useCustomers();
return (
- <Card isCollapsible defaultCollapsed>
+ <Card>
<CardHeader>
<CardTitle>History</CardTitle>
<CardDescription>
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuotePaymentForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuotePaymentForm.tsx
index 8f734885eb..07cffdedb1 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuotePaymentForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuotePaymentForm.tsx
@@ -46,7 +46,7 @@ const QuotePaymentForm = ({ initialValues }: QuotePaymentFormProps) => {
const isDisabled = !isEditable || !permissions.can("update", "sales");
return (
- <Card isCollapsible defaultCollapsed>
+ <Card>
<ValidatedForm
method="post"
action={path.to.quotePayment(initialValues.id)}
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx
index 13931301a3..f1415bef1f 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx
@@ -35,7 +35,7 @@ export type QuoteShipmentFormRef = {
const QuoteShipmentForm = forwardRef<
QuoteShipmentFormRef,
QuoteShipmentFormProps
->(({ initialValues, defaultCollapsed = true }, ref) => {
+>(({ initialValues, defaultCollapsed = false }, ref) => {
const permissions = usePermissions();
const fetcher = useFetcher<{}>();
const [isCollapsed, setIsCollapsed] = useState(defaultCollapsed);
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx
index f4203df036..4997fe8ed3 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx
@@ -127,7 +127,7 @@ const LineItems = ({
routeData?.quote.currencyCode !== company?.baseCurrencyCode;
return (
- <VStack spacing={8} className="w-full overflow-hidden">
+ <VStack spacing={8} className="w-full overflow-hidden tracking-tight">
{routeData?.lines?.map((line) => {
const prices = pricingByLine[line.id!];
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx
index 4775167790..d2c4eb40f9 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx
@@ -475,7 +475,7 @@ function RelatedItemTreeNode({
return (
<>
<button
- className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-2 gap-2 text-sm hover:bg-muted/90 w-full font-medium"
+ className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-2 gap-2 text-sm hover:bg-accent w-full font-medium"
onClick={(e) => {
e.stopPropagation();
setIsExpanded(!isExpanded);
@@ -548,7 +548,7 @@ function RelatedItemLink({
return (
<Hyperlink
to={getLinkForItem()}
- className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-muted/90 w-full font-medium whitespace-nowrap"
+ className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-accent w-full font-medium whitespace-nowrap"
>
<LevelLine isSelected={false} className="mr-2" />
<div className="mr-2">{getIcon()}</div>
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderPaymentForm.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderPaymentForm.tsx
index cb3b66614e..7e833a8055 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderPaymentForm.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderPaymentForm.tsx
@@ -38,7 +38,7 @@ const SalesOrderPaymentForm = ({
const isDisabled = !permissions.can("update", "sales");
return (
- <Card isCollapsible defaultCollapsed>
+ <Card>
<ValidatedForm
method="post"
action={path.to.salesOrderPayment(initialValues.id)}
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx
index 1dd5e3d334..18774fe073 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx
@@ -42,7 +42,7 @@ export type SalesOrderShipmentFormRef = {
const SalesOrderShipmentForm = forwardRef<
SalesOrderShipmentFormRef,
SalesOrderShipmentFormProps
->(({ initialValues, defaultCollapsed = true }, ref) => {
+>(({ initialValues, defaultCollapsed = false }, ref) => {
const permissions = usePermissions();
const fetcher = useFetcher<typeof action>();
const [dropShip, setDropShip] = useState<boolean>(
diff --git a/apps/erp/app/root.tsx b/apps/erp/app/root.tsx
index e4ec3d3198..5c1fd4d64f 100644
--- a/apps/erp/app/root.tsx
+++ b/apps/erp/app/root.tsx
@@ -159,7 +159,7 @@ export function Document({
// Combine the styles with proper selectors
const themeStyle = {
...(mode === "light" ? lightVars : darkVars),
- "--radius": "0.5rem"
+ "--radius": "0.675rem"
} as React.CSSProperties;
return (
diff --git a/apps/erp/app/routes/x+/production+/_index.tsx b/apps/erp/app/routes/x+/production+/_index.tsx
index 3772142e28..1a864659c2 100644
--- a/apps/erp/app/routes/x+/production+/_index.tsx
+++ b/apps/erp/app/routes/x+/production+/_index.tsx
@@ -53,8 +53,7 @@ import {
LuEllipsisVertical,
LuFile,
LuHardHat,
- LuSquareUser,
- LuUserRoundCheck
+ LuSquareUser
} from "react-icons/lu";
import { RiProgress8Line } from "react-icons/ri";
import type { LoaderFunctionArgs } from "react-router";
@@ -276,64 +275,58 @@ export default function ProductionDashboard() {
return (
<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground">
<div className="grid w-full gap-y-4 lg:gap-x-4 grid-cols-1 lg:grid-cols-6">
- <Card className="col-span-3 p-6 rounded-xl items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuHardHat className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${path.to.jobs}?filter=status:in:${OPEN_JOB_STATUSES.join(
- ","
- )}`}
+ <Card className="col-span-3">
+ <CardHeader>
+ <CardTitle>Active Jobs</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {activeJobs}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Active Jobs
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {activeJobs}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Active Jobs
- </p>
- </div>
+ <Link
+ to={`${path.to.jobs}?filter=status:in:${OPEN_JOB_STATUSES.join(
+ ","
+ )}`}
+ >
+ View Active Jobs
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="col-span-3 p-6 items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuUserRoundCheck className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- >
- <Link to={`${path.to.jobs}?filter=assignee:eq:${user.id}`}>
- View Assigned Jobs
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {assignedJobs}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Jobs Assigned to Me
- </p>
- </div>
+ <Card className="col-span-3">
+ <CardHeader>
+ <CardTitle>Jobs Assigned to Me</CardTitle>
+ </CardHeader>
+
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {assignedJobs}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
+ >
+ <Link to={`${path.to.jobs}?filter=assignee:eq:${user.id}`}>
+ View Assigned Jobs
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="col-span-6 p-0">
- <HStack className="justify-between items-start">
- <CardHeader className="pb-0">
+ <Card className="col-span-6">
+ <HStack className="justify-between items-center">
+ <CardHeader>
<div className="flex w-full justify-start items-center gap-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -395,29 +388,8 @@ export default function ProductionDashboard() {
/>
)}
</div>
- <HStack className="pl-[3px] pt-1">
- {isFetching ? (
- <Skeleton className="h-8 w-1/2" />
- ) : (
- <>
- <p className="text-xl font-semibold tracking-tight">
- {formatDurationMilliseconds(total)}
- </p>
-
- {percentageChange >= 0 ? (
- <Badge variant="green">
- +{percentageChange.toFixed(0)}%
- </Badge>
- ) : (
- <Badge variant="red">
- {percentageChange.toFixed(0)}%
- </Badge>
- )}
- </>
- )}
- </HStack>
</CardHeader>
- <CardAction className="py-6 px-6">
+ <CardAction>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<IconButton
@@ -441,7 +413,26 @@ export default function ProductionDashboard() {
</DropdownMenu>
</CardAction>
</HStack>
- <CardContent className="max-h-[600px] min-h-[320px] p-6 pb-12">
+ <CardContent className="max-h-[600px] min-h-[320px] flex-col gap-4">
+ <HStack className="pl-[3px] pt-1">
+ {isFetching ? (
+ <Skeleton className="h-8 w-1/2" />
+ ) : (
+ <>
+ <p className="text-xl font-semibold tracking-tight">
+ {formatDurationMilliseconds(total)}
+ </p>
+
+ {percentageChange >= 0 ? (
+ <Badge variant="green">
+ +{percentageChange.toFixed(0)}%
+ </Badge>
+ ) : (
+ <Badge variant="red">{percentageChange.toFixed(0)}%</Badge>
+ )}
+ </>
+ )}
+ </HStack>
{kpiFetcher.state === "idle" &&
kpiFetcher.data?.data?.length === 0 ? (
<div className="flex flex-col items-center justify-center h-full">
diff --git a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx
index 332c69c367..5bf8e92d72 100644
--- a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx
+++ b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx
@@ -183,7 +183,7 @@ export default function PurchaseInvoiceBasicRoute() {
ref={deliveryFormRef}
initialValues={deliveryInitialValues}
currencyCode={initialValues.currencyCode || company.baseCurrencyCode}
- defaultCollapsed={true}
+ defaultCollapsed={false}
/>
</Fragment>
);
diff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.details.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.details.tsx
index e0b21913b4..8e464b6b14 100644
--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.details.tsx
+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.details.tsx
@@ -255,7 +255,7 @@ export default function PurchaseOrderBasicRoute() {
ref={deliveryFormRef}
initialValues={deliveryInitialValues}
currencyCode={initialValues.currencyCode || company.baseCurrencyCode}
- defaultCollapsed={true}
+ defaultCollapsed={false}
/>
<PurchaseOrderPaymentForm
diff --git a/apps/erp/app/routes/x+/purchasing+/_index.tsx b/apps/erp/app/routes/x+/purchasing+/_index.tsx
index 6bdf5e0987..19fb3a865c 100644
--- a/apps/erp/app/routes/x+/purchasing+/_index.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/_index.tsx
@@ -6,7 +6,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
Combobox,
@@ -330,99 +329,88 @@ export default function PurchaseDashboard() {
return (
<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground">
<div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-3">
- <Card className="p-6 rounded-xl items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuPackageSearch className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${
- path.to.supplierQuotes
- }?filter=status:in:${OPEN_SUPPLIER_QUOTE_STATUSES.join(",")}`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Active Supplier Quotes</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openSupplierQuotes.count ?? 0}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Active Quotes
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openSupplierQuotes.count ?? 0}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Active Supplier Quotes
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.supplierQuotes
+ }?filter=status:in:${OPEN_SUPPLIER_QUOTE_STATUSES.join(",")}`}
+ >
+ View Active Quotes
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="p-6 items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuLayoutList className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- >
- <Link
- to={`${
- path.to.purchaseOrders
- }?filter=status:in:${OPEN_PURCHASE_ORDER_STATUSES.join(",")}`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open Purchase Orders</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openPurchaseOrders.count ?? 0}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Open POs
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openPurchaseOrders.count ?? 0}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open Purchase Orders
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.purchaseOrders
+ }?filter=status:in:${OPEN_PURCHASE_ORDER_STATUSES.join(",")}`}
+ >
+ View Open POs
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="p-6 items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuCreditCard className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${
- path.to.purchaseInvoices
- }?filter=status:in:${OPEN_INVOICE_STATUSES.join(",")}`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open Purchase Invoices</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openPurchaseInvoices.count ?? 0}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Open Invoices
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openPurchaseInvoices.count ?? 0}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open Purchase Invoices
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.purchaseInvoices
+ }?filter=status:in:${OPEN_INVOICE_STATUSES.join(",")}`}
+ >
+ View Open Invoices
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
</div>
- <Card className="p-0">
- <HStack className="justify-between items-start">
- <CardHeader className="pb-0">
+ <Card>
+ <HStack className="justify-between items-center">
+ <CardHeader>
<div className="flex w-full justify-start items-center gap-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -491,30 +479,8 @@ export default function PurchaseDashboard() {
className="font-medium text-sm min-w-[160px] gap-4"
/>
</div>
- <HStack className="pl-[3px] pt-1">
- {isFetching ? (
- <Skeleton className="h-8 w-1/2" />
- ) : (
- <>
- <p className="text-xl font-semibold tracking-tight">
- {["purchaseOrderAmount", "purchaseInvoiceAmount"].includes(
- selectedKpiData.key
- )
- ? currencyFormatter.format(total)
- : numberFormatter.format(total)}
- </p>
- {percentageChange >= 0 ? (
- <Badge variant="green">
- +{percentageChange.toFixed(0)}%
- </Badge>
- ) : (
- <Badge variant="red">{percentageChange.toFixed(0)}%</Badge>
- )}
- </>
- )}
- </HStack>
</CardHeader>
- <CardAction className="py-6 px-6">
+ <CardAction>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<IconButton
@@ -538,7 +504,27 @@ export default function PurchaseDashboard() {
</DropdownMenu>
</CardAction>
</HStack>
- <CardContent className="p-6">
+ <CardContent className="flex-col gap-4">
+ <HStack className="pl-[3px] pt-1">
+ {isFetching ? (
+ <Skeleton className="h-8 w-1/2" />
+ ) : (
+ <>
+ <p className="text-xl font-semibold tracking-tight">
+ {["purchaseOrderAmount", "purchaseInvoiceAmount"].includes(
+ selectedKpiData.key
+ )
+ ? currencyFormatter.format(total)
+ : numberFormatter.format(total)}
+ </p>
+ {percentageChange >= 0 ? (
+ <Badge variant="green">+{percentageChange.toFixed(0)}%</Badge>
+ ) : (
+ <Badge variant="red">{percentageChange.toFixed(0)}%</Badge>
+ )}
+ </>
+ )}
+ </HStack>
<Loading
isLoading={isFetching}
className="h-[30dvw] md:h-[23dvw] w-full"
@@ -611,11 +597,8 @@ export default function PurchaseDashboard() {
</Card>
<div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-2">
<Card>
- <CardHeader className="px-6 pb-0">
+ <CardHeader>
<CardTitle>Recently Created</CardTitle>
- <CardDescription className="text-sm">
- Recently created purchasing documents
- </CardDescription>
</CardHeader>
<CardContent className="p-6">
<div className="min-h-[200px] max-h-[360px] w-full overflow-y-auto">
@@ -668,13 +651,10 @@ export default function PurchaseDashboard() {
</Card>
<Card>
- <CardHeader className="px-6 pb-0">
+ <CardHeader>
<CardTitle>Assigned to Me</CardTitle>
- <CardDescription className="text-sm">
- Purchasing documents assigned to me and pending approvals
- </CardDescription>
</CardHeader>
- <CardContent className="p-6 min-h-[200px]">
+ <CardContent className="min-h-[200px]">
<Suspense fallback={<Loading isLoading />}>
<Await
resolve={assignedToMe}
diff --git a/apps/erp/app/routes/x+/resources+/_index.tsx b/apps/erp/app/routes/x+/resources+/_index.tsx
index 4ad3201aa3..835491d821 100644
--- a/apps/erp/app/routes/x+/resources+/_index.tsx
+++ b/apps/erp/app/routes/x+/resources+/_index.tsx
@@ -5,7 +5,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
Combobox,
@@ -42,11 +41,9 @@ import { Suspense, useEffect, useMemo, useState } from "react";
import { CSVLink } from "react-csv";
import {
LuArrowUpRight,
- LuCalendarCheck,
LuChevronDown,
LuEllipsisVertical,
LuFile,
- LuTriangleAlert,
LuWrench
} from "react-icons/lu";
import type { LoaderFunctionArgs } from "react-router";
@@ -338,100 +335,88 @@ export default function MaintenanceDashboard() {
return (
<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground">
<div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-3">
- <Card className="p-6 rounded-xl items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuWrench className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${
- path.to.maintenanceDispatches
- }?filter=status:in:${OPEN_STATUSES.join(",")}`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open Dispatches</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openDispatches}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Open
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openDispatches}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open Dispatches
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.maintenanceDispatches
+ }?filter=status:in:${OPEN_STATUSES.join(",")}`}
+ >
+ View Open
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="p-6 items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuCalendarCheck className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${
- path.to.maintenanceDispatches
- }?filter=status:in:${OPEN_STATUSES.join(",")}&filter=source:eq:Scheduled`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open Scheduled</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openScheduled}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Scheduled
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openScheduled}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open Scheduled
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.maintenanceDispatches
+ }?filter=status:in:${OPEN_STATUSES.join(",")}&filter=source:eq:Scheduled`}
+ >
+ View Scheduled
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="p-6 items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <LuTriangleAlert className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${
- path.to.maintenanceDispatches
- }?filter=status:in:${OPEN_STATUSES.join(",")}&filter=source:eq:Reactive`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open Reactive</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openReactive}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Reactive
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openReactive}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open Reactive
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.maintenanceDispatches
+ }?filter=status:in:${OPEN_STATUSES.join(",")}&filter=source:eq:Reactive`}
+ >
+ View Reactive
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
</div>
- <Card className="p-0">
- <HStack className="justify-between items-start">
- <CardHeader className="pb-0">
+ <Card>
+ <HStack className="justify-between items-center">
+ <CardHeader>
<div className="flex w-full justify-start items-center gap-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -500,30 +485,8 @@ export default function MaintenanceDashboard() {
className="min-w-[160px] gap-4"
/>
</div>
- <HStack className="pl-[3px] pt-1">
- {isFetching ? (
- <Skeleton className="h-8 w-1/2" />
- ) : (
- <>
- <p className="text-xl font-semibold tracking-tight">
- {formatValue(total)}
- </p>
- {isBadgePositive ? (
- <Badge variant="green">
- {percentageChange >= 0 ? "+" : ""}
- {percentageChange.toFixed(0)}%
- </Badge>
- ) : (
- <Badge variant="red">
- {percentageChange >= 0 ? "+" : ""}
- {percentageChange.toFixed(0)}%
- </Badge>
- )}
- </>
- )}
- </HStack>
</CardHeader>
- <CardAction className="py-6 px-6">
+ <CardAction>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<IconButton
@@ -547,7 +510,29 @@ export default function MaintenanceDashboard() {
</DropdownMenu>
</CardAction>
</HStack>
- <CardContent className="p-6">
+ <CardContent className="flex-col gap-4">
+ <HStack className="pl-[3px] pt-1">
+ {isFetching ? (
+ <Skeleton className="h-8 w-1/2" />
+ ) : (
+ <>
+ <p className="text-xl font-semibold tracking-tight">
+ {formatValue(total)}
+ </p>
+ {isBadgePositive ? (
+ <Badge variant="green">
+ {percentageChange >= 0 ? "+" : ""}
+ {percentageChange.toFixed(0)}%
+ </Badge>
+ ) : (
+ <Badge variant="red">
+ {percentageChange >= 0 ? "+" : ""}
+ {percentageChange.toFixed(0)}%
+ </Badge>
+ )}
+ </>
+ )}
+ </HStack>
<Loading
isLoading={isFetching}
className="h-[30dvw] md:h-[23dvw] w-full"
@@ -673,11 +658,8 @@ export default function MaintenanceDashboard() {
</Card>
<div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-2">
<Card>
- <CardHeader className="px-6 pb-0">
+ <CardHeader>
<CardTitle>Recently Created</CardTitle>
- <CardDescription className="text-sm">
- Newly created maintenance dispatches
- </CardDescription>
</CardHeader>
<CardContent className="p-6">
<div className="min-h-[200px] max-h-[360px] w-full overflow-y-auto">
@@ -693,13 +675,10 @@ export default function MaintenanceDashboard() {
</Card>
<Card>
- <CardHeader className="px-6 pb-0">
+ <CardHeader>
<CardTitle>Assigned to Me</CardTitle>
- <CardDescription className="text-sm">
- Dispatches currently assigned to you
- </CardDescription>
</CardHeader>
- <CardContent className="p-6 min-h-[200px]">
+ <CardContent className="min-h-[200px]">
<Suspense fallback={<Loading isLoading />}>
<Await
resolve={assignedToMe}
diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsx
index 8b6773d4f9..29d285f685 100644
--- a/apps/erp/app/routes/x+/sales+/_index.tsx
+++ b/apps/erp/app/routes/x+/sales+/_index.tsx
@@ -5,7 +5,6 @@ import {
Card,
CardAction,
CardContent,
- CardDescription,
CardHeader,
CardTitle,
Combobox,
@@ -355,99 +354,88 @@ export default function SalesDashboard() {
return (
<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground">
<div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-3">
- <Card className="p-6 rounded-xl items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <RiProgress2Line className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${
- path.to.salesRfqs
- }?filter=status:in:${OPEN_RFQ_STATUSES.join(",")}`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open RFQs</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openRFQs.count ?? 0}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Open RFQs
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openRFQs.count ?? 0}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open RFQs
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.salesRfqs
+ }?filter=status:in:${OPEN_RFQ_STATUSES.join(",")}`}
+ >
+ View Open RFQs
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="p-6 items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <RiProgress4Line className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- >
- <Link
- to={`${
- path.to.quotes
- }?filter=status:in:${OPEN_QUOTE_STATUSES.join(",")}`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open Quotes</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openQuotes.count ?? 0}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Open Quotes
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openQuotes.count ?? 0}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open Quotes
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.quotes
+ }?filter=status:in:${OPEN_QUOTE_STATUSES.join(",")}`}
+ >
+ View Open Quotes
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
- <Card className="p-6 items-start justify-start gap-y-4">
- <HStack className="justify-between w-full items-start mb-4">
- <div className="bg-muted/80 border border-border rounded-xl p-2 text-foreground dark:shadow-md">
- <RiProgress8Line className="size-5" />
- </div>
- <Button
- size="sm"
- rightIcon={<LuArrowUpRight />}
- variant="secondary"
- asChild
- >
- <Link
- to={`${
- path.to.salesOrders
- }?filter=status:in:${OPEN_SALES_ORDER_STATUSES.join(",")}`}
+ <Card>
+ <CardHeader>
+ <CardTitle>Open Sales Orders</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <HStack className="justify-between w-full items-center">
+ <h3 className="text-5xl font-medium tracking-tight">
+ {openSalesOrders.count ?? 0}
+ </h3>
+ <Button
+ rightIcon={<LuArrowUpRight />}
+ variant="secondary"
+ asChild
>
- View Open Orders
- </Link>
- </Button>
- </HStack>
- <div className="flex flex-col gap-2">
- <h3 className="text-3xl font-medium tracking-tight">
- {openSalesOrders.count ?? 0}
- </h3>
- <p className="text-sm text-muted-foreground tracking-tight">
- Open Sales Orders
- </p>
- </div>
+ <Link
+ to={`${
+ path.to.salesOrders
+ }?filter=status:in:${OPEN_SALES_ORDER_STATUSES.join(",")}`}
+ >
+ View Open Orders
+ </Link>
+ </Button>
+ </HStack>
+ </CardContent>
</Card>
</div>
- <Card className="p-0">
- <HStack className="justify-between items-start">
- <CardHeader className="pb-0">
+ <Card>
+ <HStack className="justify-between items-center">
+ <CardHeader>
<div className="flex w-full justify-start items-center gap-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -516,30 +504,8 @@ export default function SalesDashboard() {
className="min-w-[160px] gap-4"
/>
</div>
- <HStack className="pl-[3px] pt-1">
- {isFetching ? (
- <Skeleton className="h-8 w-1/2" />
- ) : (
- <>
- <p className="text-xl font-semibold tracking-tight">
- {["salesOrderRevenue", "salesFunnel"].includes(
- selectedKpiData.key
- )
- ? currencyFormatter.format(total)
- : numberFormatter.format(total)}
- </p>
- {percentageChange >= 0 ? (
- <Badge variant="green">
- +{percentageChange.toFixed(0)}%
- </Badge>
- ) : (
- <Badge variant="red">{percentageChange.toFixed(0)}%</Badge>
- )}
- </>
- )}
- </HStack>
</CardHeader>
- <CardAction className="py-6 px-6">
+ <CardAction>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<IconButton
@@ -563,7 +529,27 @@ export default function SalesDashboard() {
</DropdownMenu>
</CardAction>
</HStack>
- <CardContent className="p-6">
+ <CardContent className="flex-col gap-4">
+ <HStack className="pl-[3px] pt-1">
+ {isFetching ? (
+ <Skeleton className="h-8 w-1/2" />
+ ) : (
+ <>
+ <p className="text-xl font-semibold tracking-tight">
+ {["salesOrderRevenue", "salesFunnel"].includes(
+ selectedKpiData.key
+ )
+ ? currencyFormatter.format(total)
+ : numberFormatter.format(total)}
+ </p>
+ {percentageChange >= 0 ? (
+ <Badge variant="green">+{percentageChange.toFixed(0)}%</Badge>
+ ) : (
+ <Badge variant="red">{percentageChange.toFixed(0)}%</Badge>
+ )}
+ </>
+ )}
+ </HStack>
<Loading
isLoading={isFetching}
className="h-[30dvw] md:h-[23dvw] w-full"
@@ -650,11 +636,8 @@ export default function SalesDashboard() {
</Card>
<div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-2">
<Card>
- <CardHeader className="px-6 pb-0">
+ <CardHeader>
<CardTitle>Recently Created</CardTitle>
- <CardDescription className="text-sm">
- Newly created sales documents
- </CardDescription>
</CardHeader>
<CardContent className="p-6">
<div className="min-h-[200px] max-h-[360px] w-full overflow-y-auto">
@@ -707,13 +690,10 @@ export default function SalesDashboard() {
</Card>
<Card>
- <CardHeader className="px-6 pb-0">
+ <CardHeader>
<CardTitle>Assigned to Me</CardTitle>
- <CardDescription className="text-sm">
- Sales documents currently assigned to me
- </CardDescription>
</CardHeader>
- <CardContent className="p-6 min-h-[200px]">
+ <CardContent className="min-h-[200px]">
<Suspense fallback={<Loading isLoading />}>
<Await
resolve={assignedToMe}
diff --git a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.details.tsx b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.details.tsx
index 5f276084e5..20765886c7 100644
--- a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.details.tsx
+++ b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.details.tsx
@@ -177,7 +177,7 @@ export default function SalesInvoiceBasicRoute() {
ref={shipmentFormRef}
initialValues={shipmentInitialValues}
currencyCode={initialValues.currencyCode || company.baseCurrencyCode}
- defaultCollapsed={true}
+ defaultCollapsed={false}
/>
</Fragment>
);
diff --git a/apps/mes/app/components/Kanban/components/ItemCard.tsx b/apps/mes/app/components/Kanban/components/ItemCard.tsx
index 7a16f5d076..59b855a8a1 100644
--- a/apps/mes/app/components/Kanban/components/ItemCard.tsx
+++ b/apps/mes/app/components/Kanban/components/ItemCard.tsx
@@ -110,13 +110,13 @@ export function ItemCard({
<Link to={path.to.operation(item.id)}>
<Card
className={cn(
- "max-w-[330px] shadow-sm dark:shadow-sm py-0",
+ "max-w-[330px] shadow-sm dark:shadow-sm",
cardVariants({
status: status
})
)}
>
- <CardHeader className="-mx-4 flex flex-col justify-between relative border-b py-3 px-4 rounded-t-lg gap-2">
+ <CardHeader className="flex flex-col justify-between relative gap-2">
<div className="flex w-full max-w-full justify-between items-start gap-2">
<div className="flex flex-col space-y-0 min-w-0">
{item.itemReadableId && (
@@ -187,7 +187,7 @@ export function ItemCard({
)}
</CardHeader>
- <CardContent className="pt-3 px-1 gap-2 text-left whitespace-pre-wrap text-sm">
+ <CardContent className="gap-2 text-left whitespace-pre-wrap text-sm">
{showThumbnail && item.thumbnailPath && (
<div className="flex justify-center">
<img
@@ -290,7 +290,7 @@ export function ItemCard({
)}
</CardContent>
{(item.assignee || (item.tags && item.tags.length > 0)) && (
- <CardFooter className="bg-accent/50 -mx-4 border-t px-4 py-2 items-center justify-start space-2 rounded-b-lg text-xs flex-wrap">
+ <CardFooter className="items-center justify-start space-2 text-xs flex-wrap">
{item.assignee && (
<EmployeeAvatar size="xs" employeeId={item.assignee} />
)}
diff --git a/apps/mes/app/components/OperationsList.tsx b/apps/mes/app/components/OperationsList.tsx
index 0b270a65ff..400e53be80 100644
--- a/apps/mes/app/components/OperationsList.tsx
+++ b/apps/mes/app/components/OperationsList.tsx
@@ -99,7 +99,7 @@ function OperationCard({
return (
<Card
className={cn(
- "shadow-sm dark:shadow-sm py-0 h-full flex flex-col",
+ "shadow-sm dark:shadow-sm h-full flex flex-col",
cardVariants({
status: operation.operationStatus
})
@@ -109,7 +109,7 @@ function OperationCard({
to={path.to.operation(operation.id)}
className="flex flex-col flex-1"
>
- <CardHeader className="-mx-4 relative border-b py-3 px-4 rounded-t-lg">
+ <CardHeader className="flex flex-col justify-between relative gap-2">
<div className="flex w-full max-w-full justify-between items-start gap-2">
<div className="flex flex-col space-y-0 min-w-0">
{operation.itemReadableId && (
@@ -126,7 +126,7 @@ function OperationCard({
</Heading>
</div>
</CardHeader>
- <CardContent className="pt-3 px-1 gap-2 text-left whitespace-pre-wrap text-sm flex-grow">
+ <CardContent className="gap-2 text-left whitespace-pre-wrap text-sm flex-grow">
{showThumbnail && operation.thumbnailPath && (
<div className="flex justify-center">
<img
@@ -206,7 +206,7 @@ function OperationCard({
</CardContent>
{(operation.assignee ||
(operation.tags && operation.tags.length > 0)) && (
- <CardFooter className="bg-accent/50 -mx-4 border-t px-4 py-2 items-center justify-start space-2 rounded-b-lg text-xs flex-wrap mt-auto">
+ <CardFooter className="items-center justify-start text-xs flex-wrap mt-auto">
{operation.assignee && (
<EmployeeAvatar size="xs" employeeId={operation.assignee} />
)}
diff --git a/apps/mes/app/root.tsx b/apps/mes/app/root.tsx
index d8ec7822b3..1bb0b7b3e6 100644
--- a/apps/mes/app/root.tsx
+++ b/apps/mes/app/root.tsx
@@ -145,7 +145,7 @@ function Document({
// Combine the styles with proper selectors
const themeStyle = {
...(mode === "dark" ? darkVars : lightVars),
- "--radius": "0.5rem"
+ "--radius": "0.675rem"
} as React.CSSProperties;
return (
diff --git a/apps/starter/app/root.tsx b/apps/starter/app/root.tsx
index bc0e4dd718..d9d507c8cf 100644
--- a/apps/starter/app/root.tsx
+++ b/apps/starter/app/root.tsx
@@ -131,7 +131,7 @@ function Document({
// Combine the styles with proper selectors
const themeStyle = {
...(mode === "dark" ? darkVars : lightVars),
- "--radius": "0.5rem"
+ "--radius": "0.675rem"
} as React.CSSProperties;
return (
diff --git a/apps/starter/app/styles/tailwind.css b/apps/starter/app/styles/tailwind.css
index 2c0e04ecb9..b49c775373 100644
--- a/apps/starter/app/styles/tailwind.css
+++ b/apps/starter/app/styles/tailwind.css
@@ -28,7 +28,7 @@
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5% 64.9%;
- --radius: 0.5rem;
+ --radius: 0.675rem;
--sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
diff --git a/examples/quote-configurator/app/styles/tailwind.css b/examples/quote-configurator/app/styles/tailwind.css
index bd2d2ec5f8..4ffe256562 100644
--- a/examples/quote-configurator/app/styles/tailwind.css
+++ b/examples/quote-configurator/app/styles/tailwind.css
@@ -24,7 +24,7 @@
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 10% 3.9%;
- --radius: 0.5rem;
+ --radius: 0.675rem;
--header-height: 70px;
}
diff --git a/examples/upload-3d-model/app/styles/tailwind.css b/examples/upload-3d-model/app/styles/tailwind.css
index 597b91d681..46fd2015ec 100644
--- a/examples/upload-3d-model/app/styles/tailwind.css
+++ b/examples/upload-3d-model/app/styles/tailwind.css
@@ -22,7 +22,7 @@
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 10% 3.9%;
- --radius: 0.5rem;
+ --radius: 0.675rem;
--header-height: 70px;
}
diff --git a/packages/documents/src/pdf/JobTravelerPDF.tsx b/packages/documents/src/pdf/JobTravelerPDF.tsx
index 95bc2492a6..52940536bd 100644
--- a/packages/documents/src/pdf/JobTravelerPDF.tsx
+++ b/packages/documents/src/pdf/JobTravelerPDF.tsx
@@ -257,20 +257,11 @@ export const JobTravelerPageContent = ({
}: Omit<JobTravelerProps, "meta" | "title" | "locale" | "jobMakeMethod"> & {
methodRevision?: string | null;
}) => {
- const subtitle = batchNumber
- ? batchNumber
- : (item.name ?? item.readableIdWithRevision);
- const tertiaryTitle = `Assembly ${bomId}`;
-
return (
<View style={tw("flex flex-col")}>
{/* Original Header Section with company logo and job title */}
<View style={tw("mb-6")}>
- <Header
- company={company}
- title="Job Traveler"
- documentId={job.jobId}
- />
+ <Header company={company} title="Job Traveler" documentId={job.jobId} />
</View>
{/* Job Header Section with detailed information */}
@@ -348,15 +339,33 @@ export const JobTravelerPageContent = ({
const hasExpectedTimes =
setupTimeFormatted || laborTimeFormatted || machineTimeFormatted;
+ const workInstruction = operation.workInstruction as
+ | JSONContent
+ | undefined;
+ const hasWorkInstruction =
+ includeWorkInstructions &&
+ workInstruction &&
+ typeof workInstruction === "object" &&
+ "content" in workInstruction &&
+ Array.isArray(workInstruction.content) &&
+ workInstruction.content.length > 0;
+ const hasProcedureSteps =
+ includeWorkInstructions &&
+ operation.jobOperationStep &&
+ operation.jobOperationStep.length > 0;
+
return (
<View
style={tw(
"flex flex-col border-b border-gray-300 py-4 px-[6px] page-break-inside-avoid"
)}
key={operation.id}
- wrap={false}
+ wrap={includeWorkInstructions ? true : false}
>
- <View style={tw("flex flex-row justify-between items-start")}>
+ <View
+ style={tw("flex flex-row justify-between items-start")}
+ wrap={false}
+ >
<Text style={tw("w-1/12 text-left")}>
{getParallelizedOrder(index, operation, jobOperations)}
</Text>
@@ -419,75 +428,84 @@ export const JobTravelerPageContent = ({
</View>
</View>
</View>
- </View>
- );
- })}
- </View>
-
- {/* Work Instructions and Procedure Steps Section */}
- {includeWorkInstructions &&
- jobOperations
- .sort((a, b) => a.order - b.order)
- .map((operation) => {
- const workInstruction = operation.workInstruction as
- | JSONContent
- | undefined;
- const hasWorkInstruction =
- workInstruction &&
- typeof workInstruction === "object" &&
- "content" in workInstruction &&
- Array.isArray(workInstruction.content) &&
- workInstruction.content.length > 0;
-
- const hasProcedureSteps =
- operation.jobOperationStep &&
- operation.jobOperationStep.length > 0;
-
- if (!hasWorkInstruction && !hasProcedureSteps) {
- return null;
- }
-
- return (
- <View key={`instructions-${operation.id}`} wrap={false}>
- {hasProcedureSteps && (
- <View>
- {operation
- .jobOperationStep!.sort(
- (a, b) => a.sortOrder - b.sortOrder
- )
- .map((step) => {
- const stepDescription = step.description as
- | JSONContent
- | undefined;
- const hasStepDescription =
- stepDescription &&
- typeof stepDescription === "object" &&
- "content" in stepDescription &&
- Array.isArray(stepDescription.content) &&
- stepDescription.content.length > 0;
-
- return (
- <View key={step.id}>
- {hasStepDescription && (
- <Note
- title="Procedure Step"
- content={stepDescription}
- />
- )}
- <Text style={tw("text-[8px]")}>{step.name}</Text>
- </View>
- );
- })}
- </View>
- )}
- {hasWorkInstruction && (
- <View>
- <Note title="Work Instructions" content={workInstruction} />
+ {(hasWorkInstruction || hasProcedureSteps) && (
+ <View style={tw("mt-2 ml-8")}>
+ {hasProcedureSteps && (
+ <View style={tw("mb-2")}>
+ <Text
+ style={{
+ marginBottom: 8,
+ borderTopWidth: 1,
+ borderTopColor: "#d1d5db",
+ borderBottomWidth: 1,
+ borderColor: "#d1d5db",
+ paddingTop: 4,
+ paddingBottom: 4,
+ fontSize: 9,
+ fontWeight: 700,
+ textTransform: "uppercase"
+ }}
+ >
+ Procedure Steps
+ </Text>
+ {operation
+ .jobOperationStep!.sort(
+ (a, b) => a.sortOrder - b.sortOrder
+ )
+ .map((step) => {
+ const stepDescription = step.description as
+ | JSONContent
+ | undefined;
+ const hasStepDescription =
+ stepDescription &&
+ typeof stepDescription === "object" &&
+ "content" in stepDescription &&
+ Array.isArray(stepDescription.content) &&
+ stepDescription.content.length > 0;
+
+ return (
+ <View
+ key={step.id}
+ style={tw("flex flex-row items-start mb-1")}
+ >
+ <View
+ style={{
+ width: 9,
+ height: 9,
+ borderWidth: 1,
+ borderColor: "#374151",
+ marginRight: 6,
+ marginTop: 1
+ }}
+ />
+ <View style={tw("flex-1")}>
+ <Text style={tw("text-[9px] font-bold")}>
+ {step.name}
+ </Text>
+ {hasStepDescription && (
+ <Note
+ title="Procedure Step"
+ content={stepDescription}
+ />
+ )}
+ </View>
+ </View>
+ );
+ })}
+ </View>
+ )}
+ {hasWorkInstruction && (
+ <Note
+ title="Work Instructions"
+ content={workInstruction}
+ />
+ )}
</View>
)}
</View>
);
})}
+ </View>
{/* Notes Section */}
{notes && (
diff --git a/packages/react/src/Card.tsx b/packages/react/src/Card.tsx
index c903d542c0..6b7ca32a3e 100644
--- a/packages/react/src/Card.tsx
+++ b/packages/react/src/Card.tsx
@@ -46,7 +46,7 @@ const Card = forwardRef<HTMLDivElement, CardProps>(
<div
ref={ref}
className={cn(
- "relative flex flex-col rounded-lg border border-border dark:border-none dark:shadow-[inset_0_0.5px_0_rgb(255_255_255_/_0.08),_inset_0_0_1px_rgb(255_255_255_/_0.24),_0_0_0_0.5px_rgb(0,0,0,1),0px_0px_4px_rgba(0,_0,_0,_0.08)] bg-card dark:bg-gradient-to-bl dark:from-card dark:from-50% dark:via-card dark:to-background text-card-foreground p-4 w-full",
+ "relative flex flex-col rounded-2xl shadow-button-base dark:shadow-[inset_0_0.5px_0_rgb(255_255_255_/_0.08),_inset_0_0_1px_rgb(255_255_255_/_0.24),_0_0_0_0.5px_rgb(0,0,0,1),0px_0px_4px_rgba(0,_0,_0,_0.08)] bg-accent dark:bg-card text-card-foreground p-0 w-full",
className
)}
{...props}
@@ -56,7 +56,7 @@ const Card = forwardRef<HTMLDivElement, CardProps>(
aria-label={isCollapsed ? "Expand" : "Collapse"}
variant="ghost"
onClick={toggle}
- className="absolute right-8 top-8"
+ className="absolute right-2 top-2"
icon={
isCollapsed ? (
<LuChevronDown className="size-6" />
@@ -78,7 +78,7 @@ const CardAction = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
<div
ref={ref}
- className={cn("flex flex-col py-4 px-6", className)}
+ className={cn("flex flex-col py-2 px-4", className)}
{...props}
/>
)
@@ -149,7 +149,7 @@ const CardHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
<div
ref={ref}
className={cn(
- "flex flex-col space-y-1.5 p-6",
+ "flex flex-col gap-1 px-6 py-4 text-muted-foreground",
context?.isCollapsed && "cursor-pointer",
className
)}
@@ -168,7 +168,7 @@ const CardTitle = forwardRef<
<h3
ref={ref}
className={cn(
- "text-xl font-semibold font-headline leading-none tracking-tight text-foreground line-clamp-2",
+ "text-base font-medium font-headline leading-none tracking-tight text-foreground/90 line-clamp-2",
className
)}
{...props}
@@ -182,7 +182,7 @@ const CardDescription = forwardRef<
>(({ className, ...props }, ref) => (
<p
ref={ref}
- className={cn("text-sm text-muted-foreground tracking-tight", className)}
+ className={cn("text-xs text-muted-foreground tracking-tight", className)}
{...props}
/>
));
@@ -197,7 +197,10 @@ const CardContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
return (
<div
ref={ref}
- className={cn("flex flex-col flex-1 p-6 pt-0", className)}
+ className={cn(
+ "flex flex-col flex-1 p-6 rounded-2xl border border-border bg-card dark:bg-muted/40",
+ className
+ )}
{...props}
/>
);
@@ -214,7 +217,7 @@ const CardFooter = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
return (
<div
ref={ref}
- className={cn("flex items-center p-6 pt-0 gap-2", className)}
+ className={cn("flex items-center py-4 px-6 gap-2", className)}
{...props}
/>
);
diff --git a/packages/react/src/Checkbox.tsx b/packages/react/src/Checkbox.tsx
index 51e3f2e8e9..3527219502 100644
--- a/packages/react/src/Checkbox.tsx
+++ b/packages/react/src/Checkbox.tsx
@@ -19,7 +19,7 @@ const Checkbox = forwardRef<
<CheckboxPrimitive.Root
ref={ref}
className={cn(
- "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
+ "peer h-4 w-4 shrink-0 rounded-[0.25rem] border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
isIndeterminate && "bg-primary text-primary-foreground",
className
)}
diff --git a/packages/react/src/Drawer.tsx b/packages/react/src/Drawer.tsx
index edfd67dd2d..0ce0605fd0 100644
--- a/packages/react/src/Drawer.tsx
+++ b/packages/react/src/Drawer.tsx
@@ -64,7 +64,7 @@ const DrawerBody = ({
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
- "flex flex-col flex-1 items-start justify-start overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent w-full px-6 py-4",
+ "flex flex-col flex-1 items-start justify-start overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent w-full p-6 bg-card dark:bg-muted/40 rounded-2xl border border-border",
className
)}
{...props}
@@ -73,7 +73,7 @@ const DrawerBody = ({
DrawerBody.displayName = "DrawerBody";
const sheetVariants = cva(
- "fixed flex flex-col z-50 scale-100 bg-card opacity-100 shadow-lg border border-border transition-all duration-100 focus-visible:outline-none focus-visible:ring-0",
+ "fixed flex flex-col z-50 scale-100 bg-accent dark:bg-card opacity-100 shadow-button-base dark:shadow-[inset_0_0.5px_0_rgb(255_255_255_/_0.08),_inset_0_0_1px_rgb(255_255_255_/_0.24),_0_0_0_0.5px_rgb(0,0,0,1),0px_0px_4px_rgba(0,_0,_0,_0.08)] border border-border transition-all duration-100 focus-visible:outline-none focus-visible:ring-0",
{
variants: {
position: {
@@ -194,7 +194,7 @@ const DrawerContent = forwardRef<
{...props}
>
{children}
- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
+ <DialogPrimitive.Close className="absolute right-4 top-3 rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
<LuX className="h-6 w-6" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
@@ -212,7 +212,7 @@ const DrawerHeader = ({
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
- "flex flex-col flex-0 space-y-1 text-left px-6 py-8 border-b border-border",
+ "flex flex-col flex-0 gap-1 text-left px-6 py-4 text-muted-foreground",
className
)}
{...props}
@@ -226,7 +226,7 @@ const DrawerFooter = ({
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
- "flex flex-0 sm:flex-row border-t border-border flex-col-reverse px-6 py-4 sm:justify-end sm:space-x-2",
+ "flex flex-0 sm:flex-row flex-col-reverse px-6 py-4 sm:justify-end sm:space-x-2",
className
)}
{...props}
@@ -241,7 +241,7 @@ const DrawerTitle = forwardRef<
<DialogPrimitive.Title
ref={ref}
className={cn(
- "text-xl font-semibold font-headline leading-none tracking-tight text-foreground line-clamp-1",
+ "text-base font-medium font-headline leading-none tracking-tight text-foreground/90 line-clamp-1",
className
)}
{...props}
@@ -257,7 +257,7 @@ const DrawerDescription = forwardRef<
>(({ className, ...props }, ref) => (
<DialogPrimitive.Description
ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
+ className={cn("text-xs text-muted-foreground", className)}
{...props}
/>
));
diff --git a/packages/react/src/File.tsx b/packages/react/src/File.tsx
index 1eea0e899d..852edee2ce 100644
--- a/packages/react/src/File.tsx
+++ b/packages/react/src/File.tsx
@@ -32,6 +32,7 @@ const File = ({
<Button
className={className}
{...props}
+ variant={props.variant ?? "secondary"}
onClick={() => {
if (fileInputRef.current) fileInputRef.current.click();
}}
diff --git a/packages/react/src/Modal.tsx b/packages/react/src/Modal.tsx
index 292a98a9cc..92f4467da2 100644
--- a/packages/react/src/Modal.tsx
+++ b/packages/react/src/Modal.tsx
@@ -43,14 +43,14 @@ ModalOverlay.displayName = DialogPrimitive.Overlay.displayName;
const ModalContentVariants = cva(
cn(
- "p-10",
- "relative z-50 grid w-full border dark:border-none gap-4 shadow-md dark:shadow-sm duration-200",
+ "p-0",
+ "relative z-50 flex flex-col w-full shadow-button-base duration-200",
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
"data-[state=closed]:slide-out-to-left-[0%] data-[state=closed]:slide-out-to-top-[0%",
"data-[state=open]:slide-in-from-left-[0%] data-[state=open]:slide-in-from-top-[0%]",
- "sm:rounded-lg md:w-full",
- "bg-background focus-visible:outline-none focus-visible:ring-0",
+ "rounded-2xl md:w-full",
+ "bg-accent dark:bg-card focus-visible:outline-none focus-visible:ring-0",
"dark:shadow-[inset_0_0.5px_0_rgb(255_255_255_/_0.08),_inset_0_0_1px_rgb(255_255_255_/_0.24),_0_0_0_0.5px_rgb(0,0,0,1),0px_0px_4px_rgba(0,_0,_0,_0.08)]"
),
{
@@ -89,7 +89,7 @@ const ModalContent = forwardRef<
>
{children}
{withCloseButton && (
- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted p-2 hover:bg-accent/80">
+ <DialogPrimitive.Close className="absolute right-2 top-2 rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted p-2 hover:bg-accent/80">
<LuX className="h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
@@ -108,7 +108,7 @@ const ModalHeader = ({
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
- "flex flex-col space-y-1.5 text-center sm:text-left p-1 pt-0 mb-4",
+ "flex flex-col gap-1 text-center sm:text-left px-6 py-4 text-muted-foreground",
className
)}
{...props}
@@ -117,7 +117,13 @@ const ModalHeader = ({
ModalHeader.displayName = "ModalHeader";
const ModalBody = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (
- <div className={cn(" w-full p-1 pt-0", className)} {...props} />
+ <div
+ className={cn(
+ "w-full p-6 rounded-2xl border border-border bg-card dark:bg-muted/40",
+ className
+ )}
+ {...props}
+ />
);
ModalBody.displayName = "ModalBody";
@@ -127,7 +133,7 @@ const ModalFooter = ({
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
- "flex flex-col-reverse sm:flex-row sm:justify-end gap-2 pt-6",
+ "flex flex-col-reverse sm:flex-row sm:justify-end gap-2 py-3 px-6",
className
)}
{...props}
@@ -142,7 +148,7 @@ const ModalTitle = forwardRef<
<DialogPrimitive.Title
ref={ref}
className={cn(
- "text-xl font-semibold font-headline leading-none tracking-tight text-foreground",
+ "text-base font-medium font-headline leading-none tracking-tight text-foreground/90",
className
)}
{...props}
@@ -156,7 +162,7 @@ const ModalDescription = forwardRef<
>(({ className, ...props }, ref) => (
<DialogPrimitive.Description
ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
+ className={cn("text-xs text-muted-foreground", className)}
{...props}
/>
));
diff --git a/packages/react/src/Table.tsx b/packages/react/src/Table.tsx
index 8f3f73ceb8..aa0c208016 100644
--- a/packages/react/src/Table.tsx
+++ b/packages/react/src/Table.tsx
@@ -35,7 +35,7 @@ const Thead = forwardRef<
>(({ className, ...props }, ref) => (
<thead
ref={ref}
- className={cn("bg-card [&_tr]:border-b border-border", className)}
+ className={cn("bg-transparent [&_tr]:border-b border-border", className)}
{...props}
/>
));
@@ -82,7 +82,7 @@ const Th = forwardRef<
<th
ref={ref}
className={cn(
- "group-hover:bg-muted h-11 px-6 text-left align-middle text-foreground/80 bg-card font-medium text-sm [&:has([role=checkbox])]:pr-0",
+ "group-hover:bg-muted h-11 px-6 text-left align-middle text-foreground/80 bg-transparent font-medium text-sm [&:has([role=checkbox])]:pr-0",
className
)}
{...props}
@@ -97,7 +97,7 @@ const Td = forwardRef<
<td
ref={ref}
className={cn(
- "group-hover:bg-muted text-foreground/80 px-6 bg-card align-middle [&:has([role=checkbox])]:pr-0 h-11",
+ "group-hover:bg-muted text-foreground/80 px-6 bg-transparent align-middle [&:has([role=checkbox])]:pr-0 h-11",
className
)}
{...props}
diff --git a/packages/utils/src/themes.ts b/packages/utils/src/themes.ts
index 439419af38..ca98edd39f 100644
--- a/packages/utils/src/themes.ts
+++ b/packages/utils/src/themes.ts
@@ -3,7 +3,7 @@ import template from "lodash.template";
export const themes = [
{
name: "zinc",
- label: "Zinc",
+ label: "Modern",
activeColor: {
light: "220 5.9% 10%",
dark: "220 5.2% 33.9%"
@@ -48,7 +48,7 @@ export const themes = [
"active-foreground": "0 0% 100%",
secondary: "0 0% 7%",
"secondary-foreground": "0 0% 93%",
- muted: "0 0% 7%",
+ muted: "0 0% 15%",
"muted-foreground": "0 0% 63%",
accent: "0 0% 10%",
"accent-foreground": "0 0% 93%",
@@ -64,7 +64,7 @@ export const themes = [
},
{
name: "neutral",
- label: "Neutral",
+ label: "Brutal",
activeColor: {
light: "0 0% 45.1%",
dark: "0 0% 32.2%"
@@ -124,7 +124,7 @@ export const themes = [
},
{
name: "red",
- label: "Red",
+ label: "Cherry",
activeColor: {
light: "0 72.2% 50.6%",
dark: "0 72.2% 50.6%"
@@ -185,10 +185,10 @@ export const themes = [
},
{
name: "orange",
- label: "Orange",
+ label: "Apricot",
activeColor: {
- light: "24.6 95% 53.1%",
- dark: "20.5 90.2% 48.2%"
+ light: "17 96% 57%",
+ dark: "17 96% 57%"
},
cssVars: {
light: {
@@ -198,7 +198,7 @@ export const themes = [
"card-foreground": "20 14.3% 4.1%",
popover: "0 0% 100%",
"popover-foreground": "20 14.3% 4.1%",
- primary: "24.6 95% 53.1%",
+ primary: "17 96% 57%",
"primary-foreground": "60 9.1% 97.8%",
active: "20 5% 96%",
"active-foreground": "20 5.3% 6%",
@@ -212,7 +212,7 @@ export const themes = [
"destructive-foreground": "60 9.1% 97.8%",
border: "20 5.9% 90%",
input: "20 5.9% 90%",
- ring: "24.6 95% 53.1%",
+ ring: "17 96% 57%",
success: "142 70% 45%",
"success-foreground": "0 0% 98%"
},
@@ -223,8 +223,8 @@ export const themes = [
"card-foreground": "60 9.1% 97.8%",
popover: "20 14.3% 8.9%",
"popover-foreground": "60 9.1% 97.8%",
- primary: "20.5 90.2% 48.2%",
- "primary-foreground": "60 9.1% 97.8%",
+ primary: "17 96% 57%",
+ "primary-foreground": "60 9.1% 3.8%",
active: "20 24.3% 14.1%",
"active-foreground": "0 0% 98%",
secondary: "12 6.5% 15.1%",
@@ -237,7 +237,7 @@ export const themes = [
"destructive-foreground": "60 9.1% 97.8%",
border: "12 6.5% 15.1%",
input: "12 6.5% 15.1%",
- ring: "20.5 90.2% 48.2%",
+ ring: "17 96% 57%",
success: "142 70% 45%",
"success-foreground": "0 0% 98%"
}
@@ -245,7 +245,7 @@ export const themes = [
},
{
name: "yellow",
- label: "Yellow",
+ label: "Lemon",
activeColor: {
light: "47.9 95.8% 53.1%",
dark: "61 100% 50%"
@@ -306,10 +306,10 @@ export const themes = [
{
name: "green",
- label: "Green",
+ label: "Mint",
activeColor: {
light: "171 62% 41%",
- dark: "142.1 70.6% 45.3%"
+ dark: "171 98% 59%"
},
cssVars: {
light: {
@@ -344,10 +344,10 @@ export const themes = [
"popover-foreground": "151 0% 95%",
card: "151 0% 9%",
"card-foreground": "151 0% 95%",
- primary: "142.1 87.6% 63.3%",
+ primary: "171 98% 59%",
"primary-foreground": "144.9 80.4% 10%",
active: "137 18% 15%",
- "active-foreground": "142.1 87.6% 63.3%",
+ "active-foreground": "171 98% 59%",
secondary: "151 3.7% 15.9%",
"secondary-foreground": "0 0% 98%",
muted: "151 0% 15%",
@@ -366,7 +366,7 @@ export const themes = [
},
{
name: "blue",
- label: "Blue",
+ label: "Blueberry",
activeColor: {
light: "237 57% 30%",
dark: "216 98% 52%"
@@ -426,7 +426,7 @@ export const themes = [
},
{
name: "violet",
- label: "Violet",
+ label: "Plum",
activeColor: {
light: "252.1 83.3% 47.8%",
dark: "253.4 70% 40.4%"