From cdb2ec7098b338983778566b770de70a6328d15e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jun 2026 11:36:45 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Button=E2=86=92native=20button=20everywh?= =?UTF-8?q?ere,=20table=20font=2012px,=20dropdowns=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - OrdersTable: font text-xs (12px), headers 11px, city column, horizontal scroll - OrderFilters: dropdown items native button, no ovals, counter as plain text - DriverAssignmentPanel: custom DriverDropdown in app style - StopWordsPanel: all Button→button - UserManagementPanel: all Button→button, RoleDropdown native - SuggestionsPanel: all Button→button - ActionLogPanel: Button→button - ErrorLogPanel: all Button→button - OrderDetailPanel: delivery tabs, problem reasons, expand toggle→button - CalendarWidget: month nav arrows→button - AppShell: nav buttons variant=ghost - NotificationBell: buttons→native - ClientDeliveryPage: hide delivery status badge, pickup code block - PickupSlotsPicker: fix today morning slot logic --- src/components/admin/ActionLogPanel.jsx | 5 +- src/components/admin/ErrorLogPanel.jsx | 30 +-- src/components/admin/StopWordsPanel.jsx | 27 +-- src/components/admin/SuggestionsPanel.jsx | 22 +- src/components/admin/UserManagementPanel.jsx | 49 +++-- src/components/client/DeliveryChoiceFlow.jsx | 1 - src/components/client/PickupSlotsPicker.jsx | 15 +- .../notifications/NotificationBell.jsx | 29 +-- src/components/orders/CalendarWidget.jsx | 16 +- .../orders/DriverAssignmentPanel.jsx | 92 ++++++-- src/components/orders/OrderDetailPanel.jsx | 39 ++-- src/components/orders/OrderFilters.jsx | 139 +++++++++--- src/components/orders/OrdersTable.jsx | 199 ++++++++++-------- src/layouts/AppShell.jsx | 2 + src/pages/ClientDeliveryPage.jsx | 45 +++- 15 files changed, 468 insertions(+), 242 deletions(-) diff --git a/src/components/admin/ActionLogPanel.jsx b/src/components/admin/ActionLogPanel.jsx index c300706..2c316f9 100644 --- a/src/components/admin/ActionLogPanel.jsx +++ b/src/components/admin/ActionLogPanel.jsx @@ -198,13 +198,14 @@ export const ActionLogPanel = ({ orderGroupId = null }) => { Кто, что и когда делал с доставками

- + {/* Filters */} diff --git a/src/components/admin/ErrorLogPanel.jsx b/src/components/admin/ErrorLogPanel.jsx index 3f027c2..7bf9a25 100644 --- a/src/components/admin/ErrorLogPanel.jsx +++ b/src/components/admin/ErrorLogPanel.jsx @@ -236,29 +236,29 @@ export default function ErrorLogPanel() {
- - + + {selected.size > 0 && ( - + )} - - + + {selected.size > 0 && ( - + )} - +
@@ -383,9 +383,9 @@ export default function ErrorLogPanel() { {err.user_id &&
User ID: {err.user_id}
}
- +
)} diff --git a/src/components/admin/StopWordsPanel.jsx b/src/components/admin/StopWordsPanel.jsx index b36076a..7c55636 100644 --- a/src/components/admin/StopWordsPanel.jsx +++ b/src/components/admin/StopWordsPanel.jsx @@ -107,34 +107,32 @@ export const StopWordsPanel = () => {

Где применять стоп-слова:

- - +

{scope === "everywhere" @@ -153,9 +151,14 @@ export const StopWordsPanel = () => { className="flex-1 rounded-2xl border border-[var(--color-border)] bg-[var(--color-surface)] px-4 py-2.5 text-sm !text-[var(--color-text)] outline-none transition focus:border-[var(--color-accent)]" maxLength={100} /> - +

{error && ( @@ -178,7 +181,7 @@ export const StopWordsPanel = () => { className="inline-flex items-center gap-1.5 rounded-full border border-[var(--color-border)] bg-[var(--color-surface-strong)] px-3 py-1.5 text-sm !text-[var(--color-text)]" > {w.word} - + ))} diff --git a/src/components/admin/SuggestionsPanel.jsx b/src/components/admin/SuggestionsPanel.jsx index e2ada3a..b12c14c 100644 --- a/src/components/admin/SuggestionsPanel.jsx +++ b/src/components/admin/SuggestionsPanel.jsx @@ -104,19 +104,19 @@ export const SuggestionsPanel = () => {

{CATEGORY_OPTIONS.map((cat) => ( - + ))}