diff --git a/AGENTS.md b/AGENTS.md index fe2bbdd..4739019 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -53,6 +53,18 @@ The `redactSensitiveInfo()` function in `lib/utils/logging.ts` automatically red ## Code Quality Guidelines +### Code Formatting + +**Always run `pnpm format` after making changes to TypeScript/TSX files.** + +The project uses Prettier to enforce consistent code formatting. After editing any `.ts` or `.tsx` files, run: + +```bash +pnpm format +``` + +This ensures all code follows the project's formatting standards and prevents formatting-related issues in pull requests. + ### Logging Best Practices 1. **Use descriptive static messages** diff --git a/components/api-keys-dialog.tsx b/components/api-keys-dialog.tsx index b71279d..b4923ae 100644 --- a/components/api-keys-dialog.tsx +++ b/components/api-keys-dialog.tsx @@ -6,7 +6,7 @@ import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { toast } from 'sonner' -import { Eye, EyeOff, Trash2, CheckCircle2 } from 'lucide-react' +import { Eye, EyeOff } from 'lucide-react' interface ApiKeysDialogProps { open: boolean @@ -140,72 +140,50 @@ export function ApiKeysDialog({ open, onOpenChange }: ApiKeysDialogProps) { -
+
{PROVIDERS.map((provider) => ( -
-
-
-
- - {savedKeys.has(provider.id) && ( -
- - Configured -
- )} -
- -
-
- setApiKeys((prev) => ({ ...prev, [provider.id]: e.target.value }))} - disabled={loading} - className="pr-9 h-8 text-sm" - /> - -
- -
- - {savedKeys.has(provider.id) && ( - - )} -
-
-
+
+ +
+ setApiKeys((prev) => ({ ...prev, [provider.id]: e.target.value }))} + disabled={loading} + className="pr-9 h-8 text-sm" + /> +
+ + {savedKeys.has(provider.id) && ( + + )}
))}