new automation support
This commit is contained in:
1 parent
96617e7b0c
commit
3f0430ab37
9 files changed
+285
-136
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { AutomationManagerAuto } from "../types";
|
||||
|
||||
export const filterAutomations = (
|
||||
autos: AutomationManagerAuto[],
|
||||
searchText: string
|
||||
): AutomationManagerAuto[] =>
|
||||
autos.filter((a) => {
|
||||
if (searchText.length > 0) {
|
||||
if (
|
||||
!(
|
||||
(a.description ?? "").toLocaleLowerCase().includes(searchText) ||
|
||||
(a.title ?? "").toLocaleLowerCase().includes(searchText)
|
||||
)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
@@ -5,6 +5,7 @@
|
||||
--bottom-height: 3em;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
min-width: 25vw;
|
||||
}
|
||||
|
||||
.automation-manager--sidebar-box--nav {
|
||||
@@ -35,6 +36,7 @@
|
||||
|
||||
.automation-manager--sidebar.hidden {
|
||||
width: 2.5em;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.automation-manager--sidebar.hidden .automation-manager--sidebar-box--nav,
|
||||
|
||||
@@ -8,7 +8,7 @@ import InputText from "components/Inputs/InputText";
|
||||
import InputMultiSelect from "components/Inputs/InputMultiSelect";
|
||||
|
||||
import { ListBoxGroup } from "../ListBoxGroup";
|
||||
import { filterAutomations } from "../helpers";
|
||||
import { filterAutomations } from "./helpers";
|
||||
import { TagDB } from "../TagDB";
|
||||
import { convertGroupingToItems, makeGrouping } from "../automationGrouper";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user