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]
> Change button text to 'Run' and add 'PlayIcon' in `CreateNewTaskForm.tsx` and `SavedTaskForm.tsx`.
>
>   - **UI Changes**:
>     - In `CreateNewTaskForm.tsx`, changed button text from `Create` to `Run` and added `PlayIcon` next to the text.
>     - In `SavedTaskForm.tsx`, changed button text from `Run Task` to `Run` and added `PlayIcon` next to the text.
>
> <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 1956df9ee094c0e79fdd63fa53b0ef810718a766. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
wintonzheng committed Oct 11, 2024
1 parent 851b84c commit 31a9b46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { CodeEditor } from "@/routes/workflows/components/CodeEditor";
import { copyText } from "@/util/copyText";
import { apiBaseUrl } from "@/util/env";
import { zodResolver } from "@hookform/resolvers/zod";
import { CopyIcon, ReloadIcon } from "@radix-ui/react-icons";
import { CopyIcon, PlayIcon, ReloadIcon } from "@radix-ui/react-icons";
import { ToastAction } from "@radix-ui/react-toast";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { AxiosError } from "axios";
Expand Down Expand Up @@ -608,7 +608,8 @@ function CreateNewTaskForm({ initialValues }: Props) {
{mutation.isPending && (
<ReloadIcon className="mr-2 h-4 w-4 animate-spin" />
)}
Create
<PlayIcon className="mr-2 h-4 w-4" />
Run
</Button>
</div>
</form>
Expand Down
8 changes: 5 additions & 3 deletions skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { SubmitEvent } from "@/types";
import { copyText } from "@/util/copyText";
import { apiBaseUrl } from "@/util/env";
import { zodResolver } from "@hookform/resolvers/zod";
import { CopyIcon, ReloadIcon } from "@radix-ui/react-icons";
import { CopyIcon, PlayIcon, ReloadIcon } from "@radix-ui/react-icons";
import { ToastAction } from "@radix-ui/react-toast";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { AxiosError } from "axios";
Expand Down Expand Up @@ -796,10 +796,12 @@ function SavedTaskForm({ initialValues }: Props) {
value="create"
disabled={createAndSaveTaskMutation.isPending}
>
{createAndSaveTaskMutation.isPending && (
{createAndSaveTaskMutation.isPending ? (
<ReloadIcon className="mr-2 h-4 w-4 animate-spin" />
) : (
<PlayIcon className="mr-2 h-4 w-4" />
)}
Run Task
Run
</Button>
</div>
</form>
Expand Down

0 comments on commit 31a9b46

Please sign in to comment.