Add Settings, Account, Bug Reports, and Leaderboard

Server:
- New SOR.Support project: SubmitBugReport, GetLeaderboard, GetAccountProfile handlers
- New SOR.Database support schema: BugReport + BugReportResponse entities + SupportDbContext
- EF migration: Migrations/Support/AddSupport
- Admin panel: Bug Reports list + detail pages with reply-to-submitter flow
- Admin NavMenu: Support section with Bug Reports link
- Reply creates chat.Notification (type "admin_response") for in-game mailbox

Client:
- Settings autoload (Settings.gd): music/sfx volume+mute, persisted to user://settings.cfg
- SettingsScreen: sliders + mute CheckButtons wired to Settings autoload
- AccountScreen: profile (display name, OP, rank score) + mailbox (admin_response notifications)
- LeaderboardScreen: paginated ranked player list, caller highlighted in blue
- BugReportDialog: category/title/description/steps form, submits via support.submit_bug_report
- MainScreen: new Leaderboard, Account, Settings, Report a Bug navigation buttons

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-06 20:14:12 -05:00
co-authored by Claude Happy
parent c4ef720570
commit a482cc5319
33 changed files with 2107 additions and 14 deletions
@@ -1,17 +1,19 @@
extends Control
## Main hub screen — shown after successful authentication.
##
## Displays the player's display name and live connection status.
## Placeholder navigation buttons for future game features.
##
## Session expiry is handled centrally by Auth.gd, which calls logout() and
## navigates to LoginScreen when auth.hello is rejected on reconnect.
@onready var welcome_label : Label = %WelcomeLabel
@onready var status_label : Label = %StatusLabel
@onready var logout_btn : Button = %LogoutBtn
@onready var collection_btn : Button = %CollectionBtn
@onready var bazaar_btn : Button = %BazaarBtn
@onready var welcome_label : Label = %WelcomeLabel
@onready var status_label : Label = %StatusLabel
@onready var logout_btn : Button = %LogoutBtn
@onready var collection_btn : Button = %CollectionBtn
@onready var bazaar_btn : Button = %BazaarBtn
@onready var leaderboard_btn : Button = %LeaderboardBtn
@onready var account_btn : Button = %AccountBtn
@onready var settings_btn : Button = %SettingsBtn
@onready var report_bug_btn : Button = %ReportBugBtn
@onready var bug_report_dialog = %BugReportDialog
# ── Lifecycle ─────────────────────────────────────────────────────────────────
@@ -20,11 +22,27 @@ func _ready() -> void:
Network.connected.connect(_update_status)
Network.disconnected.connect(_update_status)
_update_status()
logout_btn.pressed.connect(_on_logout_pressed)
collection_btn.pressed.connect(func():
get_tree().change_scene_to_file("res://scenes/collection/CollectionScreen.tscn"))
_update_status()
bazaar_btn.pressed.connect(func():
get_tree().change_scene_to_file("res://scenes/bazaar/BazaarScreen.tscn"))
leaderboard_btn.pressed.connect(func():
get_tree().change_scene_to_file("res://scenes/leaderboard/LeaderboardScreen.tscn"))
account_btn.pressed.connect(func():
get_tree().change_scene_to_file("res://scenes/account/AccountScreen.tscn"))
settings_btn.pressed.connect(func():
get_tree().change_scene_to_file("res://scenes/settings/SettingsScreen.tscn"))
report_bug_btn.pressed.connect(func():
bug_report_dialog.popup_centered())
func _exit_tree() -> void: