Implement pool filtering functionality for fixtures and ladders#27
Draft
Implement pool filtering functionality for fixtures and ladders#27
Conversation
Co-authored-by: goodtune <286798+goodtune@users.noreply.github.com>
Co-authored-by: goodtune <286798+goodtune@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] The division API response now includes pool information.
A
Implement pool filtering functionality for fixtures and ladders
Aug 29, 2025
Pool is listed as part of the Stage, for example:
json
"pools": [
{
"id": 122,
"title": "Pool A"
},
{
"id": 123,
"title": "Pool B"
}
]
This should be captured for use ...- Fix Flutter dropdown assertion by using unique values for stage headers - Update data models to use `stage_group` instead of `pool_id` from API - Implement combined pool and team filtering with AND logic - Preserve team selection when unselecting pools - Show separate ladder tables per pool when "All Pools" is selected - Hide stage headers when filtering by specific pool - Preserve team selection when selecting pool if team has matches in that pool 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Test dropdown assertion fix with unique values - Test data model parsing of `stage_group` field - Test combined pool and team filtering with AND logic - Test smart team preservation based on pool selection context - Test ladder display with separate tables per pool - Test stage header visibility rules - Test pool filter reset functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds comprehensive pool filtering support to the FIT mobile app, enabling users to filter fixtures and ladders by pool when pool information is available in the division API response.
Overview
The division API now includes pool information as part of stages:
{ "stages": [ { "title": "Pool Stage", "pools": [ {"id": 122, "title": "Pool A"}, {"id": 123, "title": "Pool B"} ], "matches": [ {"id": 1, "pool_id": 122, "round": "Round 1", ...} ], "ladder_summary": [ {"team": "team1", "pool_id": 122, ...} ] } ] }This PR implements the UI and logic to leverage this pool data for enhanced filtering and visual distinction.
Key Features
Smart Pool Filtering
Visual Pool Distinction
Comprehensive Integration
Technical Implementation
Data Models
Poolmodel with id/title fields and JSON serializationFixturemodel with optionalpoolIdfieldLadderEntrymodel with optionalpoolIdfieldLadderStagemodel to includepoolscollectionColor System
Extended the FIT color palette with pool-specific colors:
UI Components
Benefits
Testing
The implementation follows existing project patterns and maintains backward compatibility while adding powerful new filtering capabilities for pool-based competitions.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.