Skip to content

Commit b0c8822

Browse files
committed
Fix typo in README and improve UI consistency for toggles, empty states, and list headers
1 parent 04f6f4f commit b0c8822

12 files changed

Lines changed: 36 additions & 150 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ 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 lets you pick all the necessary files, includnig useful examples with **engineer's intent**. Such steered model welcomes simple, task-focused instructions, makes all edits in a single request, 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 instructions, makes all edits in a single request, 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]
3838
> Feeling lost in the codebase? CWC will help you out with a _prune context_ prompt type.

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,15 @@ export const Home: React.FC<Props> = (props) => {
202202
) : undefined
203203
}
204204
/>
205+
{!props.are_tasks_collapsed &&
206+
Object.keys(props.tasks).length == 1 &&
207+
props.tasks[Object.keys(props.tasks)[0]].length == 0 && (
208+
<div className={styles.inner__empty}>No tasks created yet.</div>
209+
)}
205210
{!props.are_tasks_collapsed &&
206211
Object.entries(props.tasks)
207212
.filter(([_, tasks], __, arr) =>
208-
arr.length == 1 ? tasks.length : true
213+
arr.length == 1 ? tasks.length > 0 : true
209214
)
210215
.map(([workspace_root_folder, tasks], _, entries) => (
211216
<div

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
left: 0;
1919
right: 0;
2020
bottom: 0;
21-
background-color: var(--vscode-input-background);
21+
background-color: var(--cwc-bg-primary);
2222
border: 1px solid var(--cwc-border-color);
2323
transition: var(--transition-duration-250);
2424
border-radius: 20px;
@@ -30,9 +30,10 @@
3030
width: 12px;
3131
left: 3px;
3232
bottom: 3px;
33-
background-color: var(--vscode-button-background);
33+
background-color: white;
3434
transition: var(--transition-duration-250);
3535
border-radius: 50%;
36+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
3637
}
3738
}
3839

@@ -43,5 +44,4 @@ input:checked + .slider {
4344

4445
input:checked + .slider:before {
4546
transform: translateX(16px);
46-
background-color: var(--vscode-button-foreground);
4747
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
display: flex;
33
flex-direction: column;
44
}
5+
56
.missing-config {
67
padding: 2px 12px 0 12px;
78
font-weight: 500;

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

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

6-
.toolbar {
6+
.header {
77
display: flex;
88
padding: 12px 12px 8px 12px;
99
align-items: center;
1010
justify-content: space-between;
11-
}
1211

13-
.toolbar-group {
14-
display: flex;
15-
align-items: center;
16-
gap: 8px;
12+
&__left {
13+
display: flex;
14+
align-items: center;
15+
gap: 8px;
16+
17+
&__amount {
18+
font-weight: 600;
19+
}
20+
}
1721
}
1822

1923
.list {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ export const ConfigurationsList: React.FC<ConfigurationsList.Props> = (
7171

7272
return (
7373
<div className={styles.container}>
74-
<div className={styles.toolbar}>
75-
<div className={styles['toolbar-group']}>
76-
<span style={{ fontWeight: 500 }}>
74+
<div className={styles.header}>
75+
<div className={styles['header__left']}>
76+
<div className={styles['header__left__amount']}>
7777
{props.configurations.length} configuration
78-
{props.configurations.length === 1 ? '' : 's'}
79-
</span>
78+
{props.configurations.length == 1 ? '' : 's'}
79+
</div>
8080
{props.on_unset_default && has_default && (
8181
<>
8282
<span>·</span>

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

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

6-
.toolbar {
6+
.header {
77
display: flex;
88
padding: 12px 12px 8px 12px;
99
align-items: center;
1010
justify-content: space-between;
11+
12+
&__amount {
13+
font-weight: 600;
14+
}
1115
}
1216

1317
.list {
@@ -23,7 +27,7 @@
2327
gap: 12px;
2428

2529
&:nth-child(even) {
26-
background-color: var(--vscode-welcomePage-tileBackground);
30+
background-color: var(--cwc-bg-tertiary);
2731
}
2832

2933
&__content {

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ export const ModelProviders: React.FC<ModelProviders.Props> = (props) => {
6868

6969
return (
7070
<div className={styles.container}>
71-
<div className={styles.toolbar}>
72-
<span style={{ fontWeight: 500 }}>
71+
<div className={styles.header}>
72+
<div className={styles.header__amount}>
7373
{props.providers.length} model provider
74-
{props.providers.length === 1 ? '' : 's'}
75-
</span>
74+
{props.providers.length == 1 ? '' : 's'}
75+
</div>
7676
<Button on_click={props.on_add_provider}>New Provider...</Button>
7777
</div>
7878
<div className={styles.list}>

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

Lines changed: 0 additions & 52 deletions
This file was deleted.

‎packages/ui/src/components/editor/settings/Switch/Switch.stories.tsx‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)