Skip to content

feat: unified config — platform-config.json single source of truth - #132

Merged
Pigbibi merged 1 commit into
mainfrom
feat/unified-config
Jun 29, 2026
Merged

feat: unified config — platform-config.json single source of truth#132
Pigbibi merged 1 commit into
mainfrom
feat/unified-config

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Phase 1: Config unification

  • build_platform_config.py generates both config.js and strategy_profiles_asset.js from platform-config.json
  • worker.js now imports DCA platform list from config instead of hardcoding
  • Removed duplicate DCA_SUPPORTED_PLATFORMS, PLATFORM_MIN_RESERVED_CASH_VARIABLES, PLATFORM_RESERVED_CASH_RATIO_VARIABLES from worker.js
  • Fixed platform-config.json: Schwab dca=true, LongBridge dca=true
  • Deploy workflow now uses unified build_platform_config.py

Architecture

platform-config.json (single source)
  → build_platform_config.py
    → config.js (imported by worker.js + future: index.html)
    → strategy_profiles_asset.js (imported by worker.js)

🤖 Generated with Claude Code

Architecture change (Phase 1):
- build_platform_config.py generates config.js from platform-config.json
- worker.js now imports DCA_SUPPORTED_PLATFORMS, PLATFORM_*_VARIABLES
  from config.js instead of hardcoding
- Fix platform-config.json: Schwab dca=true, LongBridge dca=true,
  add default_strategy_profile for all platforms
- Deploy workflow: run build_platform_config.py instead of build_config.py

Eliminates duplicate config between worker.js and page_asset.js.
Next phase: migrate index.html hardcoded defaults to import config.js.

Co-Authored-By: Claude <noreply@anthropic.com>
@Pigbibi
Pigbibi merged commit 2a8a669 into main Jun 29, 2026
2 of 4 checks passed
@Pigbibi
Pigbibi deleted the feat/unified-config branch June 29, 2026 18:21
@github-actions

Copy link
Copy Markdown

🤖 Codex PR Review

⚠️ Review skipped: The Codex review could not be completed.

No Codex service URL or API key configured. Set CODEX_AUDIT_SERVICE_URL, ANTHROPIC_API_KEY, or OPENAI_API_KEY.

Please ensure a human reviewer checks this PR before merging.

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