Investigate missing image upload button - #1940
Merged
amirbiron merged 3 commits intoDec 3, 2025
Merged
Conversation
Co-authored-by: amirbiron <amirbiron@gmail.com>
Contributor
Cursor Agent can help with this pull request. Just |
Contributor
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
Contributor
⏱️ 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>
amirbiron
marked this pull request as ready for review
December 3, 2025 10:05
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.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: amirbiron <amirbiron@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
✨ תיאור קצר
הכפתור להעלאת תמונות לא הופיע עקב קריאה לפונקציות JS לפני הגדרתן, מה שגרם לשגיאה בטעינה. תיקנתי את סדר הטעינה והוספתי את כל הלוגיקה הנדרשת לניהול תמונות בקבצי Markdown, כולל הצגה, ולידציה, תצוגה מקדימה ומחיקה.
📦 שינויים עיקריים
פירוט נקודות (רשימת תבליטים):
toggleImageTriggerVisibilityו־handleMarkdownImageFilesלפני הקריאה אליהן כדי למנוע שגיאות JS בטעינה..md).DataTransferלניהול קבצים ב־input.objectURLs בעת הסרה או לפני עזיבת הדף.🧪 בדיקות
🧪 בדיקות נדרשות ב‑PR
📝 סוג שינוי
✅ צ'קליסט
🧩 השפעות/סיכונים
🔗 קישורים
🧯 סיכון / החזרה לאחור (Rollback)
webapp/templates/upload.html.Note
Implements Markdown image attachment UX in
webapp/templates/upload.html, including visibility toggle, validation, previews, removal, fullscreen view, and safer file input syncing.webapp/templates/upload.html):#imageUploadTriggerbased on.mdfilename; disable#markdownImageInputwhen not.md.#markdownImageStatusand#markdownImageError; empty-state handling in#markdownImagesPreview.2MB), max6images, duplicate detection,humanFileSize.DataTransferwhen supported; clear input fallback.objectURLs on removal andbeforeunload.toggleImageTriggerVisibility,handleMarkdownImageFiles,reset/remove/sync/renderhelpers.supportsDataTransferdetection; additionalupdateMarkdownImageStatuscalls.Written by Cursor Bugbot for commit 9a37537. This will update automatically on new commits. Configure here.