Skip to content

Survival mode UX fixes#189

Open
tejush1998 wants to merge 1 commit into
pshenok:mainfrom
tejush1998:hotfix/failure-card
Open

Survival mode UX fixes#189
tejush1998 wants to merge 1 commit into
pshenok:mainfrom
tejush1998:hotfix/failure-card

Conversation

@tejush1998

Copy link
Copy Markdown

closes #188

Summary

Change 1 : Inspect the board on game over + minimizable failure card

  • Basically when i fail a survival game at high RPS, it happens so quickly , i am not able to figure out what caused the failure in the first place. Need a way to see the snapshot of the failure-moment state which i can hover over to see the load on various resources
  • Removed the opaque dark/blur overlay on the game-over #modal so the frozen board stays visible. The modal is now pass-through (pointer-events-none) with only the result card interactive (pointer-events-auto), letting you hover services to read their load/queue/health at the moment of failure.
  • Added a minimize button (─) to the failure card and a floating "⚠ Show Results" restore pill, via new window.toggleFailureModal(). Collapsing the card fully clears the board for inspection; the card always reopens expanded on a fresh failure.

Change 2: Failures list "Clear" updates immediately

  • So whenever i pressed the clear button for failures. It wasnt instant. Only when a new failure occurred, it started from 0. Otherwise the clear button looked like it was broken.
  • Clicking Clear previously only zeroed STATE.failures; the panel didn't refresh until the next failure (the render block is gated on totalFailures > 0). It now hides the panel and resets the total to 0 right away.

Change 3: Restore auto-repair state on Continue (load saved game)

  • Tried several times continuing saved game to reach higher RPS. But each time I had to enable auto repair. Which doesnt make sense. Its better to load it from previous state.
  • loadGameState hardcoded STATE.autoRepairEnabled = false, discarding the saved value. It now restores the flag from the save and syncs the Auto-Repair toggle button (ON/OFF text + color).

i18n

  • Added minimize and show_results keys across all 9 locales (en, de, fr, it, ko, nep, pt-BR, ru, zh).

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.

Survival mode UX fixes and QoL

1 participant