diff --git a/apps/dashboard/src/components/workflow-editor/base-node.tsx b/apps/dashboard/src/components/workflow-editor/base-node.tsx index 4f0dbdb7dd3..2376544dd8a 100644 --- a/apps/dashboard/src/components/workflow-editor/base-node.tsx +++ b/apps/dashboard/src/components/workflow-editor/base-node.tsx @@ -6,7 +6,7 @@ import { StepTypeEnum } from '@/utils/enums'; import { RiErrorWarningFill } from 'react-icons/ri'; import { Popover, PopoverArrow, PopoverContent, PopoverPortal, PopoverTrigger } from '../primitives/popover'; -const nodeIconVariants = cva('w-5 h-5 border rounded-full opacity-40 flex items-center justify-center p-1', { +const nodeIconVariants = cva('min-w-5 h-5 border rounded-full opacity-40 flex items-center justify-center p-1', { variants: { variant: { neutral: 'border-neutral-500 text-neutral-500', @@ -34,17 +34,21 @@ export const NodeIcon = ({ children, variant }: NodeIconProps) => { }; export const NodeName = ({ children }: { children: ReactNode }) => { - return {children}; + return ( + + {children} + + ); }; export const NodeHeader = ({ children, type }: { children: ReactNode; type: StepTypeEnum }) => { return ( -
-
{children}
+
+ {children} {type.replace('_', '-')} diff --git a/apps/dashboard/src/components/workflow-list.tsx b/apps/dashboard/src/components/workflow-list.tsx index ba4fb6e895d..d76e7923d34 100644 --- a/apps/dashboard/src/components/workflow-list.tsx +++ b/apps/dashboard/src/components/workflow-list.tsx @@ -4,7 +4,6 @@ import { RiMore2Fill } from 'react-icons/ri'; import { createSearchParams, useLocation, useSearchParams } from 'react-router-dom'; import { getV2 } from '@/api/api.client'; import { DefaultPagination } from '@/components/default-pagination'; -import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/primitives/select'; import { Skeleton } from '@/components/primitives/skeleton'; import { Table, @@ -22,7 +21,7 @@ import { WorkflowListEmpty } from '@/components/workflow-list-empty'; export const WorkflowList = () => { const { currentEnvironment } = useEnvironment(); - const [searchParams, setSearchParams] = useSearchParams(); + const [searchParams] = useSearchParams(); const location = useLocation(); const hrefFromOffset = (offset: number) => { @@ -32,13 +31,6 @@ export const WorkflowList = () => { })}`; }; - const setLimit = (limit: number) => { - setSearchParams((searchParams) => { - searchParams.set('limit', limit.toString()); - return searchParams; - }); - }; - const offset = parseInt(searchParams.get('offset') || '0'); const limit = parseInt(searchParams.get('limit') || '12'); const workflowsQuery = useQuery({ @@ -129,16 +121,9 @@ export const WorkflowList = () => { ) : ( )} -
+ )}