How achala357/fyp_repo works
LegalView is a React contract-intelligence frontend. Users can upload agreements, review upload history, and open documents in a viewer; the viewer retrieves file data from a separately hosted API. The app also exposes dashboard, clause extraction, risk reporting, Q&A, labeling, and settings routes, though several of these pages are placeholders or were not sampled in detail. The graph reflects visible routing, layout composition, and HTTP calls; no backend implementation or persistent store is present in the supplied tree.
Main entry points: App.jsx Route dispatcher · Layout.jsx Page layout · UploadPage.jsx Contract upload · UploadHistory.jsx Upload history
Components 15
Application shell
- Route dispatcher
src/App.jsx - Page layout
src/components/Layout.jsx - Sidebar navigation
src/components/Sidebar.jsx - Top navigation
src/components/Navbar.jsx
Document intake
- Contract upload
src/pages/UploadPage.jsx - Upload history
src/pages/UploadHistory.jsx
Document review
- Contract viewer
src/pages/ContractViewer.jsx
Contract analysis
- Clause extractor
src/pages/ClauseExtractor.jsx - Risk reports
src/pages/RiskReport.jsx - Contract Q&A
src/pages/Chatbot.jsx - Labeling tool
src/pages/LabelingTool.jsx
Other components
- Legal user
- Contract API
Connections 16
- Legal user → Route dispatcher: opens
- Route dispatcher → Page layout: wraps routes
src/App.jsx - Route dispatcher → Dashboard: routes to
src/App.jsx - Route dispatcher → Contract upload: routes to
src/App.jsx - Route dispatcher → Upload history: routes to
src/App.jsx - Route dispatcher → Contract viewer: routes to
src/App.jsx - Route dispatcher → Clause extractor: routes to
src/App.jsx - Route dispatcher → Risk reports: routes to
src/App.jsx - Route dispatcher → Contract Q&A: routes to
src/App.jsx - Route dispatcher → Labeling tool: routes to
src/App.jsx - Route dispatcher → Settings: routes to
src/App.jsx - Page layout → Sidebar navigation: renders
src/components/Layout.jsx - Page layout → Top navigation: renders
src/components/Layout.jsx - Contract upload → Contract API: uploads, lists
src/pages/UploadPage.jsx - Contract viewer → Contract API: fetches files
src/pages/ContractViewer.jsx - Upload history → Contract API: lists, deletes
src/pages/UploadHistory.jsx