From e112357e9133907fa6cb10324ed7c41a250b8dc7 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 2 Jan 2025 11:00:03 +0800 Subject: [PATCH 1/2] chore: temp --- .../utils/format-log/simple-graph-to-log-struct.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 web/app/components/workflow/run/utils/format-log/simple-graph-to-log-struct.ts diff --git a/web/app/components/workflow/run/utils/format-log/simple-graph-to-log-struct.ts b/web/app/components/workflow/run/utils/format-log/simple-graph-to-log-struct.ts new file mode 100644 index 0000000000..4aea146a7f --- /dev/null +++ b/web/app/components/workflow/run/utils/format-log/simple-graph-to-log-struct.ts @@ -0,0 +1,14 @@ +const STEP_SPLIT = '->' + +/* +* : 1 -> 2 -> 3 +* iteration: (iteration, 1, [2, 3]) -> 4. (1, [2, 3]) means 1 is parent, [2, 3] is children +* parallel: 1 -> (parallel, [1,2,3], [4, (parallel: (6,7))]). +* retry: (retry, 1, [2,3]). 1 is parent, [2, 3] is retry nodes +*/ +const simpleGraphToLogStruct = (input: string): any[] => { + const list = input.split(STEP_SPLIT) + return list +} + +export default simpleGraphToLogStruct From f11ea5ae97635add7654749fc65fdfd888ffa8f3 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 2 Jan 2025 11:37:17 +0800 Subject: [PATCH 2/2] fix: title not show all if space is enough --- web/app/components/plugins/card/base/title.tsx | 2 +- web/app/components/plugins/plugin-item/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/card/base/title.tsx b/web/app/components/plugins/card/base/title.tsx index bfdcd7fc2b..383e7b31c1 100644 --- a/web/app/components/plugins/card/base/title.tsx +++ b/web/app/components/plugins/card/base/title.tsx @@ -4,7 +4,7 @@ const Title = ({ title: string }) => { return ( -
+
{title}
) diff --git a/web/app/components/plugins/plugin-item/index.tsx b/web/app/components/plugins/plugin-item/index.tsx index 430ceae7de..d997299844 100644 --- a/web/app/components/plugins/plugin-item/index.tsx +++ b/web/app/components/plugins/plugin-item/index.tsx @@ -94,7 +94,7 @@ const PluginItem: FC = ({
{verified && <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" />} - <Badge className='ml-1' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} /> + <Badge className='shrink-0 ml-1' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} /> </div> <div className='flex items-center justify-between'> <Description text={description[locale]} descriptionLineRows={1}></Description>