Compare commits
base: kyuno:15dad91a43350033d2926d41448d74bfdd127a1f
kyuno:main
kyuno:feat/release-push-docker-images
kyuno:feat/admin-user-accounts
kyuno:fix/forgejo-env-passthrough
kyuno:chore/release-0.2.3
kyuno:feat/login-password-toggle
kyuno:feat/common-source-search
kyuno:feat/onboarding-wizard-order
kyuno:feat/missing-tech-steps
kyuno:feat/auto-recipe-diets
kyuno:feat/seasoning-ingredients
kyuno:feat/recipe-form-sticky-actions
kyuno:chore/release-0.2.2
kyuno:fix/manger-bouger-empty-filter
kyuno:feat/forgejo-issue-from-contact-message
kyuno:feat/admin-contact-messages
kyuno:feat/contact-message-model-and-form
kyuno:fix/android-values-night-xml-comment
kyuno:feat/shopping-list-check-items
kyuno:fix/android-status-bar-dark-mode
kyuno:fix/hide-app-settings-tab-on-web
kyuno:fix/mobile-bottom-nav-icons-only
kyuno:fix/landing-hide-open-app-in-native
kyuno:fix/client-force-logout-on-401
kyuno:fix/mobile-update-check-on-open
kyuno:fix/layout-spec-freeze-clock
kyuno:fix/planning-grid-fluid-height
kyuno:fix/recipe-picker-dialog-mobile-empty
kyuno:chore/version-0.2.1
kyuno:feat/mobile-planning-view
kyuno:feat/mobile-landing-download
kyuno:feat/mobile-app-settings
kyuno:feat/mobile-shopping-recipes
kyuno:feat/mobile-cooking-session
kyuno:feat/mobile-cypress-viewports
kyuno:feat/mobile-popovers-safe
kyuno:feat/mobile-app-redirect
kyuno:fix/ci-test-job-serialization
kyuno:feat/mobile-ui-shell
kyuno:fix/cors-origin-capacitor-app
kyuno:fix/logout-redirect-landing
kyuno:feat/mobile-download-proxy
kyuno:fix/forgejo-latest-release-url
kyuno:fix/forgejo-release-curl-install
kyuno:fix/forgejo-release-native-api
kyuno:fix/sanity-build-docker
kyuno:fix/release-yml-forgejo
kyuno:fix/upload-artifact-ghes-compat
kyuno:feat/landing-apk-download
kyuno:fix/gradlew-executable-bit
kyuno:feat/mobile-ci-android-apk
kyuno:feat/mobile-update-check
kyuno:claude/magical-stonebraker-5dc636
kyuno:feat/capacitor-android-native
kyuno:claude/practical-swartz-648594
kyuno:feat/admin-tour-page
kyuno:feat/tour-engine
kyuno:feat/admin-tour-crud
kyuno:feat/tour-scenarios-backend
kyuno:feat/landing-page
kyuno:feat/capacitor-android-shell
kyuno:feat/mobile-responsive-pass
kyuno:feat/mobile-bearer-auth
kyuno:feat/ohmonbento-recipe-source
kyuno:feat/quitoque-recipe-source
kyuno:feat/leftovers-drag-drop
kyuno:feat/leftovers-basket
kyuno:feat/leftovers-assign-discard
kyuno:feat/leftovers-portions-foundations
kyuno:fix/correction-popover-span-selection
kyuno:fix/source-scroll-loop
kyuno:feat/admin-monitoring-websocket
kyuno:fix/admin-monitoring-spa-route-collision
kyuno:fix/step-counter-scoped-to-direct-children
kyuno:fix/admin-monitoring-intercept
kyuno:feat/tech-step-temperature-correction
kyuno:feat/tech-step-metadata-editor-redesign
kyuno:feat/cooking-recipes-inline-detail
kyuno:feat/cooking-stepper-recipe-groups
kyuno:fix/recipe-tech-step-metadata-on-update
kyuno:perf/nlp-textcat-width
kyuno:feat/cooking-session-stepper
kyuno:feat/cooking-optimizer-metadata
kyuno:feat/temperature-metadata
kyuno:ci/postgres-as-background-container
kyuno:feat/merge-admin-into-web
kyuno:docs/environment-variables
kyuno:fix/mocha-db-suites-first-run
kyuno:feat/admin-tech-steps
kyuno:feat/off-catalog-ingredients
kyuno:feat/cooking-session-ui
kyuno:feat/admin-monitoring
kyuno:feat/admin-metrics
kyuno:feat/admin-web-scaffold
kyuno:feat/admin-auth
kyuno:feat/cooking-session-api
kyuno:feat/cooking-optimizer-engine
kyuno:feat/tech-step-correction-merged-editor
kyuno:fix/tech-step-correction-metadata-discoverability
kyuno:feat/tech-step-correction-metadata
kyuno:feat/tech-step-metadata
kyuno:feat/tech-step-intent-service
kyuno:feat/shopping-list
kyuno:feat/fr-ingredient-unit-matching
kyuno:feat/sources-infinite-scroll
kyuno:fix/750g-browse-empty-query
kyuno:feat/marmiton-recipe-source
kyuno:feat/tech-step-detection-reliability
kyuno:experiment/llm-tech-step-poc
kyuno:feat/nlp-tech-step-detection
kyuno:chore/biome-style-rules
kyuno:feat/unify-source-detail-view
kyuno:fix/isolate-test-database
kyuno:fix/json-ld-not-a-browsable-source
kyuno:feat/browse-sources-backend
kyuno:feat/browse-sources-ui
kyuno:feat/import-recipe-review
kyuno:feat/plan-import-flow
kyuno:feat/highlight-tech-steps
kyuno:fix/runtime-seed-source-sync
kyuno:feat/english-matching
kyuno:feat/jsonld-source-adapter
kyuno:feat/recipe-step-translation
kyuno:feat/themealdb-source-icon
kyuno:feat/house-source-preferences
kyuno:feat/tech-steps-catalog
kyuno:feat/recipe-source-adapter
kyuno:feat/recipe-source-linking
kyuno:feat/ingredient-unit-catalog
kyuno:feat/ingredient-reproducible-flag
kyuno:refactor/catalog-camel-case-uids
kyuno:experiment/cucumber-cypress
kyuno:feat/recipe-catalog-v2
kyuno:feat/planning-page-design
kyuno:feat/settings-household-account
kyuno:feat/user-preferences-sidebar-nav
kyuno:v0.2.3
kyuno:v0.2.2
kyuno:v0.2.1
kyuno:v0.2.0
kyuno:v0.1.3
kyuno:v0.1.2
kyuno:v0.1.1
kyuno:v0.1.0
..
compare: kyuno:ed68e1146f21f851c606b0032e8805efa65b2b0f
kyuno:main
kyuno:feat/release-push-docker-images
kyuno:feat/admin-user-accounts
kyuno:fix/forgejo-env-passthrough
kyuno:chore/release-0.2.3
kyuno:feat/login-password-toggle
kyuno:feat/common-source-search
kyuno:feat/onboarding-wizard-order
kyuno:feat/missing-tech-steps
kyuno:feat/auto-recipe-diets
kyuno:feat/seasoning-ingredients
kyuno:feat/recipe-form-sticky-actions
kyuno:chore/release-0.2.2
kyuno:fix/manger-bouger-empty-filter
kyuno:feat/forgejo-issue-from-contact-message
kyuno:feat/admin-contact-messages
kyuno:feat/contact-message-model-and-form
kyuno:fix/android-values-night-xml-comment
kyuno:feat/shopping-list-check-items
kyuno:fix/android-status-bar-dark-mode
kyuno:fix/hide-app-settings-tab-on-web
kyuno:fix/mobile-bottom-nav-icons-only
kyuno:fix/landing-hide-open-app-in-native
kyuno:fix/client-force-logout-on-401
kyuno:fix/mobile-update-check-on-open
kyuno:fix/layout-spec-freeze-clock
kyuno:fix/planning-grid-fluid-height
kyuno:fix/recipe-picker-dialog-mobile-empty
kyuno:chore/version-0.2.1
kyuno:feat/mobile-planning-view
kyuno:feat/mobile-landing-download
kyuno:feat/mobile-app-settings
kyuno:feat/mobile-shopping-recipes
kyuno:feat/mobile-cooking-session
kyuno:feat/mobile-cypress-viewports
kyuno:feat/mobile-popovers-safe
kyuno:feat/mobile-app-redirect
kyuno:fix/ci-test-job-serialization
kyuno:feat/mobile-ui-shell
kyuno:fix/cors-origin-capacitor-app
kyuno:fix/logout-redirect-landing
kyuno:feat/mobile-download-proxy
kyuno:fix/forgejo-latest-release-url
kyuno:fix/forgejo-release-curl-install
kyuno:fix/forgejo-release-native-api
kyuno:fix/sanity-build-docker
kyuno:fix/release-yml-forgejo
kyuno:fix/upload-artifact-ghes-compat
kyuno:feat/landing-apk-download
kyuno:fix/gradlew-executable-bit
kyuno:feat/mobile-ci-android-apk
kyuno:feat/mobile-update-check
kyuno:claude/magical-stonebraker-5dc636
kyuno:feat/capacitor-android-native
kyuno:claude/practical-swartz-648594
kyuno:feat/admin-tour-page
kyuno:feat/tour-engine
kyuno:feat/admin-tour-crud
kyuno:feat/tour-scenarios-backend
kyuno:feat/landing-page
kyuno:feat/capacitor-android-shell
kyuno:feat/mobile-responsive-pass
kyuno:feat/mobile-bearer-auth
kyuno:feat/ohmonbento-recipe-source
kyuno:feat/quitoque-recipe-source
kyuno:feat/leftovers-drag-drop
kyuno:feat/leftovers-basket
kyuno:feat/leftovers-assign-discard
kyuno:feat/leftovers-portions-foundations
kyuno:fix/correction-popover-span-selection
kyuno:fix/source-scroll-loop
kyuno:feat/admin-monitoring-websocket
kyuno:fix/admin-monitoring-spa-route-collision
kyuno:fix/step-counter-scoped-to-direct-children
kyuno:fix/admin-monitoring-intercept
kyuno:feat/tech-step-temperature-correction
kyuno:feat/tech-step-metadata-editor-redesign
kyuno:feat/cooking-recipes-inline-detail
kyuno:feat/cooking-stepper-recipe-groups
kyuno:fix/recipe-tech-step-metadata-on-update
kyuno:perf/nlp-textcat-width
kyuno:feat/cooking-session-stepper
kyuno:feat/cooking-optimizer-metadata
kyuno:feat/temperature-metadata
kyuno:ci/postgres-as-background-container
kyuno:feat/merge-admin-into-web
kyuno:docs/environment-variables
kyuno:fix/mocha-db-suites-first-run
kyuno:feat/admin-tech-steps
kyuno:feat/off-catalog-ingredients
kyuno:feat/cooking-session-ui
kyuno:feat/admin-monitoring
kyuno:feat/admin-metrics
kyuno:feat/admin-web-scaffold
kyuno:feat/admin-auth
kyuno:feat/cooking-session-api
kyuno:feat/cooking-optimizer-engine
kyuno:feat/tech-step-correction-merged-editor
kyuno:fix/tech-step-correction-metadata-discoverability
kyuno:feat/tech-step-correction-metadata
kyuno:feat/tech-step-metadata
kyuno:feat/tech-step-intent-service
kyuno:feat/shopping-list
kyuno:feat/fr-ingredient-unit-matching
kyuno:feat/sources-infinite-scroll
kyuno:fix/750g-browse-empty-query
kyuno:feat/marmiton-recipe-source
kyuno:feat/tech-step-detection-reliability
kyuno:experiment/llm-tech-step-poc
kyuno:feat/nlp-tech-step-detection
kyuno:chore/biome-style-rules
kyuno:feat/unify-source-detail-view
kyuno:fix/isolate-test-database
kyuno:fix/json-ld-not-a-browsable-source
kyuno:feat/browse-sources-backend
kyuno:feat/browse-sources-ui
kyuno:feat/import-recipe-review
kyuno:feat/plan-import-flow
kyuno:feat/highlight-tech-steps
kyuno:fix/runtime-seed-source-sync
kyuno:feat/english-matching
kyuno:feat/jsonld-source-adapter
kyuno:feat/recipe-step-translation
kyuno:feat/themealdb-source-icon
kyuno:feat/house-source-preferences
kyuno:feat/tech-steps-catalog
kyuno:feat/recipe-source-adapter
kyuno:feat/recipe-source-linking
kyuno:feat/ingredient-unit-catalog
kyuno:feat/ingredient-reproducible-flag
kyuno:refactor/catalog-camel-case-uids
kyuno:experiment/cucumber-cypress
kyuno:feat/recipe-catalog-v2
kyuno:feat/planning-page-design
kyuno:feat/settings-household-account
kyuno:feat/user-preferences-sidebar-nav
kyuno:v0.2.3
kyuno:v0.2.2
kyuno:v0.2.1
kyuno:v0.2.0
kyuno:v0.1.3
kyuno:v0.1.2
kyuno:v0.1.1
kyuno:v0.1.0
5 commits
15dad91a43
...
ed68e1146f
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| ed68e1146f |
feat(admin): tri des corrections + declenchement du gate F1/backfill
PR 5 (derniere) du chantier admin. Remplace le duo CLI list-pending-training-suggestions.ts / retrain-tech-steps.ts par une UI. API (admin-tech-steps.service.ts, routes /admin/tech-steps/*, requireAdmin) : - GET /suggestions : TechStepTrainingSuggestion filtrees, groupees par technique, enrichies du contexte de la correction source. - GET /corrections : corrections brutes filtrables, incluant les suppressions correctedTechStepId:null invisibles ailleurs. - PATCH /suggestions/:id : edite synonymes/phrases et/ou status. - GET /training-data-snippet : bloc training_data.py a coller (lecture seule). - POST /retrain : runTechStepEvalSuite() (gate F1 vs MIN_OVERALL_F1) puis si passe backfillTechSteps() + marquage applied/rejected. Verrou memoire -> 409 RETRAIN_ALREADY_RUNNING. Gate echoue -> 200 gatePassed:false. N'edite pas le .py ni ne redemarre l'intent-service (manuel). Shared : nouveau ErrorCode RETRAIN_ALREADY_RUNNING (4023, + cle i18n apps/web), schemas (list*/update*/retrain*/snippet), types (TrainingSuggestion*/Correction*/RetrainResultView...). Front : CorrectionsPage (onglets Suggestions / Corrections brutes, bandeau caveat permanent, cartes editables + Appliquer/Rejeter, panneau snippet, panneau gate F1). Logique pure corrections.ts. i18n admin.corrections.*. AdminApiClient : 5 methodes. Tests : Mocha admin-tech-steps.test.ts (401 partout, groupement+filtre, PATCH 400/404/ok, corrections incluant removals, snippet, retrain shape + 409 concurrent) ; Cypress corrections.cy.ts (4 verts). Admin-web Cypress 13/13. specs/backend-architecture.md : section tri + retrain. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
|||
| 57cb2b7b3d |
feat(admin): monitoring des microservices + heartbeat du worker LLM
PR 4 du chantier admin. Board de sante temps reel des dependances.
- POST /internal/tech-steps/heartbeat (requireInternalWorker) ->
recordWorkerHeartbeat : upsert WorkerHeartbeat (cle fixe
"tech-step-llm-worker"), lastRunAt/lastResult pour un ping "job".
Schema workerHeartbeatSchema dans packages/shared.
- services/tech-step-llm-worker : api-client.postHeartbeat (best-effort,
ne throw jamais) appele au boot (index.ts), a chaque tick et apres
chaque job (scheduler.ts, avec job/ok/counts).
- admin-monitoring.service.ts + GET /admin/monitoring (requireAdmin) :
sonde active bornee (~2 s) de Postgres (SELECT 1), l'API (uptime/RSS),
tech-step-intent-service (/health), et le worker via son heartbeat.
Statut up/degraded/down/unknown ; une sonde down ne casse ni les autres
ni l'endpoint. Seuils worker : > 8 j degraded, > 21 j down.
- MonitoringView / ServiceHealthView dans packages/shared.
- Front : MonitoringPage (grille de cartes coloree par statut, re-poll
15 s), logique pure monitoring.ts, i18n admin.monitoring.*,
AdminApiClient.getMonitoring.
- Tests : Mocha admin-monitoring.test.ts (heartbeat 401/400/upsert
job+boot ; GET /admin/monitoring 401, board 4 cibles, worker unknown
sans heartbeat puis up apres) ; Cypress monitoring.cy.ts (2 verts).
Worker mocha : 6/6 toujours verts.
- specs/backend-architecture.md : section monitoring. .gitignore :
apps/admin-web/cypress/{screenshots,videos,downloads}.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
|||
| b08081e48d |
feat(admin): metriques d'utilisation (derive DB + AnalyticsEvent)
PR 3 du chantier admin. Tableau de bord metriques : snapshot de compteurs
+ series temporelles journalieres.
Schema (migration admin_metrics) :
- AnalyticsEvent (type String libre, actorType/actorId sans FK, context Json,
index [type, created_at]) + WorkerHeartbeat (cable en PR 4).
- colonnes createdAt @default(now()) sur UserProfile / Recipe / Planning /
PlanningItem (lecture admin uniquement ; lignes existantes = timestamp de
la migration).
Instrumentation (lib/analytics.service.ts, fire-and-forget) :
- analytics.recordEvent(type, {actorId?, context?}) : retourne void, insert
detache, echec loggue+avale, jamais de latence sur la requete.
- points d'appel : user.signup, recipe.created, recipe.imported,
planning.item_added, tech_step.correction_submitted, shopping_list.viewed.
API : GET /admin/metrics?days= (7-365, defaut 30, requireAdmin) ->
admin-metrics.service.ts. bucketByDay pur (zero-remplissage, teste sans
base). MetricsView dans packages/shared.
Front : DashboardPage (tuiles KPI + un graphe recharts par serie + listes
recettes-par-source / evenements), logique pure dans dashboard.ts, i18n
admin.dashboard.*. AdminApiClient.getMetrics.
reset-db.ts truncate analytics_events + worker_heartbeats.
Tests : Mocha admin-metrics.test.ts (bucketByDay pur x2 verts ; snapshot,
series zero-remplies, event user.signup fire-and-forget) ; Cypress
dashboard.cy.ts (2 verts). specs/backend-architecture.md : section admin.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
|||
| 8a6143d54d |
feat(admin): scaffold de l'application d'administration apps/admin-web
Nouvelle app Vite/React independante (workspace apps/*), calquee sur apps/web : port 5174, sa propre image Docker (nginx statique), son propre domaine/deploiement. - AdminApiClient (VITE_ADMIN_API_URL, credentials: include) + ApiError. - AdminAuthContext / RequireAdmin : restaure la session admin via GET /admin/auth/me, garde de route (miroir de AuthContext/RequireAuth). - LoginPage (/login) : validation cliente via adminLoginSchema partage, erreurs traduites via ErrorMessageService. - AdminLayout : sidebar (Tableau de bord / Monitoring / Corrections) + deconnexion, rendu une fois autour du groupe RequireAdmin. - Pages Dashboard / Monitoring / Corrections en placeholder (remplies aux PR 3-5). - i18n fr (bloc admin.* + sous-ensemble errors.*), tokens _theme.scss copies de apps/web (extraction en package partage : suivi separe). - Dockerfile multi-stage (node build -> nginx:alpine) + nginx.conf (SPA fallback). Service admin-web dans docker-compose.yml (port ADMIN_WEB_PORT, VITE_ADMIN_API_URL en build arg). - Cypress : login.feature (KO -> message, OK -> dashboard) + admin-layout .cy.ts (redirection /login sans session, nav entre sections, logout). Job "Run admin-web E2E tests" ajoute a ci.yml. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
|||
| cf8ef26f63 |
feat(admin): fondation auth de l'application d'administration
Premiere brique de l'app d'admin independante : une surface /admin/*
ajoutee a apps/api, avec une authentification totalement distincte de
celle des utilisateurs.
- Table AdminUser isolee (aucune relation vers UserProfile), migration
20260828120000_admin_user.
- lib/admin-jwt.ts : sign/verify d'un JWT admin, secret ADMIN_JWT_SECRET
propre (jamais interchangeable avec JWT_SECRET).
- middlewares/require-admin.ts : cookie admin_session dedie, re-check
tokenVersion, echoue ferme si ADMIN_JWT_SECRET absent (posture
requireInternalWorker). res.locals.adminUser type via AdminLocals.
- modules/admin/ : admin-auth.{routes,service}.ts (POST /login, POST
/logout, GET /me), admin.routes.ts agregateur monte /admin. Pas de
signup expose.
- lib/safe-admin.ts : mapping AdminUser -> AdminUserView (drop passwordHash
+ tokenVersion, dates ISO).
- scripts/create-admin.ts : creation du 1er admin hors-bande (flags ou
ADMIN_INITIAL_*).
- CORS : setupCore accepte string[] ; app.ts autorise CORS_ORIGIN +
ADMIN_CORS_ORIGIN.
- Shared : schemas/admin.ts (adminLoginSchema), types/admin.ts
(AdminUserView).
- Env : ADMIN_JWT_SECRET (optionnel), ADMIN_COOKIE_NAME, ADMIN_CORS_ORIGIN,
ADMIN_INITIAL_* ; .env.example, .env.test.example, docker-compose.yml,
ci.yml mis a jour.
- reset-db.ts truncate admin_users.
- Tests Mocha admin-auth.test.ts : 400 sans body, 401 email inconnu /
mauvais mdp, login OK (cookie pose, lastLoginAt, pas de hash/tokenVersion
dans la reponse), /me derriere requireAdmin, logout, et un cookie
`session` d'utilisateur normal ne donne pas acces a /admin/*.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
1 changed files with 0 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -66,10 +66,6 @@ jobs:
|
|||
--health-timeout 5s
|
||||
--health-retries 10
|
||||
steps:
|
||||
- name: Install curl and dependencies
|
||||
run: |
|
||||
apt-get update && apt-get install -y curl
|
||||
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
|
|
|
|||
Write
Preview
Loading…
Reference in a new issue