diff --git a/backend/app/__init__.py b/backend/app/__init__.py index ad5d9b3..e2f0df1 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -1,3 +1,3 @@ """TickFlow Stock Panel backend.""" -__version__ = "0.1.37" +__version__ = "0.1.38" diff --git a/frontend/package.json b/frontend/package.json index 8daa063..28dd20b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "tickflow-stock-panel-frontend", "private": true, - "version": "0.1.37", + "version": "0.1.38", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 92c87d0..e8702cf 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -2,7 +2,7 @@ import { useState, type ReactNode } from 'react' import { Link } from 'react-router-dom' import { useQuery } from '@tanstack/react-query' import { motion } from 'framer-motion' -import { Activity, ArrowDownRight, ArrowUpRight, BarChart3, BellRing, Flame, Gauge, LineChart, Loader2, RefreshCw, Sparkles, Target, Timer, ExternalLink, Gift } from 'lucide-react' +import { Activity, ArrowDownRight, ArrowUpRight, BarChart3, BellRing, Database, Flame, Gauge, LineChart, Loader2, RefreshCw, Sparkles, Target, Timer, ExternalLink, Gift } from 'lucide-react' import { DatePicker } from '@/components/DatePicker' import { api, type MarketSnapshotRow, type OverviewDimensionRankItem, type OverviewMarket, type AlertEvent } from '@/lib/api' import { QK } from '@/lib/queryKeys' @@ -486,6 +486,9 @@ export function Dashboard() { const isSealedDegrade = !hasDepth || !sealedReady // none 档(无 key / 无效 key)→ 显示升级提示横幅 const isNoKey = settings.data?.mode === 'none' + // 无本地数据(enriched/daily 都没有)→ 提示去数据页同步 + const ds = dataStatus.data + const hasNoData = !!ds && (ds.enriched?.rows ?? 0) === 0 && (ds.daily?.rows ?? 0) === 0 // 手动刷新: 显示旋转动画; SSE 自动刷新: 静默, 无体感 const handleRefresh = () => { @@ -544,6 +547,21 @@ export function Dashboard() { )} + {/* 无本地数据提示 —— 引导用户去数据页同步 */} + {hasNoData && ( +
+ + + 看板暂无数据,请前往数据页面同步行情数据后查看。 + + + 前往同步 + +
+ )}