refactor(data): add mock API adapters, id utility, and toast feedback

This commit is contained in:
zetaloop
2026-02-22 08:02:48 +08:00
parent 5f25043923
commit 7bcb73f139
25 changed files with 219 additions and 47 deletions
+2 -2
View File
@@ -4,6 +4,7 @@ import { AlertTriangle, CheckCircle2, MessageSquare, RefreshCw, Star, XCircle }
import Link from "next/link"
import { useEffect, useState } from "react"
import { Button } from "@/components/ui/button"
import { notifySuccess } from "@/lib/toast"
import type { OrderStatus } from "@/lib/types"
import { useChatStore } from "@/store/chat"
import { useOrderStore } from "@/store/orders"
@@ -16,8 +17,7 @@ interface OrderActionsProps {
}
function showFeedback(message: string) {
if (typeof window === "undefined") return
window.alert(message)
notifySuccess(message)
}
export default function OrderActions({