@@ -15,7 +15,7 @@ import Link from 'next/link';
1515import { useParams , useSearchParams } from 'next/navigation' ;
1616import React , { useCallback , useMemo , useRef , useState } from 'react' ;
1717import { motion } from 'framer-motion' ;
18- import { FaArrowLeft , FaBook , FaBookOpen , FaComments , FaExclamationTriangle , FaHome , FaProjectDiagram , FaSearch , FaSync , FaTimes } from 'react-icons/fa ' ;
18+ import { ArrowLeft , Book , BookOpen , MessageSquare , AlertTriangle , Home , Network , Search , RefreshCw , X } from 'lucide-react ' ;
1919import DependencyGraph from '@/components/DependencyGraph' ;
2020import WikiSidebarSkeleton from '@/components/skeletons/WikiSidebarSkeleton' ;
2121import WikiContentSkeleton from '@/components/skeletons/WikiContentSkeleton' ;
@@ -348,7 +348,7 @@ export default function RepoWikiPage() {
348348 className = "inline-flex items-center gap-2 rounded-md px-3 py-1 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-accent transition-colors"
349349 aria-label = "Exit reading mode"
350350 >
351- < FaArrowLeft className = "h-3.5 w-3.5" />
351+ < ArrowLeft size = { 14 } className = "h-3.5 w-3.5" />
352352 < span className = "hidden sm:inline" > Exit Reading Mode</ span >
353353 </ button >
354354 < span className = "text-sm font-medium text-foreground truncate" >
@@ -368,7 +368,7 @@ export default function RepoWikiPage() {
368368 className = "inline-flex items-center gap-2 rounded-md border border-input bg-background px-3 py-1.5 text-xs text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground"
369369 aria-label = "Search pages"
370370 >
371- < FaSearch className = "h-3 w-3" />
371+ < Search size = { 12 } className = "h-3 w-3" />
372372 < span className = "hidden sm:inline" > Search</ span >
373373 < kbd className = "hidden sm:inline-flex items-center gap-0.5 rounded border border-border bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground ml-1" >
374374 < span > ⌘</ span > K
@@ -381,7 +381,7 @@ export default function RepoWikiPage() {
381381 aria-label = "View page relationships graph"
382382 title = "View page relationships"
383383 >
384- < FaProjectDiagram className = "h-3 w-3" />
384+ < Network size = { 12 } className = "h-3 w-3" />
385385 < span className = "hidden sm:inline" > Graph</ span >
386386 </ button >
387387 { /* Reading mode toggle */ }
@@ -391,7 +391,7 @@ export default function RepoWikiPage() {
391391 aria-label = "Reading mode"
392392 title = "Reading mode (Alt+R)"
393393 >
394- < FaBook className = "h-3 w-3" />
394+ < Book size = { 12 } className = "h-3 w-3" />
395395 < span className = "hidden sm:inline" > Read</ span >
396396 </ button >
397397 </ div >
@@ -491,7 +491,7 @@ export default function RepoWikiPage() {
491491 ) : error ? (
492492 < div className = "max-w-2xl mx-auto mt-12 p-6 border border-destructive/20 bg-destructive/5 rounded-xl text-center" >
493493 < div className = "inline-flex items-center justify-center p-3 bg-destructive/10 rounded-full mb-4" >
494- < FaExclamationTriangle className = "text-xl text-destructive" />
494+ < AlertTriangle size = { 20 } className = "text-destructive" />
495495 </ div >
496496 < h3 className = "text-lg font-semibold text-foreground mb-2" > { messages . repoPage ?. errorTitle || 'Generation Failed' } </ h3 >
497497 < p className = "text-muted-foreground mb-6" > { error } </ p >
@@ -500,7 +500,7 @@ export default function RepoWikiPage() {
500500 href = "/"
501501 className = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2"
502502 >
503- < FaHome className = "mr-2 h-4 w-4" />
503+ < Home size = { 16 } className = "mr-2 h-4 w-4" />
504504 { messages . repoPage ?. backToHome || 'Back to Home' }
505505 </ Link >
506506 </ div >
@@ -563,7 +563,7 @@ export default function RepoWikiPage() {
563563 className = "ml-auto p-1.5 text-muted-foreground hover:text-foreground hover:bg-muted rounded-md transition-colors"
564564 title = { messages . repoPage ?. refreshWiki || 'Refresh' }
565565 >
566- < FaSync className = { `h-3.5 w-3.5 ${ isLoading ? 'animate-spin' : '' } ` } />
566+ < RefreshCw size = { 14 } className = { `h-3.5 w-3.5 ${ isLoading ? 'animate-spin' : '' } ` } />
567567 </ button >
568568 </ div >
569569 </ motion . div >
@@ -626,7 +626,7 @@ export default function RepoWikiPage() {
626626 className = "shrink-0 mt-1 inline-flex items-center gap-1.5 rounded-md border border-input bg-background px-2.5 py-1.5 text-xs font-medium text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:cursor-not-allowed"
627627 title = "Regenerate this page"
628628 >
629- < FaSync className = { `h-3 w-3 ${ isRegenerating === currentPageId ? 'animate-spin' : '' } ` } />
629+ < RefreshCw size = { 12 } className = { `h-3 w-3 ${ isRegenerating === currentPageId ? 'animate-spin' : '' } ` } />
630630 < span className = "hidden sm:inline" > { isRegenerating === currentPageId ? 'Regenerating...' : 'Regenerate' } </ span >
631631 </ button >
632632 ) }
@@ -656,14 +656,14 @@ export default function RepoWikiPage() {
656656
657657 { isRegenerating === currentPageId ? (
658658 < div className = "flex flex-col items-center justify-center py-16 text-center" >
659- < FaSync className = "h-6 w-6 text-primary animate-spin mb-4" />
659+ < RefreshCw size = { 24 } className = "h-6 w-6 text-primary animate-spin mb-4" />
660660 < p className = "text-sm font-medium text-foreground mb-1" > Regenerating page...</ p >
661661 < p className = "text-xs text-muted-foreground" > This may take a moment</ p >
662662 </ div >
663663 ) : generatedPages [ currentPageId ] . content . startsWith ( 'Error generating content:' ) ? (
664664 < div className = "flex flex-col items-center justify-center py-12 text-center" >
665665 < div className = "inline-flex items-center justify-center p-3 bg-destructive/10 rounded-full mb-4" >
666- < FaExclamationTriangle className = "text-xl text-destructive" />
666+ < AlertTriangle size = { 20 } className = "text-destructive" />
667667 </ div >
668668 < p className = "text-sm text-muted-foreground mb-4" > { generatedPages [ currentPageId ] . content } </ p >
669669 < button
@@ -676,7 +676,7 @@ export default function RepoWikiPage() {
676676 } }
677677 className = "inline-flex items-center gap-2 rounded-md bg-primary text-primary-foreground px-4 py-2 text-sm font-medium hover:bg-primary/90 transition-colors"
678678 >
679- < FaSync className = "h-3 w-3" />
679+ < RefreshCw size = { 12 } className = "h-3 w-3" />
680680 Retry
681681 </ button >
682682 </ div >
@@ -725,7 +725,7 @@ export default function RepoWikiPage() {
725725 ) : (
726726 < div className = "flex flex-col items-center justify-center h-full text-muted-foreground" >
727727 < div className = "p-4 bg-muted/30 rounded-full mb-4" >
728- < FaBookOpen className = "text-3xl opacity-50" />
728+ < BookOpen size = { 30 } className = "opacity-50" />
729729 </ div >
730730 < p className = "text-lg font-medium text-foreground" > Select a page</ p >
731731 < p className = "text-sm" > Choose a page from the sidebar to view its content</ p >
@@ -749,7 +749,7 @@ export default function RepoWikiPage() {
749749 className = { `fixed bottom-8 right-8 h-12 w-12 rounded-full shadow-lg flex items-center justify-center transition-all hover:scale-105 z-50 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 ${ isAskModalOpen ? 'bg-primary/90 text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background' : 'bg-primary text-primary-foreground hover:bg-primary/90' } ` }
750750 aria-label = { isAskModalOpen ? 'Close Ask AI' : ( messages . ask ?. title || 'Ask AI' ) }
751751 >
752- { isAskModalOpen ? < FaTimes className = "h-5 w-5" /> : < FaComments className = "h-5 w-5" /> }
752+ { isAskModalOpen ? < X size = { 20 } className = "h-5 w-5" /> : < MessageSquare size = { 20 } className = "h-5 w-5" /> }
753753 </ button >
754754 ) }
755755
@@ -793,7 +793,7 @@ export default function RepoWikiPage() {
793793 className = "p-2 rounded-md hover:bg-muted text-muted-foreground hover:text-foreground transition-colors"
794794 aria-label = "Close drawer"
795795 >
796- < FaTimes className = "h-4 w-4" />
796+ < X size = { 16 } className = "h-4 w-4" />
797797 </ button >
798798 </ div >
799799 </ div >
0 commit comments