clean up
added mock large qty autos
This commit is contained in:
1 parent
d8a2dd53d5
commit
e769a8e798
13 files changed
+6929
-16
No files matched your search
@@ -6,7 +6,7 @@ import { Page } from "components/Page";
|
||||
import { DEFAULT_DIMS } from "components/DAGGraph/elements/constants";
|
||||
|
||||
export default {
|
||||
title: "App/AutomationList/Connected",
|
||||
title: "App/AutomationList/MockConnected",
|
||||
component: ConnectedAutomationList,
|
||||
parameters: { actions: { argTypesRegex: "^on.*" } },
|
||||
args: {
|
||||
|
||||
@@ -19,7 +19,7 @@ import { ButtonNodeMaker } from "../nodes/ButtonNode";
|
||||
import { AddIcon } from "components/Icons";
|
||||
import { useDAGElementsState } from "./state";
|
||||
import AddBox from "@mui/icons-material/AddBox";
|
||||
import { DAGGraphChooseUpdater, DAGGraphUpdater } from "../updater";
|
||||
import { DAGGraphChooseUpdater } from "../updater";
|
||||
import { getSpecialNodeMaker, makeSpecialNodeMaker } from "./specialnodes";
|
||||
import { getNodeSubType } from "../../../utils/automations";
|
||||
import DeleteForeverIcon from "@mui/icons-material/DeleteForever";
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import { FC, useState } from "react";
|
||||
import {
|
||||
AutomationActionData,
|
||||
AutomationSequenceNode,
|
||||
} from "types/automations";
|
||||
import { AutomationSequenceNode } from "types/automations";
|
||||
import { useHA } from "haService";
|
||||
import { ModalState } from "./board/types";
|
||||
import { createUpdater } from "./updater";
|
||||
|
||||
@@ -3,7 +3,6 @@ import { NodeTypes } from "react-flow-renderer";
|
||||
import { makeNodeMaker } from "./NodeMaker";
|
||||
import { DAGDims } from "../elements/types";
|
||||
|
||||
export type NodeManager = typeof NodeManager;
|
||||
export const NodeManager = (() => {
|
||||
const nodeTypes: NodeTypes = {};
|
||||
return {
|
||||
|
||||
@@ -11,7 +11,6 @@ import {
|
||||
RepeatAction,
|
||||
ParallelAction,
|
||||
} from "types/automations/actions";
|
||||
import { ScriptConditionField } from "types/automations/common";
|
||||
import { convertScriptConditionFieldToAutomationConditions } from "utils/automations";
|
||||
import { AutomationNode } from "types/automations";
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export const ActionChooseState: OptionManager<ChooseAction> = {
|
||||
choose: [],
|
||||
}),
|
||||
isReady: () => true,
|
||||
Component: ({}) => {
|
||||
Component: () => {
|
||||
return <></>;
|
||||
},
|
||||
};
|
||||
@@ -1,8 +1,6 @@
|
||||
import InputNumber from "components/Inputs/InputNumber";
|
||||
import InputYaml from "components/Inputs/InputYaml";
|
||||
import { useState } from "react";
|
||||
import { RepeatAction } from "types/automations/actions";
|
||||
import { OptionManager, updateActionData } from "./OptionManager";
|
||||
import { OptionManager } from "./OptionManager";
|
||||
import { InputAutoComplete } from "components/Inputs/InputAutoComplete";
|
||||
|
||||
const determineType = (repeatNode: RepeatAction["repeat"]) =>
|
||||
@@ -16,7 +14,7 @@ export const ActionRepeatState: OptionManager<RepeatAction> = {
|
||||
sequence: [],
|
||||
},
|
||||
}),
|
||||
isReady: ({}) => true,
|
||||
isReady: () => true,
|
||||
Component: ({ state, setState }) => {
|
||||
const repeatType = determineType(state.repeat);
|
||||
return (
|
||||
|
||||
@@ -8,7 +8,6 @@ import {
|
||||
} from "types/automations/common";
|
||||
import { AutomationTriggerZone } from "types/automations/triggers";
|
||||
import StopIcon from "@mui/icons-material/PanToolOutlined";
|
||||
import { RepeatAction } from "types/automations/actions";
|
||||
export interface Namer {
|
||||
getEntityName(entity_id: string | string[], maxEntities?: number): string;
|
||||
getDeviceName(device_id: string): string;
|
||||
|
||||
Reference in new issue
Block a user