From daeceb463387819098080c4275317d87cac9fef3 Mon Sep 17 00:00:00 2001 From: dingo Date: Tue, 28 Apr 2026 12:47:44 -0400 Subject: [PATCH] feat(website): per-stat leaderboard rankings, simplified AI asset report Leaderboard: each tab now shows only the stat it ranks by (#, Channeler, stat value) so rank #1 on Rank Score is visually distinct from rank #1 on Games Played, etc. Removed the multi-column highlight approach. AI Asset Report: replaced Object Key + Prefix columns with a friendly Name (filename extracted from the object key) and mapped ContentType to a human-readable Type label (Image / Audio / Video / Model). Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .../SOR.Website/Pages/AiAssets/Report.cshtml | 30 +++++++++++++----- .../src/SOR.Website/Pages/Leaderboard.cshtml | 31 +++++++++++++------ 2 files changed, 44 insertions(+), 17 deletions(-) diff --git a/Server/src/SOR.Website/Pages/AiAssets/Report.cshtml b/Server/src/SOR.Website/Pages/AiAssets/Report.cshtml index c356b00..9c761d1 100644 --- a/Server/src/SOR.Website/Pages/AiAssets/Report.cshtml +++ b/Server/src/SOR.Website/Pages/AiAssets/Report.cshtml @@ -3,6 +3,25 @@ @{ ViewData["Title"] = "AI Asset Report"; ViewData["MetaDescription"] = "Full searchable report of AI-assisted assets in Aeternalis."; + + string AssetType(string? contentType) + { + if (string.IsNullOrWhiteSpace(contentType)) return "—"; + if (contentType.StartsWith("image/", StringComparison.OrdinalIgnoreCase)) return "Image"; + if (contentType.StartsWith("audio/", StringComparison.OrdinalIgnoreCase)) return "Audio"; + if (contentType.StartsWith("video/", StringComparison.OrdinalIgnoreCase)) return "Video"; + if (contentType.StartsWith("model/", StringComparison.OrdinalIgnoreCase)) return "Model"; + // Common model/binary file types uploaded via the CDN + if (contentType.Equals("application/octet-stream", StringComparison.OrdinalIgnoreCase)) return "Model"; + return "—"; + } + + string AssetName(string objectKey) + { + if (string.IsNullOrWhiteSpace(objectKey)) return "—"; + var slash = objectKey.LastIndexOf('/'); + return slash >= 0 ? objectKey[(slash + 1)..] : objectKey; + } }