Skip to content

feat(docker): auto-seed + robust frontend polling#2

Merged
SarmaHighOnCode merged 2 commits intomainfrom
claude/elated-rubin
Mar 19, 2026
Merged

feat(docker): auto-seed + robust frontend polling#2
SarmaHighOnCode merged 2 commits intomainfrom
claude/elated-rubin

Conversation

@SarmaHighOnCode
Copy link
Owner

Summary

  • Backend auto-seeds 50 satellites + 10K debris + 20 threat debris on Docker startup
  • Dashboard is immediately populated — no manual seed script needed
  • Frontend polling retries with exponential backoff + connection status banner
  • Docker healthcheck added

Changes

  • backend/main.py: auto-seed in lifespan (controlled by ACM_AUTO_SEED env var)
  • frontend/src/utils/api.js: retry logic with backoff
  • frontend/src/store.js + Dashboard.jsx: connection status tracking
  • docker-compose.yml: healthcheck + env var

Test plan

  • docker-compose up --build — dashboard should show data within ~60s of boot
  • Set ACM_AUTO_SEED=0 to disable auto-seed for grader mode
  • Kill backend briefly — frontend shows RECONNECTING, recovers on restart

Generated with Claude Code

SarmaHighOnCode and others added 2 commits March 20, 2026 01:32
- Backend lifespan now auto-seeds 50 sats + 10K debris + 20 threat
  debris on boot (controlled by ACM_AUTO_SEED env var, default=1)
- Runs 5x600s sim steps during startup so dashboard is populated
  immediately when opened via Docker — no manual seed_demo.py needed
- Frontend polling: retry with exponential backoff (3 retries),
  connection status tracking, RECONNECTING banner in header
- docker-compose: added healthcheck, ACM_AUTO_SEED env var
- Added seed_demo.py for manual seeding when ACM_AUTO_SEED=0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…oops

useMemo for selectedData and relevantCdms prevents unnecessary
recalculations and stabilizes useCallback dependency arrays.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SarmaHighOnCode SarmaHighOnCode merged commit 9bd6ab5 into main Mar 19, 2026
1 of 2 checks passed
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