Skip to content

Ask PRs that change the UI for screenshots or a recording - #17494

Merged
ryanrhughes merged 1 commit into
quattrofrom
screenshots-in-prs
Nov 3, 2026
Merged

ryanrhughes merged 1 commit into
quattrofrom
screenshots-in-prs

Conversation

@ryanrhughes

Copy link
Copy Markdown
Collaborator

What changes

PRs that change the UI now get asked for before/after screenshots, and a short recording when motion or interaction is part of the change. Reviewing a visual change from the diff alone is slow; seeing it takes seconds.

Omarchy had no PR template, so this adds one: What changes, Verification, Screenshots. It's modeled on what T3 Code asks for in theirs.

The new Check visual evidence workflow runs on PRs touching shell/, config/, themes/, applications/, install/*.packages, and the on-screen parts of default/ (themed templates, hypr, the menu, fonts, GTK, Plymouth, SDDM, Limine, i18n). It passes when the Screenshots section has an image, video, upload or link, or when the body has a No visible change: <reason> line. That line is taken at the author's word.

It's a nudge, not a gate. The check isn't required, so a red X never blocks a merge. Drafts and bot PRs are skipped, and editing the body re-runs it.

agents/skills/visual-verification.md gets one paragraph so agents put their captures in that section. gh pr create --body skips the template, so agents wouldn't see it otherwise.

Verification

Ran the check's script locally against sample PR bodies:

  • Untouched template and empty body: fail
  • Drag-dropped user-attachments link, markdown image, inline <img>: pass
  • No visible change: ... line: pass
  • Text that only mentions icon.png, or a plain link with no template: fail
  • An image outside the Screenshots section when the template is used: fail

The workflow hasn't run on GitHub yet; the first PR touching those paths is its real test.

Screenshots

No visible change: adds a PR template and a CI check; nothing in Omarchy renders differently.

Adds a PR template with a Screenshots section and a non-blocking check
that flags PRs touching the shell, configs, themes or package lists when
the section is empty. A "No visible change: <reason>" line satisfies it.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@ryanrhughes
ryanrhughes merged commit 5f2fb78 into quattro Nov 3, 2026
2 checks passed
@ryanrhughes
ryanrhughes deleted the screenshots-in-prs branch November 3, 2026 23:14
@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The PR changes how contributors provide visual evidence for selected UI-related pull requests.

The PR appears safe to merge, with two non-blocking parsing fixes recommended.

Findings

  1. P2 Valid screenshots get rejected ▶
  2. P2 Blank reasons pass ▶

Summary

Adds a PR template, a path-filtered workflow that asks for visual evidence, and guidance for agents to include captures in the PR body.

  • UI-related pull requests are asked to show screenshots or explain why none are needed.

Reviews (1) · Last reviewed commit: "Ask PRs that change the UI for screensho..." · Reviewed by Greptile


# Read the Screenshots section when the template is there; without it,
# only embedded media anywhere in the body counts.
section = re.search(r"^#{1,6}\s*(screenshots?|recordings?|demo)\b.*?$(.*?)(?=^#{1,6}\s|\Z)", body, flags=re.S | re.M | re.I)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Valid screenshots get rejected

Images under ### Before and ### After are rejected even when both headings are inside ## Screenshots. The section ends at the next heading of any level, so the check searches only the blank space before ### Before. Stop at a heading of the same or higher level instead.

section = re.search(r"^#{1,6}\s*(screenshots?|recordings?|demo)\b.*?$(.*?)(?=^#{1,6}\s|\Z)", body, flags=re.S | re.M | re.I)
media = r"!\[[^\]]*\]\(|<img\b|<video\b|github\.com/user-attachments/|https?://\S+\.(png|jpe?g|gif|webp|mp4|webm|mov)\b"

if re.search(r"^\s*no visible change:\s*\S", body, flags=re.M | re.I):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Blank reasons pass

An empty No visible change: line can pass without a reason. Because \s* includes newlines, the match can continue to the next paragraph or heading and count its first character as the reason. Restrict the whitespace after the colon to spaces and tabs so the reason must appear on that line.

cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 4, 2026
Adds a PR template with a Screenshots section and a non-blocking check
that flags PRs touching the shell, configs, themes or package lists when
the section is empty. A "No visible change: <reason>" line satisfies it.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@emirb emirb added this to the 4.6.0 milestone Nov 5, 2026
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 5, 2026
Adds a PR template with a Screenshots section and a non-blocking check
that flags PRs touching the shell, configs, themes or package lists when
the section is empty. A "No visible change: <reason>" line satisfies it.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants