From 27f9435be90b2ae62c18de18e1a93c0ba1dd72aa Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 28 Nov 2025 20:58:31 -0600 Subject: [PATCH] Add foreground to many elements in settings --- src/components/CreditsDialog.tsx | 2 +- src/components/MCPServersSection.tsx | 2 +- src/components/PluginsSection.tsx | 2 +- src/components/SettingsItem.tsx | 8 +-- src/components/ui/accordion.tsx | 2 +- src/pages/AISettings.tsx | 77 +++++++++++++++------------- src/pages/AboutSettings.tsx | 31 ++++++----- src/pages/DeploySettings.tsx | 64 ++++++++++++----------- src/pages/GitSettings.tsx | 51 +++++++++--------- src/pages/SystemSettings.tsx | 22 ++++---- 10 files changed, 134 insertions(+), 127 deletions(-) diff --git a/src/components/CreditsDialog.tsx b/src/components/CreditsDialog.tsx index 52320542..43d7daae 100644 --- a/src/components/CreditsDialog.tsx +++ b/src/components/CreditsDialog.tsx @@ -1285,7 +1285,7 @@ export function CreditsDialog({ open, onOpenChange, provider }: CreditsDialogPro {/* Your Gift Cards Accordion */} - +
diff --git a/src/components/MCPServersSection.tsx b/src/components/MCPServersSection.tsx index 0a676188..c18cc22b 100644 --- a/src/components/MCPServersSection.tsx +++ b/src/components/MCPServersSection.tsx @@ -269,7 +269,7 @@ export function MCPServersSection() { {/* Add New MCP Server */} - +
diff --git a/src/components/PluginsSection.tsx b/src/components/PluginsSection.tsx index f8b137e3..90431010 100644 --- a/src/components/PluginsSection.tsx +++ b/src/components/PluginsSection.tsx @@ -122,7 +122,7 @@ export function PluginsSection() { {/* Add Plugin Section */} - +
diff --git a/src/components/SettingsItem.tsx b/src/components/SettingsItem.tsx index b9c70f57..a98c4ee9 100644 --- a/src/components/SettingsItem.tsx +++ b/src/components/SettingsItem.tsx @@ -29,13 +29,7 @@ export function SettingsItem({ )} >
-
+
(({ className, ...props }, ref) => ( )) diff --git a/src/pages/AISettings.tsx b/src/pages/AISettings.tsx index 0e8066ca..0742355d 100644 --- a/src/pages/AISettings.tsx +++ b/src/pages/AISettings.tsx @@ -26,6 +26,7 @@ import { PasswordInput } from '@/components/ui/password-input'; import { Label } from '@/components/ui/label'; import { Checkbox } from '@/components/ui/checkbox'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; +import { Card, CardContent } from '@/components/ui/card'; import { CreditsBadge } from '@/components/CreditsBadge'; import { CreditsDialog } from '@/components/CreditsDialog'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; @@ -368,43 +369,44 @@ export function AISettings() { const showNostrLoginRequired = isNostrPreset && !isLoggedIntoNostr; return ( -
-
-
- } - /> -
{preset.name}
+ + +
+
+ } + /> +
{preset.name}
+
+ {(preset.apiKeysURL && preset.id !== "routstr") && ( + + )}
- {(preset.apiKeysURL && preset.id !== "routstr") && ( - - )} -
- {showNostrLoginRequired ? ( -
-

- {t('loginToNostrRequired')} -

- -
- ) : ( -
+ {showNostrLoginRequired ? ( +
+

+ {t('loginToNostrRequired')} +

+ +
+ ) : ( +
{!preset.nostr && (
)} -
+ + ); })}
@@ -479,7 +482,7 @@ export function AISettings() { {/* Custom Provider */}
- +

{t('addCustomProvider')}

diff --git a/src/pages/AboutSettings.tsx b/src/pages/AboutSettings.tsx index f0361527..ac40ed7a 100644 --- a/src/pages/AboutSettings.tsx +++ b/src/pages/AboutSettings.tsx @@ -5,6 +5,7 @@ import { Info, ExternalLink, Loader2, AlertTriangle, ArrowLeft, Code, Globe } fr import { Button } from '@/components/ui/button'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; import { Alert, AlertDescription } from '@/components/ui/alert'; +import { Card, CardContent } from '@/components/ui/card'; import { useIsMobile } from '@/hooks/useIsMobile'; import { EmailSubscription } from '@/components/EmailSubscription'; @@ -85,7 +86,7 @@ export function AboutSettings() {
{/* Mirrors */} - +
@@ -131,21 +132,25 @@ export function AboutSettings() { {/* Project Information */} - + + + + + {/* License */} - +
diff --git a/src/pages/DeploySettings.tsx b/src/pages/DeploySettings.tsx index e78a7270..87ae1220 100644 --- a/src/pages/DeploySettings.tsx +++ b/src/pages/DeploySettings.tsx @@ -32,6 +32,7 @@ import { Input } from '@/components/ui/input'; import { PasswordInput } from '@/components/ui/password-input'; import { Label } from '@/components/ui/label'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; +import { Card, CardContent } from '@/components/ui/card'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; import { useDeploySettings } from '@/hooks/useDeploySettings'; import { useNetlifyOAuth } from '@/hooks/useNetlifyOAuth'; @@ -83,7 +84,6 @@ function SortableProviderItem({ provider, index, preset, onRemove, onUpdate, sho ref={setNodeRef} style={style} value={String(index)} - className="border rounded-lg" >
@@ -591,36 +591,37 @@ export function DeploySettings() { const oauthError = oauthHook?.error ?? null; return ( -
-
-
- {(() => { - const url = getProviderUrl(preset); - return url ? ( - } - /> - ) : ( - - ); - })()} -
{preset.name}
+ + +
+
+ {(() => { + const url = getProviderUrl(preset); + return url ? ( + } + /> + ) : ( + + ); + })()} +
{preset.name}
+
+ {preset.apiKeyURL && !isOAuthConfigured && ( + + )}
- {preset.apiKeyURL && !isOAuthConfigured && ( - - )} -
-

{preset.description}

+

{preset.description}

- {showNostrLoginRequired ? ( + {showNostrLoginRequired ? (

{t('loginToNostrRequired')} @@ -724,7 +725,8 @@ export function DeploySettings() {

)} -
+ + ); })}
@@ -734,7 +736,7 @@ export function DeploySettings() { {/* Custom Provider */}
- +

{t('addCustomProvider')}

diff --git a/src/pages/GitSettings.tsx b/src/pages/GitSettings.tsx index 7dcc2144..9fd51f5c 100644 --- a/src/pages/GitSettings.tsx +++ b/src/pages/GitSettings.tsx @@ -6,6 +6,7 @@ import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Badge } from '@/components/ui/badge'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; +import { Card, CardContent } from '@/components/ui/card'; import { Switch } from '@/components/ui/switch'; import { DropdownMenu, @@ -156,7 +157,7 @@ export function GitSettings() { const isCustom = !preset; return ( - +
{t('addProvider')}
{availablePresets.map((preset) => ( -
-
-
- } - /> -
{preset.name}
+ + +
+
+ } + /> +
{preset.name}
+
+ {preset.tokenURL && (preset.id !== 'github' || !isOAuthConfigured) && ( + + )}
- {preset.tokenURL && (preset.id !== 'github' || !isOAuthConfigured) && ( - - )} -
- {preset.id === 'github' ? ( + {preset.id === 'github' ? ( // Special rendering for GitHub - OAuth button if configured, otherwise token input isOAuthConfigured && !forceManualEntry[preset.id] ? (
@@ -349,7 +351,8 @@ export function GitSettings() {
)} -
+ + ))}
@@ -358,7 +361,7 @@ export function GitSettings() { {/* Custom Provider */}
- +

{t('addCustomProvider')}

@@ -419,7 +422,7 @@ export function GitSettings() { {/* Git Identity */}
- +

{t('gitIdentity')}

diff --git a/src/pages/SystemSettings.tsx b/src/pages/SystemSettings.tsx index 0c46aaa3..88564ef8 100644 --- a/src/pages/SystemSettings.tsx +++ b/src/pages/SystemSettings.tsx @@ -308,7 +308,7 @@ export function SystemSettings() {
{/* Service Worker Configuration */} - +

{t('serviceWorker')}

@@ -411,7 +411,7 @@ export function SystemSettings() { {/* Project Template Configuration */} - +

{t('projectTemplate')}

@@ -459,7 +459,7 @@ export function SystemSettings() { {/* CORS Proxy Configuration */} - +

{t('corsProxy')}

@@ -507,7 +507,7 @@ export function SystemSettings() { {/* Favicon URL Configuration */} - +

{t('faviconUrl')}

@@ -555,7 +555,7 @@ export function SystemSettings() { {/* JavaScript CDN Configuration */} - +

{t('esmUrl')}

@@ -604,7 +604,7 @@ export function SystemSettings() { {/* Preview Domain Configuration */} - +

{t('previewDomain')}

@@ -652,7 +652,7 @@ export function SystemSettings() { {/* Showcase Configuration */} - +

{t('showcase')}

@@ -746,7 +746,7 @@ export function SystemSettings() { {/* Sentry DSN Configuration */} - +

{t('sentryDsn')}

@@ -794,7 +794,7 @@ export function SystemSettings() { {/* Filesystem Paths Configuration */} - +

{t('filesystemPaths')}

@@ -1016,7 +1016,7 @@ export function SystemSettings() { {/* System Prompt Configuration */} - +

{t('systemPrompt')}

@@ -1063,7 +1063,7 @@ export function SystemSettings() { {/* Terminal */} - +

{t('terminal')}