From 4315988e787e6786a0646a393ab6ccf6fb18352f Mon Sep 17 00:00:00 2001 From: Replit Agent Date: Thu, 9 Jul 2026 06:37:50 +0000 Subject: [PATCH] Update menu design and add toggle functionality for better responsiveness Add a menu toggle button to show/hide the sidebar. Update locale files for `menuToggle` key. Refactor `protocol.tsx` to manage menu state, adjust layout for responsiveness, and apply square corners to the menu. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 470babcf-8feb-4bdb-8f18-66e74df799e6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/ZgwFc55 Replit-Helium-Checkpoint-Created: true --- artifacts/tx-os/src/locales/ar.json | 1 + artifacts/tx-os/src/locales/en.json | 1 + artifacts/tx-os/src/pages/protocol.tsx | 22 ++++++++++++++++++---- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/artifacts/tx-os/src/locales/ar.json b/artifacts/tx-os/src/locales/ar.json index d858dcb3..7996a583 100644 --- a/artifacts/tx-os/src/locales/ar.json +++ b/artifacts/tx-os/src/locales/ar.json @@ -1661,6 +1661,7 @@ }, "protocol": { "title": "العلاقات العامة والمراسم", + "menuToggle": "إظهار/إخفاء القائمة", "notes": "ملاحظات", "statusLabel": "الحالة", "confirmReject": "هل أنت متأكد من رفض هذا الطلب؟", diff --git a/artifacts/tx-os/src/locales/en.json b/artifacts/tx-os/src/locales/en.json index 91abc856..5096ff45 100644 --- a/artifacts/tx-os/src/locales/en.json +++ b/artifacts/tx-os/src/locales/en.json @@ -1534,6 +1534,7 @@ }, "protocol": { "title": "Public Relations & Protocol", + "menuToggle": "Show/hide menu", "notes": "Notes", "statusLabel": "Status", "confirmReject": "Are you sure you want to reject this request?", diff --git a/artifacts/tx-os/src/pages/protocol.tsx b/artifacts/tx-os/src/pages/protocol.tsx index 7259b482..a19194fc 100644 --- a/artifacts/tx-os/src/pages/protocol.tsx +++ b/artifacts/tx-os/src/pages/protocol.tsx @@ -33,6 +33,7 @@ import { Image as ImageIcon, Settings as SettingsIcon, Clock3, + Menu as MenuIcon, } from "lucide-react"; import { ResponsiveContainer, @@ -881,6 +882,7 @@ export default function ProtocolPage() { }); const [giftsGroupOpen, setGiftsGroupOpen] = useState(false); const [roomsGroupOpen, setRoomsGroupOpen] = useState(false); + const [menuOpen, setMenuOpen] = useState(true); const bookingAction = useMutation({ mutationFn: (args: { id: number; action: "approve" | "cancel" }) => @@ -1396,6 +1398,16 @@ export default function ProtocolPage() { +
@@ -1407,9 +1419,10 @@ export default function ProtocolPage() {
-
-