Skip to content

Commit c1c5ec5

Browse files
committed
Update icons and footer to add Reddit link and consolidate Discord variants
1 parent 69a2cf4 commit c1c5ec5

6 files changed

Lines changed: 29 additions & 27 deletions

File tree

‎packages/ui/src/assets/icons/discord-text.svg‎

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 2 additions & 11 deletions
Loading

‎packages/ui/src/components/editor/common/Icon/Icon.tsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import CurlyBraces from '../../../../assets/icons/curly-braces.svg'
1111
import DeepSeek from '../../../../assets/icons/deepseek.svg'
1212
import GithubCopilot from '../../../../assets/icons/github-copilot.svg'
1313
import DiscordLogo from '../../../../assets/icons/discord-logo.svg'
14-
import DiscordText from '../../../../assets/icons/discord-text.svg'
1514
import Doubao from '../../../../assets/icons/doubao.svg'
1615
import Gemini from '../../../../assets/icons/gemini.svg'
1716
import Grok from '../../../../assets/icons/grok.svg'
@@ -25,6 +24,7 @@ import OpenWebUI from '../../../../assets/icons/open-webui.svg'
2524
import Perplexity from '../../../../assets/icons/perplexity.svg'
2625
import Qwen from '../../../../assets/icons/qwen.svg'
2726
import Together from '../../../../assets/icons/together.svg'
27+
import Reddit from '../../../../assets/icons/reddit.svg'
2828
import X from '../../../../assets/icons/x.svg'
2929
import Yuanbao from '../../../../assets/icons/yuanbao.svg'
3030
import ZAI from '../../../../assets/icons/z-ai.svg'
@@ -42,8 +42,7 @@ export namespace Icon {
4242
| 'COPILOT'
4343
| 'CURLY_BRACES'
4444
| 'DEEPSEEK'
45-
| 'DISCORD_LOGO'
46-
| 'DISCORD_TEXT'
45+
| 'DISCORD'
4746
| 'DOUBAO'
4847
| 'GEMINI'
4948
| 'GITHUB_COPILOT'
@@ -58,6 +57,7 @@ export namespace Icon {
5857
| 'PERPLEXITY'
5958
| 'QWEN'
6059
| 'TOGETHER'
60+
| 'REDDIT'
6161
| 'X'
6262
| 'YUANBAO'
6363
| 'Z_AI'
@@ -104,12 +104,9 @@ export const Icon: React.FC<Icon.Props> = ({ variant }) => {
104104
case 'DEEPSEEK':
105105
icon = <DeepSeek />
106106
break
107-
case 'DISCORD_LOGO':
107+
case 'DISCORD':
108108
icon = <DiscordLogo />
109109
break
110-
case 'DISCORD_TEXT':
111-
icon = <DiscordText />
112-
break
113110
case 'DOUBAO':
114111
icon = <Doubao />
115112
break
@@ -152,6 +149,9 @@ export const Icon: React.FC<Icon.Props> = ({ variant }) => {
152149
case 'TOGETHER':
153150
icon = <Together />
154151
break
152+
case 'REDDIT':
153+
icon = <Reddit />
154+
break
155155
case 'X':
156156
icon = <X />
157157
break

‎packages/vscode/src/constants/ignore-patterns.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const IGNORE_PATTERNS = [
22
'**/package-lock.json',
3+
'**/yarn.lock',
34
'**/pnpm-lock.yaml',
45
'**/node_modules',
56
'**/*.png',

‎packages/vscode/src/views/panel/frontend/components/Layout/Footer/Footer.module.scss‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
}
4545
}
4646

47+
&--reddit {
48+
background-color: #ff4500;
49+
50+
> svg {
51+
fill: white;
52+
}
53+
}
54+
4755
&--discord {
4856
background-color: #5765f2;
4957

‎packages/vscode/src/views/panel/frontend/components/Layout/Footer/Footer.tsx‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ export const Footer: React.FC<Props> = (props) => {
8484
>
8585
<Icon variant="BUY_ME_A_COFFEE_LOGO" />
8686
</a>
87+
<a
88+
className={cn(
89+
styles['footer__icon-button'],
90+
styles['footer__icon-button--reddit']
91+
)}
92+
href="https://www.reddit.com/r/CodeWebChat/"
93+
title="Reddit"
94+
>
95+
<Icon variant="REDDIT" />
96+
</a>
8797
<a
8898
className={cn(
8999
styles['footer__icon-button'],
@@ -92,7 +102,7 @@ export const Footer: React.FC<Props> = (props) => {
92102
href="https://discord.gg/KJySXsrSX5"
93103
title="Get involved"
94104
>
95-
<Icon variant="DISCORD_LOGO" />
105+
<Icon variant="DISCORD" />
96106
</a>
97107
</div>
98108

0 commit comments

Comments
 (0)