Skip to content

feat(Phase2): index.html config now injected from platform-config.json - #133

Closed
Pigbibi wants to merge 1 commit into
mainfrom
feat/phase2-config-injection
Closed

feat(Phase2): index.html config now injected from platform-config.json#133
Pigbibi wants to merge 1 commit into
mainfrom
feat/phase2-config-injection

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Phase 2 of config unification:

  • Generated config block injected into index.html
  • Main script uses window.PLATFORM_CONFIG || fallback
  • Hardcoded values remain as safety net

Platform capabilities now modified in ONE place: platform-config.json

- build_platform_config.py now injects <script id="platform-config">
  into index.html with generated config globals
- index.html inline script uses window.__PLATFORM_CONFIG__ || {fallback}
  pattern — generated values take priority, hardcoded is fallback
- 4 key blocks migrated: platformConfig, defaultAccountOptions,
  incomeLayer/optionOverlay defaults, dcaProfileDefaults
- All 11 hardcoded blocks still exist as fallback for safety

config flow: platform-config.json → build → injected <script> + config.js

Co-Authored-By: Claude <noreply@anthropic.com>
@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.

@Pigbibi Pigbibi closed this Jun 30, 2026
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