From 82145b0d2118cb05a04adacfad3727a26f11a5f4 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Sun, 7 Jun 2026 07:23:14 +0330 Subject: [PATCH] feat(pos2): add dashboard exit button to POS board header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit POS runs in the (fullscreen) layout which strips the sidebar. Adds a Home → داشبورد button at the top-left of the table board so users can navigate back to the dashboard without being stuck. Co-Authored-By: Claude Sonnet 4.6 --- web/dashboard/src/components/pos2/pos2-screen.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/web/dashboard/src/components/pos2/pos2-screen.tsx b/web/dashboard/src/components/pos2/pos2-screen.tsx index a1d5bc1..105d9b8 100644 --- a/web/dashboard/src/components/pos2/pos2-screen.tsx +++ b/web/dashboard/src/components/pos2/pos2-screen.tsx @@ -13,7 +13,7 @@ import { Search, Plus, Minus, Trash2, Send, CreditCard, Pause, SplitSquareHorizontal, X, WifiOff, ShoppingCart, Users, Coffee, ArrowRight, LayoutGrid, Armchair, Banknote, Check, Delete, ReceiptText, ShoppingBag, Loader2, RotateCcw, - BadgePercent, Sparkles, + BadgePercent, Sparkles, Home, } from "lucide-react"; import { cn } from "@/lib/utils"; import { notify } from "@/lib/notify"; @@ -329,6 +329,17 @@ export function Pos2Screen() {
{busy && }
+ {/* Dashboard exit — lets user navigate back without the sidebar */} + +
میزها