Respond to github message - #2064
Conversation
This commit introduces the ability to upload images directly into markdown files. It also includes enhancements to the editor, such as improved selection handling and text insertion. Co-authored-by: amirbiron <amirbiron@gmail.com>
Cursor Agent can help with this pull request. Just |
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
⏱️ Performance report(No performance test durations collected. Mark tests with |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: amirbiron <amirbiron@gmail.com>
📖 Documentation PreviewThe documentation has been built successfully!
To view locally:
|
Uh oh!
There was an error while loading. Please reload this page.
✨ תיאור קצר
📦 שינויים עיקריים
פירוט נקודות:
webapp/static/js/editor-manager.js:captureSelection,restoreSelectionו-insertTextAtCursorלשמירת מיקום הסמן בעת מעבר בין עורכים (פשוט ו-CodeMirror).webapp/templates/edit_file.html:.mdאו בחירת שפה).webapp/app.py:edit_file_pageעודכנה לקבל ולטפל בתמונות המצורפות לקובצי Markdown._save_markdown_imagesלשמירת התמונות המשויכות לגרסה החדשה של קובץ ה-Markdown.🧪 בדיקות
md_images.🧪 בדיקות נדרשות ב‑PR
📝 סוג שינוי
✅ צ'קליסט
🧩 השפעות/סיכונים
🔗 קישורים
🧯 סיכון / החזרה לאחור (Rollback)
Note
Adds Markdown image attachments with UI and server save, preserves cursor on editor/preview toggles, and syncs theme-wizard preference to user settings.
md_imageson edit/upload (/edit/<id>), validate type/size/count, persist via_save_markdown_images, and serve viaGET /file/<id>/images/<image_id>.view_filepayload./api/ui_prefsto storeui_prefs.theme_wizard_seen; exposetheme_wizard_seenin template globals.static/js/editor-manager.js): AddcaptureSelection/restoreSelectionandinsertTextAtCursor; keep cursor/selection when switching simple↔CodeMirror and improve paste.static/js/live-preview.js): Refine mode eligibility (lang vs. extension), preserve caret state on enable/disable, and minor UX tweaks.templates/edit_file.html): Add Markdown image picker/preview/remove/fullscreen, status/errors, and form integration (multi-file); show trigger only for.md/Markdown.templates/base.html): Persist wizard seen-state locally and via/api/ui_prefs; make welcome ack robust.Written by Cursor Bugbot for commit 706021b. This will update automatically on new commits. Configure here.