SOGOMS v1.0.3 - Admin UI, Cron, Config reload

Phase 13 : sogoms-cron
- Jobs planifiés avec schedule cron standard
- Types: query_email, http, service
- Actions: list, trigger, status

Phase 16 : Réorganisation config/apps/{app}/
- Tous les fichiers d'une app dans un seul dossier
- Migration prokov vers nouvelle structure

Phase 17 : sogoms-admin
- Interface web d'administration (Go templates + htmx)
- Auth sessions cookies signées HMAC-SHA256
- Rôles super_admin / app_admin avec permissions

Phase 19 : Création d'app via Admin UI
- Formulaire création app avec config DB/auth
- Bouton "Scanner la base" : introspection + schema.yaml
- Rechargement automatique sogoway via SIGHUP

Infrastructure :
- sogoctl : socket de contrôle /run/sogoctl.sock
- sogoway : reload config sur SIGHUP sans restart

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-19 20:30:56 +01:00
parent a4694a10d1
commit 65da4efdad
76 changed files with 5305 additions and 80 deletions

View File

@@ -0,0 +1,61 @@
# Scénario: Détail d'une tâche
name: tasks_show
version: "1.0"
description: Retourne une tâche avec ses tags
input:
required:
- id
validation:
id:
type: int
steps:
- id: get_task
service: db
action: query_one
params:
query: |
SELECT t.*, p.name as project_name, s.name as status_name, s.color as status_color
FROM tasks t
LEFT JOIN projects p ON t.project_id = p.id
LEFT JOIN statuses s ON t.status_id = s.id
WHERE t.id = ? AND t.user_id = ?
args: ["{{input.id}}", "{{auth.user_id}}"]
on_error: abort
error_message: "Tâche non trouvée"
error_status: 404
- id: get_tags
service: db
action: query
params:
query: |
SELECT t.id, t.name, t.color
FROM tags t
JOIN task_tags tt ON t.id = tt.tag_id
WHERE tt.task_id = ?
args: ["{{input.id}}"]
output:
status: 200
body:
success: true
data:
id: "{{steps.get_task.result.id}}"
project_id: "{{steps.get_task.result.project_id}}"
project_name: "{{steps.get_task.result.project_name}}"
status_id: "{{steps.get_task.result.status_id}}"
status_name: "{{steps.get_task.result.status_name}}"
status_color: "{{steps.get_task.result.status_color}}"
title: "{{steps.get_task.result.title}}"
description: "{{steps.get_task.result.description}}"
priority: "{{steps.get_task.result.priority}}"
date_start: "{{steps.get_task.result.date_start}}"
date_end: "{{steps.get_task.result.date_end}}"
time_estimated: "{{steps.get_task.result.time_estimated}}"
time_spent: "{{steps.get_task.result.time_spent}}"
billing: "{{steps.get_task.result.billing}}"
position: "{{steps.get_task.result.position}}"
created_at: "{{steps.get_task.result.created_at}}"
tags: "{{steps.get_tags.result}}"