feat: Add md text-editor and support for image upload#74
Merged
Conversation
CrawlerCode
commented
Apr 19, 2026
Owner
- Settings for redmine text-formatting with auto-detect
- Markdown text-editor
- Converting md to textile
- Support for image upload
- Settings for redmine text-formatting with auto-detect - Markdown text-editor - Converting md to textile - Support for image upload
There was a problem hiding this comment.
Pull request overview
This PR adds Markdown editing capabilities and Redmine text-formatting awareness to the extension, along with initial support for uploading/attaching files (notably images) when editing issue descriptions/notes and creating time entries.
Changes:
- Introduces a Markdown editor field component (with preview/fullscreen, toolbar commands, and paste-to-upload for images).
- Adds Redmine instance settings for text formatting (auto-detection + persisted settings).
- Adds attachment upload plumbing (API client, UI components, and new “uploads” fields on issue/note/time-entry flows).
Reviewed changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| wxt.config.ts | Adds a build-time ASCII-output workaround plugin for the content script bundle. |
| src/utils/markdownToTextile.ts | Adds Markdown→Textile conversion helper for Textile-configured Redmine instances. |
| src/routes/settings.tsx | Adds Redmine settings UI + auto-detection of text-formatting. |
| src/provider/SettingsProvider.tsx | Persists new redmine.settings.textFormatting setting with defaults/schema. |
| src/lang/en.json | Adds i18n strings for uploads field + editor toolbar + Redmine settings. |
| src/lang/de.json | Adds i18n strings for uploads field + editor toolbar + Redmine settings. |
| src/lang/fr.json | Adds i18n strings for uploads field + editor toolbar + Redmine settings. |
| src/lang/ru.json | Adds i18n strings for uploads field + editor toolbar + Redmine settings. |
| src/index.css | Adds styling overrides for the Markdown editor (theme variables, lists). |
| src/hooks/useAppForm.ts | Registers RedmineMdEditorField in the app form hook. |
| src/components/ui/chart.tsx | Minor Tailwind class refactors (size utilities/order). |
| src/components/ui/attachment.tsx | Adds reusable attachment UI primitives. |
| src/components/time-entry/CreateTimeEntryModal.tsx | Adds Markdown editor for notes + uploads field + upload mutation. |
| src/components/issue/form/IssueForm.tsx | Adds uploads to issue create/edit schema + upload mutation + uploads field. |
| src/components/issue/form/fields/UploadsField.tsx | Adds uploads list UI with remove action. |
| src/components/issue/AddIssueNotesModal.tsx | Adds Markdown editor for notes + uploads field + upload mutation + Textile conversion. |
| src/components/form/RedmineMdEditorField.tsx | New Markdown editor field with toolbar, preview/fullscreen, paste image upload, and URL transforms. |
| src/api/redmine/types.ts | Adds attachment/upload-related API types and extends issue types. |
| src/api/redmine/RedmineApiClient.ts | Adds attachment upload/remove methods and text-format detection; includes attachments in issue fetch. |
| package.json | Adds @uiw/react-md-editor and react-reverse-portal dependencies. |
| pnpm-lock.yaml | Locks new dependencies and their transitive tree. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.