feat: export improvements — Phase A + Phase B #75

Merged
chihlasm merged 19 commits from feat/export-phase-a into main 2026-02-13 23:30:32 +00:00
chihlasm commented 2026-02-13 22:52:13 +00:00 (Migrated from github.com)

Summary

  • Phase A: Next steps/resolution sections in exports, step cutoff control, mid-session "Copy for Ticket" button, PSA fix for incomplete sessions
  • Phase B: Summary block in all 4 export formats, [CUSTOM] markers for custom steps, detail level (standard/full) with format-aware command output truncation, editable preview modal with reset and summary toggle

Details

Phase A (8 commits)

  • Added next_steps column and wired through session completion
  • Resolution and Next Steps sections in markdown, text, HTML, PSA exports
  • Step cutoff (max_step_index) for partial exports
  • Mid-session "Copy for Ticket" on navigation page
  • Fixed PSA skipping RESOLUTION section for incomplete sessions

Phase B (8 commits)

  • include_summary and detail_level added to SessionExport schema
  • [CUSTOM] prefix on custom steps across all 4 generators
  • Format-aware truncation: markdown *(…)*, HTML <em>…</em>, text/PSA plain (…)
  • Summary block with auto-populated fields (no placeholder leak)
  • Editable <textarea> preview with reset button and (edited) indicator
  • Detail level dropdown and summary toggle in SessionDetailPage
  • 14 new backend tests in TestPhaseB class

Test plan

  • 397 backend tests passing (3 pre-existing failures unrelated)
  • Frontend build clean (npm run build)
  • Manual verification of all 4 export formats

🤖 Generated with Claude Code

## Summary - **Phase A:** Next steps/resolution sections in exports, step cutoff control, mid-session "Copy for Ticket" button, PSA fix for incomplete sessions - **Phase B:** Summary block in all 4 export formats, `[CUSTOM]` markers for custom steps, detail level (standard/full) with format-aware command output truncation, editable preview modal with reset and summary toggle ## Details ### Phase A (8 commits) - Added `next_steps` column and wired through session completion - Resolution and Next Steps sections in markdown, text, HTML, PSA exports - Step cutoff (`max_step_index`) for partial exports - Mid-session "Copy for Ticket" on navigation page - Fixed PSA skipping RESOLUTION section for incomplete sessions ### Phase B (8 commits) - `include_summary` and `detail_level` added to `SessionExport` schema - `[CUSTOM]` prefix on custom steps across all 4 generators - Format-aware truncation: markdown `*(…)*`, HTML `<em>…</em>`, text/PSA plain `(…)` - Summary block with auto-populated fields (no placeholder leak) - Editable `<textarea>` preview with reset button and `(edited)` indicator - Detail level dropdown and summary toggle in SessionDetailPage - 14 new backend tests in `TestPhaseB` class ## Test plan - [x] 397 backend tests passing (3 pre-existing failures unrelated) - [x] Frontend build clean (`npm run build`) - [x] Manual verification of all 4 export formats 🤖 Generated with [Claude Code](https://claude.com/claude-code)
railway-app[bot] commented 2026-02-13 22:52:28 +00:00 (Migrated from github.com)

🚅 Deployed to the patherly-pr-75 environment in selfless-grace

Service Status Web Updated (UTC)
hopeful-liberation Success (View Logs) Feb 13, 2026 at 10:54 pm
patherly Success (View Logs) Feb 13, 2026 at 10:53 pm
<!-- railway-bot-comment-version=2 --> <!-- railway-project-id="22b9b58c-271b-42e5-a10e-6fdec8d00134" railway-project-name="selfless-grace" --> 🚅 Deployed to the [patherly-pr-75](https://railway.com/project/22b9b58c-271b-42e5-a10e-6fdec8d00134?environmentId=99571e8d-6fb2-4650-b4b3-a8f46e83c6e1) environment in **[selfless-grace](https://railway.com/project/22b9b58c-271b-42e5-a10e-6fdec8d00134)** | **Service** | **Status** | **Web** | **Updated** (UTC) | | :--- | :--- | :--- | :--- | | hopeful-liberation | ✅ Success ([View Logs](https://railway.com/project/22b9b58c-271b-42e5-a10e-6fdec8d00134/service/e1db2ee3-d241-4f45-abe4-c9c5fdf483d5?id=996b1662-6516-4f41-a151-418fb86ac5dc&environmentId=99571e8d-6fb2-4650-b4b3-a8f46e83c6e1)) | | Feb 13, 2026 at 10:54 pm | | patherly | ✅ Success ([View Logs](https://railway.com/project/22b9b58c-271b-42e5-a10e-6fdec8d00134/service/95f556ff-5264-4116-a0c2-618a2fc53ba4?id=d1a84e15-07ee-4655-87c8-1fb362821149&environmentId=99571e8d-6fb2-4650-b4b3-a8f46e83c6e1)) | | Feb 13, 2026 at 10:53 pm |
Sign in to join this conversation.