dingo
e377faad92
Sync
2026-03-20 17:07:19 -04:00
dingo
2e3a5e4569
Enabling Decks to have multiple Tier 1 ArchSpirits
2026-03-20 10:13:55 -04:00
dingo
a3bcc71082
Client changes, admin portal, collection fixes.
2026-03-02 10:49:49 -05:00
dingo
ffe1ec5094
Fixing Deck rules on server....
2026-03-02 08:45:25 -05:00
dingo
d3e39f9511
minor admin portal changes
2026-03-02 08:37:51 -05:00
2cac55cbd9
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 >
2026-02-25 14:46:00 -05:00
3e4a07d4b5
Fix tier-chain warning to distinguish lineage mismatch vs missing intermediate tier
...
Previously all gaps produced "X is missing" — but if the missing previous
tier is Tier 1 and is not the deck's primary, the player can never add it
(Tier 1 ArchSpirits are blocked from the card list). The message was
technically correct but actionably wrong.
Two distinct messages now:
- Different lineage: "X (Tier N) belongs to a different ArchSpirit lineage
than your primary and cannot be ascended to in this deck."
- Missing intermediate: "X (Tier N) is in the deck but Y is missing.
Add the intermediate tier to enable ascension."
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-02-25 13:30:28 -05:00
c6dc56a350
Add chat service, collection clone/tier rules, social graph
...
SOR.Chat (new project):
- 10 WebSocket message handlers: send, get_channels, get_messages,
dm_open, friend_request, friend_respond, friend_remove, block,
unblock, get_social
- Cursor-based pagination for message history
- Block checks on DM send and dm_open
- Social graph: friends / pending requests (in+out) / blocked list
- Batch identity DB lookups for display names
Collection updates:
- clone_deck handler (copy deck + re-validate)
- Tier-chain validation: deck ArchSpirit must be Tier 1 (hard rule);
warn on Tier 2+ card without previous tier present (soft warning)
- Tier 2+ ArchSpirits now allowed in card list as ascension targets
- ValidationWarnings field added to DeckSummaryDto + DeckDetailDto
Database:
- CardDefinition.PreviousTierId self-reference FK for ascension chains
- FriendRequest + BlockedUser entities in chat schema
- ChatChannelType.System + FriendRequestStatus enum values
- Migrations: AddArchSpiritTierChain (catalog), AddSocialGraph (chat)
Admin portal:
- ChatOverview (/chat) — stats + channel list with type filter
- ChatChannelViewer (/chat/channel/{id}) — message history + system
message compose for admins
- SocialModerationPage (/chat/social) — friend/block lookup + actions
- NavMenu: Chat section with Social Graph sub-item
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-02-25 13:16:43 -05:00
0198aec9e5
Add collection service — deck management + card inventory
...
SOR.Collection project (new):
- 8 message handlers over WebSocket: get_cards, get_decks, get_deck,
create_deck, rename_deck, delete_deck, add_card, remove_card
- Deck construction rules (DeckRules.cs): min 20 / max 40 cards,
max 4 copies per definition, max 20 decks per player
- add_card validates ownership (player must own enough physical copies),
copy limit, deck size limit, and rejects ArchSpirits from the card list
- RefreshValidityAsync recalculates Deck.IsValid after every mutation
- Cross-context lookups (CollectionDbContext + CatalogDbContext) with
batch queries — never N+1
Admin portal pages (new):
- /collection — overview stats (total cards, total decks, valid decks,
unique players) + account ID lookup
- /collection/player/{accountId} — full player collection viewer:
paginated card grid with name/type/affinity/rarity/foil/serial filters,
deck list with expanded card tables, Grant Card modal (search + foil
toggle, grants 1–100 copies), revoke individual card instances
Wiring:
- SOR.slnx + SOR.Host.csproj: added SOR.Collection project reference
- Program.cs: uncommented collection service registration
- NavMenu: added Collection item
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-02-25 12:28:17 -05:00