Skip to content

Commit d2d6ce2

Browse files
committed
Enhance donation display to recognize monthly supporters and refine extension descriptions
1 parent 593e3b9 commit d2d6ce2

6 files changed

Lines changed: 18 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Generate meaningful commit messages precisely adhering to your preferred style.
113113
**Anthropic**, **Cerebras**, **Chutes**, **DeepInfra**, **DeepSeek**, **Fireworks**, **Gemini**, **Hyperbolic**, **Mistral**, **OpenAI**, **OpenRouter**, **TogetherAI**
114114

115115
ℹ️ Any OpenAI-API compatible endpoint works with CWC<br />
116-
🔒️ API keys are stored encrypted with the [SecretStorage utility](https://code.visualstudio.com/api/references/vscode-api#SecretStorage)
116+
🔒️ API keys are [stored encrypted](https://code.visualstudio.com/api/references/vscode-api#SecretStorage)
117117

118118
## Commands
119119

packages/browser/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Robert Piosik",
44
"name": "Code Web Chat Connector",
55
"short_name": "CWC",
6-
"description": "Initialize chatbots and apply responses.",
6+
"description": "Initialize chatbots and apply chat responses with a single click.",
77
"version": "1.2.0",
88
"homepage_url": "https://github.com/robertpiosik/CodeWebChat",
99
"icons": {

packages/ui/src/components/editor/RecentDonations/RecentDonations.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,30 @@ import styles from './RecentDonations.module.scss'
55
dayjs.extend(relativeTime)
66

77
type Props = {
8-
donations: { name: string; note?: string; date: Date }[]
8+
donations: { name: string; date: Date; note?: string; is_monthly?: boolean }[]
99
}
1010

1111
export const RecentDonations: React.FC<Props> = (props) => {
1212
return (
1313
<div className={styles.list}>
1414
{props.donations.map((coffee, i) => {
1515
const relative_time = dayjs(coffee.date).fromNow()
16+
const action_text = coffee.is_monthly
17+
? 'became a monthly supporter'
18+
: 'donated'
19+
1620
return (
1721
<div key={i} className={styles.list__item}>
1822
<div
1923
className={styles.list__item__heading}
20-
title={`${coffee.name} donated ${relative_time}`}
24+
title={`${coffee.name} ${action_text} ${relative_time}`}
2125
>
2226
<span className={styles.list__item__heading__username}>
2327
{coffee.name}
2428
</span>
25-
<span>donated {relative_time}</span>
29+
<span>
30+
{action_text} {relative_time}
31+
</span>
2632
</div>
2733

2834
{coffee.note && (

packages/vscode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat (CWC)",
4-
"description": "Initialize chatbots and apply responses",
5-
"version": "1.54.0",
4+
"description": "Initialize chatbots and apply chat responses with a single click",
5+
"version": "1.55.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "npm run compile",

packages/vscode/src/view/frontend/tabs/donations/hooks/use-donations.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type Donation = {
55
name: string
66
date: Date
77
note?: string
8+
is_monthly?: boolean
89
}
910

1011
export const use_donations = (is_visible: boolean) => {
@@ -30,8 +31,9 @@ export const use_donations = (is_visible: boolean) => {
3031
const data = await response.json()
3132
const new_donations = data.data.map((coffee: any) => ({
3233
name: coffee.supporter_name,
34+
date: new Date(coffee.support_created_on),
3335
note: coffee.support_note,
34-
date: new Date(coffee.support_created_on)
36+
is_monthly: coffee.support_type == 'Monthly Supporter'
3537
}))
3638

3739
if (append) {

packages/vscode/src/view/frontend/tabs/settings/Settings.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ export const Settings: React.FC<Props> = (props) => {
7474
>
7575
<div className={styles.configure}>
7676
<span>
77-
CWC ships with battle-tested must-have API tools. API keys are stored encrypted
78-
with the&nbsp;
77+
CWC includes battle-tested must-have API tools. API keys are&nbsp;
7978
<a href="https://code.visualstudio.com/api/references/vscode-api#SecretStorage">
80-
SecretStorage utility
79+
stored encrypted
8180
</a>
8281
.
8382
</span>

0 commit comments

Comments
 (0)