Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Spork: unfork Blockly #214

Draft
wants to merge 82 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
8a8c633
fix: run stacks in response to click events (#1)
gonfunko Apr 22, 2024
28ea54a
fix: use toolboxitemid instead of id as the identifier attribute for …
gonfunko Apr 30, 2024
ac4280e
fix: handle modern workspace comment events (#3)
gonfunko Jun 12, 2024
29bdbd1
fix: handle new custom block comment events (#4)
gonfunko Jul 9, 2024
8ba4f9e
fix: add the hat extension to extension hat blocks (#5)
gonfunko Sep 3, 2024
42efd32
fix: add the monitor block extension to extension monitor blocks (#6)
gonfunko Sep 3, 2024
686996a
refactor: use block styles instead of colors (#7)
gonfunko Sep 5, 2024
ced972e
fix: update VM state when blocks are removed from an input previously…
gonfunko Sep 16, 2024
ae67b9b
fix: fix bug that could result in the VM's representation of shadow b…
gonfunko Oct 8, 2024
a135fb5
style: run "eslint --fix ."
cwillisf Oct 11, 2024
9136cd0
style: copy style changes from gonfunko/modern-blockly
cwillisf Feb 20, 2025
e8e9603
ci: enable alpha and beta releases
cwillisf Oct 18, 2024
8263b70
fix: use scratch-blocks@^2.0.0-beta
cwillisf Oct 18, 2024
36652ad
ci: make temporary "spork" release channel
cwillisf Oct 21, 2024
603b852
chore(deps): update deps for spork test
cwillisf Oct 21, 2024
f633995
fix: Fix test failures. (#10)
gonfunko Nov 14, 2024
c07586b
chore(deps): update deps for spork test
cwillisf Dec 11, 2024
baf68a2
build: fix webpack-dev-server configuration
cwillisf Dec 20, 2024
f0f1c14
chore(deps): update deps for spork test
cwillisf Feb 11, 2025
aedce8a
Replace text-encoding polyfill
adroitwhiz Mar 9, 2021
d67cb26
fix: temporarily disable functionality in scratch-gui for compatibili…
gonfunko Apr 19, 2024
eaaca29
fix: show the correct toolbox based on sprites or the stage being sel…
gonfunko Apr 23, 2024
818227b
fix: modify inject options to reflect Scratch behaviors (#5)
gonfunko Apr 23, 2024
7c75828
fix: add support for Scratch-style procedures (#6)
gonfunko Apr 24, 2024
fde8293
fix: reenable the Scratch colour eyedropper
gonfunko Apr 24, 2024
3baa9bb
fix: patch the getCheckboxState method in the new flyout (#7)
gonfunko Apr 26, 2024
fbffc14
fix: select extension categories when added (#8)
gonfunko Apr 30, 2024
5de68f1
fix: Use toolboxitemid instead of id as the identifier attribute for …
gonfunko Apr 30, 2024
c0b3d0e
fix: preserve toolbox scroll position when switching between sprites/…
gonfunko May 1, 2024
b7e7854
fix: call reportValue on the ScratchBlocks module instead of the work…
gonfunko May 3, 2024
0cd556f
fix: call the new glow methods on ScratchBlocks (#12)
gonfunko May 6, 2024
9ecec90
fix: adjust key event filtering to fix the when key pressed block (#13)
gonfunko May 7, 2024
2d6e676
refactor: simplify toolbox refreshing behavior (#14)
gonfunko May 16, 2024
1c69194
fix: allow typing into comments (#15)
gonfunko Jul 8, 2024
2d07d0b
feat: plumb Scratch variable support into the UI (#16)
gonfunko Aug 2, 2024
b30a1c3
fix: specify the function to be used for prompting about variables (#17)
gonfunko Aug 5, 2024
f7fc9dc
fix: update the toolbox in response to procedure deletion/creation (#18)
gonfunko Aug 6, 2024
8bcd420
chore: don't specify the renderer/theme (#20)
gonfunko Aug 12, 2024
4638b40
fix: only refresh the toolbox when procedures are created via undo (#19)
gonfunko Aug 12, 2024
64b7d3d
fix: add pinch to zoom support (#21)
BeksOmega Aug 21, 2024
217a3c0
fix: make dropdown menu shadow block colors consistent (#22)
gonfunko Sep 3, 2024
77c4e2f
refactor: use block styles instead of directly specifying block color…
gonfunko Sep 11, 2024
9703bc6
refactor: improve efficiency of toolbox updates (#24)
gonfunko Sep 12, 2024
52ac752
fix: partially roll back flyout optimization (#25)
gonfunko Sep 16, 2024
15904a2
fix: prevent exception when switching languages (#27)
gonfunko Sep 18, 2024
1955a6f
fix: fix bug that prevented displaying the procedure editor modal on …
gonfunko Sep 18, 2024
565acd6
fix: avoid clearing the state of the sensing_of block by refreshing t…
gonfunko Oct 2, 2024
3fbb132
refactor: fix compatibility with checkboxes and category status indic…
gonfunko Oct 14, 2024
800b185
chore(deps): update scratch-blocks for unforking test
cwillisf Oct 18, 2024
50f031c
fix(release): release beta branch under beta label(?)
cwillisf Oct 19, 2024
6d07604
chore(deps): update deps for spork test
cwillisf Oct 21, 2024
f28a71d
chore(deps): update deps for spork test
cwillisf Dec 11, 2024
c2a5fe2
style: re-apply existing lint rules
cwillisf Dec 11, 2024
e017b95
fix: update "colour" property names for dark theme and mocks
cwillisf Dec 17, 2024
6177c0e
test: update dynamic block tests for colour -> style
cwillisf Dec 17, 2024
2f08990
test: fix theme injection tests
cwillisf Dec 17, 2024
fbae21e
fix: fix preserving toolbox scroll position for new continuous toolbo…
gonfunko Feb 4, 2025
fcdb0c3
chore(deps): update deps for spork test
cwillisf Feb 11, 2025
4d1e43a
style: lint fixes
cwillisf Feb 11, 2025
199055e
Revert "fix: adjust key event filtering to fix the when key pressed b…
cwillisf Feb 13, 2025
fd6deb2
test: move Selenium debugging info to files in test-results/
cwillisf Feb 19, 2025
5127c73
test: update XPath expressions for Blockly v12 beta
cwillisf Feb 13, 2025
9f1f9c3
Merge branch 'develop' into spork
cwillisf Feb 21, 2025
ff757e4
Merge branch 'develop' into spork
cwillisf Feb 22, 2025
f2e9e2b
test: update more XPath expressions for Blockly v12
cwillisf Feb 24, 2025
d985234
fix: variables got shy when flipping between code and project view
cwillisf Feb 25, 2025
35244af
Merge branch 'develop' into spork
cwillisf Mar 4, 2025
3958758
Merge branch 'build-script-improvements' into spork
cwillisf Mar 4, 2025
c5054ba
test: avoid false positives in xpath @class tests
cwillisf Mar 5, 2025
aaba89a
Merge branch 'develop' into spork
cwillisf Mar 5, 2025
0f13ad8
Merge branch 'develop' into spork
cwillisf Mar 5, 2025
4651f48
Merge branch 'develop' into spork
cwillisf Mar 5, 2025
08891ce
ci: fix(?) pushing from the publish workflow
cwillisf Mar 5, 2025
cd8f57a
ci: move commitlint into its own separate workflow
cwillisf Mar 5, 2025
6e4f7bb
ci: try again to get the push to work
cwillisf Mar 5, 2025
9030d5c
ci: temporarily disable publishing to NPM
cwillisf Mar 6, 2025
a233860
ci: temporarily disable pre-build/test in publish workflow
cwillisf Mar 6, 2025
c34518b
ci: determine tag for "npm publish" from branch name
cwillisf Mar 6, 2025
8408a2a
ci: make release commit message pass commitlint
cwillisf Mar 6, 2025
5aa2727
ci: re-enable publish steps that were disabled for testing purposes
cwillisf Mar 6, 2025
8942bdd
ci: publish to NPM under a tag determined by branch
cwillisf Mar 6, 2025
0a4788a
Merge branch 'develop' into spork
cwillisf Mar 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
with:
cache: 'npm'
node-version-file: '.nvmrc'
- uses: wagoid/commitlint-github-action@9763196e10f27aef304c9b8b660d31d97fce0f99 # v5
- name: Debug info
run: |
cat <<EOF
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Lint commit messages
on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5
62 changes: 49 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,59 @@ jobs:
ci:
uses: ./.github/workflows/ci.yml
cd:
needs:
- ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
cache: 'npm'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Debug info
run: |
cat <<EOF
Release tag name: ${{ github.event.release.tag_name }}
Release target commit-ish: ${{ github.event.release.target_commitish }}
EOF

- name: Determine NPM tag
id: npm_tag
shell: bash
run: |
case ${{ github.event.release.target_commitish }} in
develop | main | master)
if [[ ${{ github.event.release.prerelease }} == true ]]; then
npm_tag=beta
else
npm_tag=latest
fi
;;
*)
# use the branch name
npm_tag="${{ github.event.release.target_commitish }}"
;;
esac
echo "Determined NPM tag: [$npm_tag]"
echo "npm_tag=${npm_tag}" >> "$GITHUB_OUTPUT"
- name: Check NPM tag
run: |
if [ -z "${{ steps.npm_tag.outputs.npm_tag }}" ]; then
echo "Refusing to publish with empty NPM tag."
exit 1
fi

- name: Config GitHub user
shell: bash
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'github-actions@localhost'

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
token: ${{ secrets.PAT_RELEASE_PUSH }} # persists the token for pushing to the repo later

- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
cache: 'npm'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- uses: ./.github/actions/install-dependencies

- name: Update the version in the package files
Expand All @@ -32,28 +70,28 @@ jobs:
NEW_VERSION="${GIT_TAG/v/}"

npm version "$NEW_VERSION" --no-git-tag-version
git add package* && git commit -m "Release $NEW_VERSION"
git add package* && git commit -m "chore(release): $NEW_VERSION [skip ci]"

- name: Build packages
run: npm run build

- name: Publish scratch-svg-renderer
run: npm publish --access=public --workspace=@scratch/scratch-svg-renderer
run: npm publish --access=public --tag="${{steps.npm_tag.outputs.npm_tag}}" --workspace=@scratch/scratch-svg-renderer
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish scratch-render
run: npm publish --access=public --workspace=@scratch/scratch-render
run: npm publish --access=public --tag="${{steps.npm_tag.outputs.npm_tag}}" --workspace=@scratch/scratch-render
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish scratch-vm
run: npm publish --access=public --workspace=@scratch/scratch-vm
run: npm publish --access=public --tag="${{steps.npm_tag.outputs.npm_tag}}" --workspace=@scratch/scratch-vm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish scratch-gui
run: npm publish --access=public --workspace=@scratch/scratch-gui
run: npm publish --access=public --tag="${{steps.npm_tag.outputs.npm_tag}}" --workspace=@scratch/scratch-gui
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

Expand Down Expand Up @@ -110,5 +148,3 @@ jobs:
publish_dir: ./packages/scratch-gui/build
destination_dir: scratch-gui
full_commit_message: "Build for ${{ github.sha }} ${{ github.event.head_commit.message }}"
needs:
- ci
Loading
Loading