Skip to content

Commit ee1d948

Browse files
committed
Update README with Clean Architecture quote and improve file item UI styling and functionality
1 parent 6317230 commit ee1d948

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ With its focus on context engineering, CWC lets you pick all the necessary files
3434

3535
When pair-programming with Code Web Chat you foster codebase understanding, iterate on changes that are easy to review, and enter the flow state like in the good old days!
3636

37+
> “The only way to go fast, is to go well.” ― Robert C. Martin, Clean Architecture
38+
3739
## Enabling autofill in browser
3840

3941
Start using [projects](https://help.openai.com/en/articles/10169521-projects-in-chatgpt) (also called [gems](https://gemini.google/pl/overview/gems) or [spaces](https://docs.github.com/en/copilot/concepts/context/spaces)) without the tedious copy and paste!

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,26 @@
157157
var(--vscode-gitDecoration-addedResourceForeground) 12%,
158158
transparent
159159
);
160+
161+
.message__actions__item:hover {
162+
background-color: color-mix(
163+
in srgb,
164+
var(--vscode-gitDecoration-addedResourceForeground) 12%,
165+
transparent
166+
);
167+
}
160168
}
161169

162170
&__content {
163171
flex: 1;
164172
overflow: hidden;
165173
text-overflow: ellipsis;
166174
white-space: nowrap;
167-
font-size: 11px;
168-
padding: 2px 0 2px 6px;
175+
font-size: 12px;
176+
padding: 3px 0 3px 6px;
169177

170178
> span:first-child {
171-
font-size: 12px !important;
179+
font-size: 13px !important;
172180
margin-right: 4px;
173181
transform: translateY(2px);
174182
}

‎packages/ui/src/components/editor/panel/ResponsePreview/components/FileItem/FileItem.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ type Props = {
2020
}
2121

2222
type FileMessage =
23-
| { type: 'success'; text: string }
23+
| { type: 'success'; text: string; show_actions?: boolean }
2424
| { type: 'error'; text: string; show_actions: boolean }
2525
| { type: 'warning'; text: string; show_actions: boolean }
2626

2727
const get_file_message = (file: FileInPreview): FileMessage | null => {
2828
if (file.fixed_with_intelligent_update) {
2929
return {
3030
type: 'success',
31-
text: 'Fixed successfully'
31+
text: 'Fixed successfully',
32+
show_actions: true
3233
}
3334
} else if (file.apply_failed) {
3435
return {
@@ -237,7 +238,9 @@ export const FileItem: FC<Props> = (props) => {
237238
title={'Fix with Intelligent Update API tool'}
238239
>
239240
<span className="codicon codicon-sparkle" />
240-
<span>Fix</span>
241+
<span>
242+
{props.file.fixed_with_intelligent_update ? 'Retry' : 'Fix'}
243+
</span>
241244
</div>
242245
)}
243246
</div>

0 commit comments

Comments
 (0)