Current: 103 page files
Actually Used: ~44 pages
Can Remove: ~46+ unused/test pages
Reduction: ~57% fewer files
- ✅ HomePage - Landing page
- ✅ LegalAIChatPage - AI chat (main feature)
- ✅ DocumentScanPage - Document scanner
- ✅ DocumentsPage - Document management
- ✅ LoginPage - Authentication
- ✅ RegisterPage - Registration
- ✅ Dashboard - User dashboard
- ✅ NotFoundPage - 404 page
- ✅ About - About page
- ✅ Contact - Contact form
- ✅ Services - Services listing
- ✅ Resources - Resources
- ✅ RightsPage - Know your rights
- ✅ PrivacyPolicyPage - Legal requirement
- ✅ TermsOfServicePage - Legal requirement
- ✅ HelpPage - Help/support
- ✅ BugReportPage - User feedback
- ✅ FeatureRequestPage - User feedback
- ✅ ComprehensiveGlossaryPage - Legal glossary
- ✅ FAQPage - FAQ
- ✅ LegalToolsPage - Tools hub
- ✅ CaseLawPage - Case law research
- ✅ ExpertHelpPage - Expert help
- ✅ SafetyCheckPage - Safety checker
- ✅ DocumentChecklistPage - Checklist
- ✅ PDFGenerator - PDF generator
- ✅ AdminDashboard - Admin panel
- ✅ LawyerDashboard - Lawyer dashboard
- ✅ BondsmanDashboard - Bondsman dashboard
- ✅ ClientPortal - Client portal
- ✅ VirtualParalegalPage - Virtual paralegal
- ✅ FormsDashboard - Forms
- ✅ ProfilePage - User profile
- ✅ PartnersPage - Partners
- ✅ PressPage - Press/media
- ✅ CareersPage - Careers
- ✅ TeamPage - Team
- ✅ OurMissionPage - Mission
- ✅ BlogPage - Blog (if using)
- ✅ StatusPage - System status
- ✅ SitemapPage - Sitemap
- ✅ AccessibilityPage - Accessibility
- ✅ VolunteerFormPage - Volunteer form
- ✅ LegalHelpFormPage - Legal help form
- ❌ AuthTestPage.js
- ❌ DocumentAITest.js
- ❌ LangGraphDemo.js
- ❌ SaulTestPage.js
- ❌ ScannerTestPage.js
- ❌ BetaLandingPage.js
- ❌ BetaConfirm.js
- ❌ SignatureDemoPage.js
- ❌ AboutUsPage.js → Use
About.js - ❌ DocumentScannerPage.js → Use
DocumentScanPage.js - ❌ DocumentGenerationPage.js → Use
PDFGenerator - ❌ HelpCenterPage.js → Use
HelpPage.js - ❌ GlossaryPage.js → Use
ComprehensiveGlossaryPage.js - ❌ LegalChat.js → Use
LegalAIChatPage.js - ❌ LegalChatPage.js → Use
LegalAIChatPage.js - ❌ Home.js → Use
HomePage.js - ❌ Documents.js → Use
DocumentsPage.js - ❌ Contracts.js → Use
ContractsPage.js - ❌ ScanDocument.js → Use
DocumentScanPage.js - ❌ LandingPage.js → Use
HomePage.js
- ❌ EvictionResponseForm.js
- ❌ FeeWaiverRequestForm.js
- ❌ SmallClaimsComplaintForm.js
- ❌ AdminNotificationDashboard.js
- ❌ AnalyticsDashboard.js
- ❌ ImmigrationDashboard.js
- ❌ TemplatesDashboardPage.js
- ❌ BusinessModel.js
- ❌ StartupBusinessModel.js
- ❌ CaseDetailPage.js
- ❌ ComplianceScannerPage.js
- ❌ EducationalContentPage.js
- ❌ ExpungementPage.js (use component)
- ❌ FormsIndexPage.js
- ❌ LegalAnalysis.js
- ❌ LegalTemplatesPage.js
- ❌ ModelManagementPage.js
- ❌ OnboardingPage.js
- ❌ PolicyGeneratorPage.js
- ❌ ProceduresPage.js
- ❌ RiskAssessmentPage.js
- ❌ SignaturePage.js
- ❌ SignaturePlacementPage.js
- ❌ ThankYouPage.js
- ❌ KnowYourRightsPage.js → Use
RightsPage.js - ❌ And more...
To make the platform work, you need:
- HomePage - Landing
- LegalAIChatPage - Main AI feature
- DocumentScanPage - Document scanner
- LoginPage / RegisterPage - Auth
- Dashboard - User area
- About / Contact - Basic pages
- PrivacyPolicyPage / TermsOfServicePage - Legal
- NotFoundPage - Error handling
That's it! ~8-10 pages minimum.
Everything else is nice-to-have.
./cleanup_unused_pages.shRemoves ~8 test/demo pages immediately.
Keep one version of each page type, remove duplicates.
If you're not using certain dashboards/forms, remove them.
Result: Cleaner codebase, easier to maintain, faster builds!