Skip to content

feat(github): review pull requests with inline comments - #525

Merged
nixuuu merged 1 commit into
feat/github-5-commentsfrom
feat/github-6-review
Nov 11, 2026
Merged

nixuuu merged 1 commit into
feat/github-5-commentsfrom
feat/github-6-review

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Implements stage 6 of the accepted GitHub integration: users can select LEFT/RIGHT diff lines and ranges, post a single inline comment or collect a pending review, then submit Comment, Approve or Request changes with a summary. Review conversations support resolve/unresolve and editing/deleting the user's own comments on web/desktop and native mobile.

Rebase update (2026-11-11): the complete stack was rebased bottom-up onto origin/dev 48cd5e9c3ce07b7a46873ac40d92819ca847f85a, preserving #522, #526 and #527. This layer's current CI is green; implementation layers passed typecheck, lint and formatting after conflict resolution. The migration maximum at this layer is 0118; this supersedes historical numbering below. Proto generation was repeated in each affected layer (worker git-context fields use 227, preserving dev's file API fields). Final cross-stack security, parity, performance and verification evidence is in #534. Earlier results below describe the pre-rebase implementation. All layers remain draft; native device UI remains unverified.

  • Reuses stage 5's owner-scoped preflight, durable receipts, audit, confirmation and uncertain/no-replay behavior. The gateway verifies original diff/SHA anchors, the selected account, review/thread ownership and fresh GitHub rights; workers and bots cannot mutate reviews.
  • Pending comments are paginated and checked against fresh page digests and head SHA before submit/discard. Other-device changes require refresh; outdated comments require acknowledgment. The PR author sees why only Comment is available.
  • Adds additive generated contracts and the narrow github_pr_review_v1 capability. Migration 0119_github_reviews.sql follows stage 5's 0118; diagnostics reserves 0117. Recheck numbering before merging the whole stack.
  • Keeps the Code diff open across unchanged refreshes, reserves the Viewed icon slot, removes repeated Viewed text, and uses an auto-growing composer without a native resize grip.

Validation: dependency install, generated-contract check, monorepo typecheck, lint, formatting and web build pass. Focused local GitHub-fixture integration files pass individually: review 6 tests/77 assertions, security 5/39, mobile 1/15, linked 1/12. The full fresh-process check:tmp ran once and passed: 2267 pass, 165 skip, 0 fail, 27016 assertions across 419 files, with no test-owned temporary entries left (tools' runtime cache entries are excluded by the checker). No live GitHub integration API was used.

Manual browser checks completed using only the local fixture: desktop, narrow and phone widths; light/dark; exact LEFT/RIGHT range endpoints in unified/split views; all verdicts; pending edits/deletion/discard; push refusal/outdated acknowledgment; author restrictions; conversation resolution; other-device changes; 55-comment pagination; rejected submission with retained summary; and lost-response uncertainty without replay. Browser JavaScript errors were empty. Screenshots are kept outside the repository in /var/tmp/canopy-github-6/. Phone verification used browser viewport emulation; native device UI was not exercised.

Mobile: Expo Doctor passes 20/20, CNG prebuild succeeds, and both iOS/Android JS/Hermes exports succeed. Production fingerprints are unchanged: iOS 6ddec9ef559ee0095ac33e94ff9418a942053b17, Android 5f6eae3ab278f1cd543e9ed763f923a319b65ec9. Supplemental Expo ESLint for all new review files passes. The app-wide Expo ESLint command still reports 41 existing errors and 7 warnings in older files; the touched shared usePages.ts findings were reproduced from the parent branch. Root repository lint passes.

Copy audit (§8): repeated “Viewed” labels → accessible checkbox label/tooltip, because the toolbar already supplies the count; “Changed since you viewed” as a second line → icon with tooltip, to keep rows aligned. New actions use explicit verbs (“Add to review”, “Submit review”, “Resolve conversation”); refusal text explains the next action. Account/repository/PR/SHA appear at the mutation boundary. No new glossary terms or decorative slogans. Short, typical and long fixture content checked at desktop and phone widths.

CI is green on this head and every preceding implementation layer (#487, #501, #508, #518, #523); the stage 5 updater rerun passed. No review decision has been recorded.

Related: #485, #523. Linked in stack #488, on top of #523. This PR stays draft until the complete nine-stage stack is verified.

@nixuuu
nixuuu force-pushed the feat/github-6-review branch from 1e2307a to 4e532f7 Compare November 10, 2026 23:41
@nixuuu
nixuuu marked this pull request as ready for review November 11, 2026 00:57
@nixuuu
nixuuu merged commit a617e89 into dev Nov 11, 2026
11 checks passed
@nixuuu
nixuuu deleted the feat/github-6-review branch November 11, 2026 00:59
nixuuu added a commit that referenced this pull request Nov 11, 2026
Stage 7 of the GitHub stack: create a pull request from the thread’s
published branch and manage its lifecycle from web/desktop and mobile.

**Rebase update (2026-11-11):** the complete stack was rebased bottom-up
onto `origin/dev` `48cd5e9c3ce07b7a46873ac40d92819ca847f85a`, preserving
#522, #526 and #527. This layer's current CI is green; implementation
layers passed typecheck, lint and formatting after conflict resolution.
The migration maximum at this layer is **0119**; this supersedes
historical numbering below. Proto generation was repeated in each
affected layer (worker git-context fields use 227, preserving dev's file
API fields). Final cross-stack security, parity, performance and
verification evidence is in #534. Earlier results below describe the
pre-rebase implementation. All layers remain draft; native device UI
remains unverified.

The agent drafts only an editable title and Markdown description. Every
GitHub mutation requires an explicit user action, fresh
owner/account/permission checks and a 60-second confirmation bound to
head/base SHA and exact parameters. Workers and bots cannot invoke these
mutation RPCs.

- Create with base/account selection, draft and fork consent. Durable
upstream proof reconciles the local link after a crash without replaying
create or restoring a tombstone. A rejected duplicate can suggest a
verified existing PR for a separate manual link.
- Ready/draft, repository merge methods with editable squash text,
required merge queues, auto-merge, merge/rebase branch updates and
close/reopen. Accepted queue/update/auto-merge requests are
distinguished from merged PRs.
- Additive contracts and generated clients, capability negotiation and
migration 0120. Recheck numbering before merging the stack: the base
ends at 0119 and another branch has diagnostics migration work.
- Stage 6 polish: readable line ranges and SHA tooltip, shorter
pending-comment form, segmented review verdict and removal of extra diff
top padding.

The review polish compacts the create target into
account/repository/head/base with an inline base picker;
account/repository pickers appear only for multiple choices. “Draft with
agent” starts one explicit thread turn and fills the title/body fields
directly. Only the matching completed answer is imported; extra model
fields are discarded and a lost response is never retried. Create and
comments share a Markdown editor with preview and an auto-growing field.
Create actions stay in a sticky footer with a quiet Cancel.

Merge confirmation uses a short SHA with full-value details,
allowed-method segments, editable squash fields, a filled primary action
and a stable countdown. Changing a method or commit text invalidates
confirmation; expiry requires a fresh preflight and another explicit
confirmation. Blockers use compact reason labels with complete details
and collapse beyond two; disabled Merge exposes the summary. Auto-merge
is a small status chip with its off action in the overflow menu. Native
mobile uses the same flow and copy.

Validation: install, gen:check, full typecheck, oxlint, format:check and
web build passed. The new gRPC agent-draft fixture passed 3 tests / 13
assertions, covering matching-turn output, malformed/interrupted
answers, ignored model action/account fields, request-ID deduplication
and lost-send refusal without replay. Existing lifecycle/create coverage
includes binding/expiry, account/push changes, queue/protection/methods,
fork permissions, create/link crash+tombstone, durable
accepted/uncertain receipts and worker/bot denial.

Final `bun run check:tmp` passed in a fresh process on frozen code: 2282
pass, 165 skip, 0 fail, 27491 assertions across 422 files. No managed
files remained in the test temp directory. CI state is reported
separately for the pushed head; the PR remains a draft.

Browser QA used only the local injected GitHub fixture. The review
screenshots were replaced for phone-light create with a direct agent
draft, desktop-dark squash confirmation and narrow-dark blockers.
Additional phone-dark blockers, expanded blockers, phone-light squash,
desktop-light confirmation and desktop-dark create/edit/preview
screenshots were captured. Markdown preview retains escaping; fields
have no resize grip; changing merge methods clears preflight; blocker
details and auto-merge overflow were checked. Screenshots remain outside
the repository.

Mobile typecheck and changed-file ESLint passed. EAS CLI 27.4.1
production fingerprints were regenerated and are unchanged: iOS
`6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. Earlier stage validation
passed Expo Doctor (20/20), CNG prebuild and both native exports. Full
Expo lint has 41 pre-existing errors and 7 warnings outside changed
files. Native device UI remains unverified because no usable iOS/Android
device host is available. No live GitHub tests were run.

Copy audit (§8): “Use an agent draft” plus a separate paste flow → one
“Draft with agent” action that fills editable fields; this removes
duplicate instructions. Long blocker sentences → “Merging blocked” with
short reason labels and complete details on demand; no unavailable
review/check counts are invented. “Auto-merge: Merge commit · account” →
“Auto-merge on”, with method/account in details. Long expiry
instructions → “Confirm within 60 s” with a fixed-width countdown.
“Check requirements” still precedes the specific final mutation verb.
English sentence-case copy, existing glossary, explicit error next
actions, no colour-only cues; checked with typical and long text at
desktop, narrow and phone widths. Earlier range/pending-review copy
audit remains satisfied.

Related: #485
Related: #525
nixuuu added a commit that referenced this pull request Nov 11, 2026
Stage 9 adds explicit GitHub Actions controls to pull request checks and
job/log views on web/desktop and mobile: re-run failed jobs, one job
(including dependent jobs), the whole workflow run, and cancel with
confirmation. The dialog identifies repository/PR, run, attempt and SHA
and explains deployment effects. External CI and missing App/user
permissions disable controls with a reason. There is no workflow
dispatch, debug logging or force-cancel.

All writes reuse fresh preflight inside the shared mutation queue,
durable client-bound receipts, owner scoping, structural audit and
uncertainty without replay. An Actions 201/202 means **accepted**, while
stage 4 watch/polling supplies queued/in-progress/completed states. No
network response is treated as workflow completion. Linked CI
prepare/write requires `github_pr_write_v1` at both ends; only the home
stores the receipt and holds credentials.

Successful empty responses are accepted only for POST to the three fixed
rerun endpoints with 201, or cancel with 202. The local fixture now
sends both null and zero-length bodies. An unexpected empty 200 remains
uncertain, and repeating its request ID never replays the write.

The reviewer picker now has one pre-checked list. Apply computes
removals and additions with separate receipts and verification between
writes; uncertainty stops the diff. Re-request is a separate icon on
completed reviews in Summary and picker rows. Search placeholders match
each picker; teams use the team icon.

`docs/github.md` and API/mobile/architecture docs describe the
implemented v1 and its limits, available after the whole stack merges.
The jobs API exposes no DAG: dependent-job semantics are explained
without fabricating edges. Fine-grained PAT permissions cannot be fully
introspected; upstream refusal becomes an explicit receipt.

Rebased bottom-up onto `origin/dev`
**48cd5e9c3ce07b7a46873ac40d92819ca847f85a**, preserving #522/#526/#527,
including feed/message optimizations, clone behavior and linked
workspace-copy scope. No merge of dev into stage 9. All conflicted
layers received typecheck/lint/format; affected proto layers were
regenerated in their originating commits. All pushes used
force-with-lease. The verified chain is #485 → #487 → #501 → #508 → #518
→ #523 → #525 → #528 → #532 → #534; every PR remains draft. Stack:
Stack #488.

Dev's highest migration is 0112. Unapplied stack migrations are now
**0113 accounts, 0114 PR links, 0115 detection, 0116 full read, 0117
mutations, 0118 reviews, 0119 lifecycle**, with the schema
registry/tests updated in the originating layers. Stage 9 adds no
migration. Diagnostics 0117 is still in flight: renumber affected stack
migrations again if it lands first. Worker git-context fields use
additive number 227, preserving dev file API 222–226. Frozen update/v1
is unchanged.

One dialog host per run survives job-row refresh/reordering and retains
the selected job identity after acceptance. Mobile log actions wait for
the existing native overlay dismissal callback before opening that
shared confirmation. Explicit page refresh waits for an expired Summary,
including between reviewer diff writes and before receipt inspection.

Validation (draft):

- **All ten PRs have green CI, including final #534 head
`04c09aa4bf17307ce25b9377638a1c8ae13f9710`** (all four test shards,
static checks, web/binaries and aggregate gate). Every PR remains draft;
no review decision is recorded. Final-head CI passed without a retry.
- `bun install`, generated-code check, full typecheck (Svelte zero
errors/warnings), lint, formatting and web build passed. Dialog/refresh
changes: **28 fixture integration tests, 234 assertions, zero
failures**. Final empty-response/security/linked/pinned-mobile/account
integration: **35 tests, 300 assertions, zero failures**. Includes real
gRPC and client-bound receipts, not only HTTP mocks.
- Final fresh-process `check:tmp` on
**04c09aa4bf17307ce25b9377638a1c8ae13f9710** passed: **2,351 pass, 165
skip, 0 fail; 28,245 assertions across 437 files**, exit 0 in 1,340.14
seconds. No source changes occurred during this run; the temp-directory
check reported nothing left. No production GitHub feature API or live
provider tests were used.
- Mobile: Expo Doctor 20/20; changed GitHub files pass Expo ESLint and
full mobile typecheck. Production Hermes exports pass on iOS and
Android. EAS CLI **27.4.1**, production profile, unchanged fingerprints:
iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. Full Expo lint has 40
pre-existing errors/5 warnings outside this change.
- Native device QA is blocked: device discovery on MacStudio twice
returned “Device list failed: Could not communicate with device support.
Try refreshing devices.” Local iOS/Android runtimes are unavailable.
Pinned transport coverage is distinct from native UI interaction.

Security and linked routing review:

| Mutation RPCs | Owner/binding/preflight | Linked capability and
destination |
| --- | --- | --- |
| BeginGitHubDeviceAuth, GetGitHubDeviceAuth, CancelGitHubDeviceAuth |
Owner/home/client-bound attempt, TTL, one durable poller |
`github_accounts_v1`, explicit home, direct only |
| UseGitHubPat, DisconnectGitHubAccount | Owned connector/account;
immediate revocation and cache invalidation | `github_accounts_v1`,
account home, credentials never forwarded |
| GetGitHubUpdateAccount, SetGitHubUpdateAccount | Owner preference and
owned selected account; both RPCs are linked-capable |
`github_accounts_v1`, explicit home, no relay |
| SetGitHubRepositoryAccount | Owner account/repo identity/install or
explicit PAT, expected mapping revision | `github_pr_v1`,
repository/account home |
| LinkThreadPullRequest, UnlinkThreadPullRequest | Owner thread/PR,
verified identity, revision/tombstone | `github_pr_v1`, thread home |
| PreparePullRequestContext, GetPullRequestCreateContext,
PreparePullRequestDraftContext | Owner thread/PR/account/current SHA/git
context; bounded untrusted attachment, no upstream write/model
publication | PR read or lifecycle capability as applicable, thread home
|
| PreparePullRequestMutation, GetPullRequestMutation | Owner PR/account
and authenticated browser/device/peer; fingerprint/TTL; receipt lookup
binds client | comments capability for shared receipt; CI prepare
additionally requires full write; qualified PR/account/confirmation IDs
route home |
| CreatePullRequestComment, ReplyPullRequestReviewThread,
UpdatePullRequestComment, DeletePullRequestComment,
SetPullRequestFileViewed | Shared
owner/account/access/mapping/head/state preflight; comment ownership,
PR-bound thread or file; delete confirmation | `github_pr_comments_v1`;
home only, no offline queue |
| AddPullRequestReviewComment, SubmitPullRequestReview,
DiscardPullRequestReview, SetPullRequestReviewThreadResolved | Shared
preflight plus complete pending-review digest, anchor/SHA and upstream
viewer permissions; discard confirmation | `github_pr_review_v1`; home
only, private review DTOs |
| CreatePullRequest | Owner thread, current git context and
repository/account; client receipt, confirmation, head/base; uncertain
reconciliation only reads | `github_pr_lifecycle_v1`; thread home |
| SetPullRequestDraft, MergePullRequest, SetPullRequestQueue,
SetPullRequestAutoMerge, UpdatePullRequestBranch, SetPullRequestOpen |
Shared preflight plus lifecycle rights, branch/head/base/method/rules
and confirmation | `github_pr_lifecycle_v1`; PR home |
| UpdatePullRequestDetails, RequestPullRequestReviewers,
SetPullRequestAssignees, SetPullRequestLabels | Shared preflight plus
current metadata revision; user/team/repo/label ownership; Issues write
where needed | `github_pr_metadata_v1`; PR home |
| RerunPullRequestChecks, CancelPullRequestCheckRun | Shared preflight
plus fresh run/job/repo/PR/SHA/attempt and Actions write/user push;
client-bound cancel confirmation | `github_pr_write_v1`; PR home;
numeric run/job IDs stay upstream IDs |

All mutation handlers deny worker/bot credentials. Writes never use
`authorized()` retry; a response loss or abandoned in-flight intent
becomes uncertain. Direct-link sender and receiver enforce negotiated
capabilities. Relays advertise read-only GitHub capability, so writes
fail closed; no offline mutation queue. Credentials and receipts remain
at the home. Qualified object IDs are translated at link boundaries;
numeric GitHub IDs stay upstream IDs. Reviewed UI handlers, client
binding/preflight, routed-home dispatcher, remote policy/IDs, receiver
and relay policy. Integration covers foreign owner/run/job/attempt/SHA,
stale account/mapping/head, confirmation, old/offline link capabilities,
fixed endpoint allowlist and secret-free structural audit. Actions write
and Checks read are separate.

Whole-stack action parity matrix:

**W/D** = web/shared desktop renderer implementation and browser
evidence in the named stage PR; no fresh packaged Electron run claimed.
**M** = mobile implementation plus pinned transport/security integration
where applicable. **B9** = fixture browser QA during this stage,
including after rebase. Prior-stage browser evidence is historical, not
a claim that every action was rerun post-rebase. Phone-width web is not
native mobile.

| Actions | Web / desktop renderer | Mobile implementation / transport |
Browser evidence |
| --- | --- | --- | --- |
| Connect, Copy code, Open GitHub, cancel device flow, reconnect | W/D
#487 | M, client binding | Historical #487 |
| Explicit PAT fallback, disconnect,
installation/repository/update-account selection | W/D #487 | M, owned
accounts/preferences | Historical #487 |
| Link URL, choose repository account, unlink, history/relink | W/D #501
| M, thread/owner/revision | Historical #501 |
| Branch/fork detection, refresh, dismiss/tombstone, old/linked worker |
W/D #508 | M, negotiation | Historical #508 |
| Summary, expand description/people/labels, copy checkout, open GitHub
| W/D #501/#518 | M, bounded read DTOs | B9 long title/branch/labels |
| Timeline pagination, review threads, refresh, Code unified/split,
file/hunk navigation | W/D #518 | M, pagination/security | Historical
#518 |
| Expand checks/jobs, View logs, log pagination/truncated/unavailable,
external provider | W/D #518 | M, bounded logs | B9 jobs/logs |
| Ask a question, Explain this PR, Fix findings; attach context and
explicitly send | W/D #518 | M, attachment/turn transport | Historical
#518 |
| Post general comment, reply, edit own comment, confirmed delete | W/D
#523 | M, receipts/security | Historical #523 |
| Mark/unmark Viewed | W/D #523 | M, file/SHA binding | Historical #523
|
| Inline LEFT/RIGHT/multiline; add pending comment | W/D #525 | M,
blob/anchor/digest | Historical #525 |
| Submit Comment/Approve/Request changes, discard pending review | W/D
#525 | M, each verdict/confirmation | Historical #525 |
| Resolve/unresolve; edit/delete own review comment | W/D #525 | M,
viewer/ownership | Historical #525 |
| Create, Draft with agent, review draft, explicit publish, existing PR
suggestion | W/D #528 | M, git/context/receipt | Historical #528 |
| Ready for review / Convert to draft | W/D #528 | M, lifecycle
preflight | Historical #528 |
| Merge/Squash/Rebase; join/leave queue; enable/disable auto-merge | W/D
#528 | M, rules/head/method | Historical #528 |
| Update branch; confirmed close / explicit reopen | W/D #528 | M,
lifecycle confirmation | Historical #528 |
| Edit title / description | W/D #532 | M, revision/receipt | Historical
#532 |
| Request/remove user/team with one checked diff; Summary/picker
re-request | W/D | M, diff/uncertain integration | B9 desktop
light/phone dark, prechecks, user→team diff, Summary re-request |
| Set/remove assignees and existing labels; per-picker search | W/D #532
| M, Issues/owned choices | Historical #532; B9 copy/layout |
| Re-run failed/all/single job and dependents | W/D | M, shared
controller + pinned iOS/Android RPC | B9 confirmation, single write,
accepted, queued/running |
| Cancel, Keep run, confirmed cancellation; inspect accepted/uncertain
without replay | W/D | M, client confirmation/restart | B9 Keep run
sends nothing; confirm produces accepted receipt |
| External-CI/missing-permission disabled reasons; stale/offline
controls | W/D | M, accessible hints/security | B9 external
tooltip/permissions; transport failures covered |

**Native gap applies to every row:** unavailable runtimes prevent native
interaction/visual/p95 verification. Hermes export, RPC integration and
phone-width screenshots do not close that gap. No claim of complete
native parity QA or merge readiness.

Performance vs dev `48cd5e9c`, Ryzen 5 5600X (6 cores/12 threads), Bun
1.4.4. Final-head serial real UI gRPC fixture measurements: **two runs ×
250 samples per side**, 5 warmups each, 20 seeded turns; order dev/head
then head/dev, with local browser/servers/exports/tests stopped. The
table pools 500 observations per side; dispatch ends when both the send
RPC and worker startTurn delivery complete, ACK waits for durable
EventAck. No providers/production GitHub. Earlier degraded runs
pair/close a peer and await one failed GitHub watch attempt before
timing; not a sustained active-watch benchmark.

| Existing operation, p95 ms | dev | candidate |
| --- | ---: | ---: |
| Overview RPC | 2.188 | 2.186 |
| Thread RPC | 1.018 | 1.020 |
| Send RPC + worker startTurn | 8.964 | 8.097 |
| Durable-event ACK | 4.265 | 4.410 |
| Browser long-thread delta (1,000 turns / 5,005 rows) | 2.3 | 1.9 |
| Decode + reducer / 200 deltas, Bun proxy | 14.742 | 14.777 |
| Mobile visible slice, Bun proxy | 1.323 | 1.353 |
| Markdown, Bun proxy | 4.811 | 6.129 |

Browser: 297 DOM nodes both sides, zero gaps/long frames, scroll average
16.67 ms/max 16.8 ms. Preserving #522 corrected the pre-rebase renderer
p95/gap regression. Client-JS dataset: 1,000 turns, 7,099 items,
14,085,915 serialized bytes; 999/1,000 unchanged groups retained on both
sides.

**No-regression gate is not proven.** Final RPC p95 run ranges
dev/candidate: dispatch 8.125–9.319 / 7.395–8.419 ms; ACK 4.237–4.299 /
4.165–4.925 ms. Pooled ACK increased 0.145 ms (median 3.384/3.404 ms);
Thread increased 0.003 ms. These are descriptive results, not confidence
intervals. Final client-JS repeat improved grouping (1.961/1.277 ms),
typical turn (0.0369/0.0280 ms) and 5,000 siblings (3.308/3.299 ms), but
unchanged-feed p95 (0.893/1.263 ms), markdown (table), new-array cache
(30.008/32.702 ms) and cold cache (22.711/24.844 ms) were higher.
Cache/sibling metrics have only ten samples (p95 is their maximum);
other JS metrics use thirty. Feed/cache source is identical to dev, but
that does not establish measured parity. Earlier pairs varied
substantially, including markdown 7.128/7.057 ms. No native Hermes
timing, cold native TTI or 30-minute soak. These remain explicit wrap-up
limitations.

Screenshots are local/uncommitted under `/var/tmp/canopy-github-9/`:
desktop light checks/re-run-failed/accepted/queued/cancel, desktop dark
running jobs/job confirmation, narrow dark checks, phone light
logs/re-run-failed/cancel, phone dark job confirmation/accepted/queued,
reviewer picker/diff. Final examples:
`phone-dark-job-accepted-empty-response-final.png`,
`phone-dark-queued-final.png`,
`narrow-dark-rerun-all-confirm-final.png`,
`desktop-light-cancel-accepted-final.png`,
`phone-light-permissions-tooltip-final.png`,
`desktop-light-external-tooltip-final.png`,
`desktop-light-reviewers-final.png`,
`phone-dark-reviewers-after-diff-final.png`,
`phone-dark-reviewer-picker-final.png`. Light/dark,
desktop/narrow/phone, long repository/branch/reviewer/label text
checked. Native gap remains. Browser QA exercised all four CI endpoints;
Keep run sent no write. After the HTTP contract fix, single-job
acceptance was retested with an empty 201 body. Owned servers and
browser tabs were closed after QA.

Copy audit (§8): Request/Re-request/Remove modes → one checked selection
plus explicit Re-request review; makes current requests visible. Search
people, teams or labels → per-picker Search people or teams / Search
labels / Search people. Team badge → accessible team icon. Re-run/cancel
copy names dependent-job/deployment/whole-run effects; acceptance says
waiting for GitHub. English sentence case, direct verbs and existing
glossary; no repeated warnings or personality metaphors.
Error/stale/offline/empty/uncertain states give a next action without
promising retry/success. Text/icons supplement color. One tooltip host;
compact overlays and long names remain readable at checked
widths/themes.

Related: #485, #532

Draft stage 9 of 9. Keep all layers draft. The maintainer merges the
complete stack together; native QA and p95 uncertainty above remain
open.
nixuuu added a commit that referenced this pull request Nov 26, 2026
## What changed

- Make mobile PR diffs easier to scan with shorter rows, aligned old and
new line numbers, and full-width change backgrounds. Give filenames
their own line above the directory.
- Wrap stacked PR diffs in Automatic mode and preserve saved On and Off
choices.
- Use **Comment on a line** to enlarge line-number touch targets during
selection. Tapping a number picks the original GitHub line and side,
including when extending a range.

Fixes: #525

## Verification

- Mobile typecheck passed on the rebased branch. Scoped lint and
formatting passed on the edited files.
- Checked the #1287 patch for original old and new line numbers and a
multi-line comment range.
- Native layout and gestures still need a device check. The device tool
could not allocate an emulator. The full verification gate runs in CI.

## Copy audit

- **Wrap** → **Wrap lines** names the action. The **Wrap diffs**
description explains when **Automatic** wraps code.
- **Add comment on LEFT/RIGHT line** → **Comment on old/new line** names
the two versions for screen readers. **Comment on a line** and **Stop
selecting lines** label entry and exit from line selection.
- Reviewed filename wrapping and directory truncation in source. Item 9
still needs a native check at narrow widths with long paths and scaled
text because the emulator was unavailable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant