From 46e1d721feccda147def4f710bca876fa86f48b7 Mon Sep 17 00:00:00 2001 From: Rodrigo Gomez Palacio Date: Fri, 20 Dec 2024 13:03:42 -0600 Subject: [PATCH 1/4] Add an admin notice directing folks to migrate settings Motivation: get folks to migrate after upgrading plugin --- onesignal.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/onesignal.php b/onesignal.php index f90e3e1..9040cee 100644 --- a/onesignal.php +++ b/onesignal.php @@ -54,4 +54,15 @@ // Initialize V2 admin and public components add_action('init', ['OneSignal_Admin', 'init']); add_action('init', ['OneSignal_Public', 'init']); + add_action('admin_notices', 'migration_notice'); +} + +function migration_notice() { + // Only show the notice on the Plugins page + $screen = get_current_screen(); + if ($screen && $screen->id === 'plugins') { + echo '
+

OneSignal Migration Needed: All OneSignal prompt configurations are moving to OneSignal.com. See the plugin page for more info.

+
'; + } } From 9a6cc6a5db39710328a4bf94d92020b0888ef0ca Mon Sep 17 00:00:00 2001 From: Rodrigo Gomez Palacio Date: Fri, 20 Dec 2024 15:48:01 -0600 Subject: [PATCH 2/4] Modify v2 styles to call more attention to migration steps Motivation: users may just rush through the migration without reading carefully. --- v2/views/config.php | 8 ++++++-- v2/views/css/site.css | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/v2/views/config.php b/v2/views/config.php index 4bf33ba..d0a3c25 100644 --- a/v2/views/config.php +++ b/v2/views/config.php @@ -65,11 +65,15 @@ diff --git a/v2/views/css/site.css b/v2/views/css/site.css index 96807f9..3f570c3 100644 --- a/v2/views/css/site.css +++ b/v2/views/css/site.css @@ -846,7 +846,7 @@ header[class=onesignal] #logo-onesignal { background-color: #3A3DB2; color: white; border: none; - padding: 0.5em 1em; + padding: 1em 1em; font-size: 1.1rem; font-family: "Lato"; font-weight: 500; From 62cb80c21a940f0d420518c4a7bef3569eb6b169 Mon Sep 17 00:00:00 2001 From: Rodrigo Gomez Palacio Date: Fri, 20 Dec 2024 15:51:32 -0600 Subject: [PATCH 3/4] Add back gitignore --- .gitignore | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aaa58cd --- /dev/null +++ b/.gitignore @@ -0,0 +1,66 @@ +ChromePhp.php +onesignal-free-web-push-notifications.zip +views/images/settings/ParseToOneSignal.png +.vscode/ + +.map +**/*.map +onesignal-free-push-notifications.zip + +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +# Created by .ignore support plugin (hsz.mobi) + +.DS_Store + +onesignal-extra.php + +docker-instance-files/* +# Expection to the rule as we need this files to modify plugin upload limits +!uploads.ini From e0a709093082467bca8d69b4ec042e0e9f8ce5f0 Mon Sep 17 00:00:00 2001 From: Rodrigo Gomez Palacio Date: Fri, 20 Dec 2024 16:18:10 -0600 Subject: [PATCH 4/4] 3.0.2 Release Commit Update version numbers --- onesignal.php | 2 +- readme.txt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/onesignal.php b/onesignal.php index 9040cee..9ea54bc 100644 --- a/onesignal.php +++ b/onesignal.php @@ -6,7 +6,7 @@ * Plugin Name: OneSignal Push Notifications * Plugin URI: https://onesignal.com/ * Description: Free web push notifications. - * Version: 3.0.1 + * Version: 3.0.2 * Author: OneSignal * Author URI: https://onesignal.com * License: MIT diff --git a/readme.txt b/readme.txt index 7698050..ceb5b29 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://onesignal.com Tags: push notification, push notifications, desktop notifications, mobile notifications, chrome push, android, android notification, android notifications, android push, desktop notification, firefox, firefox push, mobile, mobile notification, notification, notifications, notify, onesignal, push, push messages, safari, safari push, web push, chrome Requires at least: 3.8 Tested up to: 6.7 -Stable tag: 3.0.1 +Stable tag: 3.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -64,6 +64,9 @@ OneSignal is trusted by over 1.8M+ developers and marketing strategists. We powe == Changelog == += 3.0.2 = +- Adding an admin notice and updated styles to encourage settings migration. + = 3.0.1 = WARNING: this update contains changes that may break specific setups, as detailed below: