feat(frontend): polish paper sim read-only labels - #306
Merged
Conversation
Add a display-only safety caption to IBKRBrokerCard (the broker card rendered on the terminal dashboard and the /brokers route): "Paper / simulated — read-only preview. No live execution, no credentials, not live trading." Reuses the existing panel-note style for consistency with the adjacent Alpaca paper card. The other rendered demo surfaces (AlpacaPaperReadOnlyCard, PaperRunPreviewPanel, SafetyBadges) were reviewed and already clearly labelled. BrokerCard (components/BrokerCard.tsx) is left unchanged because its host DashboardPage is not routed (/dashboard redirects to /terminal), so it is not rendered. Add docs/tasks/paper_sim_ui_polish_001.md documenting the review and change. Display-only: no backend/API/workflow/package changes, no new controls, no mutating calls, no Buy/Sell/Order/Execute UI. Safety posture unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Melly-999
temporarily deployed
to
feature/paper-sim-ui-polish-001 - alpha_data_scraper_ai PR #306
June 15, 2026 09:28 — with
Render
Destroyed
Reviewer's GuideAdds an explicit read-only, paper/simulated trading caption to the IBKR broker card UI and documents the scoped frontend-only safety polish task for broker/paper labelling. Flow diagram for IBKRBrokerCard read-only caption renderingflowchart TD
AppRoutes[App.tsx routes]
TerminalShell[TerminalShell]
IBKRBrokerCard[IBKRBrokerCard]
DiagnosticsList[Diagnostics ul]
PanelNoteCaption[p.panel-note Paper / simulated — read-only preview...]
AppRoutes --> TerminalShell
TerminalShell --> IBKRBrokerCard
IBKRBrokerCard --> DiagnosticsList
IBKRBrokerCard --> PanelNoteCaption
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Melly-999
marked this pull request as ready for review
June 15, 2026 09:32
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider extracting the new safety caption string into a shared constant or helper so IBKR and Alpaca broker cards (and any future paper/sim surfaces) can reuse consistent wording from a single source.
- Since this caption is user-facing and safety-critical, it may be worth aligning the language more tightly with existing labels (e.g., mirroring phrases like "No broker execution, no order placement" or "PAPER ONLY") to avoid subtle wording drift between broker cards.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider extracting the new safety caption string into a shared constant or helper so IBKR and Alpaca broker cards (and any future paper/sim surfaces) can reuse consistent wording from a single source.
- Since this caption is user-facing and safety-critical, it may be worth aligning the language more tightly with existing labels (e.g., mirroring phrases like "No broker execution, no order placement" or "PAPER ONLY") to avoid subtle wording drift between broker cards.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Melly-999
added a commit
that referenced
this pull request
Jun 15, 2026
Add a docs/images-only screenshot evidence pack for the read-only simulated broker preview after the paper-sim UI label polish (#306): - docs/assets/screenshots/broker-sim/broker-sim-terminal-safety.png - docs/assets/screenshots/broker-sim/broker-sim-brokers-readonly-card.png - docs/assets/screenshots/broker-sim/broker-sim-paper-run-preview.png - docs/tasks/broker_sim_screenshot_evidence_001.md (inventory, public-safety review, what the shots prove / do not prove, safety posture, what-not-to-claim) Screenshots captured against main running locally in safe degraded/fallback mode. Each was reviewed: no secrets, credentials, account IDs, real broker data, or Buy/Sell/Order/Execute controls; all demo/fallback data. The /terminal shot is cropped to exclude the unrelated backtest sample widget. Docs/images only. No runtime/frontend/backend/API/scripts/workflow/package/config changes. Safety posture unchanged. Co-authored-by: Melly <Melly-999@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Melly-999
added a commit
that referenced
this pull request
Jun 15, 2026
Add docs/portfolio/broker_sim_demo_summary.md, a concise portfolio/demo summary of the broker-sim arc (#302 audit → #303 read-only smoke → #304 walkthrough → #305 closeout → #306 UI polish → #307 screenshot evidence). Covers what was built, the safety-first design, GET-only smoke proof (47 PASS / 0 SAFETY-FAIL / 0 WARN / 0 SKIP), embedded screenshots, technical scope, what it does not do, what it demonstrates, a recruiter-friendly summary, and next steps. Add a one-row note in docs/roadmap/current_status_after_neon_cleanup.md. Docs-only. No script/runtime/frontend/backend/API/workflow/package/config changes. Read-only/paper-only framing; no live trading, profit/ROI/win-rate, or financial-advice claims. Safety posture unchanged. Co-authored-by: Melly <Melly-999@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Melly-999
temporarily deployed
to
feature/paper-sim-ui-polish-001 - alpha_data_scraper_ai PR #312
June 16, 2026 06:54 — with
Render
Destroyed
This was referenced Jun 16, 2026
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.
Scope
Frontend display copy + docs only. No backend/API, scripts, workflows, package, config, or Docker/Tauri changes.
a10b76a5c8c61c0d0b08e646f0152da93c77790527aba352ac0c1ed1fbd0de48f32887db92352d4dFiles changed
frontend/src/components/terminal/IBKRBrokerCard.tsxdocs/tasks/paper_sim_ui_polish_001.mdUI polish summary
Added a single display-only caption to
IBKRBrokerCard(the broker card rendered on the terminal dashboard view and the/brokersroute):Reuses the existing
panel-noteclass already used by the adjacentAlpacaPaperReadOnlyCard, so styling is consistent. No other UI changes.Components reviewed
IBKRBrokerCard— rendered on terminal dashboard +/brokers. Gap found (no plain-language "simulated/not live" caption) → polished.AlpacaPaperReadOnlyCard— already labelled ("PAPER ONLY", "Advisory / demo status only — not live trading"). No change.PaperRunPreviewPanel(/terminal/paper-run-preview) — already strongly labelled (READ ONLY / DRY RUN / LIVE ORDERS BLOCKED / HUMAN REVIEW REQUIRED / EXECUTION OFF chips; "GET-only · display-only"; GET-onlyLoad Previewbutton). No change.SafetyBadges— global safety posture chips. No change.BrokerCard/DashboardPage— see dead-code observation below.Dead-code observation (no change made)
DashboardPage(and thereforecomponents/BrokerCard.tsx) appears dead / unrouted:App.tsxredirects/dashboard→/terminal, andDashboardPageis not imported anywhere. Confirmed via bundle analysis —BrokerCard's strings are not present in the production build.BrokerCardwas intentionally left unchanged to avoid editing non-rendered/dead code.Validation summary
git diff --check origin/main...HEAD→ cleanpython scripts/validate_safety_config.py→ OVERALL: PASSnpm run build(tsc -b && vite build) → success in the originating task (typecheck clean; caption confirmed in the built bundle). Dependencies are not installed in this clean worktree; per scope, package files were not modified to install deps here.Static scan summary
autotrade=true,dry_run=false,read_only=false,live_orders_blocked=false,execution_enabled=true).placeOrder/submitOrder/executeTrade/cancelOrder/enableAutotrade/ "connect live"; no<button>/<form>/<input>/onClickadded.IBKRBrokerCardare pre-existing read-only permission/flag displays plus the new safety caption.Safety confirmation
🤖 Generated with Claude Code
Summary by Sourcery
Clarify read-only, simulated status for the IBKR broker paper-sim surfaces and document the safety-focused UI polish task.
New Features:
Documentation: