Repository navigation
Ask for before and after screenshots on UI pull requests - #83
Merged
Merged
Conversation
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
marked this pull request as ready for review
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]>
1 task done
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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|afterscreenshots the booted iOS simulator and the Android emulator in light, then dark, then switches each device back.php artisan screenshots:record before|afterrecords an mp4 per platform and appearance, for animations.php artisan screenshots:publishpushes the files to an orphan{branch}-screenshotsbranch 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.mdand aui-screenshotsskill. I addedcodextoboost.jsonso there's anAGENTS.mdfor 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.mdandAGENTS.mdonly gain the new section. A fullboost:updatealso upgrades every vendored skill and swapspest-testingfor newer ones, which I've left for a separate PR.storage/app/screenshots. NativePHP bundlesstorage/app, so that folder is added tocleanup_exclude_files.emulator-*serial and warn when they fall back to a phone, becausecmd uimode nightchanges dark mode for the whole device..claude/skillsand.agents/skillsare symlinks into.ai/skills, which is how Boost writes custom skills.Screenshots
🤖 Generated with Claude Code