Skip to content

Commit 888812a

Browse files
committed
Merge branch 'dev'
2 parents 2de3ec5 + 4a1ba08 commit 888812a

29 files changed

Lines changed: 249 additions & 154 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
Blazing fast AI pair programming for production-grade code. Select context as you go for game-changing accuracy and speed.
66

7-
Works with **VS Code** and forks like **Cursor**, **Windsurf**, **VSCodium**, etc.
7+
Works with **VS Code** and forks like **Cursor**, **Windsurf**, and **VSCodium**.
88

99
✅ **Send prompts anywhere**
1010

1111
- Chatbots—_ChatGPT, Claude, Gemini, AI Studio, Qwen, etc._
1212
- Model providers—_Gemini API, OpenRouter, local Ollama, etc._
1313

1414
✅ **Apply responses**—one-click multi-file changes integration with easy rollback \
15-
✅ **Essential tools**—code completions, commit messages, checkpoints... \
15+
✅ **Fully featured**—code completions, commit messages, checkpoints, and more \
1616
👥 **Community driven**—join our [Discord server](https://discord.com/invite/KJySXsrSX5) and get involved! \
1717
❤️ **Free and open-source**—released under the GPL-3.0 license \
1818
🔒️ **Total privacy**—operates 100% on your local machine

‎packages/ui/src/components/editor/panel/ChatInput/ChatInput.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.container {
2-
--padding: var(--padding-5px) var(--padding-7px);
2+
--padding: var(--padding-5px) 15px var(--padding-5px) var(--padding-7px);
33
position: relative;
44

55
&__inner {

‎packages/ui/src/components/editor/panel/Configurations/Configurations.module.scss‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33
flex-direction: column;
44
}
55

6-
.heading {
7-
padding: 0 var(--padding-12px);
8-
margin-bottom: var(--padding-2px);
9-
display: flex;
10-
align-items: center;
11-
gap: var(--padding-8px);
12-
13-
&__title {
14-
color: var(--vscode-descriptionForeground);
15-
white-space: nowrap;
16-
}
17-
}
18-
196
.missing-config {
207
padding: var(--padding-2px) var(--padding-12px) 0 var(--padding-12px);
218
font-weight: 500;
@@ -105,3 +92,13 @@
10592
transform: translateX(0);
10693
}
10794
}
95+
96+
.footer {
97+
display: flex;
98+
padding: var(--padding-8px) var(--padding-12px);
99+
100+
> button {
101+
width: 100%;
102+
flex: 1;
103+
}
104+
}

‎packages/ui/src/components/editor/panel/Configurations/Configurations.tsx‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import styles from './Configurations.module.scss'
22
import { DEFAULT_TEMPERATURE } from '@shared/constants/api-tools'
33
import cn from 'classnames'
4-
import { IconButton } from '../IconButton'
54
import { ReactSortable } from 'react-sortablejs'
5+
import { Button } from '../Button/Button'
66

77
export namespace Configurations {
88
export type Configuration = {
@@ -27,15 +27,6 @@ export namespace Configurations {
2727
export const Configurations: React.FC<Configurations.Props> = (props) => {
2828
return (
2929
<div className={styles.container}>
30-
<div className={styles.heading}>
31-
<div className={styles['heading__title']}>MY CONFIGURATIONS</div>
32-
33-
<IconButton
34-
codicon_icon="edit"
35-
on_click={props.on_manage_configurations}
36-
/>
37-
</div>
38-
3930
<div className={styles.configurations}>
4031
<ReactSortable
4132
list={props.configurations}
@@ -101,6 +92,11 @@ export const Configurations: React.FC<Configurations.Props> = (props) => {
10192
})}
10293
</ReactSortable>
10394
</div>
95+
<div className={styles.footer}>
96+
<Button on_click={props.on_manage_configurations}>
97+
Edit Configurations
98+
</Button>
99+
</div>
104100
</div>
105101
)
106102
}

‎packages/ui/src/components/editor/panel/Page/Page.module.scss‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,10 @@
2323
font-size: var(--font-size-14px);
2424
white-space: nowrap;
2525
}
26-
27-
&__right {
28-
display: flex;
29-
30-
&__slot {
31-
padding-right: var(--padding-3px);
32-
}
33-
}
3426
}
3527

3628
.footer {
37-
display: flex;
3829
gap: var(--padding-8px);
3930
padding: var(--padding-12px);
4031
border-top: 1px solid var(--vscode-sideBarSectionHeader-border);
41-
42-
> button {
43-
flex: 1;
44-
}
4532
}

‎packages/ui/src/components/editor/panel/Page/Page.tsx‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { IconButton } from '../IconButton'
55
type Props = {
66
title?: string
77
on_back_click?: () => void
8-
on_close_click?: () => void
98
header_slot?: React.ReactNode
109
footer_slot?: React.ReactNode
1110
children: React.ReactNode
@@ -27,16 +26,7 @@ export const Page: React.FC<Props> = (props) => {
2726
/>
2827
)}
2928
</div>
30-
<div className={styles.header__right}>
31-
<div className={styles.header__right__slot}>{props.header_slot}</div>
32-
{props.on_close_click && (
33-
<IconButton
34-
codicon_icon="chrome-close"
35-
on_click={props.on_close_click}
36-
title="Close"
37-
/>
38-
)}
39-
</div>
29+
<div>{props.header_slot}</div>
4030
</div>
4131
<Scrollable>{props.children}</Scrollable>
4232
{props.footer_slot && (

‎packages/ui/src/components/editor/panel/Presets/Presets.module.scss‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33
flex-direction: column;
44
}
55

6-
.my-presets {
7-
display: flex;
8-
align-items: center;
9-
padding: 0 var(--padding-12px);
10-
margin-bottom: var(--padding-2px);
11-
gap: var(--padding-8px);
12-
13-
&__left {
14-
color: var(--vscode-descriptionForeground);
15-
}
16-
}
17-
186
.presets {
197
display: flex;
208
flex-direction: column;
@@ -128,3 +116,12 @@
128116
}
129117
}
130118
}
119+
120+
.footer {
121+
display: flex;
122+
padding: var(--padding-8px) var(--padding-12px);
123+
124+
> button {
125+
flex: 1;
126+
}
127+
}

‎packages/ui/src/components/editor/panel/Presets/Presets.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import cn from 'classnames'
55
import { ReactSortable } from 'react-sortablejs'
66
import { Icon } from '../../common/Icon'
77
import { CHATBOTS } from '@shared/constants/chatbots'
8+
import { Button } from '../Button/Button'
89
import { use_context_menu } from '../../../../hooks/use-context-menu'
910

1011
export const chatbot_to_icon: Record<keyof typeof CHATBOTS, Icon.Variant> = {
@@ -102,11 +103,6 @@ export const Presets: React.FC<Presets.Props> = (props) => {
102103

103104
return (
104105
<div className={styles.container}>
105-
<div className={styles['my-presets']}>
106-
<div className={styles['my-presets__left']}>MY PRESETS</div>
107-
<IconButton codicon_icon="add" on_click={props.on_create_preset} />
108-
</div>
109-
110106
<div className={styles.presets}>
111107
{props.presets[0]?.chatbot !== undefined && (
112108
<div
@@ -369,6 +365,9 @@ export const Presets: React.FC<Presets.Props> = (props) => {
369365
</div>
370366
</div>
371367
)}
368+
<div className={styles.footer}>
369+
<Button on_click={props.on_create_preset}>Add New Preset</Button>
370+
</div>
372371
</div>
373372
)
374373
}

‎packages/ui/src/components/editor/panel/ResponsePreview/ResponsePreview.module.scss‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
font-size: var(--padding-12px);
1212
border: 1px solid var(--vscode-sideBarSectionHeader-border);
1313
opacity: var(--dimmed-opacity);
14-
margin: 0 var(--padding-12px) var(--padding-8px) var(--padding-12px);
14+
margin: 0 var(--padding-12px);
1515
border-radius: var(--border-radius-5px);
1616

1717
> span {
@@ -22,7 +22,7 @@
2222

2323
.instructions {
2424
position: relative;
25-
padding: var(--padding-5px) var(--padding-7px);
25+
padding: var(--padding-5px) 15px var(--padding-5px) var(--padding-7px);
2626
border: 1px solid var(--vscode-sideBarSectionHeader-border);
2727
margin: 0 var(--padding-12px);
2828
border-radius: var(--border-radius-10px);
@@ -53,6 +53,7 @@
5353
background: var(--vscode-list-hoverBackground);
5454
padding: var(--padding-5px) var(--padding-7px);
5555
border-radius: var(--border-radius-8px);
56+
word-wrap: break-word;
5657
}
5758

5859
> div:first-child {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.container {
2+
display: flex;
3+
width: 100%;
4+
gap: var(--padding-8px);
5+
6+
> * {
7+
flex: 1;
8+
}
9+
}

0 commit comments

Comments
 (0)