Skip to content

"Vibe-Trading: Your Personal Trading Agent"

fix(ui): clarify dev-jargon labels, drop drift-prone chip counts, add Compare loading state

Haozhe Wuede8a8b33b32
diff --git a/frontend/src/components/chat/WelcomeScreen.tsx b/frontend/src/components/chat/WelcomeScreen.tsx
index 818f17bcf..e67c5b004 100644
--- a/frontend/src/components/chat/WelcomeScreen.tsx
+++ b/frontend/src/components/chat/WelcomeScreen.tsx
@@ -151,9 +151,9 @@ const CATEGORIES: Category[] = [
];
const CAPABILITY_CHIPS = [
- "77 Finance Skills",
- "29 Swarm Presets",
- "44 Agent Tools",
+ "Finance Skills Library",
+ "Swarm Agent Teams",
+ "Auto-Discovered Tools",
"3 Markets: A-Share · Crypto · HK/US",
"Trading Connector Profiles",
"Minute to Daily Timeframes",
diff --git a/frontend/src/lib/tools.ts b/frontend/src/lib/tools.ts
index 3be249cd4..5a9b1df7f 100644
--- a/frontend/src/lib/tools.ts
+++ b/frontend/src/lib/tools.ts
@@ -18,7 +18,7 @@ export const TOOL_LABELS: Record<string, string> = {
trading_orders: "Read connector orders",
trading_quote: "Read connector quote",
trading_history: "Read connector history",
- compact: "Compact context",
+ compact: "Summarize conversation",
create_task: "Create task",
update_task: "Update task",
spawn_subagent: "Spawn sub-agent",
diff --git a/frontend/src/pages/Agent.tsx b/frontend/src/pages/Agent.tsx
index c7eb417f3..c2079992e 100644
--- a/frontend/src/pages/Agent.tsx
+++ b/frontend/src/pages/Agent.tsx
@@ -1190,8 +1190,8 @@ export function Agent() {
</span>
)}
{goalProgress.evidenceTotal > 0 && (
- <span className="shrink-0 rounded bg-background px-1 font-mono text-[10px] text-primary">
- {goalProgress.evidenceTotal} ev
+ <span className="shrink-0 rounded bg-background px-1 font-mono text-[10px] text-primary" title="Evidence collected toward this research goal">
+ {goalProgress.evidenceTotal} evidence
</span>
)}
<ChevronDown
diff --git a/frontend/src/pages/AlphaZoo.tsx b/frontend/src/pages/AlphaZoo.tsx
index 786433815..f051c261a 100644
--- a/frontend/src/pages/AlphaZoo.tsx
+++ b/frontend/src/pages/AlphaZoo.tsx
@@ -314,7 +314,7 @@ function BrowseView() {
to="/alpha-zoo/bench"
className="inline-flex items-center justify-center gap-2 px-4 py-2 rounded-lg bg-primary text-primary-foreground text-sm font-medium hover:opacity-90 transition"
>
- <Play className="h-3.5 w-3.5" aria-hidden="true" /> Run bench
+ <Play className="h-3.5 w-3.5" aria-hidden="true" /> Run benchmark
</Link>
</div>
@@ -338,8 +338,8 @@ function BrowseView() {
<th className="text-left px-4 py-2.5 text-muted-foreground hidden md:table-cell">
Universe
</th>
- <th className="text-right px-4 py-2.5 text-muted-foreground">
- Decay
+ <th className="text-right px-4 py-2.5 text-muted-foreground" title="Predictive half-life: trading days before the signal's edge decays">
+ Decay (days)
</th>
</tr>
</thead>
@@ -495,7 +495,7 @@ function DetailView({ alphaId }: DetailProps) {
onClick={() => navigate(benchHref)}
className="inline-flex items-center gap-2 px-3 py-1.5 rounded-md bg-primary text-primary-foreground text-xs font-medium hover:opacity-90 transition"
>
- <Play className="h-3.5 w-3.5" aria-hidden="true" /> Run bench
+ <Play className="h-3.5 w-3.5" aria-hidden="true" /> Run benchmark
</button>
</div>
@@ -714,7 +714,7 @@ function BenchView() {
<div className="space-y-1">
<div className="flex items-center gap-2 text-xs text-muted-foreground uppercase tracking-wide">
- <Play className="h-3.5 w-3.5" aria-hidden="true" /> Bench runner
+ <Play className="h-3.5 w-3.5" aria-hidden="true" /> Benchmark runner
</div>
<h1 className="text-2xl md:text-3xl font-bold tracking-tight">
Score a zoo on a universe
@@ -802,7 +802,7 @@ function BenchView() {
</>
) : (
<>
- <Play className="h-3.5 w-3.5" aria-hidden="true" /> Run bench
+ <Play className="h-3.5 w-3.5" aria-hidden="true" /> Run benchmark
</>
)}
</button>
diff --git a/frontend/src/pages/Compare.tsx b/frontend/src/pages/Compare.tsx
index fadbb7926..fb2dfe304 100644
--- a/frontend/src/pages/Compare.tsx
+++ b/frontend/src/pages/Compare.tsx
@@ -5,6 +5,7 @@ import { api, type RunListItem, type RunData, type EquityPoint } from "@/lib/api
import { echarts, CHART_GROUP, connectCharts } from "@/lib/echarts";
import { getChartTheme } from "@/lib/chart-theme";
import { useDarkMode } from "@/hooks/useDarkMode";
+import { SkeletonChart, SkeletonMetrics } from "@/components/common/Skeleton";
interface MetricDef {
key: string;
@@ -203,6 +204,8 @@ export function Compare() {
const [rightData, setRightData] = useState<Record<string, number> | null>(null);
const [leftCurve, setLeftCurve] = useState<EquityPoint[]>([]);
const [rightCurve, setRightCurve] = useState<EquityPoint[]>([]);
+ const [leftLoading, setLeftLoading] = useState(false);
+ const [rightLoading, setRightLoading] = useState(false);
useEffect(() => {
api.listRuns().then((items) => {
@@ -214,10 +217,12 @@ export function Compare() {
useEffect(() => {
if (leftId) {
+ setLeftLoading(true);
api.getRun(leftId).then((d: RunData) => {
setLeftData(d.metrics || null);
setLeftCurve(d.equity_curve || []);
- }).catch(() => { setLeftData(null); setLeftCurve([]); });
+ }).catch(() => { setLeftData(null); setLeftCurve([]); })
+ .finally(() => setLeftLoading(false));
} else {
setLeftData(null);
setLeftCurve([]);
@@ -226,10 +231,12 @@ export function Compare() {
useEffect(() => {
if (rightId) {
+ setRightLoading(true);
api.getRun(rightId).then((d: RunData) => {
setRightData(d.metrics || null);
setRightCurve(d.equity_curve || []);
- }).catch(() => { setRightData(null); setRightCurve([]); });
+ }).catch(() => { setRightData(null); setRightCurve([]); })
+ .finally(() => setRightLoading(false));
} else {
setRightData(null);
setRightCurve([]);
@@ -238,6 +245,8 @@ export function Compare() {
const leftRun = runs.find((r) => r.run_id === leftId);
const rightRun = runs.find((r) => r.run_id === rightId);
+ const loading = leftLoading || rightLoading;
+ const hasData = Boolean(leftData || rightData);
return (
<div className="p-8 max-w-4xl space-y-6">
@@ -264,6 +273,19 @@ export function Compare() {
</div>
</div>
+ {/* Loading state — show skeletons while a selected run's data is in flight */}
+ {loading && !hasData && (
+ <div className="space-y-6">
+ <div className="border rounded-xl p-4">
+ <h2 className="text-sm font-medium text-muted-foreground mb-2">Equity & Drawdown</h2>
+ <SkeletonChart height={320} />
+ </div>
+ <div className="border rounded-xl overflow-hidden">
+ <SkeletonMetrics />
+ </div>
+ </div>
+ )}
+
{/* Equity curve overlay */}
{(leftCurve.length > 0 || rightCurve.length > 0) && (
<div className="border rounded-xl p-4">
@@ -307,7 +329,7 @@ export function Compare() {
</div>
)}
- {!leftData && !rightData && (
+ {!hasData && !loading && (
<div className="text-center py-16 text-muted-foreground">
<GitCompare className="h-12 w-12 mx-auto mb-3 opacity-20" />
<p className="text-sm">Select two runs to compare their metrics.</p>
diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx
index 2a18f9f6f..fd5c83700 100644
--- a/frontend/src/pages/Settings.tsx
+++ b/frontend/src/pages/Settings.tsx
@@ -382,6 +382,7 @@ export function Settings() {
<option value="high">high</option>
<option value="max">max</option>
</select>
+ <span className={hintClass}>{"How hard the model thinks before answering. Higher is more thorough but slower; leave Off for fastest replies."}</span>
</label>
<div className="rounded-md border bg-muted/30 px-3 py-2 text-xs text-muted-foreground">