renyuneyun / Easer

User-defined explicit automation for Android
https://renyuneyun.github.io/Easer/
GNU General Public License v3.0
805 stars 92 forks source link

[FR] New Parameter "Severity Level" for Status Notifications #433

Open just-Nob opened 2 years ago

just-Nob commented 2 years ago

I often use Notifications to test my flow controls that I created with Easer. The problem is that these notifications may be a little annoying in everyday use. On the other hand, I don't want to delete all of them after testing, because I often need them again when changing or expanding the flow controls.

So it would be nice if there was the possibility to define for every notificationa "severity level" (out of at least two choices; about four levels would be optimal, I think - anyway, most time two choices should be sufficient). In Easer's settings, there have to be a corresponding parameter "Show notifications up to level x", for sure.

How to use these parameters? Imagine there are some states where you usually want to tell yourself that the phone's ringer mode changed to any reason, no matter which state changed the mode at what time. So set these notifications to the lowest severity level "1". When creating new flow controls, you may like to have some additional info, e.g. the time where the modes changed and which conditions has led to it etc., etc. - so set these notifications to the 2nd severity level "2". If you had the need for serious, hard debugging, you may want every state to issue a notification. Set notifications' severity level to "3" here. Now you are able to choose the notifications to be displayed by simply changing the value of the parameter "Show notifications up to level x":

By the way, it may be a good idea to have a chance to define in one notification operation setting one independent text string for every severity level (so that only that string is displays which exactly matches the severity level currently being set). If only one a text string for one severity level is set in a notification operation, them the "up to" criteria will be applied for that notification. For example: If only a string for level "2" was set, the notification will be shown on level "1" and " 2", but neither on level "3" nor "0".