feat(tournaments): add partnership tracking and tournament management

Implement comprehensive partnership tracking system and tournament
management features including round-robin, single/double elimination,
and Swiss system pairings.

Changes:
- Add partnership_games and partnership_stats tables
- Implement PartnershipTracker service for recording partnership data
- Add tournament generator with multiple formats
- Create tournament management actions and views
- Add acceptance tests for partnership tracking
- Fix PartnershipTracker to use single snapshot per player per match
- Fix round-robin test to query by round_number instead of hardcoded ID

Note: All 8 acceptance tests now passing
This commit is contained in:
2026-03-27 12:25:34 -07:00
parent cb47b9da99
commit ac858f1e6d
55 changed files with 2591 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# frozen_string_literal: true
module EuchreCamp
module Views
module Admin
module Tournaments
class Edit < EuchreCamp::View
expose :tournament
end
end
end
end
end
+14
View File
@@ -0,0 +1,14 @@
# frozen_string_literal: true
module EuchreCamp
module Views
module Admin
module Tournaments
class Index < EuchreCamp::View
expose :upcoming
expose :completed
end
end
end
end
end
+12
View File
@@ -0,0 +1,12 @@
# frozen_string_literal: true
module EuchreCamp
module Views
module Admin
module Tournaments
class New < EuchreCamp::View
end
end
end
end
end
+16
View File
@@ -0,0 +1,16 @@
# frozen_string_literal: true
module EuchreCamp
module Views
module Admin
module Tournaments
class Results < EuchreCamp::View
expose :tournament
expose :round
expose :matchups
expose :teams
end
end
end
end
end
@@ -0,0 +1,18 @@
# frozen_string_literal: true
module EuchreCamp
module Views
module Admin
module Tournaments
module Rounds
class Show < EuchreCamp::View
expose :tournament
expose :round
expose :matchups
expose :teams
end
end
end
end
end
end
+18
View File
@@ -0,0 +1,18 @@
# frozen_string_literal: true
module EuchreCamp
module Views
module Admin
module Tournaments
class Show < EuchreCamp::View
expose :tournament
expose :players
expose :available_players
expose :teams
expose :rounds
expose :participants
end
end
end
end
end
+17
View File
@@ -0,0 +1,17 @@
# frozen_string_literal: true
module EuchreCamp
module Views
module Admin
module Tournaments
module Teams
class Edit < EuchreCamp::View
expose :tournament
expose :team
expose :players
end
end
end
end
end
end