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());