summaryrefslogtreecommitdiff
path: root/frontend/lib
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-17 13:20:12 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-17 13:20:12 -0700
commit6b8e9470d5b40030172b0413f0c5875fcbe65595 (patch)
treebeafaefd933d038d89fc1eed3e923dcdee38c4b5 /frontend/lib
parent62bdd79b3473262dde5fb0a90eab34fe7bf344fd (diff)
Fix design system violations and logic bugs from code review
- Remove backdrop-filter blur (glass effect) from TopBar; use opaque ink-1 background - Remove decorative glow box-shadows from market status dot - Fix button border-radius: var(--r-2) โ†’ var(--r-1) (4px โ†’ 2px) per design rules - Replace invented hover color rgba(194,170,122,0.04) with var(--ink-3) token - Add missing .psm-signal.neu CSS rule so neutral signals have visual treatment - Use HTML disabled attribute on nav buttons instead of aria-disabled alone - Replace duplicate EPS KPI tile with Prev Close to remove redundancy with P/E sublabel - Rename sortIndices โ†’ limitIndices (function only truncates, never sorts) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend/lib')
-rw-r--r--frontend/lib/overview.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/lib/overview.ts b/frontend/lib/overview.ts
index db30050..efbd9f9 100644
--- a/frontend/lib/overview.ts
+++ b/frontend/lib/overview.ts
@@ -45,10 +45,10 @@ export function buildKpis(overview: TickerOverview): KpiItem[] {
missing: overview.stats.trailing_pe == null
},
{
- key: "EPS ยท TTM",
- value: fmtCurrency(overview.stats.trailing_eps),
- sublabel: `Prev close ${fmtCurrency(overview.quote.prev_close)}`,
- missing: overview.stats.trailing_eps == null
+ key: "Prev Close",
+ value: fmtCurrency(overview.quote.prev_close),
+ sublabel: `Day chg ${fmtCurrency(overview.quote.change)}`,
+ missing: overview.quote.prev_close == null
},
{
key: "52W Position",
@@ -105,7 +105,7 @@ export function watchlistSubtitle(item: WatchlistItem): string {
});
}
-export function sortIndices(indices: MarketIndex[]): MarketIndex[] {
+export function limitIndices(indices: MarketIndex[]): MarketIndex[] {
return [...indices].slice(0, 4);
}