Repository navigation
feat(frontend): add rich text editor for project descriptions (#795) - #984
Merged
github-actions[bot] merged 1 commit intoSep 28, 2026
Conversation
…evs17#795) Replace the plain description input on the project creation form with a markdown-backed rich text editor so contributors can add formatting, links, lists, code, and images while keeping descriptions portable and sanitized. - Add RichTextEditor with a formatting toolbar, keyboard shortcuts, live sanitized preview, and URL/paste/drag-drop image insertion - Wire the editor into the localized and non-localized project forms via react-hook-form Controller - Fix an unclosed SyntaxHighlighter tag in MarkdownContent that broke the markdown renderer - Document the component and add unit tests Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@sandrawillow001-afk is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@sandrawillow001-afk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the plain description input on the Create Project form with a markdown-backed rich text editor.
Closes #795
Changes
RichTextEditor(frontend/components/markdown/RichTextEditor.tsx):Cmd/Ctrl+B,Cmd/Ctrl+I,Cmd/Ctrl+KMarkdownContentmaxLengthController.<SyntaxHighlighter>tag inMarkdownContent.tsxthat broke markdown rendering.docs/frontend/rich-text-editor.md.Why markdown
Descriptions are persisted on-chain as part of
workDescription; a portable plain-text format avoids HTML escaping issues, and rendering already sanitizes withrehype-sanitize.Testing
cd frontend && npx vitest run components/markdown/__tests__/RichTextEditor.test.tsx→ 9 passednpx eslinton all changed files → clean| No regressions in existing frontend build/type checks for the touched files. |