Skip to content

Add stock chart website with GitHub Pages deployment - #24

Open
flowerhere wants to merge 3 commits into
contains-studio:mainfrom
flowerhere:claude/stock-chart-website-x1iujo
Open

Add stock chart website with GitHub Pages deployment#24
flowerhere wants to merge 3 commits into
contains-studio:mainfrom
flowerhere:claude/stock-chart-website-x1iujo

Conversation

@flowerhere

Copy link
Copy Markdown
  • Dark-themed single-page stock chart app (HTML/CSS/JS)
  • Fetches Yahoo Finance data via allorigins proxy (no API key needed)
  • Line chart with Chart.js; period selector (1D–5Y)
  • Quick-pick buttons for popular US/TW stocks
  • LocalStorage watchlist with live price refresh
  • GitHub Actions workflow to deploy stock-chart-website/ to GitHub Pages

https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B

claude added 3 commits June 15, 2026 05:51
- Dark-themed single-page stock chart app (HTML/CSS/JS)
- Fetches Yahoo Finance data via allorigins proxy (no API key needed)
- Line chart with Chart.js; period selector (1D–5Y)
- Quick-pick buttons for popular US/TW stocks
- LocalStorage watchlist with live price refresh
- GitHub Actions workflow to deploy stock-chart-website/ to GitHub Pages

https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B
Switch from configure-pages/deploy-pages (requires OIDC environment)
to JamesIves/github-pages-deploy-action which pushes to gh-pages branch
directly — more compatible with forked repositories.

https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B
Fixes:
- Replace single proxy with 3-proxy fallback (corsproxy.io → allorigins → codetabs)
- 8s AbortController timeout per proxy attempt eliminates indefinite hangs
- Search button shows loading state; chart shows error card with retry button

New features:
- MA5 / MA20 / MA60 toggle buttons with colored dot indicators
- Market indices ticker bar: S&P500, NASDAQ, 道瓊斯, 台灣加權, 恆生, 黃金, 原油
- Download chart as PNG with dark background
- Tooltip now shows MA values alongside price

https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B
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.

2 participants