Repository navigation
Describe commits and pull requests by what changed in each sprite - #223
Merged
Merged
Conversation
Deploying scratch-gui with
|
| Latest commit: |
ad56270
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b7c1c84a.scratch-gui.pages.dev |
| Branch Preview URL: | https://commit-changes-view.scratch-gui.pages.dev |
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.
Commit and pull request pages now describe a change by what happened in each sprite, using the new changes view from MistWarp/api#80 (
GET /v1/projects/:id/commits/:sha/changesandpulls/:index/diff?view=changes).What the page shows
Costume "happy" addedorVariable "x" renamed to "y". Changed items can be expanded to show their before and after text. Costume and sound files keep the before and after previews.Preview
https://commit-changes-view.scratch-gui.pages.dev/project/p1790295130360345000J3JZRS/commits/c713b2e91898ae1a17f3a8e85656f1f7c60b039d
The Cloudflare branch preview uses the live API, so it shows the old view (the fallback) until API #80 is deployed. After that, the same link shows the new view.
Fallback
Until API #80 is deployed,
/changesreturns 404 and the pages look exactly as they do today. The same happens forlegacy: truecommits, errors, and an old server that ignoresview=changes. A remix's first commit with an empty structured result also uses the old view, so the remix-base recovery still works.Screenshots
These were taken from the dev server. The
/changesresponses were generated from this branch's API code against real public archives, because the API is not deployed yet.The live commit page before this change. Unchanged scripts are drawn in full and a layer change is the first thing you see:

The same commit after (Chromium):

Dark theme:

Firefox:

Phone width:

Saved state expanded:

A sprite with only saved state selected in the sidebar:

Costume changes with previews:

Pull request Files tab. The pull is mocked from a real commit's changes, because production has no public pull requests:

Pull request, dark theme, phone width:

Pull request, Firefox, dark theme:

Review
An independent review found one must-fix: thumbnail texts overwrote the real "before" text in the File diff tab. It also found these should-fixes:
All of them are fixed on this branch.
Checks
I ran the
node.js.ymlsteps locally, because GitHub Actions are not running on this repo:test:unit:ci: 4083 passed, 1 skipped.build:deployandvalidate-deploy: pass.New tests are in
test/unit/community-commit-changes.test.jsx.Version
3.6.0 → 3.7.0 (new feature, backwards compatible).