Skip to content

feat(app): export a review as a static site - #2

Draft
thetaPC wants to merge 2 commits into
mainfrom
vercel
Draft

thetaPC wants to merge 2 commits into
mainfrom
vercel

Conversation

@thetaPC

@thetaPC thetaPC commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Issue URL: N/A

What is the current behavior?

A review needs a local clone and a running server, so there is no link to share.

What is the new behavior?

npm run export -- --base <ref> --head <ref> writes a review as plain files that any static host can serve. Deploying it per PR to Vercel from ionic-framework comes in a follow-up.

  • Takes two commits instead of a PR number, so a workflow run exports exactly the push that triggered it and never calls GitHub
  • The exported page has no comment box. Viewed marks are saved in the browser, and when --url is a pull request, its comments load read only from GitHub's public API
  • A newer push shows the same banner as the local app, detected by checking the deployment's head.json
  • A range with no screenshot changes writes nothing and still succeeds, so a workflow can skip the deploy
  • A 193 screenshot update exports in 7s to 32 MB

The local app changes too, so both modes load images the same way:

  • Images are served at images/<blob id>.png and diffs at diffs/<pair>.png
  • /api/manifest is now /manifest.json

Does this introduce a breaking change?

  • Yes
  • No

Other information

To try it, run this from a clone next to ionic-framework, then open the link it prints:

npm run export -- --base 025dc92cde~1 --head 025dc92cde
npx sirv dist

That range is the 193 screenshot update above. Served this way in Chromium, all 573 images and diffs loaded.

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