feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
/**
|
|
|
|
|
* Shinkan Jinkendo API Client
|
|
|
|
|
*
|
|
|
|
|
* Zentrale API-Kommunikation mit automatischer Token-Injektion
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const API_URL = import.meta.env.VITE_API_URL || ''
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Generic API request with automatic token injection
|
|
|
|
|
*/
|
|
|
|
|
async function request(endpoint, options = {}) {
|
|
|
|
|
const token = localStorage.getItem('authToken')
|
|
|
|
|
|
|
|
|
|
const headers = {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (token) {
|
|
|
|
|
headers['X-Auth-Token'] = token
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const response = await fetch(`${API_URL}${endpoint}`, {
|
|
|
|
|
...options,
|
|
|
|
|
headers
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (!response.ok) {
|
|
|
|
|
const error = await response.json().catch(() => ({ detail: 'Unknown error' }))
|
|
|
|
|
throw new Error(error.detail || `HTTP ${response.status}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.json()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
|
// Auth
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export async function login(email, password) {
|
|
|
|
|
return request('/api/auth/login', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify({ email, password })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function register(email, password, name) {
|
|
|
|
|
return request('/api/auth/register', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify({ email, password, name })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function logout() {
|
|
|
|
|
return request('/api/auth/logout', { method: 'POST' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getCurrentProfile() {
|
|
|
|
|
return request('/api/profiles/me')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
|
// Clubs & Groups
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export async function listClubs() {
|
|
|
|
|
return request('/api/clubs')
|
|
|
|
|
}
|
|
|
|
|
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
export async function getClub(id) {
|
|
|
|
|
return request(`/api/clubs/${id}`)
|
|
|
|
|
}
|
|
|
|
|
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
export async function createClub(data) {
|
|
|
|
|
return request('/api/clubs', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
export async function updateClub(id, data) {
|
|
|
|
|
return request(`/api/clubs/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteClub(id) {
|
|
|
|
|
return request(`/api/clubs/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function listDivisions(clubId) {
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
const query = clubId ? `?club_id=${clubId}` : ''
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
return request(`/api/divisions${query}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createDivision(data) {
|
|
|
|
|
return request('/api/divisions', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateDivision(id, data) {
|
|
|
|
|
return request(`/api/divisions/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteDivision(id) {
|
|
|
|
|
return request(`/api/divisions/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function listTrainingGroups(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/groups${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getTrainingGroup(id) {
|
|
|
|
|
return request(`/api/groups/${id}`)
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createTrainingGroup(data) {
|
|
|
|
|
return request('/api/groups', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
export async function updateTrainingGroup(id, data) {
|
|
|
|
|
return request(`/api/groups/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteTrainingGroup(id) {
|
|
|
|
|
return request(`/api/groups/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
// ============================================================================
|
|
|
|
|
// Skills & Methods
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
export async function listSkills(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/skills${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 11:53:25 +02:00
|
|
|
/** Admin: Fähigkeiten hierarchisch sortiert (Hauptkategorie → Kategorie → Sortierung) */
|
|
|
|
|
export async function listSkillsCatalog(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/skills/catalog${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
export async function getSkill(id) {
|
|
|
|
|
return request(`/api/skills/${id}`)
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createSkill(data) {
|
|
|
|
|
return request('/api/skills', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
export async function updateSkill(id, data) {
|
|
|
|
|
return request(`/api/skills/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteSkill(id) {
|
|
|
|
|
return request(`/api/skills/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function listMethods(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/methods${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getMethod(id) {
|
|
|
|
|
return request(`/api/methods/${id}`)
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createMethod(data) {
|
|
|
|
|
return request('/api/methods', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
export async function updateMethod(id, data) {
|
|
|
|
|
return request(`/api/methods/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteMethod(id) {
|
|
|
|
|
return request(`/api/methods/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
// ============================================================================
|
|
|
|
|
// Exercises
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export async function listExercises(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/exercises${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getExercise(id) {
|
|
|
|
|
return request(`/api/exercises/${id}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createExercise(data) {
|
|
|
|
|
return request('/api/exercises', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateExercise(id, data) {
|
|
|
|
|
return request(`/api/exercises/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteExercise(id) {
|
|
|
|
|
return request(`/api/exercises/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 07:52:03 +02:00
|
|
|
// ============================================================================
|
|
|
|
|
// Catalogs (Admin-verwaltbare Stammdaten)
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
// Focus Areas
|
|
|
|
|
export async function listFocusAreas(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/focus-areas${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createFocusArea(data) {
|
|
|
|
|
return request('/api/focus-areas', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateFocusArea(id, data) {
|
|
|
|
|
return request(`/api/focus-areas/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteFocusArea(id) {
|
|
|
|
|
return request(`/api/focus-areas/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 07:51:40 +02:00
|
|
|
// Admin Hierarchy (Tree View)
|
|
|
|
|
export async function getAdminHierarchy() {
|
|
|
|
|
return request('/api/admin/hierarchy')
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 11:32:30 +02:00
|
|
|
// ============================================================================
|
|
|
|
|
// Reifegradmodelle / Fähigkeitsmatrix
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export async function listMaturityModels(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(
|
|
|
|
|
Object.entries(filters).filter(([, v]) => v !== undefined && v !== null && v !== '')
|
|
|
|
|
).toString()
|
|
|
|
|
return request(`/api/maturity-models${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function resolveMaturityModel(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(
|
|
|
|
|
Object.entries(filters).filter(([, v]) => v !== undefined && v !== null && v !== '')
|
|
|
|
|
).toString()
|
|
|
|
|
return request(`/api/maturity-models/resolve${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getMaturityModel(id) {
|
|
|
|
|
return request(`/api/maturity-models/${id}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createMaturityModel(data) {
|
|
|
|
|
return request('/api/maturity-models', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateMaturityModel(id, data) {
|
|
|
|
|
return request(`/api/maturity-models/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteMaturityModel(id) {
|
|
|
|
|
return request(`/api/maturity-models/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function addMaturityModelSkill(modelId, data) {
|
|
|
|
|
return request(`/api/maturity-models/${modelId}/skills`, {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function removeMaturityModelSkill(modelId, skillId) {
|
|
|
|
|
return request(`/api/maturity-models/${modelId}/skills/${skillId}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function upsertMaturityModelSkillLevels(modelId, data) {
|
|
|
|
|
return request(`/api/maturity-models/${modelId}/skill-levels`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 12:35:48 +02:00
|
|
|
/** Hierarchische Zuordnung Modell → Fokus / Stilrichtung / Trainingsstil (training_types) */
|
|
|
|
|
export async function listMaturityModelContextBindings() {
|
|
|
|
|
return request('/api/maturity-model-context-bindings')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function upsertMaturityModelContextBinding(data) {
|
|
|
|
|
return request('/api/maturity-model-context-bindings', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteMaturityModelContextBinding(id) {
|
|
|
|
|
return request(`/api/maturity-model-context-bindings/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 12:48:22 +02:00
|
|
|
export async function importMaturityModelBundle(payload) {
|
|
|
|
|
return request('/api/maturity-models/import', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(payload)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function exportMaturityModelBundle(modelId) {
|
|
|
|
|
return request(`/api/maturity-models/${modelId}/export`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function exportResolvedMaturityBundle(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(
|
|
|
|
|
Object.entries(filters).filter(([, v]) => v !== undefined && v !== null && v !== '')
|
|
|
|
|
).toString()
|
|
|
|
|
return request(`/api/maturity-models/export-resolved${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 13:13:36 +02:00
|
|
|
/** Komplett: Fähigkeitskatalog + Reifegradmodelle + Kontext-Bindings (slug-/namensbasiert auf Ziel-DB) */
|
|
|
|
|
export async function exportMatrixStackBundle() {
|
|
|
|
|
return request('/api/admin/matrix-stack/export')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function importMatrixStackBundle(payload) {
|
|
|
|
|
return request('/api/admin/matrix-stack/import', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(payload)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
// Style Directions (formerly Training Styles)
|
|
|
|
|
export async function listStyleDirections(filters = {}) {
|
2026-04-23 07:52:03 +02:00
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/training-styles${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 15:20:39 +02:00
|
|
|
// Backward-compatibility alias
|
|
|
|
|
export const listTrainingStyles = listStyleDirections
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
export async function createStyleDirection(data) {
|
2026-04-23 07:52:03 +02:00
|
|
|
return request('/api/training-styles', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
export async function updateStyleDirection(id, data) {
|
2026-04-23 07:52:03 +02:00
|
|
|
return request(`/api/training-styles/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
export async function deleteStyleDirection(id) {
|
2026-04-23 07:52:03 +02:00
|
|
|
return request(`/api/training-styles/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Training Characters
|
|
|
|
|
export async function listTrainingCharacters(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/training-characters${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createTrainingCharacter(data) {
|
|
|
|
|
return request('/api/training-characters', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateTrainingCharacter(id, data) {
|
|
|
|
|
return request(`/api/training-characters/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteTrainingCharacter(id) {
|
|
|
|
|
return request(`/api/training-characters/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:12:48 +02:00
|
|
|
// Training Types (Breitensport, Leistungssport, etc.)
|
|
|
|
|
export async function listTrainingTypes(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/training-types${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createTrainingType(data) {
|
|
|
|
|
return request('/api/training-types', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateTrainingType(id, data) {
|
|
|
|
|
return request(`/api/training-types/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteTrainingType(id) {
|
|
|
|
|
return request(`/api/training-types/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 11:53:25 +02:00
|
|
|
// Skill main categories (Hauptgruppen im Fähigkeitskatalog)
|
|
|
|
|
export async function listSkillMainCategories() {
|
|
|
|
|
return request('/api/skill-main-categories')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createSkillMainCategory(data) {
|
|
|
|
|
return request('/api/skill-main-categories', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateSkillMainCategory(id, data) {
|
|
|
|
|
return request(`/api/skill-main-categories/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteSkillMainCategory(id) {
|
|
|
|
|
return request(`/api/skill-main-categories/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 07:52:03 +02:00
|
|
|
// Skill Categories
|
|
|
|
|
export async function listSkillCategories(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/skill-categories${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createSkillCategory(data) {
|
|
|
|
|
return request('/api/skill-categories', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateSkillCategory(id, data) {
|
|
|
|
|
return request(`/api/skill-categories/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteSkillCategory(id) {
|
|
|
|
|
return request(`/api/skill-categories/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Trainer Focus Areas
|
|
|
|
|
export async function listTrainerFocusAreas(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/trainer-focus-areas${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function assignTrainerFocusArea(data) {
|
|
|
|
|
return request('/api/trainer-focus-areas', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteTrainerFocusArea(id) {
|
|
|
|
|
return request(`/api/trainer-focus-areas/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 08:55:54 +02:00
|
|
|
// Target Groups (Zielgruppen)
|
|
|
|
|
export async function listTargetGroups(filters = {}) {
|
|
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/target-groups${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createTargetGroup(data) {
|
|
|
|
|
return request('/api/target-groups', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateTargetGroup(id, data) {
|
|
|
|
|
return request(`/api/target-groups/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteTargetGroup(id) {
|
|
|
|
|
return request(`/api/target-groups/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
// Style Direction → Target Groups (M:N Assignments)
|
|
|
|
|
export async function listStyleDirectionTargetGroups(filters = {}) {
|
2026-04-23 10:45:14 +02:00
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/training-style-target-groups${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
export async function createStyleDirectionTargetGroup(data) {
|
2026-04-23 10:45:14 +02:00
|
|
|
return request('/api/training-style-target-groups', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
export async function updateStyleDirectionTargetGroup(id, data) {
|
2026-04-23 10:45:14 +02:00
|
|
|
return request(`/api/training-style-target-groups/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
export async function deleteStyleDirectionTargetGroup(id) {
|
2026-04-23 10:45:14 +02:00
|
|
|
return request(`/api/training-style-target-groups/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 12:27:09 +02:00
|
|
|
export async function getStyleDirectionsHierarchy(filters = {}) {
|
2026-04-23 10:45:14 +02:00
|
|
|
const query = new URLSearchParams(filters).toString()
|
|
|
|
|
return request(`/api/training-styles/hierarchy${query ? '?' + query : ''}`)
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 14:22:17 +02:00
|
|
|
// Trainer Contexts (Fokussierte Ansichten)
|
|
|
|
|
export async function listTrainerContexts() {
|
|
|
|
|
return request('/api/trainer-contexts')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createTrainerContext(data) {
|
|
|
|
|
return request('/api/trainer-contexts', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateTrainerContext(id, data) {
|
|
|
|
|
return request(`/api/trainer-contexts/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteTrainerContext(id) {
|
|
|
|
|
return request(`/api/trainer-contexts/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
// ============================================================================
|
|
|
|
|
// Training Planning
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export async function listTrainingUnits(groupId, startDate, endDate) {
|
|
|
|
|
const query = new URLSearchParams({ group_id: groupId, start_date: startDate, end_date: endDate }).toString()
|
|
|
|
|
return request(`/api/training-units?${query}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getTrainingUnit(id) {
|
|
|
|
|
return request(`/api/training-units/${id}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function createTrainingUnit(data) {
|
|
|
|
|
return request('/api/training-units', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function updateTrainingUnit(id, data) {
|
|
|
|
|
return request(`/api/training-units/${id}`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
feat: Training Planning (core feature) complete
Backend:
- Created migration 006_training_planning.sql
- training_units table (planned vs actual, status, notes)
- training_unit_exercises M:N (order, duration, modifications)
- Created routers/training_planning.py with full CRUD
- List with filters (group, date range, status)
- Get detail with exercises
- Create/Update/Delete with access control
- Quick create endpoint (auto-fills from group defaults)
- Permission: trainer for own groups, admin for all
- Registered training_planning router in main.py
Frontend:
- Complete TrainingPlanningPage with full planning workflow
- Group selector + date range picker
- List view with status badges (planned/completed/cancelled)
- Create/Edit modal with exercise management
- Drag to reorder exercises (▲▼)
- Quick create button (one-click with group defaults)
- Durchführung section (actual date/time, attendance, status)
- Public notes + trainer-only notes
- Updated api.js with deleteTrainingUnit and quickCreateTrainingUnit
- Added /planning route to App.jsx
- Navigation already configured (Calendar icon)
This is the CORE feature - trainers can now plan and document training sessions.
Next: Admin routes, role system refinement, testing
2026-04-22 16:54:34 +02:00
|
|
|
export async function deleteTrainingUnit(id) {
|
|
|
|
|
return request(`/api/training-units/${id}`, { method: 'DELETE' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function quickCreateTrainingUnit(data) {
|
|
|
|
|
return request('/api/training-units/quick-create', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
// ============================================================================
|
|
|
|
|
// Version & Health
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export async function getVersion() {
|
|
|
|
|
return request('/api/version')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function healthCheck() {
|
|
|
|
|
return request('/health')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const api = {
|
|
|
|
|
// Auth
|
|
|
|
|
login,
|
|
|
|
|
register,
|
|
|
|
|
logout,
|
|
|
|
|
getCurrentProfile,
|
|
|
|
|
|
|
|
|
|
// Clubs & Groups
|
|
|
|
|
listClubs,
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
getClub,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
createClub,
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
updateClub,
|
|
|
|
|
deleteClub,
|
|
|
|
|
listDivisions,
|
|
|
|
|
createDivision,
|
|
|
|
|
updateDivision,
|
|
|
|
|
deleteDivision,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
listTrainingGroups,
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
getTrainingGroup,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
createTrainingGroup,
|
feat: Clubs & Organization Management complete
Backend:
- Created routers/clubs.py with full CRUD
- Clubs: list, get, create, update, delete (admin only)
- Divisions: list, create, update, delete (admin only)
- Training Groups: list, get, create, update, delete (admin/trainer)
- Registered clubs router in main.py
- Permission checks: admin for clubs/divisions, trainer for groups
Frontend:
- Complete ClubsPage with 3 tabs (Vereine, Sparten, Gruppen)
- Role-based UI (admin sees all actions, trainer can manage groups)
- Full CRUD forms with modals
- Mobile-responsive card layouts
- Updated api.js with all club/division/group functions
Migration already exists: 002_organization.sql (clubs, divisions, training_groups)
Next: Skills & Methods display (read-only)
2026-04-22 16:48:02 +02:00
|
|
|
updateTrainingGroup,
|
|
|
|
|
deleteTrainingGroup,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
|
|
|
|
|
// Skills & Methods
|
|
|
|
|
listSkills,
|
2026-04-27 11:53:25 +02:00
|
|
|
listSkillsCatalog,
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
getSkill,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
createSkill,
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
updateSkill,
|
|
|
|
|
deleteSkill,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
listMethods,
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
getMethod,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
createMethod,
|
feat: Skills & Methods catalog complete
Backend:
- Created routers/skills.py with full CRUD
- Skills: list (with category filter), get, create, update, delete
- Methods: list (with category filter), get, create, update, delete
- Default: only show active items
- Read access: all authenticated users
- Write access: admin only
- Registered skills router in main.py
Frontend:
- Complete SkillsPage with 2 tabs (Fähigkeiten, Trainingsmethoden)
- Browse by category with cards layout
- Admin CRUD forms (importance rating for skills, duration/group size for methods)
- Mobile-responsive grid layout
- Updated api.js with all skill/method functions
- Added /skills route to App.jsx
Migration already exists: 003_catalogs.sql (skills, training_methods + seed data)
Next: Training Planning (core feature)
2026-04-22 16:50:31 +02:00
|
|
|
updateMethod,
|
|
|
|
|
deleteMethod,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
|
|
|
|
|
// Exercises
|
|
|
|
|
listExercises,
|
|
|
|
|
getExercise,
|
|
|
|
|
createExercise,
|
|
|
|
|
updateExercise,
|
|
|
|
|
deleteExercise,
|
|
|
|
|
|
|
|
|
|
// Training Planning
|
|
|
|
|
listTrainingUnits,
|
|
|
|
|
getTrainingUnit,
|
|
|
|
|
createTrainingUnit,
|
|
|
|
|
updateTrainingUnit,
|
feat: Training Planning (core feature) complete
Backend:
- Created migration 006_training_planning.sql
- training_units table (planned vs actual, status, notes)
- training_unit_exercises M:N (order, duration, modifications)
- Created routers/training_planning.py with full CRUD
- List with filters (group, date range, status)
- Get detail with exercises
- Create/Update/Delete with access control
- Quick create endpoint (auto-fills from group defaults)
- Permission: trainer for own groups, admin for all
- Registered training_planning router in main.py
Frontend:
- Complete TrainingPlanningPage with full planning workflow
- Group selector + date range picker
- List view with status badges (planned/completed/cancelled)
- Create/Edit modal with exercise management
- Drag to reorder exercises (▲▼)
- Quick create button (one-click with group defaults)
- Durchführung section (actual date/time, attendance, status)
- Public notes + trainer-only notes
- Updated api.js with deleteTrainingUnit and quickCreateTrainingUnit
- Added /planning route to App.jsx
- Navigation already configured (Calendar icon)
This is the CORE feature - trainers can now plan and document training sessions.
Next: Admin routes, role system refinement, testing
2026-04-22 16:54:34 +02:00
|
|
|
deleteTrainingUnit,
|
|
|
|
|
quickCreateTrainingUnit,
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
|
2026-04-23 07:52:03 +02:00
|
|
|
// Catalogs
|
|
|
|
|
listFocusAreas,
|
|
|
|
|
createFocusArea,
|
|
|
|
|
updateFocusArea,
|
|
|
|
|
deleteFocusArea,
|
2026-04-24 08:25:03 +02:00
|
|
|
getAdminHierarchy,
|
2026-04-23 12:27:09 +02:00
|
|
|
listStyleDirections,
|
|
|
|
|
createStyleDirection,
|
|
|
|
|
updateStyleDirection,
|
|
|
|
|
deleteStyleDirection,
|
2026-04-23 07:52:03 +02:00
|
|
|
listTrainingCharacters,
|
|
|
|
|
createTrainingCharacter,
|
|
|
|
|
updateTrainingCharacter,
|
|
|
|
|
deleteTrainingCharacter,
|
2026-04-23 12:12:48 +02:00
|
|
|
listTrainingTypes,
|
|
|
|
|
createTrainingType,
|
|
|
|
|
updateTrainingType,
|
|
|
|
|
deleteTrainingType,
|
2026-04-27 11:53:25 +02:00
|
|
|
listSkillMainCategories,
|
|
|
|
|
createSkillMainCategory,
|
|
|
|
|
updateSkillMainCategory,
|
|
|
|
|
deleteSkillMainCategory,
|
2026-04-23 07:52:03 +02:00
|
|
|
listSkillCategories,
|
|
|
|
|
createSkillCategory,
|
|
|
|
|
updateSkillCategory,
|
|
|
|
|
deleteSkillCategory,
|
|
|
|
|
listTrainerFocusAreas,
|
|
|
|
|
assignTrainerFocusArea,
|
|
|
|
|
deleteTrainerFocusArea,
|
2026-04-23 08:55:54 +02:00
|
|
|
listTargetGroups,
|
|
|
|
|
createTargetGroup,
|
|
|
|
|
updateTargetGroup,
|
|
|
|
|
deleteTargetGroup,
|
2026-04-23 12:27:09 +02:00
|
|
|
listStyleDirectionTargetGroups,
|
|
|
|
|
createStyleDirectionTargetGroup,
|
|
|
|
|
updateStyleDirectionTargetGroup,
|
|
|
|
|
deleteStyleDirectionTargetGroup,
|
2026-04-27 11:32:30 +02:00
|
|
|
listMaturityModels,
|
2026-04-27 12:35:48 +02:00
|
|
|
listMaturityModelContextBindings,
|
|
|
|
|
upsertMaturityModelContextBinding,
|
|
|
|
|
deleteMaturityModelContextBinding,
|
2026-04-27 12:48:22 +02:00
|
|
|
importMaturityModelBundle,
|
|
|
|
|
exportMaturityModelBundle,
|
|
|
|
|
exportResolvedMaturityBundle,
|
2026-04-27 13:13:36 +02:00
|
|
|
exportMatrixStackBundle,
|
|
|
|
|
importMatrixStackBundle,
|
2026-04-27 11:32:30 +02:00
|
|
|
resolveMaturityModel,
|
|
|
|
|
getMaturityModel,
|
|
|
|
|
createMaturityModel,
|
|
|
|
|
updateMaturityModel,
|
|
|
|
|
deleteMaturityModel,
|
|
|
|
|
addMaturityModelSkill,
|
|
|
|
|
removeMaturityModelSkill,
|
|
|
|
|
upsertMaturityModelSkillLevels,
|
2026-04-23 12:27:09 +02:00
|
|
|
getStyleDirectionsHierarchy,
|
2026-04-23 14:22:17 +02:00
|
|
|
listTrainerContexts,
|
|
|
|
|
createTrainerContext,
|
|
|
|
|
updateTrainerContext,
|
|
|
|
|
deleteTrainerContext,
|
2026-04-23 07:52:03 +02:00
|
|
|
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
// System
|
|
|
|
|
getVersion,
|
2026-04-24 16:06:49 +02:00
|
|
|
healthCheck,
|
|
|
|
|
|
|
|
|
|
// MediaWiki Import
|
|
|
|
|
previewMediaWikiImport: (category, importType = 'exercise', limit = 10) =>
|
|
|
|
|
request(`/api/import/mediawiki/preview?category=${encodeURIComponent(category)}&import_type=${importType}&limit=${limit}`),
|
|
|
|
|
|
|
|
|
|
executeMediaWikiImport: (data) =>
|
|
|
|
|
request('/api/import/mediawiki/execute', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify(data)
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
getMediaWikiImportStatus: (logId) =>
|
|
|
|
|
request(`/api/import/mediawiki/status/${logId}`),
|
|
|
|
|
|
|
|
|
|
listMediaWikiImportLogs: () =>
|
|
|
|
|
request('/api/import/mediawiki/logs'),
|
|
|
|
|
|
|
|
|
|
deleteMediaWikiImportReference: (refId) =>
|
|
|
|
|
request(`/api/import/mediawiki/references/${refId}`, { method: 'DELETE' })
|
feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD
Docker & Deployment:
- docker-compose.yml (Prod: Port 3003/8003)
- docker-compose.dev-env.yml (Dev: Port 3098/8098)
- Backend Dockerfile (Python 3.12-slim)
- Frontend Dockerfile (Node 20 + Nginx)
- Gitea Actions (deploy-dev.yml, deploy-prod.yml)
Frontend:
- React 18 + Vite setup
- package.json, vite.config.js, index.html
- App.jsx (minimal with version display)
- api.js (complete API client)
- app.css + AuthContext from Mitai
- main.jsx entry point
Backend Migrations:
- 001_auth_membership.sql (Auth + Features + Tier Limits)
- 002_organization.sql (Clubs, Divisions, Training Groups)
- 003_catalogs.sql (Skills + Methods with sample data)
Documentation:
- .claude/rules/ (ARCHITECTURE, CODING_RULES, etc.)
- SHINKAN_PROJECT_SETUP.md (technical setup guide)
Server:
- Directories created on Pi: /home/lars/docker/shinkan[-dev]
- Gitea Runner configured and running
Ready for first deployment to dev.shinkan.jinkendo.de
version: 0.1.0
date: 2026-04-21
2026-04-21 14:36:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default api
|