Skip to content

Latest commit

 

History

History
164 lines (135 loc) · 4.58 KB

File metadata and controls

164 lines (135 loc) · 4.58 KB

🎯 Essential Pages - What You Actually Need

📊 The Reality

Current: 103 page files
Actually Used: ~44 pages
Can Remove: ~46+ unused/test pages
Reduction: ~57% fewer files


✅ WHAT YOU NEED (44 pages)

Core Features (8 pages) - REQUIRED

  1. ✅ HomePage - Landing page
  2. ✅ LegalAIChatPage - AI chat (main feature)
  3. ✅ DocumentScanPage - Document scanner
  4. ✅ DocumentsPage - Document management
  5. ✅ LoginPage - Authentication
  6. ✅ RegisterPage - Registration
  7. ✅ Dashboard - User dashboard
  8. ✅ NotFoundPage - 404 page

User Pages (12 pages) - IMPORTANT

  1. ✅ About - About page
  2. ✅ Contact - Contact form
  3. ✅ Services - Services listing
  4. ✅ Resources - Resources
  5. ✅ RightsPage - Know your rights
  6. ✅ PrivacyPolicyPage - Legal requirement
  7. ✅ TermsOfServicePage - Legal requirement
  8. ✅ HelpPage - Help/support
  9. ✅ BugReportPage - User feedback
  10. ✅ FeatureRequestPage - User feedback
  11. ✅ ComprehensiveGlossaryPage - Legal glossary
  12. ✅ FAQPage - FAQ

Tools (6 pages) - CORE FEATURES

  1. ✅ LegalToolsPage - Tools hub
  2. ✅ CaseLawPage - Case law research
  3. ✅ ExpertHelpPage - Expert help
  4. ✅ SafetyCheckPage - Safety checker
  5. ✅ DocumentChecklistPage - Checklist
  6. ✅ PDFGenerator - PDF generator

Dashboards (7 pages) - IF USING

  1. ✅ AdminDashboard - Admin panel
  2. ✅ LawyerDashboard - Lawyer dashboard
  3. ✅ BondsmanDashboard - Bondsman dashboard
  4. ✅ ClientPortal - Client portal
  5. ✅ VirtualParalegalPage - Virtual paralegal
  6. ✅ FormsDashboard - Forms
  7. ✅ ProfilePage - User profile

Optional (11 pages) - NICE TO HAVE

  1. ✅ PartnersPage - Partners
  2. ✅ PressPage - Press/media
  3. ✅ CareersPage - Careers
  4. ✅ TeamPage - Team
  5. ✅ OurMissionPage - Mission
  6. ✅ BlogPage - Blog (if using)
  7. ✅ StatusPage - System status
  8. ✅ SitemapPage - Sitemap
  9. ✅ AccessibilityPage - Accessibility
  10. ✅ VolunteerFormPage - Volunteer form
  11. ✅ LegalHelpFormPage - Legal help form

❌ WHAT YOU DON'T NEED (46+ pages)

Test/Demo Pages (8 pages) - SAFE TO DELETE

  • ❌ AuthTestPage.js
  • ❌ DocumentAITest.js
  • ❌ LangGraphDemo.js
  • ❌ SaulTestPage.js
  • ❌ ScannerTestPage.js
  • ❌ BetaLandingPage.js
  • ❌ BetaConfirm.js
  • ❌ SignatureDemoPage.js

Duplicates (12 pages) - USE ALTERNATIVES

  • ❌ 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

Unused Forms (3 pages)

  • ❌ EvictionResponseForm.js
  • ❌ FeeWaiverRequestForm.js
  • ❌ SmallClaimsComplaintForm.js

Unused Dashboards (4 pages)

  • ❌ AdminNotificationDashboard.js
  • ❌ AnalyticsDashboard.js
  • ❌ ImmigrationDashboard.js
  • ❌ TemplatesDashboardPage.js

Other Unused (19+ pages)

  • ❌ 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...

🎯 Minimum Viable Platform

To make the platform work, you need:

  1. HomePage - Landing
  2. LegalAIChatPage - Main AI feature
  3. DocumentScanPage - Document scanner
  4. LoginPage / RegisterPage - Auth
  5. Dashboard - User area
  6. About / Contact - Basic pages
  7. PrivacyPolicyPage / TermsOfServicePage - Legal
  8. NotFoundPage - Error handling

That's it! ~8-10 pages minimum.

Everything else is nice-to-have.


💡 Recommendation

Phase 1: Delete Test Pages (Safe)

./cleanup_unused_pages.sh

Removes ~8 test/demo pages immediately.

Phase 2: Remove Duplicates

Keep one version of each page type, remove duplicates.

Phase 3: Remove Unused Features

If you're not using certain dashboards/forms, remove them.

Result: Cleaner codebase, easier to maintain, faster builds!