MicroFish/frontend
andreicarpen 0387dc7210 feat(report): allow resuming report generation after failure
When report generation in Step 4 fails mid-way (e.g. AI credits exhausted,
network error), users previously had to restart from scratch, losing the
outline and any already-completed sections.

This change preserves partial progress and lets users continue from where
generation stopped:

- Backend: `generate_report(resume=True)` reloads the saved outline and
  per-section markdown files, skips the planning phase, and only generates
  the missing sections. The `/api/report/generate` endpoint accepts a
  `resume` flag and reuses the failed report's `report_id`.
- Frontend: Step4Report polls `/progress` and, when `status === 'failed'`,
  shows a "Resume Generation" banner with the failure message and a button
  that calls `generateReport({ simulation_id, resume: true })` and
  restarts log polling.
- Adds `resumeStart` / `sectionResumed` / `reportFailedTitle` /
  `resumeGeneration` locale keys in en and zh.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 16:48:58 +03:00
..
public Remove outdated README.md and update favicon in index.html 2025-12-16 20:58:48 +08:00
src feat(report): allow resuming report generation after failure 2026-04-18 16:48:58 +03:00
.gitignore Add project status report and frontend documentation 2025-12-10 14:49:11 +08:00
index.html fix(i18n): set HTML lang attribute before Vue mounts via inline script 2026-04-02 14:21:09 +08:00
package-lock.json fix(security): upgrade axios, rollup, picomatch to fix 3 high severity vulnerabilities 2026-04-02 15:00:33 +08:00
package.json fix(security): upgrade axios, rollup, picomatch to fix 3 high severity vulnerabilities 2026-04-02 15:00:33 +08:00
vite.config.js fix(i18n): fix curly quotes and missing @ alias in vite config 2026-04-01 15:45:43 +08:00