Skip to content

Commit c40c0cf

Browse files
authored
Merge pull request #86 from techdiary-dev/kingrayhan/gist
Kingrayhan/gist
2 parents 81e9886 + ceb24a2 commit c40c0cf

5 files changed

Lines changed: 24 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ This project adheres to [Semantic Versioning](https://semver.org/).
66

77
---
88

9+
## v1.2.0 — 2026-03-30
10+
11+
### ✨ Features
12+
- feat: add Gists navigation links to HomeLeftSidebar and AuthenticatedUserMenu (753074b)
13+
14+
---
15+
916
## v1.1.0 — 2026-03-29
1017

1118
### ✨ Features

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "techdiary.dev-next",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbo",

src/app/(home)/_components/HomeLeftSidebar.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
PlusIcon,
1515
UserIcon,
1616
HashIcon,
17+
CodeIcon,
1718
} from "lucide-react";
1819
import Link from "next/link";
1920

@@ -53,6 +54,7 @@ const Sidebar = () => {
5354
{/* Section 1 — Primary navigation */}
5455
<div className="flex flex-col gap-1">
5556
<NavLink href="/" icon={<HomeIcon size={17} />} label={_t("Home")} />
57+
<NavLink href="/gists" icon={<CodeIcon size={17} />} label={_t("Gists")} />
5658
<Link
5759
href="/dashboard/articles/new"
5860
className="flex items-center gap-2.5 mt-1 px-2 py-1.5 rounded-md bg-primary text-primary-foreground text-sm font-medium hover:opacity-90 transition-opacity"
@@ -78,6 +80,11 @@ const Sidebar = () => {
7880
icon={<PlusIcon size={17} />}
7981
label={_t("My Articles")}
8082
/>
83+
<NavLink
84+
href={`/@${session!.user!.username}/gists`}
85+
icon={<CodeIcon size={17} />}
86+
label={_t("My Gists")}
87+
/>
8188
<NavLink
8289
href="/dashboard/bookmarks"
8390
icon={<BookmarkIcon size={17} />}

src/components/Navbar/AuthenticatedUserMenu.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ const AuthenticatedUserMenu = () => {
5353
{_t("Dashboard")}
5454
</Link>
5555
</DropdownMenuItem>
56+
<DropdownMenuItem asChild>
57+
<Link
58+
className="text-foreground cursor-pointer block"
59+
href={`/@${authSession?.user?.username}/gists`}
60+
>
61+
{_t("My Gists")}
62+
</Link>
63+
</DropdownMenuItem>
5664
<DropdownMenuItem asChild>
5765
<Link
5866
className="text-foreground cursor-pointer"

src/components/Navbar/Navbar.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ const Navbar: React.FC<NavbarProps> = ({ Trailing }) => {
2020
Techdiary
2121
</span>
2222
</Link>
23-
<Link
24-
href="/gists"
25-
className="text-sm text-muted-foreground hover:text-foreground px-2"
26-
>
27-
Gists
28-
</Link>
23+
2924
</div>
3025
<SearchInput />
3126
<NavbarActions />

0 commit comments

Comments
 (0)