From 2338a07bab9bc6c63d7a605a19cf1a8a351640e8 Mon Sep 17 00:00:00 2001 From: timmy Date: Sun, 16 Aug 2026 05:33:34 +0000 Subject: [PATCH] feat: capture photo evidence in conversation replies (Closes #941) --- frontend/dashboard.css | 2 ++ frontend/dashboard.js | 3 +++ frontend/index.html | 18 ++++++++----- frontend/service-worker.js | 2 +- tests/test_comment_next.py | 2 +- tests/test_issue_attachment_ui.py | 32 +++++++++++++++++++---- tests/test_later_sync.py | 2 +- tests/test_markdown_renderer.py | 2 +- tests/test_mobile_composer_integration.py | 2 +- tests/test_mobile_device_setup.py | 2 +- tests/test_mobile_start_day.py | 2 +- tests/test_plan_today.py | 2 +- tests/test_service_worker.py | 22 ++++++++-------- tests/test_today_readiness.py | 2 +- tests/test_today_sync.py | 2 +- 15 files changed, 65 insertions(+), 32 deletions(-) diff --git a/frontend/dashboard.css b/frontend/dashboard.css index 68a9421..8a31c6c 100644 --- a/frontend/dashboard.css +++ b/frontend/dashboard.css @@ -528,6 +528,8 @@ textarea { resize: vertical; min-height: 120px; } .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; } .issue-attachment-controls { display:flex; max-width:100%; } .issue-attachment-trigger { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border:1px solid #60a5fa; border-radius:10px; color:#dbeafe; font-weight:700; cursor:pointer; } +.conversation-photo-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; min-width:0; width:100%; } +.conversation-photo-actions .issue-attachment-trigger { box-sizing:border-box; width:100%; min-width:0; text-align:center; } .issue-attachment-preview { display:grid; grid-template-columns:64px minmax(0,1fr); gap:8px 12px; align-items:center; max-width:100%; overflow:hidden; padding:10px; border:1px solid #315781; border-radius:10px; background:#101f34; } .issue-attachment-preview[hidden] { display:none; } .issue-attachment-preview img { grid-row:span 2; width:64px; height:64px; object-fit:cover; border-radius:8px; } diff --git a/frontend/dashboard.js b/frontend/dashboard.js index c9670b3..db12b5a 100644 --- a/frontend/dashboard.js +++ b/frontend/dashboard.js @@ -496,6 +496,7 @@ }); const issueAttachmentController = issueAttachment.mount({ input: qs('#issue-attachment'), + inputs: [qs('#take-issue-comment-photo'), qs('#issue-attachment')], preview: qs('#issue-attachment-preview'), image: qs('#issue-attachment-image'), meta: qs('#issue-attachment-meta'), @@ -526,6 +527,7 @@ }); const pullAttachmentController = issueAttachment.mount({ input: qs('#pull-attachment'), + inputs: [qs('#take-pull-comment-photo'), qs('#pull-attachment')], preview: qs('#pull-attachment-preview'), image: qs('#pull-attachment-image'), meta: qs('#pull-attachment-meta'), @@ -547,6 +549,7 @@ }); const updateReplyAttachmentController = issueAttachment.mount({ input: qs('#update-reply-attachment'), + inputs: [qs('#take-update-reply-photo'), qs('#update-reply-attachment')], preview: qs('#update-reply-attachment-preview'), image: qs('#update-reply-attachment-image'), meta: qs('#update-reply-attachment-meta'), diff --git a/frontend/index.html b/frontend/index.html index 5821b79..16473e7 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -661,9 +661,11 @@
-
+
+ + + -