feat: add phone view link to dashboard

Introduced a new link in the dashboard that allows users to access the mobile view of the application. The link features a smartphone icon and is styled for better visibility, enhancing user navigation options.
This commit is contained in:
Dave 2026-09-02 11:06:15 +02:00
parent bdd0ac46e3
commit ccb27db82f

View file

@ -23,6 +23,7 @@ import {
BarChart3,
Boxes,
RefreshCw,
Smartphone,
} from "lucide-react";
import { toast } from "sonner";
import getPocketBase from "@/lib/pocketbase";
@ -290,6 +291,18 @@ function DashboardView({
</p>
</div>
<div className="flex items-center gap-2">
<Link
href="/m"
className="inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium transition-colors hover:bg-muted/40"
style={{
borderColor: withAlpha(CHART.cyan, 25),
color: CHART.cyan,
}}
aria-label="Open boss phone view"
>
<Smartphone className="h-3 w-3" />
Phone view
</Link>
<button
type="button"
onClick={onRefresh}