Session 26: Cross-sport tab counts, scan copy fix, game card visual polish, empty section auto-hide (1579 tests)

This commit is contained in:
Kev
2026-06-12 20:18:55 -04:00
parent 956cdb863a
commit f8a51cd9d0
8 changed files with 164 additions and 31 deletions
+6 -3
View File
@@ -341,12 +341,14 @@ export default function DashboardPage() {
)}
</Section>
{/* Most parlayed tonight */}
{/* Most parlayed tonight — Session 26: auto-hide the whole section
once loaded with no data. An empty "be the first" prompt on a
fresh platform reads as dead space; show it only when there's
real trending activity (or while still loading). */}
{(mostParlayed === null || mostParlayed.length > 0) && (
<Section title="Most parlayed tonight" subtitle="What other bettors are stacking." right={<span className="mono" style={{ fontSize: 11, color: 'var(--text-tertiary)' }}>🔥 TRENDING</span>}>
{mostParlayed === null ? (
<SkeletonRow />
) : mostParlayed.length === 0 ? (
<p style={emptyCopy}>No parlays built yet tonight. Be the first.</p>
) : (
<ul style={{ display: 'grid', gap: 8 }}>
{mostParlayed.map((p, i) => (
@@ -390,6 +392,7 @@ export default function DashboardPage() {
</ul>
)}
</Section>
)}
{/* Recent scans OR first-timer onboarding */}
<Section title={isFirstTimer ? 'Your first read' : 'Your recent reads'} subtitle={null}>
+1 -1
View File
@@ -195,7 +195,7 @@ export default function GamePage({ params }: { params: Promise<{ id: string }> }
<p style={{ color: 'var(--text-tertiary)' }}>Loading props</p>
) : props.length === 0 ? (
<p style={{ color: 'var(--text-secondary)', fontSize: 14 }}>
No props posted for this game yet. Books usually open player props 23 hours before tip. Check back closer to game time.
No props posted for this game yet. Check back closer to game time.
</p>
) : (
<ul style={{ display: 'grid', gap: 8 }}>
+1 -1
View File
@@ -349,7 +349,7 @@ export default function ScanPage() {
<div style={shimmerStyle} />
) : games.length === 0 ? (
<p className="surface" style={{ padding: 16, fontSize: 13, color: 'var(--text-secondary)' }}>
No games posted yet. Books usually open player props 23 hours before tip.
No games posted yet. Check back soon.
</p>
) : (
<select