From 348c37b9b5f1ef2d688c907da9956af85b6d4923 Mon Sep 17 00:00:00 2001 From: dingo Date: Wed, 25 Feb 2026 19:02:59 -0500 Subject: [PATCH] =?UTF-8?q?Add=20SOR.Bazaar=20service=20=E2=80=94=20store,?= =?UTF-8?q?=20P2P=20marketplace,=20auction=20house,=20cosmetics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New project: SOR.Bazaar (12 message handlers) Store: get_store, buy_booster_pack, buy_prebuilt_deck, buy_cosmetic, get_my_balance Marketplace: get_listings, get_my_listings, list_card, cancel_listing, buy_listing (shared-tx atomicity), place_bid (shared-tx + refund), get_transactions New DB entities: BazaarDb: Cosmetic, PurchaseRecord, BoosterPackCardGrant, AuctionBid CollectionDb: PlayerCosmetic IdentityDb: Account.OriginPoints BoosterPack gets CardSetId for set-scoped card pool draws. BazaarEnums: PurchaseProductType, CosmeticType. 3 EF migrations applied to pg-forge-01: AddOriginPoints, AddBazaarCosmetics, AddPlayerCosmetics Admin pages: CosmeticsPage, CosmeticEditor, PurchaseRecordsPage (with expandable booster pack card grant rows), NavMenu Bazaar submenu updates. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- Server/SOR.slnx | 1 + .../SOR.Admin/Components/Layout/NavMenu.razor | 10 + .../Pages/Bazaar/CosmeticEditor.razor | 238 +++++++++ .../Pages/Bazaar/CosmeticsPage.razor | 121 +++++ .../Pages/Bazaar/PurchaseRecordsPage.razor | 277 ++++++++++ Server/src/SOR.Bazaar/BazaarMessages.cs | 201 ++++++++ .../Handlers/BazaarBuyBoosterPackHandler.cs | 178 +++++++ .../Handlers/BazaarBuyCosmeticHandler.cs | 104 ++++ .../Handlers/BazaarBuyListingHandler.cs | 148 ++++++ .../Handlers/BazaarBuyPrebuiltDeckHandler.cs | 146 ++++++ .../Handlers/BazaarCancelListingHandler.cs | 73 +++ .../Handlers/BazaarGetListingsHandler.cs | 101 ++++ .../Handlers/BazaarGetMyBalanceHandler.cs | 40 ++ .../Handlers/BazaarGetMyListingsHandler.cs | 84 +++ .../Handlers/BazaarGetStoreHandler.cs | 102 ++++ .../Handlers/BazaarGetTransactionsHandler.cs | 58 +++ .../SOR.Bazaar/Handlers/BazaarHandlerBase.cs | 118 +++++ .../Handlers/BazaarListCardHandler.cs | 111 ++++ .../Handlers/BazaarPlaceBidHandler.cs | 141 ++++++ Server/src/SOR.Bazaar/SOR.Bazaar.csproj | 15 + Server/src/SOR.Bazaar/ServiceRegistration.cs | 47 ++ .../SOR.Database/Contexts/BazaarDbContext.cs | 71 ++- .../Contexts/CollectionDbContext.cs | 16 +- .../Entities/Bazaar/AuctionBid.cs | 36 ++ .../Entities/Bazaar/BoosterPack.cs | 6 + .../Entities/Bazaar/BoosterPackCardGrant.cs | 32 ++ .../SOR.Database/Entities/Bazaar/Cosmetic.cs | 49 ++ .../Entities/Bazaar/PurchaseRecord.cs | 49 ++ .../Entities/Collection/PlayerCosmetic.cs | 21 + .../SOR.Database/Entities/Identity/Account.cs | 7 + Server/src/SOR.Database/Enums/BazaarEnums.cs | 24 + ...60225231658_AddBazaarCosmetics.Designer.cs | 478 ++++++++++++++++++ .../20260225231658_AddBazaarCosmetics.cs | 193 +++++++ .../Bazaar/BazaarDbContextModelSnapshot.cs | 190 +++++++ ...60225231700_AddPlayerCosmetics.Designer.cs | 165 ++++++ .../20260225231700_AddPlayerCosmetics.cs | 51 ++ .../CollectionDbContextModelSnapshot.cs | 25 + ...20260225231657_AddOriginPoints.Designer.cs | 371 ++++++++++++++ .../20260225231657_AddOriginPoints.cs | 31 ++ .../SorIdentityDbContextModelSnapshot.cs | 3 + Server/src/SOR.Host/Program.cs | 4 +- Server/src/SOR.Host/SOR.Host.csproj | 1 + 42 files changed, 4127 insertions(+), 10 deletions(-) create mode 100644 Server/src/SOR.Admin/Components/Pages/Bazaar/CosmeticEditor.razor create mode 100644 Server/src/SOR.Admin/Components/Pages/Bazaar/CosmeticsPage.razor create mode 100644 Server/src/SOR.Admin/Components/Pages/Bazaar/PurchaseRecordsPage.razor create mode 100644 Server/src/SOR.Bazaar/BazaarMessages.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarBuyBoosterPackHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarBuyCosmeticHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarBuyListingHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarBuyPrebuiltDeckHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarCancelListingHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarGetListingsHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarGetMyBalanceHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarGetMyListingsHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarGetStoreHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarGetTransactionsHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarHandlerBase.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarListCardHandler.cs create mode 100644 Server/src/SOR.Bazaar/Handlers/BazaarPlaceBidHandler.cs create mode 100644 Server/src/SOR.Bazaar/SOR.Bazaar.csproj create mode 100644 Server/src/SOR.Bazaar/ServiceRegistration.cs create mode 100644 Server/src/SOR.Database/Entities/Bazaar/AuctionBid.cs create mode 100644 Server/src/SOR.Database/Entities/Bazaar/BoosterPackCardGrant.cs create mode 100644 Server/src/SOR.Database/Entities/Bazaar/Cosmetic.cs create mode 100644 Server/src/SOR.Database/Entities/Bazaar/PurchaseRecord.cs create mode 100644 Server/src/SOR.Database/Entities/Collection/PlayerCosmetic.cs create mode 100644 Server/src/SOR.Database/Migrations/Bazaar/20260225231658_AddBazaarCosmetics.Designer.cs create mode 100644 Server/src/SOR.Database/Migrations/Bazaar/20260225231658_AddBazaarCosmetics.cs create mode 100644 Server/src/SOR.Database/Migrations/Collection/20260225231700_AddPlayerCosmetics.Designer.cs create mode 100644 Server/src/SOR.Database/Migrations/Collection/20260225231700_AddPlayerCosmetics.cs create mode 100644 Server/src/SOR.Database/Migrations/Identity/20260225231657_AddOriginPoints.Designer.cs create mode 100644 Server/src/SOR.Database/Migrations/Identity/20260225231657_AddOriginPoints.cs diff --git a/Server/SOR.slnx b/Server/SOR.slnx index ccaf63b..776251a 100644 --- a/Server/SOR.slnx +++ b/Server/SOR.slnx @@ -2,6 +2,7 @@ + diff --git a/Server/src/SOR.Admin/Components/Layout/NavMenu.razor b/Server/src/SOR.Admin/Components/Layout/NavMenu.razor index cca9e26..4c0ca11 100644 --- a/Server/src/SOR.Admin/Components/Layout/NavMenu.razor +++ b/Server/src/SOR.Admin/Components/Layout/NavMenu.razor @@ -39,6 +39,16 @@ Prebuilt Decks + +