mitai-jinkendo/frontend/src/utils
Lars 97e57481f9
All checks were successful
Deploy Development / deploy (push) Successful in 51s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s
fix: Analysis page now uses unified prompt executor (Issue #28)
BREAKING: Analysis page switched from old /insights/run to new /prompts/execute

Changes:
- Backend: Added save=true parameter to /prompts/execute
  - When enabled, saves final output to ai_insights table
  - Extracts content from pipeline output (last stage)
- Frontend api.js: Added save parameter to executeUnifiedPrompt()
- Frontend Analysis.jsx: Switched from api.runInsight() to api.executeUnifiedPrompt()
  - Transforms new result format to match InsightCard expectations
  - Pipeline outputs properly extracted and displayed

Fixes: PIPELINE_MASTER responses (old template being sent to AI)
The old /insights/run endpoint used raw template field, which for the
legacy "pipeline" prompt was literally "PIPELINE_MASTER". The new
executor properly handles stages and data processing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 09:38:58 +01:00
..
api.js fix: Analysis page now uses unified prompt executor (Issue #28) 2026-03-26 09:38:58 +01:00
calc.js feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00
guideData.js feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00
interpret.js feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00
Markdown.jsx feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00