[MSR] Copy&past of actions and/or drag&drop between set/reset
-
Hey @toggledbits
One thing that bothers me while doing work on new systems/new features, is that I cannot copy&paste actions, and I cannot drag&drop between set and resets.
#1 is for when I want to copy an action between different rules opened in two separate browser windows, while #2 is when I just need to flip a bunch of actions in the reset, or move some logic back and forth.
Both will be appreciated, but I understand the technical challenges. Thanks!
-
Hey @toggledbits
One thing that bothers me while doing work on new systems/new features, is that I cannot copy&paste actions, and I cannot drag&drop between set and resets.
#1 is for when I want to copy an action between different rules opened in two separate browser windows, while #2 is when I just need to flip a bunch of actions in the reset, or move some logic back and forth.
Both will be appreciated, but I understand the technical challenges. Thanks!
@therealdb You know you there's a button for that?
-
@therealdb You know you there's a button for that?
@toggledbits I'll say it aloud: I've never noticed that button LOL
-
@therealdb You know you there's a button for that?
@toggledbits I know. But with 200+ rules and no search box, it's very difficult to find the current set actions I'm working on and I have to save it first to get the current status. Header is not sticky and saving means multiple scrolls and lost of focus. Plus, I'm speaking about copy/pasting the single action/group here.
Imagine this. I want to copy an action doing an mqtt message, and paste to another rule (or in the reset). So, real copy/paste like in normal apps. This should be doable with some local storage and a couple of buttons.
-
The issue with copy-paste is that the
navigator.clipboardbrowser interface only works in secure context, meaning HTTPS or 127.0.0.1/localhost. I like your suggestion of using LocalStorage, and I'll look into that, but even so that's not the big challenge. For example, there isn't really a concept of "focus" on the condition/action rows. While a copy button can be added to each rather than trying to create and track focus, I have resisted adding buttons to the rows because it makes less room for useful displayed data). And how would you paste? And where, since there's no focus? The idea assumes a lot that doesn't exist here.I have some other ideas. Sticky header has already been on my mind, so that's a likely upgrade coming. Stay tuned...











