diff --git a/docs/appNotifications/prod/de/toast.json b/docs/appNotifications/prod/de/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/prod/de/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/docs/appNotifications/prod/fr/toast.json b/docs/appNotifications/prod/fr/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/prod/fr/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/docs/appNotifications/prod/it/toast.json b/docs/appNotifications/prod/it/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/prod/it/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/docs/appNotifications/prod/ja/toast.json b/docs/appNotifications/prod/ja/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/prod/ja/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/docs/appNotifications/prod/ko/toast.json b/docs/appNotifications/prod/ko/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/prod/ko/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/docs/appNotifications/prod/pt-BR/toast.json b/docs/appNotifications/prod/pt-BR/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/prod/pt-BR/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/docs/appNotifications/prod/root/toast.json b/docs/appNotifications/prod/root/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/prod/root/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/docs/appNotifications/readme.md b/docs/appNotifications/readme.md index 99feb09..7d22285 100644 --- a/docs/appNotifications/readme.md +++ b/docs/appNotifications/readme.md @@ -27,7 +27,8 @@ A sample json is as follows: "DANGER_SHOW_ON_EVERY_BOOT" : false, "HTML_CONTENT": "
hello world Click to acknowledge.
", "FOR_VERSIONS": "1.x || >=2.5.0 || 5.0.0 - 7.2.3", - "PLATFORM" : "allDesktop" + "PLATFORM" : "allDesktop", + "USER_TYPE" : ["paidSubscriber", "loggedIn"] }, "ANOTHER_SAMPLE_NOTIFICATION_NAME": {...} } @@ -48,52 +49,6 @@ A sample json is as follows: The notification will be shown to all versions satisfying this. 5. `PLATFORM`: A comma seperated list(no spaces) of all platforms in which the message will be shown. allowed values are: `mac,win,linux,allDesktop,firefox,chrome,safari,allBrowser,all` - - -## toast notifications - `toast.json` - -Toast notifications are shown at the side on the general notification area. Multiple toast notifications -can be shown at the same time. Format is similar to banner notification. - -By default, a notification is shown only once and auto close after 25 seconds. -If there is an html element with class `notification_ack` it must be clicked to be dismissed, -else it will come up after every boot till it is acknowledged or the close button clicked. - -### Format of `/root/toast.json` - -> - -`` can be `staging` or `prod`. (`dev` stage is directly in phoenix codebase for ease of development.) - -A sample json is as follows: -```json -{ - "SAMPLE_NOTIFICATION_NAME": { - "TRIGGER" : "MENU_CLICK:file.newFolder,HTML_ELEMENT:#project-files-container", - "TYPE": "ERROR/WARN/INFO/SUCCESS", - "HTML_CONTENT": "
hello world Click to acknowledge.
", - "FOR_VERSIONS": "1.x || >=2.5.0 || 5.0.0 - 7.2.3", - "PLATFORM" : "allDesktop", - "autoCloseTimeS": 25 - }, - "ANOTHER_SAMPLE_NOTIFICATION_NAME": {...} -} -``` - -1. `SAMPLE_NOTIFICATION_NAME` : This is a unique ID. It is used to check if the notification was shown to user. -2. `TRIGGER` : The trigger to show the notification. Can be a comma seperated list of one of the following - `APP_START/MENU_CLICK:/KEYBOARD_SHORTCUT:/OTHER:/HTML_ELEMENT:<.class/#id>` - 1. `APP_START` : notification will be shown on app start. - 2. `MENU_CLICK:` : When a command is executed by clicking on a ui menu item. - 3. `KEYBOARD_SHORTCUT:` : When a command is executed by keyboard shortcut. - 4. `HTML_ELEMENT:` : On click on the given html element with jquery selector. -3. `TYPE` : Can be one of `ERROR/WARN/INFO/SUCCESS`. -4. `HTML_CONTENT`: The actual html content to show to the user. It can have an optional `notification_ack` class. - Setting this class in any child html node will cause the notification to be shown once a day until the user explicitly clicks - on any html element with class `notification_ack` or explicitly click the close button. - If such a class is not present, then the notification is shown only once ever. -4. `FOR_VERSIONS` : [Semver compatible version filter](https://www.npmjs.com/package/semver). - The notification will be shown to all versions satisfying this. -5. `PLATFORM`: A comma seperated list(no spaces) of all platforms in which the message will be shown. - allowed values are: `mac,win,linux,allDesktop,firefox,chrome,safari,allBrowser,all` -6. `autoCloseTimeS`: Time to auto close the popup in seconds \ No newline at end of file +6. `USER_TYPE`: An array of all user types in which the message will be shown. + allowed values are: [`all`, `notLoggedIn`, `loggedIn`, `trial`, `paidSubscriber`]. This filter is only available + in versions > 5, else it is ignored in older versions. combine with `FOR_VERSIONS` to filter based on user type. diff --git a/docs/appNotifications/staging/root/toast.json b/docs/appNotifications/staging/root/toast.json deleted file mode 100644 index 7a73a41..0000000 --- a/docs/appNotifications/staging/root/toast.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file