Skip to content

Commit 0461255

Browse files
committed
Update donation description to clarify tooling is open-source and add empty state message for checkpoints
1 parent 13fd421 commit 0461255

3 files changed

Lines changed: 30 additions & 20 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ export const Donations: React.FC<DonationsProps> = (props) => {
148148
<div className={styles.container}>
149149
<div className={styles.about}>
150150
Hi there! Your donation supports my mission to help build a
151-
sustainable future for AI coding, providing free, prompt caching
152-
friendly tooling for everyone. Thank you.
151+
sustainable future for AI coding, providing free and open-source,
152+
prompt caching friendly tooling for everyone. Thank you.
153153
</div>
154154
<div className={styles.sponsors}>
155155
<Fieldset

‎packages/vscode/src/views/panel/frontend/Home/Home.module.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
}
108108
}
109109

110+
&__empty {
111+
padding-left: 34px;
112+
color: var(--cwc-text-color-dimmed);
113+
}
114+
110115
&__buttons {
111116
display: flex;
112117
flex-direction: column;

‎packages/vscode/src/views/panel/frontend/Home/Home.tsx‎

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -140,24 +140,29 @@ export const Home: React.FC<Props> = (props) => {
140140
</>
141141
}
142142
/>
143-
{!is_timeline_collapsed && (
144-
<Timeline
145-
items={props.checkpoints.map((c) => ({
146-
id: c.timestamp,
147-
label: c.title,
148-
timestamp: c.timestamp,
149-
description: c.description,
150-
is_starred: c.is_starred,
151-
can_edit: c.title == 'Created by user'
152-
}))}
153-
on_toggle_starred={(id) =>
154-
props.on_toggle_checkpoint_starred(id)
155-
}
156-
on_item_click={(id) => props.on_restore_checkpoint(id)}
157-
on_edit={props.on_edit_checkpoint_description}
158-
on_delete={props.on_delete_checkpoint}
159-
/>
160-
)}
143+
{!is_timeline_collapsed &&
144+
(props.checkpoints.length > 0 ? (
145+
<Timeline
146+
items={props.checkpoints.map((c) => ({
147+
id: c.timestamp,
148+
label: c.title,
149+
timestamp: c.timestamp,
150+
description: c.description,
151+
is_starred: c.is_starred,
152+
can_edit: c.title == 'Created by user'
153+
}))}
154+
on_toggle_starred={(id) =>
155+
props.on_toggle_checkpoint_starred(id)
156+
}
157+
on_item_click={(id) => props.on_restore_checkpoint(id)}
158+
on_edit={props.on_edit_checkpoint_description}
159+
on_delete={props.on_delete_checkpoint}
160+
/>
161+
) : (
162+
<div className={styles.inner__empty}>
163+
No checkpoints created yet.
164+
</div>
165+
))}
161166
</div>
162167

163168
<div className={styles.bottom}>

0 commit comments

Comments
 (0)