Skip to content

Commit 5e11d63

Browse files
committed
Dashboard: Migrate engine/access-tokens page from chakra to tailwind (#7714)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring components in the `Engine` section of the dashboard, enhancing UI elements, and improving error handling for access tokens and keypairs management. ### Detailed summary - Replaced `Modal` components with `Dialog` components for improved UI consistency. - Enhanced error handling using `toast` notifications. - Updated button components for better visual consistency. - Refactored `AddAccessTokenButton`, `KeypairsTable`, and `AccessTokensTable` components for cleaner code. - Simplified state management for modal visibility. - Improved accessibility and user experience in forms and alerts. - Updated various imports to use new UI components from the design system. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 1d6e98d commit 5e11d63

File tree

6 files changed

+459
-483
lines changed

6 files changed

+459
-483
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/dedicated/(general)/import/EngineImportPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
import { FormControl } from "@chakra-ui/react";
43
import { zodResolver } from "@hookform/resolvers/zod";
54
import { useMutation } from "@tanstack/react-query";
65
import { CircleAlertIcon, DownloadIcon, ExternalLinkIcon } from "lucide-react";
@@ -12,6 +11,7 @@ import { apiServerProxy } from "@/actions/proxies";
1211
import { Button } from "@/components/ui/button";
1312
import {
1413
Form,
14+
FormControl,
1515
FormField,
1616
FormItem,
1717
FormLabel,

0 commit comments

Comments
 (0)