File tree Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 3636 "lucide-react" : " ^0.468.0" ,
3737 "mermaid" : " ^11.4.1" ,
3838 "next" : " ^15.0.1" ,
39+ "next-themes" : " ^0.4.6" ,
3940 "postgres" : " ^3.4.4" ,
4041 "posthog-js" : " ^1.203.1" ,
4142 "react" : " ^18.3.1" ,
4243 "react-dom" : " ^18.3.1" ,
4344 "react-icons" : " ^5.4.0" ,
45+ "sonner" : " ^2.0.3" ,
4446 "svg-pan-zoom" : " ^3.6.2" ,
4547 "tailwind-merge" : " ^2.5.5" ,
4648 "tailwindcss-animate" : " ^1.0.7" ,
Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ import { useDiagram } from "~/hooks/useDiagram";
88import { ApiKeyDialog } from "~/components/api-key-dialog" ;
99import { ApiKeyButton } from "~/components/api-key-button" ;
1010import { useState } from "react" ;
11+ import { useStarReminder } from "~/hooks/useStarReminder" ;
1112
1213export default function Repo ( ) {
1314 const [ zoomingEnabled , setZoomingEnabled ] = useState ( false ) ;
1415 const params = useParams < { username : string ; repo : string } > ( ) ;
16+
17+ // Use the star reminder hook
18+ useStarReminder ( ) ;
19+
1520 const {
1621 diagram,
1722 error,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { type Metadata } from "next";
55import { Header } from "~/components/header" ;
66import { Footer } from "~/components/footer" ;
77import { CSPostHogProvider } from "./providers" ;
8+ import { Toaster } from "~/components/ui/sonner" ;
89
910export const metadata : Metadata = {
1011 title : "GitDiagram" ,
@@ -81,6 +82,7 @@ export default function RootLayout({
8182 < Header />
8283 < main className = "flex-grow" > { children } </ main >
8384 < Footer />
85+ < Toaster />
8486 </ body >
8587 </ CSPostHogProvider >
8688 </ html >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function Header() {
1818 } , [ ] ) ;
1919
2020 const formatStarCount = ( count : number | null ) => {
21- if ( ! count ) return "3 .0k" ; // Default to 2.0k if count is null (it can only go up from here)
21+ if ( ! count ) return "6 .0k" ; // Default to 2.0k if count is null (it can only go up from here)
2222 if ( count >= 1000 ) {
2323 return `${ ( count / 1000 ) . toFixed ( 1 ) } k` ;
2424 }
You can’t perform that action at this time.
0 commit comments