File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 66 GitMerge ,
77 GitPullRequest ,
88 ExternalLink ,
9+ Github ,
910} from "lucide-react" ;
1011import { cn } from "../cn" ;
1112import {
@@ -17,6 +18,7 @@ import {
1718import { Home } from "./home" ;
1819import { PRReviewContent } from "./pr-review" ;
1920import { UserMenuButton } from "./welcome-dialog" ;
21+ import { useAuth } from "../contexts/auth" ;
2022import {
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 >
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments