Skip to content

Commit a6c25c8

Browse files
committed
Update Chatbots button text based on connection status and bump version to 1.896.0
1 parent 548130c commit a6c25c8

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "The fastest way to code with AI (CWC)",
5-
"version": "1.895.0",
5+
"version": "1.896.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

apps/editor/src/views/panel/frontend/Home/Home.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ type Props = {
4444
on_task_delete: (root: string, timestamp: number) => void
4545
on_task_forward: (text: string) => void
4646
is_setup_complete: boolean
47+
is_connected: boolean
4748
}
4849

4950
export const Home: React.FC<Props> = (props) => {
@@ -159,7 +160,7 @@ export const Home: React.FC<Props> = (props) => {
159160
ref={mode_ref}
160161
>
161162
<UiModeButton
162-
pre="Autofill"
163+
pre={props.is_connected ? 'Autofill' : 'Copy for'}
163164
label="Chatbots"
164165
on_click={props.on_chatbots_click}
165166
is_compact={is_mode_sticky}

apps/editor/src/views/panel/frontend/Panel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ export const Panel = () => {
447447
<Home
448448
vscode={vscode}
449449
is_active={active_view == 'home'}
450+
is_connected={is_connected}
450451
on_go_forward={() => set_active_view('main')}
451452
on_chatbots_click={() => {
452453
set_active_view('main')

0 commit comments

Comments
 (0)