diff --git a/admin-spa/src/components/filters/DateRange.tsx b/admin-spa/src/components/filters/DateRange.tsx index d6daf3e..50df1c5 100644 --- a/admin-spa/src/components/filters/DateRange.tsx +++ b/admin-spa/src/components/filters/DateRange.tsx @@ -47,12 +47,12 @@ export default function DateRange({ value, onChange }: Props) { setEnd(pr.date_end); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [preset]); + }, [preset, start, end]); return ( -
+
{preset === "custom" && ( -
+
setStart(e.target.value || undefined)} + placeholder={__("Start date")} /> - {__("to")} setEnd(e.target.value || undefined)} + placeholder={__("End date")} /> -
)}
diff --git a/admin-spa/src/routes/Orders/components/FilterBottomSheet.tsx b/admin-spa/src/routes/Orders/components/FilterBottomSheet.tsx index 7cdffe9..d3243f0 100644 --- a/admin-spa/src/routes/Orders/components/FilterBottomSheet.tsx +++ b/admin-spa/src/routes/Orders/components/FilterBottomSheet.tsx @@ -42,9 +42,9 @@ export function FilterBottomSheet({ return ( <> - {/* Backdrop */} + {/* Backdrop - use !m-0 to override parent spacing */}
@@ -67,7 +67,7 @@ export function FilterBottomSheet({
{/* Content */} -
+
{/* Status Filter */}
@@ -129,24 +129,21 @@ export function FilterBottomSheet({
- {/* Footer */} -
- {hasActiveFilters && ( + {/* Footer - Only show Reset if filters active */} + {hasActiveFilters && ( +
- )} - -
+
+ )}
); diff --git a/admin-spa/src/routes/Orders/components/OrderCard.tsx b/admin-spa/src/routes/Orders/components/OrderCard.tsx index 76d4e03..fae8f6e 100644 --- a/admin-spa/src/routes/Orders/components/OrderCard.tsx +++ b/admin-spa/src/routes/Orders/components/OrderCard.tsx @@ -29,9 +29,9 @@ export function OrderCard({ order, selected, onSelect, currencyConfig }: OrderCa return ( -
+
{/* Checkbox */} {onSelect && (
)} - {/* Icon */} -
- -
+
+ {/* Icon - inline with first 2 lines */} +
+
+ {/* Line 2: Order Number (big) */} + #{order.number} +
- {/* Content */} -
- {/* Order Number & Status */} -
-

#{order.number}

- - {order.status || 'unknown'} - -
- - {/* Customer */} -
- {order.customer || __('Guest')} -
- - {/* Items Brief */} - {order.items_brief && ( -
- {order.items_count} {order.items_count === 1 ? __('item') : __('items')} · {order.items_brief} +
+ {/* Line 1: Date (small) */} +
+ {formatRelativeOrDate(order.date_ts)} +
+
- )} - {/* Date & Total */} -
- - {formatRelativeOrDate(order.date_ts)} - - - {formatMoney(order.total, { - currency: order.currency || currencyConfig.currency, - symbol: order.currency_symbol || currencyConfig.symbol, - thousandSep: currencyConfig.thousand_sep, - decimalSep: currencyConfig.decimal_sep, - position: currencyConfig.position, - decimals: currencyConfig.decimals, - })} - -
+ {/* Content - 2 lines inline with icon */} +
+ {/* Line 3: Customer */} +
+ {order.customer || __('Guest')} +
+ + {/* Line 4: Items */} + {order.items_brief && ( +
+ {order.items_count} {order.items_count === 1 ? __('item') : __('items')} · {order.items_brief} +
+ )} + + {/* Line 5: Total & Status */} +
+ + {formatMoney(order.total, { + currency: order.currency || currencyConfig.currency, + symbol: order.currency_symbol || currencyConfig.symbol, + thousandSep: currencyConfig.thousand_sep, + decimalSep: currencyConfig.decimal_sep, + position: currencyConfig.position, + decimals: currencyConfig.decimals, + })} + +
+
+ {/* Chevron */} - +
);