feat(stock-analysis): 添加「点位提醒」按钮占位(开发中)

在 AI 个股分析按钮旁新增点位提醒入口,预留关键价位触发提醒功能。
当前点击提示「开发中」,后续可复用监控引擎实现价格触及通知。
This commit is contained in:
shy3130
2026-06-26 16:16:39 +08:00
parent 3948d2555e
commit 1e0e9b422b
+12 -1
View File
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { useQuery } from '@tanstack/react-query'
import { Sparkles, LineChart, History as HistoryIcon, Loader2, ExternalLink } from 'lucide-react'
import { Sparkles, LineChart, History as HistoryIcon, Loader2, ExternalLink, Bell } from 'lucide-react'
import { PageHeader } from '@/components/PageHeader'
import { EmptyState } from '@/components/EmptyState'
import { StockFinancialSearch } from '@/components/financials/StockFinancialSearch'
@@ -115,6 +115,17 @@ export function StockAnalysis() {
{checking ? <Loader2 className="h-3.5 w-3.5 animate-spin" /> : <Sparkles className="h-3.5 w-3.5" />}
AI
</button>
<button
onClick={() => toast('点位提醒功能开发中,敬请期待', 'error')}
className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-btn border border-border/40 bg-elevated/40 text-muted text-xs font-medium hover:border-border/70 hover:text-secondary transition-all"
title="当价格触及关键价位时提醒(开发中)"
>
<Bell className="h-3.5 w-3.5" />
<span className="rounded-full bg-amber-400/15 px-1.5 py-px text-[9px] font-semibold uppercase tracking-wider text-amber-400">
</span>
</button>
</>
)}
</div>