Skip to content

Commit 43fba49

Browse files
committed
feat: add branded footer to AgentPanel and update chat labels for consistency
- Introduced a branded footer in the AgentPanel component featuring the Knot logo and version information. - Updated the default chat title from 'New Chat' to 'Chat' for improved consistency across the application. - Simplified quick action labels in the editor view for a more streamlined user experience.
1 parent 7cbfa63 commit 43fba49

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

components/agent-panel.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useState, useRef, useEffect, useCallback, useMemo } from 'react'
44
import { Icon } from '@iconify/react'
55
import { ModeSelector } from '@/components/mode-selector'
66
import { ChatHome } from '@/components/chat-home'
7+
import { KnotLogo } from '@/components/knot-logo'
78
import { ChatHeader } from '@/components/chat-header'
89
import type { AgentMode } from '@/components/mode-selector'
910
import { usePermissions } from '@/components/permissions-toggle'
@@ -1594,6 +1595,15 @@ export function AgentPanel() {
15941595
onFileAttach={handleFileAttach}
15951596
/>
15961597
)}
1598+
1599+
{/* Branded footer */}
1600+
<div className="shrink-0 flex items-center justify-center gap-1.5 px-3 py-1 border-t border-[var(--border)] bg-[var(--bg-elevated)]">
1601+
<KnotLogo size={10} className="opacity-40" />
1602+
<span className="text-[9px] text-[var(--text-disabled)] font-medium tracking-wide">
1603+
Knot Code
1604+
</span>
1605+
<span className="text-[8px] text-[var(--text-disabled)] opacity-50">v1.0.0</span>
1606+
</div>
15971607
</div>
15981608
)
15991609
}

components/chat-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function ChatHeader({
5050
/>
5151
)}
5252
<span className="text-[13px] font-medium text-[var(--text-primary)] truncate">
53-
{title || 'New Chat'}
53+
{title || 'Chat'}
5454
</span>
5555
{repoName && (
5656
<>

components/views/editor-view.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ const AgentPanel = dynamic(
3030
const PANEL_SPRING = { type: 'spring' as const, stiffness: 500, damping: 35 }
3131

3232
const QUICK_ACTIONS = [
33-
{ icon: 'lucide:file-search', label: 'Open File', shortcut: '\u2318P', event: 'quick-open' },
33+
{ icon: 'lucide:file-search', label: 'File', shortcut: '\u2318P', event: 'quick-open' },
3434
{ icon: 'lucide:folder', label: 'Browse', shortcut: '\u2318B', event: 'toggle-tree' },
3535
{
3636
icon: 'lucide:message-square',
37-
label: 'New Chat',
37+
label: 'Chat',
3838
shortcut: '\u2318L',
3939
event: 'open-side-chat',
4040
},

0 commit comments

Comments
 (0)