From 04c8bece6badb98f412b9d2978fa9bd4830ccda0 Mon Sep 17 00:00:00 2001 From: Weixuan Fu Date: Wed, 6 Mar 2024 15:51:14 +0800 Subject: [PATCH] ui improv --- ui/src/App.tsx | 7 +++++++ .../AddTagToWorkflowPopover.tsx | 2 +- ui/src/RecentFilesDrawer/MoreActionMenu.tsx | 6 +++++- ui/src/RecentFilesDrawer/RecentFilesDrawer.tsx | 4 ++-- ui/src/RecentFilesDrawer/WorkflowListItem.tsx | 18 ++++++++++++++---- 5 files changed, 29 insertions(+), 8 deletions(-) diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 3fcafe8..1c4d038 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -97,6 +97,13 @@ export default function App() { }), ]); setIsDirty(false); + userSettingsTable?.autoSave && + toast({ + title: "Saved", + status: "success", + duration: 1000, + isClosable: true, + }); } }, []); const deleteCurWorkflow = async () => { diff --git a/ui/src/RecentFilesDrawer/AddTagToWorkflowPopover.tsx b/ui/src/RecentFilesDrawer/AddTagToWorkflowPopover.tsx index 69649f7..11f2635 100644 --- a/ui/src/RecentFilesDrawer/AddTagToWorkflowPopover.tsx +++ b/ui/src/RecentFilesDrawer/AddTagToWorkflowPopover.tsx @@ -62,7 +62,7 @@ export default function AddTagToWorkflowPopover({ workflow }: Props) { return ( - }>Tag + }>Add Tag diff --git a/ui/src/RecentFilesDrawer/MoreActionMenu.tsx b/ui/src/RecentFilesDrawer/MoreActionMenu.tsx index 751e938..1b94930 100644 --- a/ui/src/RecentFilesDrawer/MoreActionMenu.tsx +++ b/ui/src/RecentFilesDrawer/MoreActionMenu.tsx @@ -48,7 +48,11 @@ export default function MoreActionMenu({ workflow }: Props) { - - {workflow.name ?? "untitled"} - + + + {workflow.name ?? "untitled"} + + {workflow.saveLock && ( + + )} + + Updated: {formatTimestamp(workflow.updateTime)}