mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-09 14:25:25 -05:00
Compare commits
4 Commits
fix/execut
...
abhi-9708/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6adf82d3e4 | ||
|
|
421d607ec9 | ||
|
|
c469c9899e | ||
|
|
bf2941de9e |
@@ -1,20 +1,40 @@
|
|||||||
import AgentFlowListSkeleton from "@/components/monitor/skeletons/AgentFlowListSkeleton";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import FlowRunsListSkeleton from "@/components/monitor/skeletons/FlowRunsListSkeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
import FlowRunsStatusSkeleton from "@/components/monitor/skeletons/FlowRunsStatusSkeleton";
|
|
||||||
|
|
||||||
export default function MonitorLoadingSkeleton() {
|
export default function LibraryRunLoadingSkeleton() {
|
||||||
return (
|
return (
|
||||||
<div className="space-y-4 p-4">
|
<div className="container justify-stretch p-0 lg:flex">
|
||||||
<div className="grid grid-cols-1 gap-4 md:grid-cols-3">
|
{/* Skeleton for sidebar with runs list */}
|
||||||
{/* Agents Section */}
|
<div className="agpt-div w-[400px] border-b lg:border-b-0 lg:border-r">
|
||||||
<AgentFlowListSkeleton />
|
<div className="p-4">
|
||||||
|
<Skeleton className="h-16 w-3/4" />
|
||||||
|
<div className="mt-4 space-y-2">
|
||||||
|
{[...Array(5)].map((_, i) => (
|
||||||
|
<div key={i} className="flex items-center space-x-2 py-2">
|
||||||
|
<Skeleton className="h-8 w-full" />
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Runs Section */}
|
<div className="flex-1">
|
||||||
<FlowRunsListSkeleton />
|
{/* Skeleton for agent header */}
|
||||||
|
<div className="agpt-div w-full border-b p-4">
|
||||||
|
<Skeleton className="h-8 w-1/2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Stats Section */}
|
{/* Skeleton for run details */}
|
||||||
<FlowRunsStatusSkeleton />
|
<div className="p-4">
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<Skeleton className="h-6 w-1/3" />
|
||||||
|
<Skeleton className="h-6 w-1/4" />
|
||||||
|
</div>
|
||||||
|
<div className="mt-6 space-y-4">
|
||||||
|
<Skeleton className="h-40 w-full" />
|
||||||
|
<Skeleton className="h-60 w-full" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import AgentRunDraftView from "@/components/agents/agent-run-draft-view";
|
|||||||
import AgentRunDetailsView from "@/components/agents/agent-run-details-view";
|
import AgentRunDetailsView from "@/components/agents/agent-run-details-view";
|
||||||
import AgentRunsSelectorList from "@/components/agents/agent-runs-selector-list";
|
import AgentRunsSelectorList from "@/components/agents/agent-runs-selector-list";
|
||||||
import AgentScheduleDetailsView from "@/components/agents/agent-schedule-details-view";
|
import AgentScheduleDetailsView from "@/components/agents/agent-schedule-details-view";
|
||||||
|
import LibraryRunLoadingSkeleton from "./loading";
|
||||||
import { useOnboarding } from "@/components/onboarding/onboarding-provider";
|
import { useOnboarding } from "@/components/onboarding/onboarding-provider";
|
||||||
|
|
||||||
export default function AgentRunsPage(): React.ReactElement {
|
export default function AgentRunsPage(): React.ReactElement {
|
||||||
@@ -258,8 +259,7 @@ export default function AgentRunsPage(): React.ReactElement {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!agent || !graph) {
|
if (!agent || !graph) {
|
||||||
/* TODO: implement loading indicators / skeleton page */
|
return <LibraryRunLoadingSkeleton />;
|
||||||
return <span>Loading...</span>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user