Repository navigation
Conversation
There was a problem hiding this comment.
Should we split the file into multiple files to prevent having a large file?
There was a problem hiding this comment.
@ionic/eslint-config is built for TypeScript in ESLint's old config format, so it crashes on plain JavaScript, and we copied core's JavaScript rules instead.
brandyscarney
left a comment
There was a problem hiding this comment.
This is looking really good!
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
…onto Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
brandyscarney
left a comment
There was a problem hiding this comment.
Great work! Thanks for making those updates. 🚀
| checkedAt = Date.now(); | ||
|
|
||
| try { | ||
| latest = (args.pr ? await headOfPullRequest(args.pr, cwd) : await resolveRef(range.head, cwd)) ?? latest; |
There was a problem hiding this comment.
| latest = (args.pr ? await headOfPullRequest(args.pr, cwd) : await resolveRef(range.head, cwd)) ?? latest; | |
| const head = args.pr ? await headOfPullRequest(args.pr, cwd) : await resolveRef(range.head, cwd); | |
| /* GitHub names the new head but does not send it, and without the commit every | |
| path reads as missing, so as changed. Fetched once per push, as at startup. */ | |
| if (args.pr && head && !(await resolveRef(head, cwd))) { | |
| await git(['fetch', 'origin', `pull/${args.pr}/head`], cwd); | |
| } | |
| latest = head ?? latest; |
After the author pushes, every screenshot you mark shows the "changed in a newer push" banner, even ones the push didn't touch. Nothing fetches the new head that headOfPullRequest returns, so blobShasAt comes back missing for every path. This fetches pull/<n>/head once when the new head isn't local, and if the fetch fails the banner just stays quiet.
Co-authored-by: Shane <561207+ShaneK@users.noreply.github.com>
ShaneK
left a comment
There was a problem hiding this comment.
Looks good to me, awesome work!
Issue URL: N/A
What is the current behavior?
Snapshot-heavy PRs are effectively unreviewable on GitHub: the Files tab won't render diffs for hundreds of binary files, and a Playwright bump or a branch sync touches thousands. Reviewers end up opening screenshots one at a time or skipping them.
What is the new behavior?
A local app that reads each screenshot's before and after straight out of git, with no checkout, and serves them for review.
Does this introduce a breaking change?
Other information
To try it, clone this repo next to ionic-framework, run
npm ci, thennpm start -- --pr 31435for a quick 51-screenshot pass, ornpm start -- --pr 31465for every case the reviewer handles (renames, removals, orphans, re-encodes, existing comments).Both PRs are merged, so "Post comments" is disabled for them. Marking files viewed is safe.
Hosted Vercel previews, so a review doesn't need a local clone, will be looked into separately.