feat(demo): Stage 2 PR-4 — secondary fixture richness#224
Merged
luokerenx4 merged 1 commit intoMay 29, 2026
Conversation
Fills out the long tail of fixture content so the demo doesn't look gutted once a visitor scrolls past the Inbox/workspace flagship flow from PR-3. **3 trading accounts (instead of 1)** — - Alpaca Paper: \$52,840 NL, 4 stock positions (AAPL/NVDA/GOOG/AMD) with realistic avg-cost vs market-price spreads - IBKR Demo: \$247,310 NL, mix of ETFs (SPY, QQQ, TLT) + an underwater AAPL options position to show non-trivial P&L - Binance Spot: \$15,032 NL (USDT base), BTC and ETH spot positions Equity curve generator uses a seeded random walk per UTA (30 daily points, distinct vol + drift per account) so the Portfolio chart shows plausible-looking lines without the numbers shifting on each page reload — visitors who refresh see consistent state. **6 news articles** — Reuters/Bloomberg/CNBC/WSJ/CoinDesk spread across the last 22 hours covering AAPL Q1, NVDA capex, Fed minutes, BTC, SPY, TLT. The AAPL article (timestamped 30m ago) ties to the Inbox AAPL research from PR-3 (timestamped 5m ago) — "news landed → agent dug in → wrote up the deceleration signal". **4 cron jobs** — Morning market prep (weekdays 8:30 AM), EOD snapshot + journal (weekdays 4:05 PM), Weekly position review (Fridays 5 PM, disabled), AAPL watch alert (every 15m). Mix of cron- schedule vs every-N-minutes formats; mix of enabled vs disabled. Skipped from this PR: topology graph fake (Dev page, low marketing value), populated agent-status log (the events SSE in PR-3 already carries the "system is alive" signal). Verified: - pnpm -F open-alice-ui exec tsc -b clean - pnpm -F open-alice-ui build (prod): zero fixture name leaks in main bundle (`Alpaca Paper`, `Binance Spot`, `Morning market prep`, `demoCronJobs`, `demoNewsArticles` — all absent) - pnpm dev:demo + Playwright: portfolio page renders chart with the random-walk curve + cumulative equity numbers, news page lists all 6 articles with badges, sidebar shows 3 trading accounts Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Final Stage 2 PR. Fills the long tail of fixture content so the demo doesn't look gutted once a visitor scrolls past the Inbox / workspace / transcript flagship flow from PR-3.
Stacks on top of PR #221, PR #222, PR #223.
What changed
3 trading accounts (instead of 1)
Per-UTA
AccountInfo,Position[], and snapshot summaries served from the trading handler. The equity curve generator uses a seeded random walk (per-UTA distinct vol + drift) so the Portfolio chart shows plausibly-trending lines that stay consistent across page reloads — visitors who refresh see the same state.6 news articles
Reuters / Bloomberg / CNBC / WSJ / CoinDesk spread across the last 22 hours covering AAPL Q1, NVDA capex, Fed minutes, BTC, SPY, TLT. The AAPL article (30m ago) ties to the Inbox AAPL research from PR-3 (5m ago) — completes the narrative "news landed → agent dug in → wrote up the deceleration signal".
4 cron jobs
Mix of cron-syntax vs every-N-minutes; mix of enabled/disabled to exercise the UI states.
Skipped (intentional)
Verification
pnpm -F open-alice-ui exec tsc -bpnpm -F open-alice-ui build(prod)Alpaca Paper,Binance Spot,Morning market prep,demoCronJobs,demoNewsArticles— all absent)pnpm dev:demo+ PlaywrightStage 2 wrap-up
This PR closes Stage 2. With #221 → #222 → #223 → #224 merged:
What's NOT in Stage 2 (could become Stage 3 if marketing-grade demo is the goal):
Test plan
Boundary touch
None — no trading / auth / broker / migrations code modified.
🤖 Generated with Claude Code