From 5e598e39874b73f8659d5c9f61f98c4185852781 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sun, 8 Mar 2026 19:58:53 +0000 Subject: [PATCH] feat: betting history with P&L tracking on bot profile BetHistory component shows personal bet history with fight links, amounts, outcomes, and payouts. P&L summary shows total wagered, total won, and net sats. Added to BotProfilePage for the bot owner's view. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/BetHistory.vue | 124 +++++++++++++++++++++++++ frontend/src/pages/BotProfilePage.vue | 12 ++- 2 files changed, 133 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/BetHistory.vue diff --git a/frontend/src/components/BetHistory.vue b/frontend/src/components/BetHistory.vue new file mode 100644 index 0000000..d96256a --- /dev/null +++ b/frontend/src/components/BetHistory.vue @@ -0,0 +1,124 @@ + + + diff --git a/frontend/src/pages/BotProfilePage.vue b/frontend/src/pages/BotProfilePage.vue index 6571f36..6a3848f 100644 --- a/frontend/src/pages/BotProfilePage.vue +++ b/frontend/src/pages/BotProfilePage.vue @@ -5,6 +5,7 @@ import { useNostr } from '../composables/useNostr' import SpritePreview from '../components/SpritePreview.vue' import HumanPreview from '../components/HumanPreview.vue' import WalletConnect from '../components/WalletConnect.vue' +import BetHistory from '../components/BetHistory.vue' import type { SpriteCustomization } from '../game/sprites' const route = useRoute() @@ -701,9 +702,9 @@ const tierClass = (t: number) => `tier-${t}` - -
-
+ +
+

RECENT BOUTS @@ -729,6 +730,11 @@ const tierClass = (t: number) => `tier-${t}`

+ + +
+ +