From aec1c71a8cc321802e4e932d21e496e408374b96 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Fri, 26 Dec 2025 10:21:25 -0500 Subject: [PATCH] add early entry and help screens for new users --- TODO.md | 9 +- html/index.html | 54 ++++++++- html/js/core/options.js | 6 + html/js/display/screenManager.js | 6 +- html/js/network/socketHandlers.js | 188 ++++++++++++++++++++++++++++++ html/js/ui/helpModal.js | 121 +++++++++++++++++++ src/config/paymentConfig.js | 7 ++ src/game/gameModeManager.js | 6 + src/network/queueHandler.js | 141 ++++++++++++++++++++++ src/network/queueManager.js | 49 ++++++++ src/network/socketHandlers.js | 23 ++++ test/earlyEntry.test.js | 136 +++++++++++++++++++++ 12 files changed, 743 insertions(+), 3 deletions(-) create mode 100644 html/js/ui/helpModal.js create mode 100644 test/earlyEntry.test.js diff --git a/TODO.md b/TODO.md index 25d4905..928de0d 100644 --- a/TODO.md +++ b/TODO.md @@ -18,6 +18,13 @@ - [x] **Active Games List**: Real-time game list with pagination, sorting, and auto-refresh ✅ - [x] **Spectate UI**: "Watch Games" button, live game panel, and spectator controls ✅ - [x] **Spectator Broadcasts**: Game updates broadcast to spectators via Socket.IO rooms ✅ +- [x] **Help Modal**: Added instructions modal with game rules, controls, and payment mode info ✅ +- [x] **Dynamic Treasure Icon**: Treasure tile now shows $W (Wownero) or $M (Monero) based on crypto type ✅ +- [x] **Address Status Indicator**: Payout address button shows warning when no address is set ✅ + +## User Feedback (Beta Tester - Dec 2025) +- [ ] **History Panel Bug**: User reported payout not showing in History after winning with treasure (needs investigation - may be timing/status issue with "confirmed" vs "pending" payouts) +- [x] **Early Dungeon Entry**: Allow credits/free mode users to enter dungeon immediately without waiting for next block (risky - they die if block found before escape). Toggleable via config. ✅ ## Improvements / Refactoring - [x] **Error Handling**: Extended `normalizeError` to queueHandler, queueManager, sessionManager ✅ @@ -35,7 +42,7 @@ - [x] **Deployment Guide**: README includes production deployment with Nginx/Caddy configs and systemd ✅ ## Pre-Beta Checklist -- [x] All 38 tests pass (8 test suites) ✅ +- [x] All 47 tests pass (9 test suites) ✅ - [x] Health check endpoint available at `/health` ✅ - [x] REST endpoints implemented: `/api/user/:socketId/credits`, `/api/user/:socketId/mode`, `/api/user/:socketId/address` ✅ - [x] Payout eligibility shown per payment mode in UI ✅ diff --git a/html/index.html b/html/index.html index bd260e4..793da9a 100644 --- a/html/index.html +++ b/html/index.html @@ -71,6 +71,7 @@ + @@ -103,7 +104,8 @@ - + + @@ -233,6 +235,56 @@ + + +