[PR #5700] [MERGED] feat(client): add markdown preview toggle to the character summary field #6890

Closed
opened 2026-10-23 04:14:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5700
Author: @Gunterlie
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/character-summary-markdown-preview


📝 Commits (3)

  • af00e8e feat(client): add markdown preview toggle to the character summary field
  • 15aea8f Merge branch 'staging' into fix/character-summary-markdown-preview
  • 1ada2fa Merge branch 'staging' into fix/character-summary-markdown-preview

📊 Changes

1 file changed (+6 additions, -3 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+6 -3)

📄 Description

Closes #5690

Why

The character card summary is Markdown-bearing text, but its editor was a plain <textarea> — unlike every other character field, which uses MacroTextarea and offers a source/preview toggle. Users writing a summary had no way to see how it renders.

What

CharacterSummaryField now uses MacroTextarea with showMarkdownPreview, matching the description/scenario/personality fields. The 500-character cap and the counter are unchanged.

Test plan

  • Manually open a character in the editor and go to the Summary section
  • Manually verify the eye/pencil toggle switches between Markdown source and rendered preview
  • Manually verify the 500-character limit and the counter still work, including on paste
  • Manually verify summary generation still fills the field

Summary by CodeRabbit

  • New Features
    • Character summaries now support markdown preview.
    • Added self-character macro context while editing summaries.
    • Preserved the existing 500-character limit and styling.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/5700 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/31/2026 **Status:** ✅ Merged **Merged:** 8/31/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/character-summary-markdown-preview` --- ### 📝 Commits (3) - [`af00e8e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/af00e8e610d1be5dab735648d31a88b7c7c14ff5) feat(client): add markdown preview toggle to the character summary field - [`15aea8f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/15aea8f8bab3361bb577038e4aeae941a0098481) Merge branch 'staging' into fix/character-summary-markdown-preview - [`1ada2fa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ada2fa2ed241e3dbe745ce6209faecebe20702b) Merge branch 'staging' into fix/character-summary-markdown-preview ### 📊 Changes **1 file changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+6 -3) </details> ### 📄 Description Closes #5690 ## Why The character card summary is Markdown-bearing text, but its editor was a plain `<textarea>` — unlike every other character field, which uses `MacroTextarea` and offers a source/preview toggle. Users writing a summary had no way to see how it renders. ## What `CharacterSummaryField` now uses `MacroTextarea` with `showMarkdownPreview`, matching the description/scenario/personality fields. The 500-character cap and the counter are unchanged. ## Test plan - [ ] Manually open a character in the editor and go to the Summary section - [ ] Manually verify the eye/pencil toggle switches between Markdown source and rendered preview - [ ] Manually verify the 500-character limit and the counter still work, including on paste - [ ] Manually verify summary generation still fills the field <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Character summaries now support markdown preview. * Added self-character macro context while editing summaries. * Preserved the existing 500-character limit and styling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:14:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6890
No description provided.