Skip to content

Ask for before and after screenshots on UI pull requests - #83

Merged
simonhamp merged 1 commit into
mainfrom
screenshot-commands
Oct 24, 2026
Merged

simonhamp merged 1 commit into
mainfrom
screenshot-commands

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Contributors (and their agents) should show what a UI change looks like on both platforms in both appearances. This makes that cheap to do and hard to skip.

Three artisan commands do the capturing:

  • php artisan screenshots:take before|after screenshots the booted iOS simulator and the Android emulator in light, then dark, then switches each device back.
  • php artisan screenshots:record before|after records an mp4 per platform and appearance, for animations.
  • php artisan screenshots:publish pushes the files to an orphan {branch}-screenshots branch and prints a Before/After table to paste into the description. That's the same pattern as the screenshot branches we already push. It builds the commit in a throwaway index, so the working tree and HEAD are never touched.

Agents pick the rule up from .ai/guidelines/screenshots.md and a ui-screenshots skill. I added codex to boost.json so there's an AGENTS.md for Cursor, Codex, Copilot and friends. CONTRIBUTING.md explains the same thing for people.

A new Screenshots workflow fails ready-for-review PRs that touch app/NativeComponents, resources/views/native, config/native-ui.php, fonts, icons or animations, unless the description has at least four images or "No visible change" is ticked. There's a PR template with that box now. Drafts are skipped.

Things to look at:

  • CLAUDE.md and AGENTS.md only gain the new section. A full boost:update also upgrades every vendored skill and swaps pest-testing for newer ones, which I've left for a separate PR.
  • Screenshots go in storage/app/screenshots. NativePHP bundles storage/app, so that folder is added to cleanup_exclude_files.
  • The commands prefer an emulator-* serial and warn when they fall back to a phone, because cmd uimode night changes dark mode for the whole device.
  • I tried take and record on an iOS simulator and publish against a local bare repo. The Android side is only covered by the tests so far.
  • The skill folders under .claude/skills and .agents/skills are symlinks into .ai/skills, which is how Boost writes custom skills.
  • The workflow only blocks merging once it's marked as a required check.

Screenshots

  • No visible change

🤖 Generated with Claude Code

Adds three artisan commands for capturing what a UI change looks like.
screenshots:take screenshots the booted iOS simulator and Android
emulator in light and dark mode, screenshots:record makes mp4s of
animations, and screenshots:publish pushes the files to an orphan
{branch}-screenshots branch and prints a before/after table for the
PR description. That follows the screenshot branches we already push.

Agents learn the rule from a new Boost guideline and a ui-screenshots
skill. boost.json now includes codex so AGENTS.md exists for agents
other than Claude. CLAUDE.md and AGENTS.md only gain the new section;
a full boost:update brings unrelated skill changes, so that's left for
its own PR.

A new Screenshots workflow fails ready-for-review PRs that touch
screens, theme, fonts, icons or animations unless the description has
screenshots or "No visible change" is ticked, and there's now a PR
template with that box.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@simonhamp
simonhamp marked this pull request as ready for review October 24, 2026 02:17
@simonhamp
simonhamp merged commit 7dc0eee into main Oct 24, 2026
3 checks passed
@simonhamp
simonhamp deleted the screenshot-commands branch October 24, 2026 02:17
simonhamp added a commit that referenced this pull request Oct 24, 2026
Merging #83 into #84 by hand skipped the boost:update rerun, so AGENTS.md
was still #83's older copy and .agents/skills only held ui-screenshots.
This reruns it on dev-main of nativephp/mobile, which also adds the
nativephp-agent-loop skill (agents drive native:run, screenshots and the
device log on a simulator themselves) and points the nativephp-mobile
skill at it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
simonhamp added a commit that referenced this pull request Oct 24, 2026
…#85)

* Use mobile-air and mobile-ui main again

The bounded gesture area work is merged (NativePHP/mobile-air#603 and
NativePHP/mobile-ui#173), so the app goes back to requiring dev-main of
both, with the same 4.6.0 and 0.8.0 aliases. The dev-main heads have the
same tree as the feature branches #70 locked to, so no code changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Catch the Boost agent files up with main

Merging #83 into #84 by hand skipped the boost:update rerun, so AGENTS.md
was still #83's older copy and .agents/skills only held ui-screenshots.
This reruns it on dev-main of nativephp/mobile, which also adds the
nativephp-agent-loop skill (agents drive native:run, screenshots and the
device log on a simulator themselves) and points the nativephp-mobile
skill at it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

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.

1 participant