Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
5f81c98
feat: initializes Blockparty Icons plugin
firestar300 Feb 2, 2026
14e7c1e
refactor: icon block to standalone block
firestar300 Feb 2, 2026
20d2982
refactoer: sanitizes SVG content using wp_kses
firestar300 Feb 2, 2026
d959ba5
refactor: rename icon templates for clarity
firestar300 Feb 2, 2026
14731bd
refactor: icon loading logic
firestar300 Feb 2, 2026
5f659ff
chore: track package-lock.json
firestar300 Feb 2, 2026
c45023c
style(js): format js
firestar300 Feb 2, 2026
055c111
fix: remove unused code
firestar300 Feb 2, 2026
f82cb77
fix(quality-php): change php version
firestar300 Feb 2, 2026
4227a9a
fix(phpcs): missing space
firestar300 Feb 2, 2026
8a57aa4
fix(utils): remove unused line
firestar300 Feb 2, 2026
46b5c8f
feat: add wp env themes dir
firestar300 Feb 4, 2026
3f369ed
fix: icon name with only numbers
firestar300 Feb 6, 2026
69498c4
feat(Modal): add tabPanel component
firestar300 Feb 6, 2026
72db614
perf: improve cache system
firestar300 Feb 6, 2026
b7888d2
fix(icon-modal): react warning
firestar300 Feb 6, 2026
80ad754
feat(icon-selector): change ui
firestar300 Feb 6, 2026
acd123b
feat: adds theme.json file for the theme
firestar300 Feb 9, 2026
a967034
refactor: icon block and updates dependencies
firestar300 Feb 9, 2026
944e33c
feat: improves icon block styling
firestar300 Feb 9, 2026
a70b76e
add missing dev dependencies and update PHPCS config
petitphp Feb 11, 2026
c35dc31
refactor cache usage in `CollectionItemsFactory`
petitphp Feb 11, 2026
e18d0e1
add `version` argument when registering icons
petitphp Feb 13, 2026
05e7ba7
refactor icon rendering
petitphp Feb 13, 2026
8495928
preload rest endpoints in editor
petitphp Feb 13, 2026
0e65320
remove view folder
petitphp Feb 13, 2026
0e10481
fix REST endpoint preload
petitphp Feb 13, 2026
b43fd1d
update default per_page value in REST to match the editor
petitphp Feb 13, 2026
4c52e7c
remove unused attribute
petitphp Feb 13, 2026
a4a096c
feat: enables border radius with CSS units
firestar300 Feb 13, 2026
74258ea
style(edit): lint js
firestar300 Feb 13, 2026
6f9f276
refactor(css): editor.css
firestar300 Feb 13, 2026
8dbcd33
fix(icon-modal): style issues pagination display
firestar300 Feb 13, 2026
95f9823
refactor(utils): remove js cache system
firestar300 Feb 13, 2026
016d162
refactor(src): move icon primary files into src root
firestar300 Feb 13, 2026
6a0c7af
fix(js): quality code
firestar300 Feb 13, 2026
3d44228
fix(js): quality code
firestar300 Feb 13, 2026
75bf235
fix(modal): display for large screen
firestar300 Feb 13, 2026
e836dd1
fix(icon-modal): style min height
firestar300 Feb 13, 2026
596a474
fix(editor.css): enhances modal appearance and styling
firestar300 Feb 16, 2026
eb5459c
Revert "refactor(utils): remove js cache system"
firestar300 Feb 16, 2026
3581161
perf: debounces icon per page preference setting
firestar300 Feb 16, 2026
aa6d2dc
feat(icon-modal): improves icon modal sidebar appearance and behavior
firestar300 Feb 16, 2026
b700758
fix: updates author URI
firestar300 Feb 16, 2026
2ae0b11
feat: improves icon link and preview labels
firestar300 Feb 16, 2026
b4119ed
feat(i18b): adds French translation for Blockparty Icons
firestar300 Feb 16, 2026
442d06c
feat(teme): adds basic theme structure and files.
firestar300 Feb 16, 2026
9e898c8
chore(@wordpress/icons): update package
firestar300 Feb 16, 2026
93fca51
docs: adds `wp:cli` script and testing instructions
firestar300 Feb 16, 2026
c615e36
feat: enhances icon selection and display
firestar300 Feb 16, 2026
eb9f0c4
feat: removes outdated theme files
firestar300 Feb 16, 2026
ba665df
feat(i18n): updates translations for French locale
firestar300 Feb 16, 2026
73a2621
fix: defers `getInFlight` call in cache functions
firestar300 Feb 17, 2026
bb010b0
feat: adds .wp-env plugins and configures composer
firestar300 Feb 18, 2026
1135bc6
Merge pull request #2 from BeAPI/feat/php-refactoring
firestar300 Feb 19, 2026
c66ab62
fix: remove png image from theme
firestar300 Feb 19, 2026
a48b5e0
chore(workflows): adds version check workflow for pull requests
firestar300 Feb 19, 2026
b0fbb84
chore: add .gitattributes file
firestar300 Feb 19, 2026
29f2cdd
chore(workflows): configures Composer authentication
firestar300 Feb 19, 2026
78810cc
chore(workflows): updates node setup action and version
firestar300 Feb 19, 2026
4bd763f
chore: updates Composer configuration for authentication
firestar300 Feb 19, 2026
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
37 changes: 37 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Directories
/.git
/.github
/.vscode
/node_modules
/src
/tests

# Configuration files
.distignore
.editorconfig
.gitattributes
.gitignore
.plugin-data
.wp-env.json
grumphp.yml
phpcs.xml.dist
phpunit.xml.dist
psalm.xml.dist

# Dependency management
composer.json
composer.lock
package.json
package-lock.json

# Documentation
CHANGELOG.md
CONTRIBUTING.md
README.md

# Development files
webpack.config.js
yarn.lock
*.log
*.map
.DS_Store
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2

[composer.json]
indent_style = space
indent_size = 2
26 changes: 26 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Directories
/.git export-ignore
/.github export-ignore
/node_modules export-ignore
/src export-ignore

# Configuration files
/.distignore export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.plugin-data export-ignore
/.wp-env.json export-ignore
/grumphp.yml export-ignore
/phpcs.xml.dist export-ignore
/psalm.xml.dist export-ignore

# Dependency management
/composer.json export-ignore
/composer.lock export-ignore
/package.json export-ignore
/package-lock.json export-ignore

# Documentation (GitHub)
/CHANGELOG.md export-ignore
/README.md export-ignore
38 changes: 38 additions & 0 deletions .github/workflows/pull-request-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Check plugin version and tags"
on:
pull_request:
branches:
- main

jobs:
version-check:
name: "Check version doesn't not already exists."
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- id: set-vars
name: "Set variables from .plugin-data file"
run: |
# Get all data from .plugin-data file
content=`cat ./.plugin-data`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=pluginData::$content"

- id: version-check
name: "Check version in .plugin-data is not existing"
run: |
# Check version from .plugin-data
VERSION=${{fromJson(steps.set-vars.outputs.pluginData).version}}

if git rev-parse "$VERSION" >/dev/null 2>&1; then
echo "Tag aleady exists please update the .plugin-data file to good version";
exit 1;
fi
38 changes: 38 additions & 0 deletions .github/workflows/quality-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Javascript Quality Checks

on:
pull_request:
paths:
- 'src/**'
push:
paths:
- 'src/**'
branches:
- main

# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
checks:
name: Lint JS
runs-on: ubuntu-latest

steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'

- name: Install npm dependencies
run: npm ci

- name: Run wp-script lint:js on src folder
run: npm run lint:js src
41 changes: 41 additions & 0 deletions .github/workflows/quality-php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Quality PHP

on:
pull_request:
paths:
- '**.php'

# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
name: PHP quality
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: mbstring, intl #optional, setup extensions

- name: Setup Composer
run: |
composer config --global http-basic.composer.beapi.fr ${{ secrets.COMPOSER_USER }} ${{ secrets.COMPOSER_PASS }}
composer config --global http-basic.packages.beapi.fr ${{ secrets.COMPOSER_USER }} ${{ secrets.COMPOSER_PASS }}

- name: Validate composer file
run: composer validate

- name: Install composer dependencies
run: composer install

- name: Run codesniffer
run: composer cs
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: "Release new TAG"
on:
push:
branches:
- main

jobs:
build-and-release:
name: "Release new TAG"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- id: set-vars
name: "Set variable from .plugin-data file"
run: |
# Get all data from .plugin-data file
content=`cat ./.plugin-data`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=pluginData::$content"

- id: check-version
name: "Check version does not exists"
run: |
# Get the version from .plugin-data file.
VERSION=${{fromJson(steps.set-vars.outputs.pluginData).version}}

echo "Get Branch tag"
if git rev-parse "$VERSION" >/dev/null 2>&1; then
echo "Tag already exists, stop now";
exit 1;
fi

- id: build-node
name: "Build project CSS and JS"
uses: actions/setup-node@v4
with:
node-version: 'package.json'
- run: npm install
- run: npm run build

- id: build-php
name: "Build project PHP"
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
- run: composer install --prefer-dist --no-dev -o --ignore-platform-reqs

- id: commit-and-push
name: "Commit and push new TAG"
run: |
# Get the version from .plugin-data file.
VERSION=${{fromJson(steps.set-vars.outputs.pluginData).version}}

echo "Copy .distignore to .gitignore"
cp .distignore .gitignore

echo "Configure git"
git config --local user.email "$(git log --format='%ae' HEAD^!)"
git config --local user.name "$(git log --format='%an' HEAD^!)"

echo "Creating branch"
git checkout -b release/${VERSION}

echo "Creating tag ${VERSION}"
git add .
git add -u
git commit -m "Release version ${VERSION}"
git tag ${VERSION}
git push --tags
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Coverage directory used by tools like istanbul
coverage

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
!includes/Icon/
!src/icon/
vendor/
build/
.wp-env/plugins/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# dotenv environment variables file
.env

# Editors and OS
.idea
.DS_Store
.nvmrc
phpcs.xml
4 changes: 4 additions & 0 deletions .plugin-data
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "1.0.0",
"slug": "blockparty-icons"
}
11 changes: 11 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": [
".",
".wp-env/plugins/blockparty-accordion",
".wp-env/plugins/blockparty-tabs",
".wp-env/plugins/mega-menu-block"
],
"themes": [
"./.wp-env/themes/"
]
}
Loading
Loading