Commit Graph

23 Commits

Author SHA1 Message Date
cacd68ebfb Updates to deployment. 2026-01-11 19:09:52 -06:00
e0801b7f29 Added init endpoint. 2026-01-11 18:57:47 -06:00
a97912188e Added admin panel. 2026-01-11 18:50:26 -06:00
e50b2f31d3 Event layout page update. 2026-01-11 15:21:17 -06:00
e0af183086 Added h2h communication. 2026-01-11 11:25:33 -06:00
174abb7f56 Websocket fixes. 2026-01-11 00:46:49 -06:00
d4855040d8 Added include this event to my bets. 2026-01-10 14:51:55 -06:00
3cf9e594e9 Updated events page to display all user bets. 2026-01-10 14:01:21 -06:00
accd4487b0 Commented the spread grid on the event page. 2026-01-10 13:20:38 -06:00
88c01676b8 Fixed rewards page. 2026-01-10 13:14:43 -06:00
708e51f2bd Updated event bet page. 2026-01-09 23:14:37 -06:00
b3c235a860 Updated order book. Looking better. 2026-01-09 20:40:33 -06:00
0dd77eee90 Event order book started. Needs work still. 2026-01-09 17:15:16 -06:00
adb6a42039 Layout mostly complete. Keep working. 2026-01-09 16:43:43 -06:00
267504e641 Added new systems. 2026-01-09 10:15:46 -06:00
725b81494e Adjusted links. 2026-01-06 17:58:26 -06:00
a69d8c0291 Added links to logged in page, those links still don't work. 2026-01-06 08:37:11 -06:00
eac0d6e970 Best landing page yet, lost logged in links to lists of bets 2026-01-06 00:23:17 -06:00
93fb46f19b Fix critical errors: infinite loop, database schema, and add comprehensive E2E tests
## Critical Fixes:

1. **Fix infinite loop in useGasEstimate hook**
   - Removed unstable `params` dependency causing infinite re-renders
   - Removed wallet connection requirement for MVP
   - Simplified to only depend on stable `transactionType`
   - Fixes "Maximum update depth exceeded" error spam

2. **Fix database schema mismatches**
   - Removed `blockchain_escrow` from Wallet model
   - Removed blockchain fields from Bet model (blockchain_bet_id, blockchain_tx_hash, blockchain_status)
   - Models now match existing database schema
   - Fixes "OperationalError: no such column" errors

3. **Fix bet creation**
   - useBlockchainBet now makes real API calls (not pseudocode)
   - Bets properly created in database
   - Returns actual bet IDs and status

## Testing:

- Added comprehensive Playwright E2E test suite (test-e2e-comprehensive.js)
- Tests all critical flows: login, marketplace, wallet, create bet, my bets, navigation
- Captures all console errors and warnings
- Result:  0 errors (was 500+)

## Development:

- Added docker-compose.dev.yml for local development with hot-reload
- Added dev.sh quick-start script
- Added LOCAL_DEVELOPMENT.md comprehensive guide
- Updated vite.config.ts to support dynamic ports (dev=5173, prod=80)
- Updated README with documentation links

## Files Changed:

Backend:
- backend/app/models/wallet.py - Remove blockchain_escrow field
- backend/app/models/bet.py - Remove blockchain fields

Frontend:
- frontend/src/blockchain/hooks/useGasEstimate.ts - Fix infinite loop
- frontend/src/blockchain/hooks/useBlockchainBet.ts - Add real API calls
- frontend/vite.config.ts - Dynamic port support

Docs/Scripts:
- FIXES_APPLIED.md - Detailed fix documentation
- LOCAL_DEVELOPMENT.md - Local dev guide
- docker-compose.dev.yml - Dev environment config
- dev.sh - Quick start script
- test-e2e-comprehensive.js - E2E test suite

🚀 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-02 15:22:57 -06:00
fd60f74d4a Updated vite.config.ts 2026-01-02 13:43:43 -06:00
5b751c2907 Updated to use port 80 locally. 2026-01-02 13:36:56 -06:00
105c5e2198 Fix Coolify deployment: use expose instead of ports 2026-01-02 11:40:35 -06:00
14d9af3036 Init. 2026-01-02 10:43:20 -06:00