Skip to content

Commit

Permalink
update language to 'sheet chat' & 'code chat'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimniels committed Jan 13, 2025
1 parent 5f645ce commit 58f1bf0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion quadratic-client/src/app/actions/viewActionsSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const viewActionsSpec: ViewActionSpec = {
},
},
[Action.ToggleAIAnalyst]: {
label: 'Chat',
label: 'Sheet chat',
run: () => {
if (!pixiAppSettings.setAIAnalystState) return;
pixiAppSettings.setAIAnalystState((prev) => ({ ...prev, showAIAnalyst: !prev.showAIAnalyst }));
Expand Down
14 changes: 7 additions & 7 deletions quadratic-client/src/app/ui/menus/AIAnalyst/AIAnalystHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Action } from '@/app/actions/actions';
import { viewActionsSpec } from '@/app/actions/viewActionsSpec';
import {
aiAnalystChatsCountAtom,
aiAnalystCurrentChatAtom,
Expand Down Expand Up @@ -28,15 +30,13 @@ export function AIAnalystHeader({ textareaRef }: AIAnalystHeaderProps) {
return (
<div className="flex items-center justify-between px-4 py-2">
<span className="flex items-center text-sm font-bold">
{viewActionsSpec[Action.ToggleAIAnalyst].label}
{showChatHistory ? (
'Chat history'
' history'
) : (
<>
Chat
<Badge variant="secondary" className="ml-2">
Experimental
</Badge>
</>
<Badge variant="secondary" className="ml-2">
Experimental
</Badge>
)}
</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function CodeEditorPanelBottom({ schemaBrowser, showAIAssistant }: CodeEd
</Button>
<TabsList>
{schemaBrowser && <TabsTrigger value="data-browser">Schema</TabsTrigger>}
{showAIAssistant && <TabsTrigger value="ai-assistant">Chat</TabsTrigger>}
{showAIAssistant && <TabsTrigger value="ai-assistant">Code chat</TabsTrigger>}
<TabsTrigger
value="console"
className={cn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function CodeEditorPanelSide({ codeEditorRef, schemaBrowser, showAIAssist
/>
<PanelBox
id="panel-1"
title="Chat"
title="Code chat"
open={panels[1].open}
toggleOpen={panels[1].toggleOpen}
height={panels[1].height}
Expand Down

0 comments on commit 58f1bf0

Please sign in to comment.