From 8b2c25116d093d4804ab65d9e187b815632f1a6c Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Sat, 18 Oct 2025 07:24:10 +0000 Subject: [PATCH 1/2] The API Keys dialog should be way more minimalist.... --- components/api-keys-dialog.tsx | 108 +++++++++++++-------------------- 1 file changed, 43 insertions(+), 65 deletions(-) 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) && ( + + )}
))}
From 4cbbfc0f15ea5795abd9e50ef7b5b3e290684980 Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Sat, 18 Oct 2025 07:24:54 +0000 Subject: [PATCH 2/2] Run pnpm format. And actually - add to AGENTS.md t... --- AGENTS.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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**