feat(web): доработка UX/UI — дашборд, навигация и data foundation
Docker / build (push) Has been cancelled
Docker / build (push) Has been cancelled
Добавлены syncLog в snapshot, API статистики дашборда и маппинг цен тарифов; переработаны shell, главная страница, empty states и новые экраны журнала синка и проектов. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9df91bf2cc
commit
1e291b3759
35 files changed
+1527
-264
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { api } from '@/lib/api-client'
|
||||
|
||||
export interface DashboardStats {
|
||||
activeVpsCount: number
|
||||
totalVpsCount: number
|
||||
providerCount: number
|
||||
accountCount: number
|
||||
monthlyBurnEstimate: number
|
||||
totalBalanceApi: number
|
||||
minRunwayDays: number | null
|
||||
expiringWithin7Days: number
|
||||
issuesCount: number
|
||||
lastGlobalSyncAt: string | null
|
||||
staleSyncAccountCount: number
|
||||
lowBalanceAccountCount: number
|
||||
}
|
||||
|
||||
export const dashboardKeys = {
|
||||
stats: ['dashboard', 'stats'] as const,
|
||||
}
|
||||
|
||||
export const dashboardStatsQueryOptions = () => ({
|
||||
queryKey: dashboardKeys.stats,
|
||||
queryFn: () => api.fetchDashboardStats(),
|
||||
staleTime: 30_000,
|
||||
})
|
||||
Reference in new issue
Block a user