Skip to content

Commit 85937d6

Browse files
committed
Refine README copy, fix UI state sync in settings, and improve styling consistency across components
1 parent 452c49e commit 85937d6

6 files changed

Lines changed: 36 additions & 37 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Code Web Chat is a free and open-source AI coding toolkit. You can use CWC in **
3232

3333
## Introduction
3434

35-
With its focus on context engineering, CWC proposes a **non-agentic workflow**, where all the necessary for the task files, includnig useful examples, are **picked with engineer's intent**. Such guided model works well with simple prompts and is as accurate as it can get. The tool is a **perfect companion for all kinds of coding tasks**; from tedious refactors to complex features.
35+
With its focus on context engineering, CWC lets you pick all the necessary files, includnig useful examples with **engineer's intent**. Such steered model welcomes simple, task-focused instrucions, returns all edits in a single response, and is as accurate as it can get. The tool is a perfect companion for all kinds of coding tasks; **from tedious refactors to complex features**.
3636

3737
> [!TIP]
38-
> Feeling lost in the codebase? Just pick a broad context, set _Prune context_, type what you're about to do and AI will help narrow it down to a reasonable size.
38+
> Feeling lost in the codebase? CWC will help you prune a rough context selection.
3939
4040
When pair-programming with Code Web Chat you foster codebase understanding, iterate on changes easy to review, and enter the flow state like in the good old days!
4141

‎apps/editor/src/views/settings/frontend/hooks/use-settings.ts‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,13 @@ export const use_settings = (vscode: any) => {
290290
instructions
291291
})
292292

293-
const handle_automatic_checkpoints_toggle = (disabled: boolean) =>
293+
const handle_automatic_checkpoints_toggle = (disabled: boolean) => {
294+
set_are_automatic_checkpoints_disabled(disabled)
294295
post_message(vscode, {
295296
command: 'UPDATE_ARE_AUTOMATIC_CHECKPOINTS_DISABLED',
296297
disabled
297298
})
299+
}
298300

299301
const handle_checkpoint_lifespan_change = (hours: number) =>
300302
post_message(vscode, {
@@ -314,25 +316,31 @@ export const use_settings = (vscode: any) => {
314316
aiStudioUserId
315317
})
316318

317-
const handle_send_with_shift_enter_change = (enabled: boolean) =>
319+
const handle_send_with_shift_enter_change = (enabled: boolean) => {
320+
set_send_with_shift_enter(enabled)
318321
post_message(vscode, {
319322
command: 'UPDATE_SEND_WITH_SHIFT_ENTER',
320323
enabled
321324
})
325+
}
322326

323-
const handle_check_new_files_change = (enabled: boolean) =>
327+
const handle_check_new_files_change = (enabled: boolean) => {
328+
set_check_new_files(enabled)
324329
post_message(vscode, {
325330
command: 'UPDATE_CHECK_NEW_FILES',
326331
enabled
327332
})
333+
}
328334

329335
const handle_clear_checks_in_workspace_behavior_change = (
330336
value: 'ignore-open-editors' | 'uncheck-all'
331-
) =>
337+
) => {
338+
set_clear_checks_in_workspace_behavior(value)
332339
post_message(vscode, {
333340
command: 'UPDATE_CLEAR_CHECKS_IN_WORKSPACE_BEHAVIOR',
334341
value
335342
})
343+
}
336344

337345
return {
338346
providers,

‎packages/ui/src/components/editor/common/Toggler/Toggler.module.scss‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@
2020
bottom: 0;
2121
background-color: var(--vscode-input-background);
2222
border: 1px solid var(--cwc-border-color);
23-
transition: 0.4s;
23+
transition: var(--transition-duration-250);
2424
border-radius: 20px;
25-
}
2625

27-
.slider:before {
28-
position: absolute;
29-
content: '';
30-
height: 12px;
31-
width: 12px;
32-
left: 3px;
33-
bottom: 3px;
34-
background-color: var(--vscode-input-foreground);
35-
transition: var(--transition-duration-150);
36-
border-radius: 50%;
26+
&::before {
27+
position: absolute;
28+
content: '';
29+
height: 12px;
30+
width: 12px;
31+
left: 3px;
32+
bottom: 3px;
33+
background-color: var(--vscode-button-background);
34+
transition: var(--transition-duration-250);
35+
border-radius: 50%;
36+
}
3737
}
3838

3939
input:checked + .slider {

‎packages/ui/src/components/editor/settings/ConfigurationsList/ConfigurationsList.module.scss‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
padding: 0 12px;
3131

3232
&:nth-child(even) {
33-
background-color: var(--vscode-welcomePage-tileBackground);
33+
background-color: var(--cwc-bg-tertiary);
3434
}
3535

3636
&__content {
@@ -67,18 +67,11 @@
6767
}
6868
}
6969

70-
.col-radio {
71-
width: 20px;
72-
display: flex;
73-
align-items: center;
74-
justify-content: center;
75-
}
76-
7770
.col-drag {
7871
padding: 4px;
7972
display: flex;
8073
align-items: center;
81-
justify-content: center;
74+
height: 100%;
8275
}
8376

8477
.col-actions {

‎packages/ui/src/components/editor/settings/ConfigurationsList/ConfigurationsList.tsx‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ export const ConfigurationsList: React.FC<ConfigurationsList.Props> = (
4040
</div>
4141
)}
4242
{props.on_set_default && (
43-
<div className={styles['col-radio']}>
44-
<Radio
45-
name={props.radio_group_name ?? 'default_configuration'}
46-
checked={!!config.is_default}
47-
title="Set as default"
48-
on_change={() => props.on_set_default?.(config.id)}
49-
/>
50-
</div>
43+
<Radio
44+
name={props.radio_group_name ?? 'default_configuration'}
45+
checked={!!config.is_default}
46+
title="Set as default"
47+
on_change={() => props.on_set_default?.(config.id)}
48+
/>
5149
)}
5250
<div className={styles.row__content}>
5351
<span>{config.model}</span>

‎packages/ui/src/components/editor/settings/NavigationItem/NavigationItem.module.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
cursor: pointer;
1010

1111
&:hover {
12-
background-color: var(--vscode-list-hoverBackground);
12+
background-color: var(--cwc-bg-secondary);
1313
text-decoration: none;
1414
}
1515

1616
&--active {
17-
background-color: var(--vscode-list-inactiveSelectionBackground);
17+
background-color: var(--cwc-bg-tertiary);
1818
}
1919
}

0 commit comments

Comments
 (0)