Skip to content

Make strategy switch console Worker-only#14

Merged
Pigbibi merged 1 commit into
mainfrom
codex/worker-only-strategy-switch
Jun 8, 2026
Merged

Make strategy switch console Worker-only#14
Pigbibi merged 1 commit into
mainfrom
codex/worker-only-strategy-switch

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • move the strategy switch UI source from docs/index.html into the Worker package
  • remove the GitHub Pages/static switch page docs and entry files
  • add per-account default strategy metadata so SOXL and Smart DCA accounts no longer appear as TQQQ by default
  • allow the Worker account config to preserve default_strategy_profile

Tests

  • python3 scripts/sync_strategy_switch_page_asset.py
  • sed -n '/<script>/,/</script>/p' web/strategy-switch-console/index.html | sed '1d;$d' | node --check --input-type=commonjs
  • node --check --input-type=module < web/strategy-switch-console/page_asset.js
  • node --check --input-type=module < web/strategy-switch-console/worker.js
  • git diff --check
  • python3 scripts/runtime_settings.py validate
  • python3 -m unittest discover -s tests -v

@Pigbibi Pigbibi merged commit 0050419 into main Jun 8, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/worker-only-strategy-switch branch June 8, 2026 20: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