Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
a34d3ef
Convert an old block to an FSE block as an experiment
jaymcp May 1, 2024
4ea4d6f
Begin block migration process
jaymcp May 21, 2024
543c971
Migrate to package imports
jaymcp Oct 18, 2024
fdcdcf2
Converts a number of class components on the post list block to funct…
Gentyspun Oct 22, 2024
60f711e
Fixes a number of broken imports
Gentyspun Oct 22, 2024
a3d94f9
Fixed renders for action block and cta block and removed cta from ins…
Gentyspun Oct 25, 2024
fe01857
Fixes view.js for background media and collapsable blocks, fixes edit…
Gentyspun Oct 29, 2024
04101c2
Update changelog and bump version for release
jaymcp Feb 26, 2025
7b88390
Enqueues a bunch of custom block styles so they use the new API version
Gentyspun Oct 31, 2024
bd7aeca
Removes old style files and imports for embed sutori and fluid iframe…
Gentyspun Nov 1, 2024
2a9496c
Fixes the new stat counter and tweet action blocks and removes the ol…
Gentyspun Nov 4, 2024
dd4e88f
Fixes the link group and download blocks and removes all their old ap…
Gentyspun Nov 6, 2024
6d5d65f
Fixes all the custom embed blocks to use the new block API V3, flouri…
Gentyspun Nov 7, 2024
1009dae
Fixes the hero block and the post list block, but post list still nee…
Gentyspun Nov 11, 2024
2acbcbc
remove imports
Gentyspun Nov 11, 2024
2a2b778
Imports a bunch of essential includes to prevent build failures and g…
Gentyspun Nov 12, 2024
6167b42
Removes console logs
Gentyspun Nov 12, 2024
c2da26d
Reorganise, fix some block rendering issues, introduce Custom Select …
jaymcp Nov 18, 2024
b4f32d7
Adds block props to a number of block edits
Gentyspun Nov 12, 2024
a0639b3
Enqueues menu styles and adds block props
Gentyspun Nov 12, 2024
4af2667
Removes menu block console log
Gentyspun Nov 12, 2024
abbc25b
Remove debug log
jaymcp Nov 18, 2024
8529458
Remove accidental debug statement
jaymcp Nov 18, 2024
d8349d0
Removes a bunch of outdated blocks and adds new api V3 versions, name…
Gentyspun Nov 19, 2024
3d2a266
Move sidebar helpers
jaymcp Nov 18, 2024
dba0126
Update asset enqueues
jaymcp Nov 18, 2024
b49bd39
Replace SSR blocks with real blocks & patterns
jaymcp Nov 18, 2024
9f55ae9
Removes all old block data related to responsive iframe and iframe bu…
Gentyspun Nov 22, 2024
48aa9c5
Updates the old banner and button blocks to API V3
Gentyspun Nov 25, 2024
b23f198
Updates regions block edit
Gentyspun Nov 26, 2024
f40a300
Fixup regions block API calls
jaymcp Nov 26, 2024
94024c6
Fixes all the regions block styles and removes the old versions
Gentyspun Nov 26, 2024
6120268
Updates the terms list block to API V3 and removes the old version
Gentyspun Nov 29, 2024
f5a21aa
Updates the deprecated columns block to API V3 and removes the old ve…
Gentyspun Nov 29, 2024
46187bb
Updated term list edit
Gentyspun Nov 29, 2024
f964486
Updates both the deprecated header and image blocks to the new API V3…
Gentyspun Dec 3, 2024
dcffb9e
Refactor Related Content
jaymcp Dec 3, 2024
9d7142c
Fix several issues with the Section block display component
jaymcp Dec 3, 2024
d3e0979
Updates the old deprecated LWI block to the new block API version
Gentyspun Dec 3, 2024
7661652
Removes old links with icons block from the inserter
Gentyspun Dec 4, 2024
8b3512b
Updates the links with icons block and the slider block to the new AP…
Gentyspun Dec 9, 2024
fd67dc9
Updates the slider block to the new API V3 and removes the old version
Gentyspun Dec 10, 2024
7deb360
Removes old slider and section blocks and replaces with new API versions
Gentyspun Dec 10, 2024
dbc148f
Converts the slider, key facts and related content blocks to the new …
Gentyspun Dec 11, 2024
f976fa7
Removes a bunch of now redundant blocks
Gentyspun Dec 12, 2024
959f229
Removes all the no longer needed block JS files
Gentyspun Dec 12, 2024
d508017
Converts the pop in block to the new API V3
Gentyspun Dec 17, 2024
7b13bdc
Initial refactoring pass
jaymcp Jan 22, 2025
8d04361
Move admin assets
jaymcp Jan 29, 2025
d8625cd
Move block style registration
jaymcp Jan 29, 2025
66c56a5
Move fonts and other static assets
jaymcp Feb 4, 2025
6178be0
Fix issues with fonts; register assets; move mods
jaymcp Feb 13, 2025
a447d82
Migrate remaining styles and rename directories
jaymcp Feb 27, 2025
69c1720
Migrate asset localisation
jaymcp Feb 27, 2025
cbffb6b
Fix linting
jaymcp Feb 27, 2025
a305a44
Fix linting
jaymcp Feb 27, 2025
d2d981c
Fix remaining linting issues
jaymcp Feb 27, 2025
4856302
Fix incorrect package manager in script
jaymcp Mar 4, 2025
42f5b08
Move some JS dependencies to dev-only
jaymcp Mar 4, 2025
629e43f
Update hero font sizes
jaymcp Mar 5, 2025
3b7c5f5
Update gitignore
jaymcp Mar 5, 2025
a02125e
Provide internationalisation settings to the stat counter block
jaymcp Mar 6, 2025
abc508b
Move WP dependencies in package.json
jaymcp Mar 6, 2025
652b670
Fix incorrect script name
jaymcp Mar 6, 2025
7e82be2
Fix incorrect SCSS declarations
jaymcp Mar 6, 2025
ebf2930
Fix missing script handle
jaymcp Mar 6, 2025
7b1772c
Fix asset loading and missing images
jaymcp Mar 13, 2025
e490456
WIP on huge refactor of post list block components
jaymcp Mar 13, 2025
17f1848
Fix reference to wp.apiFetch
jaymcp Mar 17, 2025
985a395
Fix sidebar selection appearance option
jaymcp Mar 17, 2025
ba936d1
Replace Travis CI with GitHub Actions
jaymcp Mar 20, 2025
36454c1
Merge branch 'main' into feature/block-api-v3
jaymcp Mar 26, 2025
0cd32c0
Add global button styles
jaymcp Mar 26, 2025
6c644d4
Fix action block visual style
jaymcp Mar 26, 2025
6cd8eea
Remove local button styles
jaymcp Mar 26, 2025
1ad0698
Apply Action block frontend styles in the editor
jaymcp Mar 26, 2025
afe1fae
Apply block wrapper attributes to Action block
jaymcp Mar 26, 2025
2b8edb0
Add wrapper attributes to some block renders
jaymcp Mar 26, 2025
4b079c7
Fix issue attaching background image
jaymcp Mar 26, 2025
7c5781f
Fix incorrect package reference
jaymcp Mar 26, 2025
9a03b74
Fix rendering of background media
jaymcp Mar 27, 2025
f1ad12f
Add some padding to background media patterns
jaymcp Mar 27, 2025
0dba992
Fix details block styling
jaymcp Apr 1, 2025
9788d59
Fix collapsable block styles
jaymcp Apr 1, 2025
7a2ab0f
Hide ancient custom columns block from the inserter
jaymcp Apr 1, 2025
8dfb808
Fix countdown block interactivity in editor
jaymcp Apr 1, 2025
dcba3ca
Fix layout of custom card patterns
jaymcp Apr 1, 2025
136ed72
Fix resource download rendering issues
jaymcp Apr 1, 2025
5ddef9f
Fixup fluid iframe button styles
jaymcp Apr 1, 2025
50174db
Fix menu API calls
jaymcp Apr 1, 2025
a445bbe
Fix various issues with the display component of the Regions block
jaymcp Apr 2, 2025
34a1e54
Migrate Related Content block from reliance upon custom route
jaymcp Apr 2, 2025
864216a
Fix crash in slider block
jaymcp Apr 2, 2025
d2881a9
Aggressively cache expensive field computation
jaymcp Apr 2, 2025
81f6f22
Fix many display issues with Tweet Action
jaymcp Apr 2, 2025
94fea56
Fix output of sidebar block
jaymcp Apr 2, 2025
28d3fb8
Fix quote block styles
jaymcp Apr 3, 2025
6457d28
Move icon path to inline style to allow absolute URI
jaymcp Apr 22, 2025
9d00fe2
Improve webpack output
jaymcp Apr 22, 2025
936ea01
Fix hero layout, render, and alignment
jaymcp Apr 23, 2025
891b460
Fix incorrect sprite path
jaymcp Apr 23, 2025
f650c01
Fix incorrect positioning of inner blocks in hero
jaymcp Apr 23, 2025
ec76915
Add missing style dependency to background media block
jaymcp May 1, 2025
27f9238
Fix inconsistent borders on quote block
jaymcp May 1, 2025
4800362
Fix missing LWI pattern borders in editor
jaymcp May 1, 2025
fc5c5cf
Fix slides layout
jaymcp May 1, 2025
9417dfa
Fixup iframe button interactivity issues
jaymcp May 1, 2025
6e43f28
Hide sidebar block from the inserter
jaymcp May 1, 2025
333e59f
Backport fixes from Sprint 135
jaymcp Sep 30, 2025
c67350e
WIP on fixing petitions list/post list
jaymcp Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
workflow_call:
inputs:
stage:
required: true
type: string

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: composer-dev-cache
with:
path: ./vendor
key: ${{ inputs.stage }}-dev-${{ hashFiles('./composer.lock') }}
- name: Install Composer Dependencies
if: steps.composer-dev-cache.outputs.cache-hit != 'true'
run: composer install
- uses: actions/cache@v4
id: phpcs-cache
with:
path: ./phpcs-cache
key: ${{ inputs.stage }}-phpcs-${{ hashFiles('./phpcs-cache') }}
- run: composer lint
- run: corepack enable
- run: cd private && yarn
- run: cd private && yarn lint
- run: cd private && yarn build
- uses: actions/upload-artifact@v4
with:
name: humanity-theme
overwrite: true
path: |
.
!./private/node_modules
!./vendor
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
workflow_call:
inputs:
target:
required: true
type: string

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: humanity-theme
- run: bash ./private/bin/deploy.sh
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
REMOTE_URL: ${{ secrets[inputs.target] }}
GITHUB_USERNAME: ${{ secrets.COMMITTER_NAME }}
GITHUB_EMAIL: ${{ secrets.COMMITTER_EMAIL }}
22 changes: 22 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
workflow_call:
inputs:
stage:
required: true
type: string

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: humanity-theme
- run: wget -q https://github.com/phpDocumentor/phpDocumentor/releases/latest/download/phpDocumentor.phar
- run: php phpDocumentor.phar --extensions=php --defaultpackagename=Humanity --directory ./wp-content/themes/humanity-theme --target ./php-api-developer-documentation
- run: zip -r ./php-api-developer-documentation.zip ./php-api-developer-documentation
- uses: softprops/action-gh-release@v2
with:
draft: true
files: php-api-developer-documentation.zip
target_commitish: ${{ inputs.stage }}
12 changes: 12 additions & 0 deletions .github/workflows/env-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on:
push:
branches-ignore:
- main
- staging
- develop

jobs:
build:
uses: ./.github/workflows/build.yml
with:
stage: ${{ github.ref_name }}
25 changes: 25 additions & 0 deletions .github/workflows/env-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
branches: [develop]

jobs:
build:
uses: ./.github/workflows/build.yml
with:
stage: ${{ github.ref_name }}
lang:
uses: ./.github/workflows/lang.yml
needs: build
with:
stage: ${{ github.ref_name }}
deploy:
needs: [build, lang]
secrets: inherit
uses: ./.github/workflows/deploy.yml
with:
target: ${{ matrix.target }}
strategy:
matrix:
target:
- REMOTE_RIKJ6NJG
- REMOTE_TQEI6PN8
50 changes: 50 additions & 0 deletions .github/workflows/env-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on:
push:
branches: [main]

jobs:
build:
uses: ./.github/workflows/build.yml
with:
stage: ${{ github.ref_name }}
lang:
uses: ./.github/workflows/lang.yml
needs: build
with:
stage: ${{ github.ref_name }}
docs:
uses: ./.github/workflows/docs.yml
needs: build
with:
stage: ${{ github.ref_name }}
bundle:
needs: [build, lang]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: humanity-theme
- run: cd ./wp-content/themes/humanity-theme && zip -r ../../../humanity-theme.zip .
- uses: softprops/action-gh-release@v2
with:
draft: true
files: ./humanity-theme.zip
target_commitish: ${{ inputs.stage }}
deploy-to-test:
needs: [build, lang]
secrets: inherit
uses: ./.github/workflows/deploy.yml
with:
target: REMOTE_MTIQTPPT
test:
needs: deploy-to-test
secrets: inherit
uses: ./.github/workflows/test.yml
with:
stage: ${{ github.ref_name }}
suite: ${{ matrix.suite }}
strategy:
matrix:
suite:
- 620b83b8329c2fb1fe6e1516
- 621372745f85360d3fd03197
9 changes: 9 additions & 0 deletions .github/workflows/env-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
on:
pull_request:
types: [opened]

jobs:
build:
uses: ./.github/workflows/build.yml
with:
stage: ${{ github.ref_name }}
53 changes: 53 additions & 0 deletions .github/workflows/env-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
release:
types: [released]

jobs:
build:
uses: ./.github/workflows/build.yml
with:
stage: release
lang:
uses: ./.github/workflows/lang.yml
needs: build
with:
stage: release
deploy:
needs: [build, lang]
secrets: inherit
uses: ./.github/workflows/deploy.yml
with:
target: ${{ matrix.target }}
strategy:
matrix:
target:
- REMOTE_XQVHDONU
- REMOTE_8MZ1QJ5P
- REMOTE_BCDKFWF4
- REMOTE_XRWONKPA
- REMOTE_SUWSJWOQ
- REMOTE_010TDDVE
- REMOTE_DFOD8FOH
- REMOTE_JTO6MIPZ
- REMOTE_U0VS1DPC
- REMOTE_QEQJ6OJZ
- REMOTE_SIWVYQV9
- REMOTE_PXW6K9EK
- REMOTE_DSCAUN4N
- REMOTE_CTJLPQAF
- REMOTE_5QCXZJSN
- REMOTE_GRILAXXQ
- REMOTE_8I8A5YIV
- REMOTE_I4P65VXK
- REMOTE_KKK3NEBU
- REMOTE_RCPWMD3K
- REMOTE_P5ZRTPZL
- REMOTE_MNEUQUDQ
- REMOTE_WQ1F95LK
- REMOTE_JQDZJMDS
- REMOTE_PSH9FHC4
- REMOTE_BEMEBJ0I
- REMOTE_GIG4TDEB
- REMOTE_W3S9N9W9
- REMOTE_VYFAA1BZ
- REMOTE_SUPOPLFU
53 changes: 53 additions & 0 deletions .github/workflows/env-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
push:
branches: [staging]

jobs:
build:
uses: ./.github/workflows/build.yml
with:
stage: ${{ github.ref_name }}
lang:
uses: ./.github/workflows/lang.yml
needs: build
with:
stage: ${{ github.ref_name }}
deploy:
needs: [build, lang]
secrets: inherit
uses: ./.github/workflows/deploy.yml
with:
target: ${{ matrix.target }}
strategy:
matrix:
target:
- REMOTE_SNLVE0IV
- REMOTE_PRARHNDE
- REMOTE_FBXMKHUU
- REMOTE_YTRLMNAJ
- REMOTE_IKYUX9HL
- REMOTE_LAHG9STV
- REMOTE_YCO8MWAV
- REMOTE_5WRJBPXY
- REMOTE_6N8ZE2WT
- REMOTE_AE3Y1NOK
- REMOTE_SWOLCKL2
- REMOTE_HEPQKMWL
- REMOTE_BSNPC2YK
- REMOTE_Z0BKHBSA
- REMOTE_DUYWZXFR
- REMOTE_4QCECSET
- REMOTE_MX6YXRHR
- REMOTE_HNSJG6TQ
- REMOTE_RJFBZVDO
- REMOTE_FCLZFYWD
- REMOTE_1WQBMPOU
- REMOTE_N71QDXPW
- REMOTE_N0KJB6TO
- REMOTE_ZH7L9YLC
- REMOTE_YIZGEVBY
- REMOTE_NTSDHBCJ
- REMOTE_CGYVZUBX
- REMOTE_SCXSE3T6
- REMOTE_GI2SVBTF
- REMOTE_RO2LS5IH
35 changes: 35 additions & 0 deletions .github/workflows/lang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
workflow_call:
inputs:
stage:
required: true
type: string

jobs:
lang:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: humanity-theme
- run: sudo rm /etc/php/8.3/cli/conf.d/20-xdebug.ini
- uses: actions/cache@v4
id: composer-lang-cache
with:
path: ./vendor
key: ${{ inputs.stage }}-lang-${{ hashFiles('./composer.lock') }}
- name: Install Composer Dependencies
if: steps.composer-lang-cache.outputs.cache-hit != 'true'
run: composer install; composer require --dev wp-cli/wp-cli-bundle
- run: ./vendor/bin/wp i18n make-pot wp-content/themes/humanity-theme wp-content/themes/humanity-theme/languages/amnesty.pot --domain=amnesty --exclude=private
- run: ./vendor/bin/wp i18n update-po wp-content/themes/humanity-theme/languages/amnesty.pot
- run: ./vendor/bin/wp i18n make-mo wp-content/themes/humanity-theme/languages
- run: ./vendor/bin/wp i18n make-json wp-content/themes/humanity-theme/languages --no-purge
- uses: actions/upload-artifact@v4
with:
name: humanity-theme
overwrite: true
path: |
.
!./private/node_modules
!./vendor
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
workflow_call:
inputs:
stage:
required: true
type: string
suite:
required: true
type: string

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v4
id: gi-cache
with:
path: ./gi
key: ${{ inputs.stage }}-gi
- name: Download Ghost Inspector
if: steps.gi-cache.outputs.cache-hit != 'true'
run: curl -sL https://github.com/ghost-inspector/node-ghost-inspector/releases/latest/download/ghost-inspector-linux --output ./gi
- run: chmod +x ./gi
- run: ./gi suite execute ${{ inputs.suite }} --errorOnFail --errorOnScreenshotFail --apiKey=${{ secrets.GHOST_INSPECTOR_API_KEY }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
web.config
/db-config.php
/index.php
/private/.yarn
/private/node_modules
/readme.html
/wp-activate.php
Expand All @@ -22,6 +23,7 @@ web.config
/wp-content/backup-db/*
/wp-content/blogs.dir/*
/wp-content/cache/*
/wp-content/debug.log
/wp-content/index.php
/wp-content/languages/*
/wp-content/mu-plugins/*
Expand All @@ -30,6 +32,7 @@ web.config
/wp-content/themes/humanity-theme/assets/images/*
/wp-content/themes/humanity-theme/assets/scripts/*
/wp-content/themes/humanity-theme/assets/styles/*
/wp-content/themes/humanity-theme/build/*
/wp-content/themes/index.php
/wp-content/themes/twenty*
/wp-content/upgrade/*
Expand Down
Loading