From 0de8c0ee717a0de45a703792891273f0ec690d1a Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Wed, 28 Jan 2026 18:47:59 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20collapsible=20sections=20for?= =?UTF-8?q?=20API=20key,=20OAuth,=20and=20client=20credentials=20configura?= =?UTF-8?q?tions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/ChallongeTest.vue | 133 ++++++++++-------- 1 file changed, 77 insertions(+), 56 deletions(-) diff --git a/code/websites/pokedex.online/src/views/ChallongeTest.vue b/code/websites/pokedex.online/src/views/ChallongeTest.vue index a443e91..696c541 100644 --- a/code/websites/pokedex.online/src/views/ChallongeTest.vue +++ b/code/websites/pokedex.online/src/views/ChallongeTest.vue @@ -13,17 +13,22 @@
-
- -
- ✅ API Key Loaded: {{ maskedApiKey }} +
+
+ + {{ apiKeyCollapsed ? '▶' : '▼' }} +
+
+
+ ✅ API Key Loaded: {{ maskedApiKey }} +
+ + Manage your API key + +

+ 💡 Your API v1 key works with both API versions +

- - Manage your API key - -

- 💡 Your API v1 key works with both API versions -

@@ -81,59 +86,70 @@
-
- -
- ✓ Connected - +
+
+ + {{ oauthCollapsed ? '▶' : '▼' }}
-
- ○ Not Connected - +
+
+ ✓ Connected + +
+
+ ○ Not Connected + +
+ + {{ + isAuthenticated + ? 'Using OAuth - APPLICATION scope available' + : 'Connect to enable APPLICATION scope' + }} +
- - {{ - isAuthenticated - ? 'Using OAuth - APPLICATION scope available' - : 'Connect to enable APPLICATION scope' - }} -
-
-
- ✓ Client Credentials Active +
+
+ + {{ clientCredsCollapsed ? '▶' : '▼' }}
-
- ⚠️ Client credentials may not work with USER scope - switch to - APPLICATION scope +
+
+ ✓ Client Credentials Active +
+
+ ⚠️ Client credentials may not work with USER scope - switch to + APPLICATION scope +
+ + Manage Client Credentials + + + Client credentials should use APPLICATION scope for tournament + access +
- - Manage Client Credentials - - - Client credentials should use APPLICATION scope for tournament - access -
@@ -409,6 +425,11 @@ const tournamentScope = ref(ScopeType.USER); // Debug mode - enabled to see what's happening const debugMode = ref(true); +// Collapsible section states +const apiKeyCollapsed = ref(false); +const oauthCollapsed = ref(false); +const clientCredsCollapsed = ref(false); + // Make apiKey reactive const apiKey = computed(() => getApiKey());