From 787395fccd26bab8db1ab25391eff734a4f9a202 Mon Sep 17 00:00:00 2001 From: riccardoperra Date: Mon, 11 Nov 2024 21:59:31 +0100 Subject: [PATCH] fix --- README.md | 2 ++ .../app/src/components/Editor/Header/Header.tsx | 14 ++++++++++---- .../WorkflowDispatchItemForm.tsx | 17 ----------------- .../Home/CurrentUser/CurrentUser.css.ts | 3 ++- packages/app/src/store/editor/actions/helper.ts | 8 ++++++-- .../store/editor/actions/workflow-dispatch.ts | 15 ++++++++++++++- 6 files changed, 34 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index de64aa9..afcb343 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,8 @@ This project uses [ungh](https://github.com/unjs/ungh) from UnJS in order to cal This project uses [statebuilder](https://github.com/riccardoperra/statebuilder) to handle local state. +The editor store uses a command-based approach which granularly update the yaml code imperatively via [yaml](https://www.npmjs.com/package/yaml) package. + See some implementations in `store` folder: - [packages/app/src/store/editor](packages/app/src/store/editor) diff --git a/packages/app/src/components/Editor/Header/Header.tsx b/packages/app/src/components/Editor/Header/Header.tsx index 6e0d875..95c1bd2 100644 --- a/packages/app/src/components/Editor/Header/Header.tsx +++ b/packages/app/src/components/Editor/Header/Header.tsx @@ -62,7 +62,8 @@ function EditorHeaderForkButton() { {_( msg`Forking this source will create a new scratch remotely connected to your profile, that can be modified only by you`, )} -
+
+ {/* TODO: fix this inline style */}
{_(msg`Confirm`)} +
-
diff --git a/packages/app/src/components/Editor/Properties/WorkflowDispatchForm/WorkflowDispatchItemForm.tsx b/packages/app/src/components/Editor/Properties/WorkflowDispatchForm/WorkflowDispatchItemForm.tsx index 998611b..089ec0b 100644 --- a/packages/app/src/components/Editor/Properties/WorkflowDispatchForm/WorkflowDispatchItemForm.tsx +++ b/packages/app/src/components/Editor/Properties/WorkflowDispatchForm/WorkflowDispatchItemForm.tsx @@ -65,23 +65,6 @@ export function WorkflowDispatchItemForm(props: WorkflowDispatchItemFormProps) { /> - -