fix: react-doctor modal/dialog/dropzone a11y — 18 files to role+tabIndex+onKeyDown or dialog

This commit is contained in:
Nora
2026-06-26 03:20:10 -06:00
parent e3c1295e62
commit d0bfec9d36
90 changed files with 747 additions and 408 deletions
+12 -4
View File
@@ -198,15 +198,23 @@ await getSession();
LIMIT 10`,
);
const recentOrders = recentRes.rows
.filter((o) => o.status !== "cancelled")
.map((o) => ({
const recentOrders: Array<{
id: string;
customer_name: string;
total: number;
status: string;
created_at: string;
}> = [];
for (const o of recentRes.rows) {
if (o.status === "cancelled") continue;
recentOrders.push({
id: o.id || "",
customer_name: o.customer_name || "Guest",
total: (o.total_cents || 0) / 100,
status: o.status || "unknown",
created_at: formatTimeAgo(o.placed_at),
}));
});
}
return {
todayOrders: todayOrderCount,