Add starter deck system and AI art tracker

- PlayerCard.IsTradeable (default true; false for starter deck grants)
- PrebuiltDeck.IsStarterDeck flag + index
- Account.StarterDeckSelectedAt one-time onboarding gate
- CardAsset.IsAiGenerated + CardAnimationBinding.IsAiGenerated
- Handlers: CollectionGetStarterDecks, CollectionSelectStarterDeck
- CollectionGetCards passes IsTradeable through to PlayerCardDto
- Admin: PrebuiltDeckEditor Starter checkbox, CardEditor AI Generated
  checkboxes on assets and animation rows
- Admin: /content/ai-assets AI Art Tracker page + NavMenu entry
- 4 EF migrations applied to pg-forge-01

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-02-25 14:46:00 -05:00
co-authored by Claude Happy
parent 3e4a07d4b5
commit 2cac55cbd9
28 changed files with 1796 additions and 4 deletions
@@ -27,6 +27,12 @@ public sealed class PrebuiltDeck
public bool IsActive { get; set; }
/// <summary>
/// When true this deck appears in the new-account starter deck selection screen.
/// Cards granted from a starter deck are marked IsTradeable = false.
/// </summary>
public bool IsStarterDeck { get; set; }
/// <summary>Cross-schema: the ArchSpirit card included in this deck. Bare Guid.</summary>
public Guid? ArchSpiritCardDefinitionId { get; set; }
@@ -26,5 +26,11 @@ public sealed class CardAnimationBinding
/// <summary>CDN URL to the animation file (glTF animation, Spine, etc.).</summary>
public string AnimationCdnUrl { get; set; } = string.Empty;
/// <summary>
/// True if this animation was generated by an AI tool.
/// Surfaced in the AI art tracker report in the admin portal.
/// </summary>
public bool IsAiGenerated { get; set; }
public CardDefinition CardDefinition { get; set; } = null!;
}
@@ -19,6 +19,12 @@ public sealed class CardAsset
/// <summary>MIME type of the asset, e.g. image/webp, model/gltf-binary.</summary>
public string? MimeType { get; set; }
/// <summary>
/// True if this asset was generated by an AI tool (Midjourney, DALL-E, Stable Diffusion, etc.).
/// Surfaced in the AI art tracker report in the admin portal.
/// </summary>
public bool IsAiGenerated { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public CardDefinition CardDefinition { get; set; } = null!;
@@ -26,4 +26,10 @@ public sealed class PlayerCard
/// <summary>Sequential print number for limited/numbered cards. Null = unlimited.</summary>
public int? SerialNumber { get; set; }
/// <summary>
/// False for cards granted from a starter deck — they cannot be listed on the
/// bazaar. All other cards (booster packs, P2P trades, grants) default to true.
/// </summary>
public bool IsTradeable { get; set; } = true;
}
@@ -25,4 +25,10 @@ public sealed class Account : IdentityUser<Guid>
/// <summary>UTC time of the most recent successful login.</summary>
public DateTimeOffset? LastLoginAt { get; set; }
/// <summary>
/// Set when the player completes the starter deck selection during onboarding.
/// Null means they have not yet chosen their starter deck.
/// </summary>
public DateTimeOffset? StarterDeckSelectedAt { get; set; }
}