feat: show mobile and desktop screenshots in PR preview comment#90
Conversation
Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/af3efb09-f782-4150-882c-d9ec820c6128 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds Playwright-driven screenshot capture to PR previews: installs Chromium deps, runs desktop/mobile captures, uploads PNGs to Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant PR as Pull Request
participant Runner as GitHub Actions Runner
participant Playwright as Playwright (Chromium)
participant ContentAPI as GitHub Content API
participant ghPages as gh-pages branch
participant PRComment as PR Preview Comment
PR->>Runner: trigger preview workflow
Runner->>Runner: install Chromium deps & npm deps
Runner->>Playwright: run screenshot script (desktop)
Playwright-->>Runner: desktop.png
Runner->>Playwright: run screenshot script (mobile)
Playwright-->>Runner: mobile.png
Runner->>ContentAPI: upload desktop.png (create/update)
ContentAPI-->>ghPages: persist desktop.png
ContentAPI-->>Runner: return raw desktop URL
Runner->>ContentAPI: upload mobile.png (create/update)
ContentAPI-->>ghPages: persist mobile.png
ContentAPI-->>Runner: return raw mobile URL
Runner->>PRComment: update preview comment with raw desktop & mobile URLs
Note right of Runner: main gh-pages publish excludes `screenshots/` and `.gitignore`
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
I pity the fool who skips the screenshots review! 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/4978ac3b-8917-4f33-a7e0-e2714ee2f609 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/25b83921-eeef-4909-9759-9db668d1e3d1 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
|
@copilot resolve the merge conflicts in this pull request |
…ots-mobile-desktop # Conflicts: # .github/workflows/preview.yml Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Resolved in 59658dc. The only conflict was in |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/deploy.yml:
- Around line 37-39: The comment and the exclude_assets value are inconsistent:
the workflow comment says ".gitignore and screenshots are additional
preview-only exclusions" but the deploy.yml exclude_assets list includes
".gitignore"; update either the comment or the exclude_assets list so they
match—specifically reconcile the exclude_assets entry (the key named
exclude_assets in deploy.yml) by removing ".gitignore" from the list if it
should be preview-only, or update the comment to reflect that ".gitignore" is
intentionally excluded here.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0a0a4b17-0e74-4359-a702-581067f3cac9
📒 Files selected for processing (2)
.github/workflows/deploy.yml.github/workflows/preview.yml
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/preview.yml
…ly screenshots is preview-only Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/fdc540e4-74fa-4572-9140-f2a4eb85da07 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Head branch was pushed to by a user without write access


.gitignoretoexclude_assetsso it isn't deployed and doesn't blockgit add --allin peaceiris temp clonerm .gitignorestep.gitignoretoexclude_assetsindeploy.ymlfor consistencyexclude_assetscomments (review feedback).gitignoreis intentionally excluded in both workflows; onlyscreenshotsis preview-onlySummary by CodeRabbit