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:
@@ -0,0 +1,32 @@
|
||||
namespace SOR.Database.Entities.Support;
|
||||
|
||||
/// <summary>
|
||||
/// A bug report submitted by a player from the in-game bug report dialog.
|
||||
/// Admin staff can respond via the admin panel; responses create a Notification
|
||||
/// of type "admin_response" so the player sees them in their in-game mailbox.
|
||||
/// </summary>
|
||||
public sealed class BugReport
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
/// <summary>Cross-schema: identity.accounts.Id of the submitter.</summary>
|
||||
public Guid SubmitterAccountId { get; set; }
|
||||
|
||||
/// <summary>Snapshot of the display name at submission time.</summary>
|
||||
public string SubmitterDisplayName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Category chosen by the player: "gameplay", "ui", "account", "performance", "other".</summary>
|
||||
public string Category { get; set; } = "other";
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string? StepsToReproduce { get; set; }
|
||||
|
||||
/// <summary>Workflow status: "Open", "InProgress", "Resolved", "Closed".</summary>
|
||||
public string Status { get; set; } = "Open";
|
||||
|
||||
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
public DateTimeOffset? UpdatedAt { get; set; }
|
||||
|
||||
public ICollection<BugReportResponse> Responses { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
namespace SOR.Database.Entities.Support;
|
||||
|
||||
/// <summary>
|
||||
/// An admin staff response to a player bug report.
|
||||
/// Creating a response also triggers a Notification (chat schema) to the submitter.
|
||||
/// </summary>
|
||||
public sealed class BugReportResponse
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
public Guid BugReportId { get; set; }
|
||||
public BugReport BugReport { get; set; } = null!;
|
||||
|
||||
/// <summary>Cross-schema: identity.accounts.Id of the admin who responded.</summary>
|
||||
public Guid AdminAccountId { get; set; }
|
||||
|
||||
/// <summary>Snapshot of the admin's display name at response time.</summary>
|
||||
public string AdminDisplayName { get; set; } = string.Empty;
|
||||
|
||||
public string Content { get; set; } = string.Empty;
|
||||
|
||||
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user