Skip to content

feat: add publish_dashboard.py with HTML generation and CLI integration - #62

Merged
belarusian merged 3 commits into
mainfrom
build21/dashboard-publisher
Aug 14, 2026
Merged

feat: add publish_dashboard.py with HTML generation and CLI integration#62
belarusian merged 3 commits into
mainfrom
build21/dashboard-publisher

Conversation

@belarusian

Copy link
Copy Markdown
Owner

Changes

  • Add generate_html() — standalone HTML with inline CSS/JS
  • Add signal visualization — color-coded S1-S4 with severity indicators
  • Add responsive design — works on mobile/desktop
  • Add GitHub Pages sync option — --sync flag to push HTML to gh-pages branch
  • Wire publish_dashboard into alloc CLI with --publish-dashboard flag
  • Add integration test for full dashboard pipeline (crawl → JSON → HTML → sync)

Verification

  • 465 tests pass
  • ruff clean
  • mypy clean

- TrainingConfig.__post_init__ validates tickers, positions on init
- build_config validates empty tickers, empty/invalid positions, zero/negative values
- print_results handles empty workflow results gracefully (no crash)
- _json_string already rejects invalid JSON with meaningful messages
- Added 18 new tests covering all edge cases
…integration tests

- Fix 3 ruff E501 line-too-long errors in alloc/lib/publish_dashboard.py
- Wire --publish-dashboard, --dashboard-output, --dashboard-sync flags into alloc/cli.py
- Add integration test suite (tests/test_dashboard_integration.py) covering:
  * Full pipeline: crawl → JSON → HTML → publish
  * GitHub Pages sync flag behavior
  * CLI --publish-dashboard flag wiring and defaults
  * Responsive design assertions (viewport, media queries, flexbox, standalone)
- All 259 tests pass, ruff check clean
@belarusian
belarusian merged commit 7e36ebe into main Aug 14, 2026
1 check passed
@belarusian
belarusian deleted the build21/dashboard-publisher branch August 14, 2026 14:36
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