Skip to content

feat(header): move symbol info from main header to chart panel#167

Open
jeziellopes wants to merge 1 commit intodevelopfrom
feat/symbol-info-in-chart-header
Open

feat(header): move symbol info from main header to chart panel#167
jeziellopes wants to merge 1 commit intodevelopfrom
feat/symbol-info-in-chart-header

Conversation

@jeziellopes
Copy link
Copy Markdown
Owner

@jeziellopes jeziellopes commented Apr 10, 2026

Summary

Moves symbol ticker info from the main app header into the chart panel header as a Binance-inspired compact stat strip. The main header is simplified to show only the logo + brand name.

Changes

New component: TickerStatStrip

  • Primary card (left): symbol selector + live price + 24h % change badge
  • Stat cards: O / H / L / Vol with abbreviated labels (text-[9px]) and compact values (text-[11px]), px-2 py-0.5 padding
  • Timeframe tabs stay in panel extra slot (right side)

Updated: Panel (title: ReactNode)

  • title prop widened from string to ReactNode
  • String titles render as <h2> with uppercase/tracking style (backward-compatible)
  • ReactNode titles render raw (used by TickerStatStrip)

Updated: __root.tsx

  • Always renders <Logo /> Flow — no route-conditional logic
  • Removed TickerHeader, useRouterState, isSymbolRoute

Updated: -trading-layout.tsx

  • Chart panel: title={<TickerStatStrip />}

Visual Result

  • Chart panel header: BTCUSDT · 72,820 +0.70% | O 72,312 | H 73,434 | L 71,426 | Vol 17,367 | 5m 1h 4h 1d
  • Main header: ⚡ Flow only

Checklist

  • pnpm typecheck — clean
  • pnpm test — 349 passed
  • Design system tokens used (no raw colors)
  • Route files edited via Python atomic write (no clobber)

Closes #166

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow Ready Ready Preview, Comment Apr 10, 2026 11:33pm

…trip

- Remove TickerHeader from __root.tsx; main header shows Logo + 'Flow'
  on all routes with no route-conditional logic
- Add TickerStatStrip — horizontal row of muted stat cards (symbol
  selector + live price + change %, then Open / High / Low / Vol cards)
  inspired by Binance Futures ticker strip
- Chart panel title is now <TickerStatStrip />; timeframe tabs stay as
  Panel.Header extra on the right — one compact header row
- Panel accepts title: ReactNode; string titles render as <h2> with
  existing uppercase style; ReactNode titles render as-is (backward compat)

Closes #166

Signed-off-by: Jeziel Lopes <jeziellopes@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(header): move symbol info from main header to chart panel header

1 participant