Skip to content

Commit 8187d48

Browse files
committed
Link to GitHub in the welcome screen
1 parent 7054ca5 commit 8187d48

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/browser/components/app-shell.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
GitMerge,
77
GitPullRequest,
88
ExternalLink,
9+
Github,
910
} from "lucide-react";
1011
import { cn } from "../cn";
1112
import {
@@ -17,6 +18,7 @@ import {
1718
import { Home } from "./home";
1819
import { PRReviewContent } from "./pr-review";
1920
import { UserMenuButton } from "./welcome-dialog";
21+
import { useAuth } from "../contexts/auth";
2022
import {
2123
HoverCard,
2224
HoverCardTrigger,
@@ -38,6 +40,7 @@ export function AppShell() {
3840
openTab,
3941
getExistingPRTab,
4042
} = useTabContext();
43+
const { isAuthenticated } = useAuth();
4144
const params = useParams<{ owner: string; repo: string; number: string }>();
4245
const navigate = useNavigate();
4346

@@ -179,6 +182,17 @@ export function AppShell() {
179182
<div className="hidden sm:block">
180183
<PRUrlInput />
181184
</div>
185+
{!isAuthenticated && (
186+
<a
187+
href="https://github.com/coder/pulldash"
188+
target="_blank"
189+
rel="noopener noreferrer"
190+
className="flex items-center justify-center w-7 h-7 rounded-md text-muted-foreground hover:text-foreground hover:bg-white/5 transition-colors"
191+
title="View on GitHub"
192+
>
193+
<Github className="w-4 h-4" />
194+
</a>
195+
)}
182196
<UserMenuButton />
183197
</div>
184198
</div>

src/browser/components/welcome-dialog.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,17 @@ export function WelcomeDialog() {
11101110
<div className="pt-4">
11111111
<PRReviewAnimation />
11121112
</div>
1113+
1114+
{/* GitHub repo link */}
1115+
<a
1116+
href="https://github.com/coder/pulldash"
1117+
target="_blank"
1118+
rel="noopener noreferrer"
1119+
className="flex items-center justify-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors pt-2"
1120+
>
1121+
<ExternalLink className="w-3 h-3" />
1122+
View on GitHub
1123+
</a>
11131124
</div>
11141125
)}
11151126
</div>

0 commit comments

Comments
 (0)