Attach screenshots to mobile issue comments #467

Closed
opened 2026-08-10 08:31:05 +00:00 by timmy · 0 comments
Owner

User problem

Mobile operators cannot attach a screenshot while commenting on an assigned issue. They must leave Stackchain, upload elsewhere, and return with a link, interrupting the core Today/My Work flow.

Scope

Add a bounded same-origin screenshot upload flow for assigned-issue comments: PNG/JPEG/WebP validation, removable mobile preview, authenticated proxy upload to the exact Gitea issue, then one comment containing the confirmed attachment URL. Preserve typed text on validation or upload failure and never submit the comment before upload succeeds.

Acceptance

  • At 390px width, the issue composer exposes a 44px attach control and removable preview without horizontal overflow.
  • PNG/JPEG/WebP screenshots within the documented size limit upload to the exact repository/issue and their confirmed URL is appended to one comment.
  • Unsupported or oversized files make zero upstream mutations, keep typed text, and show an actionable inline error.
  • Upload failures keep the complete draft and preview for retry; successful posting clears both.
  • Upload response data is normalized and untrusted filenames/URLs are rendered safely.
  • Focused backend/frontend behavioral tests and the full suite pass.

Evidence / non-duplication

frontend/index.html and frontend/dashboard.js currently provide text-only comments; src/main.py models comments as body-only. Searches across 236 historical issues, 227 PRs, and current main found no issue-comment attachment or screenshot-upload feature.

## User problem Mobile operators cannot attach a screenshot while commenting on an assigned issue. They must leave Stackchain, upload elsewhere, and return with a link, interrupting the core Today/My Work flow. ## Scope Add a bounded same-origin screenshot upload flow for assigned-issue comments: PNG/JPEG/WebP validation, removable mobile preview, authenticated proxy upload to the exact Gitea issue, then one comment containing the confirmed attachment URL. Preserve typed text on validation or upload failure and never submit the comment before upload succeeds. ## Acceptance - At 390px width, the issue composer exposes a 44px attach control and removable preview without horizontal overflow. - PNG/JPEG/WebP screenshots within the documented size limit upload to the exact repository/issue and their confirmed URL is appended to one comment. - Unsupported or oversized files make zero upstream mutations, keep typed text, and show an actionable inline error. - Upload failures keep the complete draft and preview for retry; successful posting clears both. - Upload response data is normalized and untrusted filenames/URLs are rendered safely. - Focused backend/frontend behavioral tests and the full suite pass. ## Evidence / non-duplication `frontend/index.html` and `frontend/dashboard.js` currently provide text-only comments; `src/main.py` models comments as body-only. Searches across 236 historical issues, 227 PRs, and current main found no issue-comment attachment or screenshot-upload feature.
timmy self-assigned this 2026-08-10 08:31:05 +00:00
timmy closed this issue 2026-08-10 08:57:09 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: stackchain/stackchain-dashboard#467
No description provided.