From 1fae38872573b5cf4f1fd661b6c16b12de222d65 Mon Sep 17 00:00:00 2001 From: Vitalii Solovei Date: Thu, 28 May 2026 17:26:31 +0200 Subject: [PATCH 1/3] add check/uncheck all for related assets ui (WP-1005) Co-Authored-By: Claude Sonnet 4.6 --- js/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/js/app.js b/js/app.js index 7464a168..78922c31 100644 --- a/js/app.js +++ b/js/app.js @@ -437,6 +437,22 @@ function JobWizard({ isBulkSubmitPage, contentType, contentId, locales, ajaxUrl, relations.length > 0 && el('fieldset', { style: { marginTop: '16px', border: '1px solid #ddd', padding: '12px', borderRadius: '4px' } }, el('legend', { style: { fontWeight: 600, padding: '0 8px' } }, 'Related content to be uploaded'), + el('div', { style: { display: 'flex', gap: '8px', marginBottom: '8px' } }, + el(Button, { + variant: 'secondary', + size: 'small', + onClick: () => { + const all = {}; + relations.forEach(r => { all[`${r.contentType}-${r.id}`] = true; }); + setSelectedRelations(all); + } + }, 'Check All'), + el(Button, { + variant: 'secondary', + size: 'small', + onClick: () => setSelectedRelations({}) + }, 'Uncheck All') + ), el('div', { style: { maxHeight: '200px', overflowY: 'auto' } }, relations.map(rel => { const key = `${rel.contentType}-${rel.id}`; From b50d02ae659bffe3d979cba5dccc0d3f834b7944 Mon Sep 17 00:00:00 2001 From: Vitalii Solovei Date: Thu, 28 May 2026 17:27:15 +0200 Subject: [PATCH 2/3] bump version, add readme (WP-1005) Co-Authored-By: Claude Sonnet 4.6 --- composer.json | 2 +- readme.txt | 5 ++++- smartling-connector.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 98a04bec..c38c4e6a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "smartling/wordpress-connector", "license": "GPL-2.0-or-later", - "version": "5.5.1", + "version": "5.5.2", "description": "", "type": "wordpress-plugin", "repositories": [ diff --git a/readme.txt b/readme.txt index 7bf8845c..f225c18c 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: translation, localization, multilingual, internationalization, smartling Requires at least: 5.5 Tested up to: 6.9 Requires PHP: 8.0 -Stable tag: 5.5.1 +Stable tag: 5.5.2 License: GPLv2 or later Translate content in WordPress quickly and seamlessly with Smartling, the industry-leading Translation Management System. @@ -62,6 +62,9 @@ Additional information on the Smartling Connector for WordPress can be found [he 3. Track translation status within WordPress from the Submissions Board. View overall progress of submitted translation requests as well as resend updated content. == Changelog == += 5.5.2 = +* Added "Check All" and "Uncheck All" buttons to the related assets list + = 5.5.1 = * Fixed broken HTML in the content edit view that prevented WordPress postboxes below the Smartling box from opening after the Smartling box was collapsed diff --git a/smartling-connector.php b/smartling-connector.php index 9d36b118..10a3e036 100755 --- a/smartling-connector.php +++ b/smartling-connector.php @@ -11,7 +11,7 @@ * Plugin Name: Smartling Connector * Plugin URI: https://www.smartling.com/products/automate/integrations/wordpress/ * Description: Integrate your WordPress site with Smartling to upload your content and download translations. - * Version: 5.5.1 + * Version: 5.5.2 * Author: Smartling * Author URI: https://www.smartling.com * License: GPL-2.0+ From 693d280b4fc09b48fbc18bc278b89584ac21d363 Mon Sep 17 00:00:00 2001 From: Vitalii Solovei Date: Fri, 29 May 2026 12:52:41 +0200 Subject: [PATCH 3/3] fix margin (WP-1005) Co-Authored-By: Claude Sonnet 4.6 --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 78922c31..2e8a0a52 100644 --- a/js/app.js +++ b/js/app.js @@ -466,7 +466,7 @@ function JobWizard({ isBulkSubmitPage, contentType, contentId, locales, ajaxUrl, style: { width: '30px', height: '30px', objectFit: 'cover', verticalAlign: 'middle', marginLeft: '5px' } }) : null; - return el('label', { key, style: { display: 'flex', alignItems: 'center', marginBottom: '8px', cursor: 'pointer' } }, + return el('label', { key, style: { display: 'flex', alignItems: 'center', margin: '8px 0', cursor: 'pointer' } }, el('input', { type: 'checkbox', checked: selectedRelations[key] || false,