From ed662c3a3a8add946f9814dff538bb17cda41610 Mon Sep 17 00:00:00 2001 From: timmy Date: Tue, 25 Aug 2026 06:08:22 +0000 Subject: [PATCH] feat: apply mobile review suggestions (Closes #1382) --- frontend/dashboard.css | 9 ++ frontend/index.html | 18 ++- frontend/pull-sheet.js | 93 ++++++++++++++++ src/gitea_proxy.py | 17 +++ ..._mobile_apply_review_suggestion_release.py | 103 ++++++++++++++++++ tests/test_pull_api.py | 28 +++++ 6 files changed, 267 insertions(+), 1 deletion(-) create mode 100644 tests/e2e/test_mobile_apply_review_suggestion_release.py diff --git a/frontend/dashboard.css b/frontend/dashboard.css index 0dd7ffd..73a6c09 100644 --- a/frontend/dashboard.css +++ b/frontend/dashboard.css @@ -765,6 +765,15 @@ textarea { resize: vertical; min-height: 120px; } .review-feedback { display:grid; gap:8px; } .review-feedback label { display:grid; gap:6px; } .review-feedback select { min-height:44px; padding:8px; border-radius:8px; border:1px solid #1f3a5f; background:#0b1526; color:#e5e7eb; } +.pull-feedback-code-actions, .pull-feedback-file-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } +.pull-feedback-code-actions button, .pull-feedback-file-actions button { min-height:44px; } +.pull-feedback-suggestion-preview { min-width:0; display:grid; gap:10px; margin:10px 0; padding:10px; border:1px solid #31577f; border-radius:10px; background:#07101e; } +.pull-feedback-suggestion-preview[hidden] { display:none; } +.pull-feedback-suggestion-preview h5 { margin:0; } +.pull-feedback-suggestion-change { display:grid; gap:8px; min-width:0; } +.pull-feedback-suggestion-change > div { min-width:0; } +.pull-feedback-suggestion-change pre { box-sizing:border-box; max-width:100%; max-height:160px; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; } +.pull-feedback-suggestion-preview input { box-sizing:border-box; width:100%; min-height:44px; } .review-handoff { position:sticky; bottom:0; z-index:3; display:grid; gap:8px; padding:10px 4px; padding-bottom:calc(10px + env(safe-area-inset-bottom)); background:rgba(11,21,38,.98); border-top:1px solid #2a496e; } .review-handoff button { min-height:44px; } .review-handoff-link { min-height:44px; display:flex; align-items:center; justify-content:center; border:1px solid #60a5fa; border-radius:8px; color:#bfdbfe; font-weight:700; text-decoration:none; } diff --git a/frontend/index.html b/frontend/index.html index 201e5ff..0ee2928 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1741,7 +1741,23 @@

- +
+ + +
+