Plugin Directory

Changeset 3436728


Ignore:
Timestamp:
01/10/2026 04:39:34 PM (3 months ago)
Author:
bsolveit
Message:

Version 1.4.2 - Add save notification UX improvement

Location:
365i-queue-optimizer
Files:
6 edited
3 copied

Legend:

Unmodified
Added
Removed
  • 365i-queue-optimizer/tags/1.4.2/365i-queue-optimizer.php

    r3436719 r3436728  
    44 * Plugin URI: https://www.365i.co.uk/blog/2025/04/20/fix-wordpress-6-8-slow-image-uploads-with-365i-queue-optimizer/
    55 * Description: A lightweight WordPress plugin to optimize ActionScheduler queue processing for faster image optimization and background tasks.
    6  * Version: 1.4.1
     6 * Version: 1.4.2
    77 * Author: 365i
    88 * Author URI: https://www.mcneece.com/author/mark-mcneece/
     
    2222
    2323// Define plugin constants.
    24 define( 'QUEUE_OPTIMIZER_VERSION', '1.4.1' );
     24define( 'QUEUE_OPTIMIZER_VERSION', '1.4.2' );
    2525define( 'QUEUE_OPTIMIZER_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2626define( 'QUEUE_OPTIMIZER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • 365i-queue-optimizer/tags/1.4.2/assets/css/admin.css

    r3436597 r3436728  
    359359    margin-right: 8px;
    360360}
     361
     362/* ==========================================================================
     363   SAVE NOTIFICATION
     364   ========================================================================== */
     365
     366.qo-save-notice {
     367    position: fixed;
     368    top: 50px;
     369    right: 20px;
     370    z-index: 99999;
     371    background: #00a32a;
     372    color: #fff;
     373    padding: 12px 20px;
     374    border-radius: 4px;
     375    font-size: 14px;
     376    font-weight: 500;
     377    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     378    opacity: 0;
     379    transform: translateX(100px);
     380    transition: all 0.3s ease;
     381}
     382
     383.qo-save-notice.qo-notice-visible {
     384    opacity: 1;
     385    transform: translateX(0);
     386}
     387
     388.qo-save-notice .dashicons {
     389    font-size: 18px;
     390    width: 18px;
     391    height: 18px;
     392    vertical-align: middle;
     393    margin-right: 6px;
     394}
  • 365i-queue-optimizer/tags/1.4.2/assets/js/admin.js

    r3436597 r3436728  
    1717        initRunQueue();
    1818        initHelpText();
     19        initSaveNotification();
    1920    }
    2021
     
    159160    }
    160161
     162    /**
     163     * Show save notification when settings are saved
     164     */
     165    function initSaveNotification() {
     166        // Check if settings were just saved
     167        var urlParams = new URLSearchParams(window.location.search);
     168        if (urlParams.get('settings-updated') === 'true') {
     169            // Create and show the notification
     170            var $notice = $('<div class="qo-save-notice">' +
     171                '<span class="dashicons dashicons-yes-alt"></span> ' +
     172                'Settings saved successfully!</div>');
     173
     174            $('body').append($notice);
     175
     176            // Trigger animation
     177            setTimeout(function() {
     178                $notice.addClass('qo-notice-visible');
     179            }, 100);
     180
     181            // Auto-dismiss after 3 seconds
     182            setTimeout(function() {
     183                $notice.removeClass('qo-notice-visible');
     184                setTimeout(function() {
     185                    $notice.remove();
     186                }, 300);
     187            }, 3000);
     188
     189            // Remove the query parameter from URL without reload
     190            var newUrl = window.location.pathname + '?page=queue-optimizer';
     191            window.history.replaceState({}, '', newUrl);
     192        }
     193    }
     194
    161195    // Initialize when document is ready
    162196    $(document).ready(function() {
  • 365i-queue-optimizer/tags/1.4.2/readme.txt

    r3436719 r3436728  
    44Requires at least: 5.8
    55Tested up to: 6.9
    6 Stable tag: 1.4.1
     6Stable tag: 1.4.2
    77Requires PHP: 8.0
    88License: GPLv2 or later
     
    193193
    194194== Changelog ==
     195
     196= 1.4.2 - 2025-01-10 =
     197* Added save notification that appears when settings are saved and auto-dismisses after 3 seconds
    195198
    196199= 1.4.1 - 2025-01-10 =
     
    333336== Upgrade Notice ==
    334337
     338= 1.4.2 =
     339UX improvement: Save notification now appears when settings are saved.
     340
    335341= 1.4.1 =
    336342Added WordPress Playground Live Preview support.
  • 365i-queue-optimizer/trunk/365i-queue-optimizer.php

    r3436719 r3436728  
    44 * Plugin URI: https://www.365i.co.uk/blog/2025/04/20/fix-wordpress-6-8-slow-image-uploads-with-365i-queue-optimizer/
    55 * Description: A lightweight WordPress plugin to optimize ActionScheduler queue processing for faster image optimization and background tasks.
    6  * Version: 1.4.1
     6 * Version: 1.4.2
    77 * Author: 365i
    88 * Author URI: https://www.mcneece.com/author/mark-mcneece/
     
    2222
    2323// Define plugin constants.
    24 define( 'QUEUE_OPTIMIZER_VERSION', '1.4.1' );
     24define( 'QUEUE_OPTIMIZER_VERSION', '1.4.2' );
    2525define( 'QUEUE_OPTIMIZER_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2626define( 'QUEUE_OPTIMIZER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • 365i-queue-optimizer/trunk/assets/css/admin.css

    r3436597 r3436728  
    359359    margin-right: 8px;
    360360}
     361
     362/* ==========================================================================
     363   SAVE NOTIFICATION
     364   ========================================================================== */
     365
     366.qo-save-notice {
     367    position: fixed;
     368    top: 50px;
     369    right: 20px;
     370    z-index: 99999;
     371    background: #00a32a;
     372    color: #fff;
     373    padding: 12px 20px;
     374    border-radius: 4px;
     375    font-size: 14px;
     376    font-weight: 500;
     377    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     378    opacity: 0;
     379    transform: translateX(100px);
     380    transition: all 0.3s ease;
     381}
     382
     383.qo-save-notice.qo-notice-visible {
     384    opacity: 1;
     385    transform: translateX(0);
     386}
     387
     388.qo-save-notice .dashicons {
     389    font-size: 18px;
     390    width: 18px;
     391    height: 18px;
     392    vertical-align: middle;
     393    margin-right: 6px;
     394}
  • 365i-queue-optimizer/trunk/assets/js/admin.js

    r3436597 r3436728  
    1717        initRunQueue();
    1818        initHelpText();
     19        initSaveNotification();
    1920    }
    2021
     
    159160    }
    160161
     162    /**
     163     * Show save notification when settings are saved
     164     */
     165    function initSaveNotification() {
     166        // Check if settings were just saved
     167        var urlParams = new URLSearchParams(window.location.search);
     168        if (urlParams.get('settings-updated') === 'true') {
     169            // Create and show the notification
     170            var $notice = $('<div class="qo-save-notice">' +
     171                '<span class="dashicons dashicons-yes-alt"></span> ' +
     172                'Settings saved successfully!</div>');
     173
     174            $('body').append($notice);
     175
     176            // Trigger animation
     177            setTimeout(function() {
     178                $notice.addClass('qo-notice-visible');
     179            }, 100);
     180
     181            // Auto-dismiss after 3 seconds
     182            setTimeout(function() {
     183                $notice.removeClass('qo-notice-visible');
     184                setTimeout(function() {
     185                    $notice.remove();
     186                }, 300);
     187            }, 3000);
     188
     189            // Remove the query parameter from URL without reload
     190            var newUrl = window.location.pathname + '?page=queue-optimizer';
     191            window.history.replaceState({}, '', newUrl);
     192        }
     193    }
     194
    161195    // Initialize when document is ready
    162196    $(document).ready(function() {
  • 365i-queue-optimizer/trunk/readme.txt

    r3436719 r3436728  
    44Requires at least: 5.8
    55Tested up to: 6.9
    6 Stable tag: 1.4.1
     6Stable tag: 1.4.2
    77Requires PHP: 8.0
    88License: GPLv2 or later
     
    193193
    194194== Changelog ==
     195
     196= 1.4.2 - 2025-01-10 =
     197* Added save notification that appears when settings are saved and auto-dismisses after 3 seconds
    195198
    196199= 1.4.1 - 2025-01-10 =
     
    333336== Upgrade Notice ==
    334337
     338= 1.4.2 =
     339UX improvement: Save notification now appears when settings are saved.
     340
    335341= 1.4.1 =
    336342Added WordPress Playground Live Preview support.
Note: See TracChangeset for help on using the changeset viewer.