Repository navigation
improve: qualify native diagrams in screenshot scenes - #185676
Conversation
Seed the existing native screenshot chat fixtures with the same synthetic release flowchart. Wait for the production renderer image before capturing, retaining existing fixture text and screenshot names. Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR adds matching diagrams to Android and iOS screenshot fixtures and waits for rendered diagram accessibility elements before capture. Example: Capture the native chat screenshot containing Draft → Review → Ship.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored draft adds useful native screenshot coverage for the linked renderer migration, and no definite introduced code defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherLocal screenshot fixtures supply synthetic chat messages to the native production renderers; Android ADB checks and iOS UI tests determine when store screenshots can be captured. flowchart LR
A[Synthetic chat fixtures] --> B[Native chat views]
B --> C[Production diagram renderer]
C --> D[Accessible rendered image]
D --> E[Screenshot readiness checks]
E --> F[Store screenshots]
Technical reviewBest possible solution: Keep diagram fixtures and successful-render waits in the existing screenshot owners, separate from the renderer replacement. Do we have a high-confidence way to reproduce the issue? This is a coverage improvement rather than a reported product malfunction; source inspection confirms that the original screenshot scenes lacked diagrams. Is this the best way to solve the issue? The diff is a small, complete extension of existing fixture and readiness owners, with no redundant renderer, wrapper, state, or test scaffolding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7861d6b56cd. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +12, Tests +1, Other +7. Total +20 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 4:34 AM ET / 08:34 UTC. |
Use the rendered Mermaid image description as phone chat readiness because the latest reply prose can be offscreen. Keep the scene-specific readiness owner and remove its redundant second image check. Co-authored-by: vincentkoc <[email protected]>
Dismiss the iOS keyboard through the transcript gutter and reject an accidentally opened diagram preview. Isolate the synthetic Android manifest Git command from ambient repository discovery. Co-authored-by: vincentkoc <[email protected]>
Locate the older fixture message through the lazy list before asserting visibility, matching the existing scale-transition scrolls. Keep the real chat and default/largest/default font-scale checks unchanged. Co-authored-by: vincentkoc <[email protected]>
Resolve the real screenshot test conflict with current main while retaining its removal of source-mirroring assertions. Preserve the behavioral rendered-image readiness regression and all current capture diagnostics tests. Co-authored-by: vincentkoc <[email protected]>
|
Merged via squash.
|
* test(native): capture Mermaid diagrams in store screenshots Seed the existing native screenshot chat fixtures with the same synthetic release flowchart. Wait for the production renderer image before capturing, retaining existing fixture text and screenshot names. Co-authored-by: vincentkoc <[email protected]> * fix(android): wait for visible screenshot diagram Use the rendered Mermaid image description as phone chat readiness because the latest reply prose can be offscreen. Keep the scene-specific readiness owner and remove its redundant second image check. Co-authored-by: vincentkoc <[email protected]> * test: keep native diagram captures in inline chat Dismiss the iOS keyboard through the transcript gutter and reject an accidentally opened diagram preview. Isolate the synthetic Android manifest Git command from ambient repository discovery. Co-authored-by: vincentkoc <[email protected]> * test(android): scroll lazy chat before measuring typography Locate the older fixture message through the lazy list before asserting visibility, matching the existing scale-transition scrolls. Keep the real chat and default/largest/default font-scale checks unchanged. Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Native store-screenshot fixtures do not include a diagram, so their captures cannot qualify a shared diagram-engine change.
User Impact
No production behavior changes. The existing Android and iOS screenshot scenes include the same synthetic Draft → Review → Ship diagram, and capture waits for the production renderer’s accessible diagram image rather than accepting source-only or loading output.
Why This Change Was Made
Keep fixture readiness separate from the renderer migration in #184482. Existing screenshot names, empty-chat behavior, and Apple Review demo are preserved. Requested by @vincentkoc.
Work sessions
Evidence
Matched native captures passed on Android, iPhone and iPad using product source
e1e020f9456bba59f00d2c87ceb3ac9815a8dd56(run 40481859539). Images and source-bound manifests are verified; the runtime PR gallery embeds the inspected comparison.The added diagram exposed an older typography test assumption: a lazy-list message was not composed yet. The consumer now scrolls through the owning lazy list before measuring it, retaining the displayed assertion and 1 → 1.4 → 1 checks. Red on both Play/ThirdParty; the complete class passes 19/19 on each variant. This test-only follow-up does not change the captured app or fixtures.
Android fixture runtime: 5 passed. The full-script readiness regression was red with the observed offscreen-prose timeout and green after selecting the rendered-image description; screenshot suite: 6 passed, one existing ImageMagick-dependent skip. The synthetic manifest Git boundary is isolated from ambient repository discovery.
iOS evidence consumers: 32 passed. Hosted qualification compiled the actual app and passed all four snapshot cases on both iPhone and iPad in the source-bound run above; this is native Swift/WebKit execution, not web-only or synthetic proof.
Focused ktlint, ShellCheck, Bash syntax, whitespace checks and independent P0–P3 review passed. Android/iOS diagram markdown matches byte-for-byte.
A synthetic ADB boundary probe rejected source-only output and waited for the accessible diagram image. This is harness proof, not a native screenshot.
Six-file fixture and consumer slice. Actual old Android before/after runs rendered the diagram but could not capture because the former prose marker was offscreen; readiness now selects the rendered image. Inspected old iPhone captures also revealed that a keyboard-dismissal tap accidentally opened the diagram preview. The tap now uses the transcript gutter, and capture rejects a preview and requires a hittable inline diagram.
iOS scene-ownership structural check passed; six unchanged Ruby-backed Fastlane cases could not execute locally because Ruby is unavailable. Hosted iPhone and iPad capture then compiled/executed the actual app, passed all four snapshot cases per family in one invocation, and produced source-verified inline images. The earlier full-screen images were rejected.
Previous-head PR CI (40497885113), head
60b0c25f38f997156d3688b6128bb65fd89e9d20: Android Play, Wear, ktlint, both native-access jobs, iOS screenshot capture/evidence, and the selected changed-Node/check lanes passed. Android ThirdParty job 122168571335 exceeded its 20-minute job deadline while Gradle was running unit tests. The log reports cancellation, not a failing test case, and test-report upload was skipped. Consequently the required CI gate failed. This cancellation is not passing coverage and has not been qualified as an inherited failure; no CI exception or rerun was used.Current-main conflict repair: resolved the actual screenshot-test conflict with fix(android): reduce store screenshot contention and retain diagnostics #186110 at main
228596060e33dfcddbb6740416f381daac6f84fe, keeping the retired source-mirroring assertions removed and preserving current diagnostics/build-order boundary coverage. The six-file candidate remains fixture/capture/test-only (+104/-7 against that base), with no renderer implementation change. Screenshot suite: 8 passed, one existing ImageMagick-dependent skip (1.28 s Vitest; 2.42 s launcher wall). The readiness regression fails against that current-main script (capture at source/loading dump 1) and passes with the candidate (rendered dump 3). Typed lint, format, Bash syntax, ShellCheck with its sourced helper, whitespace checks, and independent P0–P3 Auto Review passed. This is a real conflict repair, not a retry of the unqualified historical timeout; fresh current-head CI 40627265580, attempt 1, passed on78ff15a7abf75dcb468699ed11a15a8e02232bef. Android Play, ThirdParty, Wear, both native-access jobs, ktlint, iOS capture/evidence and the required Actions gate succeeded. The unselected full Android screenshot/release jobs remain skipped, not passing coverage; the existing inspected native before/after qualification remains linked above.