fix: update section titles and improve layout in channel components
This commit is contained in:
+2824
-2388
File diff suppressed because it is too large
Load Diff
+8
-5
@@ -1,3 +1,4 @@
|
||||
import { ChevronDown, Settings } from 'lucide-react'
|
||||
/*
|
||||
Copyright (C) 2023-2026 QuantumNous
|
||||
|
||||
@@ -17,19 +18,20 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import type { ReactNode } from 'react'
|
||||
import { ChevronDown, Settings } from 'lucide-react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
import {
|
||||
Collapsible,
|
||||
CollapsibleContent,
|
||||
CollapsibleTrigger,
|
||||
} from '@/components/ui/collapsible'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
type ChannelAdvancedSectionProps = {
|
||||
children: ReactNode
|
||||
open: boolean
|
||||
onOpenChange: (open: boolean) => void
|
||||
summary?: ReactNode
|
||||
}
|
||||
|
||||
export function ChannelAdvancedSection(props: ChannelAdvancedSectionProps) {
|
||||
@@ -55,9 +57,10 @@ export function ChannelAdvancedSection(props: ChannelAdvancedSectionProps) {
|
||||
{t('Advanced Settings')}
|
||||
</div>
|
||||
<div className='text-muted-foreground text-xs'>
|
||||
{t(
|
||||
'Request overrides, routing behavior, and upstream model automation'
|
||||
)}
|
||||
{props.summary ??
|
||||
t(
|
||||
'Request overrides, routing behavior, and upstream model automation'
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Vendored
+5
-6
@@ -17,8 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import type { ReactNode } from 'react'
|
||||
import { Link2 } from 'lucide-react'
|
||||
import { KeyRound } from 'lucide-react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
import {
|
||||
SideDrawerSection,
|
||||
SideDrawerSectionHeader,
|
||||
@@ -34,11 +35,9 @@ export function ChannelApiAccessSection(props: ChannelApiAccessSectionProps) {
|
||||
return (
|
||||
<SideDrawerSection>
|
||||
<SideDrawerSectionHeader
|
||||
title={t('API Access')}
|
||||
description={t(
|
||||
'Endpoint, provider-specific settings, and credentials.'
|
||||
)}
|
||||
icon={<Link2 className='h-4 w-4' aria-hidden='true' />}
|
||||
title={t('Credentials')}
|
||||
description={t('Authentication')}
|
||||
icon={<KeyRound className='h-4 w-4' aria-hidden='true' />}
|
||||
/>
|
||||
{props.children}
|
||||
</SideDrawerSection>
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ export function ChannelAuthSection(props: ChannelAuthSectionProps) {
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<div className='border-border/60 flex flex-col gap-4 border-t pt-4'>
|
||||
<div className='border-border/60 flex flex-col gap-3 border-t pt-4'>
|
||||
<div className='flex items-center gap-2'>
|
||||
<KeyRound
|
||||
className='text-muted-foreground h-3.5 w-3.5'
|
||||
|
||||
Reference in New Issue
Block a user