Skip to content

Commit 3e1fae7

Browse files
authored
chore: add Star the Repo to support links (#13924)
1 parent 80cbffe commit 3e1fae7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

coderd/appearance/appearance.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ var DefaultSupportLinks = []codersdk.LinkConfig{
2626
Target: "https://coder.com/chat?utm_source=coder&utm_medium=coder&utm_campaign=server-footer",
2727
Icon: "chat",
2828
},
29+
{
30+
Name: "Star the Repo",
31+
Target: "https://github.com/coder/coder",
32+
Icon: "star",
33+
},
2934
}
3035

3136
type AGPLFetcher struct{}

site/src/modules/dashboard/Navbar/UserDropdown/UserDropdown.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const meta: Meta<typeof UserDropdown> = {
1414
{ icon: "docs", name: "Documentation", target: "" },
1515
{ icon: "bug", name: "Report a bug", target: "" },
1616
{ icon: "chat", name: "Join the Coder Discord", target: "" },
17+
{ icon: "star", name: "Star the Repo", target: "" },
1718
{ icon: "/icon/aws.svg", name: "Amazon Web Services", target: "" },
1819
],
1920
},

site/src/modules/dashboard/Navbar/UserDropdown/UserDropdownContent.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import LaunchIcon from "@mui/icons-material/LaunchOutlined";
1212
import DocsIcon from "@mui/icons-material/MenuBook";
1313
import Divider from "@mui/material/Divider";
1414
import MenuItem from "@mui/material/MenuItem";
15+
import type { SvgIconProps } from "@mui/material/SvgIcon";
1516
import Tooltip from "@mui/material/Tooltip";
1617
import type { FC } from "react";
1718
import { Link } from "react-router-dom";
@@ -54,6 +55,8 @@ export const UserDropdownContent: FC<UserDropdownContentProps> = ({
5455
return <ChatIcon css={styles.menuItemIcon} />;
5556
case "docs":
5657
return <DocsIcon css={styles.menuItemIcon} />;
58+
case "star":
59+
return <GithubStar css={styles.menuItemIcon} />;
5760
default:
5861
return (
5962
<ExternalImage
@@ -159,6 +162,21 @@ export const UserDropdownContent: FC<UserDropdownContentProps> = ({
159162
);
160163
};
161164

165+
export const GithubStar: FC<SvgIconProps> = (props) => (
166+
<svg
167+
aria-hidden="true"
168+
height="16"
169+
viewBox="0 0 16 16"
170+
version="1.1"
171+
width="16"
172+
data-view-component="true"
173+
fill="currentColor"
174+
{...props}
175+
>
176+
<path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z"></path>
177+
</svg>
178+
);
179+
162180
const includeBuildInfo = (
163181
href: string,
164182
buildInfo?: TypesGen.BuildInfoResponse,

0 commit comments

Comments
 (0)