-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: saving workflow + feat: skeleton, do not reload page on delete, …
…etc (#3015) Signed-off-by: Tal <tal@keephq.dev> Co-authored-by: Tal <tal@keephq.dev>
- Loading branch information
Showing
36 changed files
with
932 additions
and
1,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
keep-ui/app/(keep)/workflows/[workflow_id]/workflow-breadcrumbs.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"use client"; | ||
|
||
import { Icon } from "@tremor/react"; | ||
import { useParams } from "next/navigation"; | ||
import { Link } from "@/components/ui"; | ||
import { Subtitle } from "@tremor/react"; | ||
import { ArrowRightIcon } from "@heroicons/react/16/solid"; | ||
|
||
export function WorkflowBreadcrumbs({ workflowId }: { workflowId: string }) { | ||
const clientParams = useParams(); | ||
|
||
return ( | ||
<Subtitle className="text-sm"> | ||
<Link href="/workflows">All Workflows</Link>{" "} | ||
<Icon icon={ArrowRightIcon} color="gray" size="xs" />{" "} | ||
{clientParams.workflow_execution_id ? ( | ||
<> | ||
<Link href={`/workflows/${workflowId}`}>Workflow Details</Link> | ||
<Icon icon={ArrowRightIcon} color="gray" size="xs" /> Workflow | ||
Execution Details | ||
</> | ||
) : ( | ||
"Workflow Details" | ||
)} | ||
</Subtitle> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
keep-ui/app/(keep)/workflows/[workflow_id]/workflow-overview-skeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Skeleton from "react-loading-skeleton"; | ||
|
||
export function WorkflowOverviewSkeleton() { | ||
return ( | ||
<div className="flex flex-col gap-2"> | ||
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4"> | ||
<div> | ||
<Skeleton className="h-24" /> | ||
</div> | ||
<div> | ||
<Skeleton className="h-24" /> | ||
</div> | ||
<div> | ||
<Skeleton className="h-24" /> | ||
</div> | ||
<div> | ||
<Skeleton className="h-24" /> | ||
</div> | ||
<div> | ||
<Skeleton className="h-24" /> | ||
</div> | ||
</div> | ||
<div className="flex flex-col gap-4"> | ||
<Skeleton className="h-32" /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.