Skip to content

feat(website): PMS portfolio cockpit hero — replaces ski-racing demo#176

Open
blove wants to merge 17 commits into
mainfrom
claude/zealous-davinci-6c354a
Open

feat(website): PMS portfolio cockpit hero — replaces ski-racing demo#176
blove wants to merge 17 commits into
mainfrom
claude/zealous-davinci-6c354a

Conversation

@blove

@blove blove commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces the homepage's ski-racing hero with a buy-side portfolio-manager cockpit that better positions Pretable for GTM as an MIT-licensed data grid. The demo proves both stories at once:

  • Speed/streaming — a live positions blotter where prices/P&L tick and flash green/red (the recognizable finance-grid demo).
  • The wrapped-text wedge — an AI Analyst column streams variable-height commentary per holding, with zero row drift while it grows (verified). This is the shape incumbents handle worst and the old ski demo never showed (it was fixed-height, wrap: false).

It reuses the existing two-phase replay engine (element-stream row assembly + rAF virtual clock draining timestamped patches) — now driving tick/commentary/flag events from a committed, deterministic, offline recording (no LLM calls). Real tickers (public facts) + synthetic prices/commentary with an "illustrative — not investment advice" disclaimer.

Scope: the hero example + adjacent copy + README positioning (per the design spec). Mountain/footer re-theme intentionally deferred.

Notable

  • PositionRow model; PortfolioSummary sidebar (NAV, Day P&L, sector allocation, streaming AI Alerts); control bar relabeled to ticks/s (Calm/Active/Volatile).
  • Reduced-motion users get a settled snapshot of the book instead of a blank hero.
  • Known limitation (filed separately): row selection/focus resets on each streaming rows update because usePretable rebuilds the grid via useMemo([...,rows]). Pre-existing core @pretable/react behavior, out of scope here; the smoke test pauses the stream before asserting selection.

Design + plan: docs/superpowers/specs/2026-06-09-pms-hero-demo-design.md, docs/superpowers/plans/2026-06-09-pms-hero-demo.md.

Test Plan

  • pnpm --filter @pretable/app-website typecheck
  • pnpm --filter @pretable/app-website lint
  • pnpm --filter @pretable/app-website test (178/178)
  • pnpm --filter @pretable/app-website build
  • pnpm --filter @pretable/app-website smoke (5/5 chromium) — incl. new test asserting grid renders, ticks/s visible, analyst commentary streams in, and grid frame drift < 2px
  • Manual: live dev server verified — flashing prices, variable-height wrapped analyst rows, sidebar rollups; reduced-motion renders settled snapshot

🤖 Generated with Claude Code

blove and others added 17 commits June 9, 2026 17:44
Brainstormed replacement for the ski-racing homepage hero: a buy-side
portfolio-manager cockpit that proves both streaming speed (ticking
prices/P&L) and the wrapped-text/variable-height wedge (a streaming AI
Analyst column) in one demo. Reuses the existing element-stream + rAF
replay engine. Scope: hero example + adjacent copy + README positioning
alignment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Task-by-task TDD plan to replace the ski-racing hero with a buy-side PMS
cockpit: PositionRow model, seeded deterministic recording, tick/commentary/
flag replay engine, flashing-price + wrapped-analyst columns, PortfolioSummary
sidebar, ticks/s control bar, copy + README alignment, and a drift-validation
task with a single-shot fallback.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Use a -1 sentinel for the virtual-clock baseline instead of overloading 0,
so the first real rAF timestamp of 0 (as in tests) isn't mistaken for
uninitialized.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rts)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Add a homepage smoke test: positions grid renders, control bar shows
  ticks/s, AI Analyst commentary streams in, and the grid frame does not
  drift while wrapped rows grow (the demo's headline correctness claim).
- Reduced-motion users now see a settled snapshot of the book (shared
  startingPositions() extracted to roster.ts) instead of a blank hero;
  generator refactored to reuse it (recording byte-identical).
- Pause the stream before asserting row-selection persistence: the grid is
  rebuilt on every rows update (createGrid memoized on rows), which clears
  selection mid-stream. Known core limitation, tracked separately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Addresses final-review nits: a flat book now reads "$0 0.00%" consistently
instead of "$0 +0.00%"; clarify that the HEAVY-tier tick duplication happens
in the engine, not a caller.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant