cli: Add --format html support to all commands and Adventure theme#162
Draft
huacnlee wants to merge 24 commits into
Draft
cli: Add --format html support to all commands and Adventure theme#162huacnlee wants to merge 24 commits into
--format html support to all commands and Adventure theme#162huacnlee wants to merge 24 commits into
Conversation
- Extract HTML template to a standalone `html_render.html` file compiled in via `include_str!`; replace all inline CSS with Tailwind CSS (CDN) - Apply Adventure theme palette across all pages and ECharts charts: background #040404, border #282828, accent #41b3a9 (cyan), up #5da602 (green), down #d84a33 (red) - Add `HtmlPayload::RawJson` variant and `open_html_table` / `open_html_raw` convenience helpers to reduce per-command boilerplate - Wire `--format html` to open a browser page in every CLI command across quote.rs, trade.rs, fundamental.rs, asset.rs, investors.rs, insider_trades.rs, dca.rs, sharelist.rs, and watchlist.rs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Green = up, red = down (global convention) for candlestick and volume bars - buildTable() now prefixes '$' to monetary columns (price, value, turnover, etc.) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Command label uses teal accent color and the command text uses bright white to visually distinguish it from the Generated row below. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Current temperature renders as 3 ECharts gauge dials (Temperature, Valuation, Sentiment) with cold/warm/hot color zones, plus a 90-day history line chart below and a data table. Description is shown above the gauges, colored to match the temperature zone. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tables are capped at 420px with internal vertical scroll. th is sticky so header stays visible while scrolling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces open_html_raw with a dedicated ValuationHistory chart payload. Each indicator (PE, PB, PS, etc.) is rendered as a separate line series on a shared axis with a unified date/value table below. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…e display Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…r chart Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Convert bank-cards, withdrawals, deposits, short-margin, search news/topics, ipo us-subscriptions/us-wait-listing/us-listed, and institution-rating --views to use open_html_table instead of open_html_raw - Fix command strings in open_html_raw calls to match actual CLI syntax (e.g. institution-rating --history, ipo orders detail <id>) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add Sections HtmlPayload variant and open_html_sections helper to support multiple named table sections on a single HTML page. Convert ipo subscriptions, wait-listing, listed, calendar, orders, and profit-loss Html arms from open_html_raw to open_html_sections. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Symbol cells in any table or sections page with header "symbol" are rendered as clickable links to https://longbridge.com/quote/{symbol}. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Symbol cells now render as: logo image (onerror hidden) + symbol text, linked to https://longbridge.com/quote/{symbol}. Logo URL format: https://assets.lbkrs.com/ticker/ST/{MARKET}/{CODE}.png Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Logo URL now resolves ETF/IX/WT prefixes via the embedded CSV lookup instead of always using ST. e.g. SPY.US -> ETF/US/SPY.png Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use flex-shrink-0 + gap-1.5 instead of inline-block/align-middle to correctly center logo and text in the inline-flex container. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Profile, Eligibility, Timeline, and Holdings each render as a named table section using open_html_sections. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Build headers from period labels and rows from field entries, using HTML entities for indentation and <strong> for section headers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t --format html Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ess-segments, financial-report --latest, industry-rank Co-Authored-By: Claude Sonnet 4.6 <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
Command review
Legend: ✅ reviewed OK · 📋 table OK · 🔧 implemented (no extra review needed) · ⬜ needs verification
Market data
Capital & flow
Options & warrants
Market info
Fundamentals
Broker data
Portfolio & account
ATM / Account management
IPO
Discovery & lists
US market
DCA
Search
🤖 Generated with Claude Code