Merge remote-tracking branch 'origin/dev' into zustand/io/migration
This commit is contained in:
commit
914fa0699f
5 changed files with 200 additions and 1346 deletions
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
|
|
@ -3,7 +3,15 @@ name: lint
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- "poetry.lock"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- "src/backend/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "poetry.lock"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- "src/backend/**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "1.7.0"
|
POETRY_VERSION: "1.7.0"
|
||||||
|
|
|
||||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
|
@ -3,8 +3,16 @@ name: test
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- "poetry.lock"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- "src/backend/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [dev]
|
branches: [dev]
|
||||||
|
paths:
|
||||||
|
- "poetry.lock"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- "src/backend/**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "1.5.0"
|
POETRY_VERSION: "1.5.0"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,11 @@ import Checkmark from "../../components/ui/checkmark";
|
||||||
import Loading from "../../components/ui/loading";
|
import Loading from "../../components/ui/loading";
|
||||||
import { Textarea } from "../../components/ui/textarea";
|
import { Textarea } from "../../components/ui/textarea";
|
||||||
import Xmark from "../../components/ui/xmark";
|
import Xmark from "../../components/ui/xmark";
|
||||||
import { priorityFields, statusBuild, statusBuilding } from "../../constants/constants";
|
import {
|
||||||
|
priorityFields,
|
||||||
|
statusBuild,
|
||||||
|
statusBuilding,
|
||||||
|
} from "../../constants/constants";
|
||||||
import { BuildStatus } from "../../constants/enums";
|
import { BuildStatus } from "../../constants/enums";
|
||||||
import NodeToolbarComponent from "../../pages/FlowPage/components/nodeToolbarComponent";
|
import NodeToolbarComponent from "../../pages/FlowPage/components/nodeToolbarComponent";
|
||||||
import { useDarkStore } from "../../stores/darkStore";
|
import { useDarkStore } from "../../stores/darkStore";
|
||||||
|
|
@ -211,9 +215,7 @@ export default function GenericNode({
|
||||||
return "inactive-status";
|
return "inactive-status";
|
||||||
}
|
}
|
||||||
if (buildStatus === BuildStatus.BUILT && isInvalid) {
|
if (buildStatus === BuildStatus.BUILT && isInvalid) {
|
||||||
return isDark
|
return isDark ? "built-invalid-status-dark" : "built-invalid-status";
|
||||||
? "built-invalid-status-dark"
|
|
||||||
: "built-invalid-status";
|
|
||||||
} else if (buildStatus === BuildStatus.BUILDING) {
|
} else if (buildStatus === BuildStatus.BUILDING) {
|
||||||
return "building-status";
|
return "building-status";
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -295,7 +297,7 @@ export default function GenericNode({
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
"generic-node-title-arrangement rounded-full" +
|
"generic-node-title-arrangement rounded-full" +
|
||||||
(!showNode && " justify-center")
|
(!showNode && " justify-center ")
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{iconNodeRender()}
|
{iconNodeRender()}
|
||||||
|
|
@ -331,21 +333,20 @@ export default function GenericNode({
|
||||||
) : (
|
) : (
|
||||||
<ShadTooltip content={data.node?.display_name}>
|
<ShadTooltip content={data.node?.display_name}>
|
||||||
<div className="group flex items-center gap-2.5">
|
<div className="group flex items-center gap-2.5">
|
||||||
|
<div
|
||||||
<div
|
onDoubleClick={(event) => {
|
||||||
onDoubleClick={(event) => {
|
if (nameEditable) {
|
||||||
if (nameEditable) {
|
setInputName(true);
|
||||||
setInputName(true);
|
}
|
||||||
}
|
takeSnapshot();
|
||||||
takeSnapshot();
|
event.stopPropagation();
|
||||||
event.stopPropagation();
|
event.preventDefault();
|
||||||
event.preventDefault();
|
}}
|
||||||
}}
|
data-testid={"title-" + data.node?.display_name}
|
||||||
data-testid={"title-" + data.node?.display_name}
|
className="generic-node-tooltip-div text-primary"
|
||||||
className="generic-node-tooltip-div text-primary"
|
>
|
||||||
>
|
{data.node?.display_name}
|
||||||
{data.node?.display_name}
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{nameEditable && (
|
{nameEditable && (
|
||||||
<div
|
<div
|
||||||
|
|
@ -477,11 +478,11 @@ export default function GenericNode({
|
||||||
) : (
|
) : (
|
||||||
<div className="max-h-96 overflow-auto">
|
<div className="max-h-96 overflow-auto">
|
||||||
{typeof validationStatus.params === "string"
|
{typeof validationStatus.params === "string"
|
||||||
? (`${durationString}\n${validationStatus.params}`
|
? `${durationString}\n${validationStatus.params}`
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.map((line, index) => (
|
.map((line, index) => (
|
||||||
<div key={index}>{line}</div>
|
<div key={index}>{line}</div>
|
||||||
)))
|
))
|
||||||
: durationString}
|
: durationString}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 406 KiB |
Loading…
Add table
Add a link
Reference in a new issue