Commit Graph

33 Commits

Author SHA1 Message Date
8c0e9c8d37 🎨 Simplify arrow function syntax in watch callback 2026-01-29 06:27:46 +00:00
96a9c07184 🔧 Refactor Challonge client and tournament logic to use reusable hooks, reducing code duplication and improving maintainability 2026-01-29 06:27:41 +00:00
1eb61c2a4b 🎨 Refactor tournament display logic by replacing inline components with reusable TournamentGrid and TournamentDetail components 2026-01-29 06:27:09 +00:00
a848110dec 🎛️ Replace inline API version and settings controls with reusable ApiVersionSelector component and update imports accordingly 2026-01-29 06:26:45 +00:00
fb2629334c 🔄 Refactor error handling and state reset logic for improved clarity and consistency in tournament management 2026-01-29 02:03:45 +00:00
6835e3a7b8 🎮 Refactor tournament details handling to use tournamentDetailsState with error management and remove redundant assignments 2026-01-29 02:03:33 +00:00
1f85443db9 Refactor tournament loading logic to use loadMoreState for improved error handling and state management 2026-01-29 02:03:28 +00:00
b2de57e4ef Refactor tournament listing logic to use state management and simplify error handling 2026-01-29 02:03:18 +00:00
4ac4b9a3f6 Add computed property for tournament details 2026-01-29 02:03:06 +00:00
5e7e411a52 🔄 Refactor state management to use useAsyncState for tournaments and loading states 2026-01-29 02:02:56 +00:00
f0e8164645 🎨 Adjust grid layout to use fixed two-column structure for wider screens 2026-01-28 18:56:22 +00:00
cc78b80747 🔄 Rearrange API Key Configuration section within the controls grid layout 2026-01-28 18:52:08 +00:00
679da54c77 🎨 Remove unnecessary whitespace in CSS styling 2026-01-28 18:50:36 +00:00
f616cbc0b2 🎨 Adjust responsive grid layout for control groups and collapsible groups 2026-01-28 18:50:21 +00:00
1ad59722b9 Add collapsible group component with styles and animations 2026-01-28 18:48:18 +00:00
22117fa23d Improve collapsible group headers for better readability and formatting consistency 2026-01-28 18:48:04 +00:00
0de8c0ee71 Add collapsible sections for API key, OAuth, and client credentials configurations 2026-01-28 18:47:59 +00:00
a921b09ba6 🎨 Improve API key configuration layout and remove redundant section 2026-01-28 18:46:54 +00:00
33272b67a8 🔑 Add API key configuration section with management link and note 2026-01-28 18:46:42 +00:00
4ae4d50ff2 Clean up unnecessary whitespace in ChallongeTest.vue 2026-01-28 18:41:09 +00:00
68777f3596 🔄 Refine authentication logic to prioritize tokens based on scope and improve debug configuration usage 2026-01-28 18:41:04 +00:00
f25bbb3b2d ⚠️ Improve readability of warning messages and hints for client credentials and scope usage 2026-01-28 18:40:53 +00:00
593a707438 ⚠️ Clarify client credentials scope requirements and add warning for USER scope usage 2026-01-28 18:40:48 +00:00
816eb7cb67 🎨 Fix inconsistent indentation in tournament authentication type logic 2026-01-28 18:40:37 +00:00
3894a2415c 🔧 Update tournament listing logic with additional scope types and refined authentication handling 2026-01-28 18:40:32 +00:00
b70c8efc22 🧹 Remove unnecessary whitespace in ChallongeTest.vue 2026-01-28 18:39:38 +00:00
6dbeff1c4a 🔧 Enable debug mode and adjust responsive styles for better mobile layout 2026-01-28 18:39:33 +00:00
0f206a0158 🔧 Update client authentication logic and adjust grid layout for responsiveness 2026-01-28 18:38:58 +00:00
b7a6a139b0 🎨 Reformat router-link element for improved readability 2026-01-28 18:32:49 +00:00
1ddc7761f5 🔑 Add support for client credentials authentication in API v2.1 with priority over OAuth and API key 2026-01-28 18:32:43 +00:00
e55537ff8b 🎮 Add support for selecting tournament scope in Challonge API integration 2026-01-28 18:29:26 +00:00
a24f766e37 🎨 Improve code readability by reformatting and updating function definitions and comments 2026-01-28 18:18:55 +00:00
1944b43af8 feat: implement multi-state tournament querying for Challonge API v2.1
- Add tournament-query.js utility with queryAllTournaments() and helper functions
  * Makes 3 parallel API calls (pending, in_progress, ended states)
  * Uses Promise.all() to wait for all requests
  * Deduplicates results by tournament ID using Map
  * Replaces invalid state: 'all' parameter (API doesn't support 'all' value)

- Implement 5 convenience functions:
  * queryAllTournaments() - Query all states with custom options
  * queryUserTournaments() - Query user's tournaments (shorthand)
  * queryCommunityTournaments() - Query community tournaments
  * queryActiveTournaments() - Query pending + in_progress only
  * queryCompletedTournaments() - Query ended tournaments only
  * queryTournamentsByStates() - Query custom state combinations

- Update ChallongeTest.vue to use queryAllTournaments()
  * Replace invalid state: 'all' with proper multi-state query
  * Now correctly fetches tournaments from all states
  * Update console logging to show all 3 states being queried

- Add comprehensive TOURNAMENT_QUERY_GUIDE.md documentation
  * Explains the problem and solution
  * API reference for all functions
  * Implementation details and performance notes
  * Testing instructions
  * Future enhancement ideas
2026-01-28 18:10:29 +00:00