Files
sor/Server
70e62263d3 feat(website): routing fixes, login by username, leaderboard stats, news CMS, CDN art
Website fixes:
- /how-to-play and /ai-assets and /ai-assets/report: add explicit @page routes
  (default Razor Pages routes were PascalCase, nav links used kebab-case)
- Webclient: redirect to webclient.aeternalisgames.com instead of /webclient/app
- Login: accept display name (username) or email; looks up by email first, then
  by DisplayName — uses TUser overload of PasswordSignInAsync with lockout support

Leaderboard:
- Add GamesPlayed, GamesWon, WinRate columns
- Inject GameDbContext; query completed sessions for the top-N account IDs and
  aggregate wins/plays in memory (cross-schema, no EF join)

News CMS:
- NewsPost entity in catalog schema (slug, title, summary, bodyHtml, heroImageUrl,
  author, published state, timestamps)
- CatalogDbContext: add DbSet<NewsPost> + model config
- Migration: 20260423000001_AddNewsPosts
- Website Program.cs: register AddGameDatabase
- News/Index.cshtml: list published posts with hero image + summary
- News/Post.cshtml: individual post detail page at /news/{slug}
- Admin NewsPostList.razor: list all posts, delete with confirm modal
- Admin NewsPostEditor.razor: full CRUD editor — title, slug (auto from title),
  summary, HTML body with live preview toggle, hero image with preview,
  publish toggle + date/time, author
- Admin NavMenu: add Website section with News Posts link

CDN art:
- Index.cshtml.cs: inject IConfiguration, expose CdnBaseUrl
- Index.cshtml: add hero-bg-img <img> sourced from {cdnBase}/website/hero-bg.jpg
  (upload hero-bg.jpg to CDN /website/ to activate; no image = no broken element)

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>
2026-04-23 08:50:14 -04:00
..