UInt64(durationSeconds) truncated the Double 2.6 to 2 before
multiplying by 1e9 ns, so toasts vanished 0.6s early. Move the
multiplication inside the cast.
Caught in 2026-05-19 code review, swift-verified.
Bump CFBundleVersion 3 → 4.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add operation feedback across the three interactive paths in 看盘侠:
- Toast: ObservableObject + view modifier, lime/red/yellow palette
matching FundTheme. Auto-dismiss after 2.6s, click to dismiss.
- ConfirmDialog: programmatic ask() returning async Bool via a
captured CheckedContinuation. Danger flag flips the confirm button
to a red palette.
- HoldingsView: row remove now asks for confirmation (the trash UI
is a hover-only ✕ — easy to misclick); on confirm, row slides out
to the leading edge with a spring + a success toast lands.
- HoldingsView: position edit Save / Clear surface the right
semantic toast (success for save, info for clear).
- AddView: adding a fund toasts the name; tapping an already-added
row toasts an info reminder rather than silently no-op'ing.
Bump version 0.2.0 → 0.3.0 (Info.plist + FundPlugin.version).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Real-time OTC fund and gold tracker for the macOS notch. Three tabs:
- 持仓: live intraday estimates from 天天基金, hero card with
total value / today P&L / cumulative P&L, per-row 当日 + 累计.
- 黄金: SHFE 沪金 realtime + daily K-line + 伦敦金 reference.
- 添加: search 26k+ public funds via 东方财富 suggest API.
No API keys, no Python, no servers. All data comes from public
endpoints (天天基金, 东方财富, 新浪财经).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>