Add a markdown preview mode to the Create PR body editor while preserving raw submission text.
- Add a persisted Preview/Edit toggle for the Create PR body field.
- Render body markdown through the shared sanitized markdown pipeline in preview mode.
- Style the preview region and document the modal behavior.
- Cover edit, preview, regenerate, revert, empty/fallback, and submit payload flows.
Files changed:
docs/dashboard-guide.md | 1 +
.../dashboard/app/components/PrCreateModal.css | 24 ++++-
.../dashboard/app/components/PrCreateModal.tsx | 51 +++++++++-
.../components/__tests__/PrCreateModal.test.tsx | 107 +++++++++++++++++++++
4 files changed, 181 insertions(+), 2 deletions(-)
Fusion-Task-Id: FN-7176
Fusion-Task-Lineage: 82275fb1-f89a-4fa2-9c47-7a7e7982c6cd
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>