feat(v9d): add training types system + logout button
Phase 1: Training Types Basis ============================= Backend: - Migration 004: training_types table + seed data (24 types) - New router: /api/training-types (grouped, flat, categories) - Extend activity_log: training_type_id, training_category, training_subcategory - Extend ActivityEntry model: support training type fields Frontend: - TrainingTypeSelect component (two-level dropdown) - TrainingTypeDistribution component (pie chart) - API functions: listTrainingTypes, listTrainingTypesFlat, getTrainingCategories Quick Win: Logout Button ======================== - Add LogOut icon button in app header - Confirm dialog before logout - Redirect to / after logout - Hover effect: red color on hover Not yet integrated: - TrainingTypeSelect not yet in ActivityPage form - TrainingTypeDistribution not yet in Dashboard (will be added in next commit) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
0aca5fda5d
commit
410b2ce308
8 files changed
+490
-9
No files matched your search
@@ -189,4 +189,9 @@ export const api = {
|
||||
createAccessGrant: (d) => req('/access-grants',json(d)),
|
||||
updateAccessGrant: (id,d) => req(`/access-grants/${id}`,jput(d)),
|
||||
revokeAccessGrant: (id) => req(`/access-grants/${id}`,{method:'DELETE'}),
|
||||
|
||||
// v9d: Training Types
|
||||
listTrainingTypes: () => req('/training-types'), // Grouped by category
|
||||
listTrainingTypesFlat:() => req('/training-types/flat'), // Flat list
|
||||
getTrainingCategories:() => req('/training-types/categories'), // Category metadata
|
||||
}
|
||||
Reference in new issue
Block a user