feat(pos2): add dashboard exit button to POS board header
CI/CD / CI · API (dotnet build + test) (push) Failing after 3m19s
CI/CD / CI · Admin API (dotnet build) (push) Failing after 3m19s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m5s
CI/CD / CI · Admin Web (tsc) (push) Successful in 37s
CI/CD / CI · Website (tsc) (push) Successful in 44s
CI/CD / CI · Koja (tsc) (push) Successful in 48s
CI/CD / Deploy · all services (push) Has been cancelled
CI/CD / CI · API (dotnet build + test) (push) Failing after 3m19s
CI/CD / CI · Admin API (dotnet build) (push) Failing after 3m19s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m5s
CI/CD / CI · Admin Web (tsc) (push) Successful in 37s
CI/CD / CI · Website (tsc) (push) Successful in 44s
CI/CD / CI · Koja (tsc) (push) Successful in 48s
CI/CD / Deploy · all services (push) Has been cancelled
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 <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
|||||||
Search, Plus, Minus, Trash2, Send, CreditCard, Pause, SplitSquareHorizontal,
|
Search, Plus, Minus, Trash2, Send, CreditCard, Pause, SplitSquareHorizontal,
|
||||||
X, WifiOff, ShoppingCart, Users, Coffee, ArrowRight, LayoutGrid, Armchair,
|
X, WifiOff, ShoppingCart, Users, Coffee, ArrowRight, LayoutGrid, Armchair,
|
||||||
Banknote, Check, Delete, ReceiptText, ShoppingBag, Loader2, RotateCcw,
|
Banknote, Check, Delete, ReceiptText, ShoppingBag, Loader2, RotateCcw,
|
||||||
BadgePercent, Sparkles,
|
BadgePercent, Sparkles, Home,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { notify } from "@/lib/notify";
|
import { notify } from "@/lib/notify";
|
||||||
@@ -329,6 +329,17 @@ export function Pos2Screen() {
|
|||||||
<div dir="rtl" className="flex h-svh min-h-0 flex-col bg-background text-foreground">
|
<div dir="rtl" className="flex h-svh min-h-0 flex-col bg-background text-foreground">
|
||||||
{busy && <BusyOverlay />}
|
{busy && <BusyOverlay />}
|
||||||
<header className="flex shrink-0 items-center gap-3 border-b border-border bg-card px-4 py-3">
|
<header className="flex shrink-0 items-center gap-3 border-b border-border bg-card px-4 py-3">
|
||||||
|
{/* Dashboard exit — lets user navigate back without the sidebar */}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => router.push("/")}
|
||||||
|
className="flex min-h-[40px] cursor-pointer items-center gap-1.5 rounded-xl px-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent"
|
||||||
|
title="بازگشت به داشبورد"
|
||||||
|
>
|
||||||
|
<Home className="size-4" />
|
||||||
|
<span className="hidden sm:inline">داشبورد</span>
|
||||||
|
</button>
|
||||||
|
<div className="h-5 w-px bg-border" />
|
||||||
<div className="flex items-center gap-2 text-primary">
|
<div className="flex items-center gap-2 text-primary">
|
||||||
<LayoutGrid className="size-6" />
|
<LayoutGrid className="size-6" />
|
||||||
<span className="text-lg font-bold">میزها</span>
|
<span className="text-lg font-bold">میزها</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user