diff --git a/docs/projects/Pokedex.Online/PROGRESS.md b/docs/projects/Pokedex.Online/PROGRESS.md index fc0bdc8..9d488a3 100644 --- a/docs/projects/Pokedex.Online/PROGRESS.md +++ b/docs/projects/Pokedex.Online/PROGRESS.md @@ -92,9 +92,34 @@ Last Updated: January 28, 2026 - [x] Write authentication tests (7 tests for useAuth, 5 tests for AdminLogin) - [x] Update api-client with dynamic header management -### 🔄 Step 10-12: Feature Flags & Secure Configuration +--- -## Phase 3-12: Pending +## Phase 4: Feature Flags with Authentication ✅ (3/3 complete) + +### ✅ Step 10: Feature Flag System +- [x] Created `src/config/feature-flags.js` with flag definitions +- [x] Created `src/composables/useFeatureFlags.js` composable +- [x] Supports local overrides (developer mode) +- [x] Permission-based flags (requires auth) +- [x] Backend flag query support (ready for future) +- [x] Written 7 comprehensive tests (all passing ✅) + +### ✅ Step 11: Developer Tools Panel +- [x] Created `src/components/DeveloperTools.vue` +- [x] Keyboard shortcut: Ctrl+Shift+D +- [x] Feature flag toggle interface +- [x] Auth status display +- [x] Environment information +- [x] Integrated into App.vue + +### ✅ Step 12: Integration & Testing +- [x] Created `src/components/FeatureFlag.vue` wrapper component +- [x] Updated router guards to check feature flags +- [x] Feature flags block route access when disabled +- [x] Written 7 tests for FeatureFlag component (all passing ✅) +- [x] Written 8 tests for router guards (all passing ✅) + +## Phase 5-12: Pending See [REFACTORING-PLAN.md](./REFACTORING-PLAN.md) for complete plan. @@ -102,7 +127,7 @@ See [REFACTORING-PLAN.md](./REFACTORING-PLAN.md) for complete plan. ## Test Coverage -**Current:** 91 tests passing +**Current:** 113 tests passing **Files with tests:** - ✅ `src/composables/useAsyncState.js` (12 tests) - ✅ `src/utilities/api-client.js` (13 tests) @@ -110,6 +135,9 @@ See [REFACTORING-PLAN.md](./REFACTORING-PLAN.md) for complete plan. - ✅ `src/components/shared/BaseModal.vue` (27 tests) - ✅ `src/composables/useAuth.js` (7 tests) - ✅ `src/views/AdminLogin.vue` (5 tests) +- ✅ `src/composables/useFeatureFlags.js` (7 tests) +- ✅ `src/components/FeatureFlag.vue` (7 tests) +- ✅ `src/router/guards.js` (8 tests) **Coverage Target:** 80%+ overall