Skip to content

Commit

Permalink
🔄 synced local 'skyvern-frontend/src/' with remote 'skyvern-frontend/…
Browse files Browse the repository at this point in the history
…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add loading state to `WorkflowPostRunParameters` to display a loading message while fetching data.
>
>   - **Behavior**:
>     - Adds loading state to `WorkflowPostRunParameters` component in `WorkflowPostRunParameters.tsx`.
>     - Displays "Loading workflow parameters..." message when `workflowRun` data is loading.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 0c435f3eef56f43d09ecb428ac6180a2d93c516f. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
wintonzheng committed Dec 11, 2024
1 parent 7272dad commit d31ef1f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ import { CodeEditor } from "../components/CodeEditor";
import { AutoResizingTextarea } from "@/components/AutoResizingTextarea/AutoResizingTextarea";

function WorkflowPostRunParameters() {
const { data: workflowRun } = useWorkflowRunQuery();
const { data: workflowRun, isLoading: workflowRunIsLoading } =
useWorkflowRunQuery();
const parameters = workflowRun?.parameters ?? {};

if (workflowRunIsLoading) {
return <div>Loading workflow parameters...</div>;
}

return Object.entries(parameters).length > 0 ? (
<div className="space-y-4 rounded-lg bg-slate-elevation3 px-6 py-5">
<header>
Expand Down

0 comments on commit d31ef1f

Please sign in to comment.