feat(plan): resolveCell/resolveGrid return arrays; dashboard shows up to 3
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -72,7 +72,7 @@ interface DashData {
|
||||
pending_orders?: number;
|
||||
unpaid_invoices?: number;
|
||||
pending_leave_requests?: number;
|
||||
today_plan?: TodayPlan | null;
|
||||
today_plan?: TodayPlan[];
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@ export default function Dashboard() {
|
||||
{!dashLoading &&
|
||||
(hasPermission("attendance.record") ||
|
||||
hasPermission("attendance.manage")) && (
|
||||
<DashTodayPlan plan={dashData?.today_plan ?? null} />
|
||||
<DashTodayPlan plans={dashData?.today_plan ?? []} />
|
||||
)}
|
||||
|
||||
{/* Quick actions */}
|
||||
|
||||
Reference in New Issue
Block a user