From db4e7f1d08017df8cc0ca13634609a3878239449 Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 23 Feb 2026 15:50:26 +0100 Subject: [PATCH 1/6] fix: uses label if available for icon collections Updates the icon modal to display the `label` property of a collection if it exists, falling back to the `name` property if not. This allows for more user-friendly and descriptive names for icon collections in the UI. --- src/components/icon-modal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/icon-modal.js b/src/components/icon-modal.js index a3e9e54..687137d 100644 --- a/src/components/icon-modal.js +++ b/src/components/icon-modal.js @@ -535,14 +535,16 @@ function IconModal( { collections, onClose, handleIconSelectButtonClick } ) { 'blockparty-icons' ), capitalize( - c.name + c.label || + c.name ), c.icons ?.length ?? 0 ) : capitalize( - c.name + c.label || + c.name ), } ) ) } From ffa5819b7ad56968207a6468eb4131b8fd2cf0ca Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 23 Feb 2026 15:50:48 +0100 Subject: [PATCH 2/6] feat(icon-selector): adds tooltips to icon selector buttons Improves user experience by adding tooltips to icon selector buttons, displaying the icon's label or name on hover. This enhancement provides clarity and context for each icon, facilitating easier selection. --- src/components/icon-selector.js | 49 ++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/src/components/icon-selector.js b/src/components/icon-selector.js index 6b0cc4e..6d64728 100644 --- a/src/components/icon-selector.js +++ b/src/components/icon-selector.js @@ -2,9 +2,10 @@ * WordPress dependencies */ import { memo } from '@wordpress/element'; -import { Button } from '@wordpress/components'; +import { Button, Tooltip } from '@wordpress/components'; import IconContent from './icon-content'; +import { capitalize } from '../utils'; /** * IconSelector component @@ -28,28 +29,32 @@ function IconSelector( { children, } ) { return ( - + + { children } + + + ); } From 5825eff0d6d5f75b46aed01f935981389cd81b5e Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 23 Feb 2026 15:51:04 +0100 Subject: [PATCH 3/6] fix(theme): label / name register icon --- .wp-env/themes/icon-block-theme/functions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.wp-env/themes/icon-block-theme/functions.php b/.wp-env/themes/icon-block-theme/functions.php index e5c7e38..6a40cad 100644 --- a/.wp-env/themes/icon-block-theme/functions.php +++ b/.wp-env/themes/icon-block-theme/functions.php @@ -13,24 +13,27 @@ function wpc_mime_types( $mimes ) { add_action( 'blockparty_icons_init', function () { register_icon_collection( - 'Bootstrap', + 'icon-bootstrap', [ + 'label' => 'Bootstrap Icons', 'type' => 'sprite', 'source' => get_theme_file_path( '/icons/bootstrap-icons.svg' ), ] ); register_icon_collection( - 'Social', + 'icon-social', [ + 'label' => 'Social Icons', 'type' => 'sprite', 'source' => get_theme_file_path( '/icons/social.svg' ), ] ); register_icon_collection( - 'Folder', + 'icon-user', [ + 'label' => 'User Icons', 'type' => 'folder', 'source' => get_theme_file_path( '/icons/user' ), ] From a689437ae9d8cc8f536ee352e7626ad4f1a26f6a Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 23 Feb 2026 15:51:13 +0100 Subject: [PATCH 4/6] chore: removes push trigger from quality checks Removes the push trigger from the quality-js workflow to avoid redundant checks. The workflow is primarily intended for pull requests. --- .github/workflows/quality-js.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/quality-js.yml b/.github/workflows/quality-js.yml index 77bb2ed..75893fb 100644 --- a/.github/workflows/quality-js.yml +++ b/.github/workflows/quality-js.yml @@ -4,11 +4,6 @@ on: pull_request: paths: - 'src/**' - push: - paths: - - 'src/**' - branches: - - main # Cancels all previous workflow runs for pull requests that have not completed. concurrency: From 4f7ae26b9dcdc222205bf4af9fdef33ff30bb5cd Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 23 Feb 2026 15:52:49 +0100 Subject: [PATCH 5/6] chore: bump plugin version --- .plugin-data | 2 +- CHANGELOG.md | 6 ++++++ blockparty-icons.php | 4 ++-- package.json | 2 +- src/block.json | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.plugin-data b/.plugin-data index 83aec9e..11b7157 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.0.4", + "version": "1.0.5", "slug": "blockparty-icons" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cfc9af..37b3e33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ This plugin **doesn't run any sanitization on SVGs** before using them. Only use ## Changelog +### 1.0.5 - 2026-02-23 + +- Set label collection on tabs item in icons selector modal instead of collection slug +- Add tooltip to icon selector buttons +- Remove quality js workflow on merge + ### 1.0.4 - 2026-02-20 - Improve search result display in icons selector modal. diff --git a/blockparty-icons.php b/blockparty-icons.php index a9a108d..d5e6ae7 100644 --- a/blockparty-icons.php +++ b/blockparty-icons.php @@ -4,7 +4,7 @@ * Description: Provides blocks in WordPress editor to add custom SVG icons. * Requires at least: 6.2 * Requires PHP: 8.1 - * Version: 1.0.4 + * Version: 1.0.5 * Author: Blockparty * Author URI: https://beapi.fr * License: GPL-2.0-or-later @@ -29,7 +29,7 @@ include_once __DIR__ . '/vendor/autoload.php'; } -define( 'BLOCKPARTY_ICONS_VERSION', '1.0.4' ); +define( 'BLOCKPARTY_ICONS_VERSION', '1.0.5' ); define( 'BLOCKPARTY_ICONS_URL', plugin_dir_url( __FILE__ ) ); define( 'BLOCKPARTY_ICONS_DIR', plugin_dir_path( __FILE__ ) ); define( 'BLOCKPARTY_ICONS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); diff --git a/package.json b/package.json index 699c286..56ea3c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-icons", - "version": "1.0.4", + "version": "1.0.5", "description": "Provides blocks in WordPress editor to add custom SVG icons from your theme.", "author": "Be API Technical team", "license": "GPL-2.0-or-later", diff --git a/src/block.json b/src/block.json index 498837c..b6c467e 100644 --- a/src/block.json +++ b/src/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/icon", - "version": "1.0.4", + "version": "1.0.5", "title": "Icon", "category": "widgets", "description": "Easily add custom vector icon to your content.", From 44d078a4685b0cf37818b7e89422b3e07a1e1862 Mon Sep 17 00:00:00 2001 From: mricoul Date: Mon, 23 Feb 2026 15:54:56 +0100 Subject: [PATCH 6/6] chore(workflow): fix indent --- .github/workflows/quality-js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quality-js.yml b/.github/workflows/quality-js.yml index 75893fb..798f4f2 100644 --- a/.github/workflows/quality-js.yml +++ b/.github/workflows/quality-js.yml @@ -2,8 +2,8 @@ name: Javascript Quality Checks on: pull_request: - paths: - - 'src/**' + paths: + - 'src/**' # Cancels all previous workflow runs for pull requests that have not completed. concurrency: