How sparsh88/lost-and-found-campus works
Campus Lost & Found is a Next.js campus reporting and recovery application. Students and staff browse or report lost and found belongings; found-item records can be searched, viewed, edited, and administered through status and deletion controls, while the documented claims and verification module is marked in progress. Lost records use browser localStorage; found records use an in-memory store initialized from sample data. The README describes MongoDB as integration-ready, but the sampled code does not show it backing these workflows. Claims and some page behavior are documented but not fully evidenced by sampled calls.
Main entry points: Navbar.jsx Navigation and auth · store.js Found item store · found/page.js Found listings · dashboard/page.js Admin dashboard
Components 21
App entry and navigation
- Home page
src/app/page.js - Shared layout
src/app/layout.js - Navigation and auth
src/components/Navbar.jsx - Footer links
src/components/Footer.jsx - Login page
src/app/login/page.js
Lost item service
- Lost listings
src/app/lost/page.js - Lost reporting
src/app/lost/add/page.js - Lost details
src/app/lost/[id]/page.js - Lost item logic
src/modules/lost/index.js
Found item service
- Found listings
src/app/found/page.js - Found reporting and editing
src/app/found/add/page.js - Found details
src/app/found/[id]/page.js - Found item store
src/modules/found/store.js - Found data and categories
src/modules/found/data.js - Found item card
src/components/ui/FoundItemCard.jsx - Status badge
src/components/ui/StatusBadge.jsx - Category badge
src/components/ui/CategoryBadge.jsx
Claims and administration
- Claims and verification
src/app/claims/page.js - Claims module logic
src/modules/claims/index.js - Admin dashboard
src/app/dashboard/page.js
Other components
- Campus user
Connections 24
- Campus user → Home page: opens
- Shared layout → Navigation and auth: renders
src/app/layout.js - Shared layout → Footer links: renders
src/app/layout.js - Navigation and auth → Home page: links to
src/components/Navbar.jsx - Navigation and auth → Lost listings: links to
src/components/Navbar.jsx - Navigation and auth → Found listings: links to
src/components/Navbar.jsx - Navigation and auth → Claims and verification: links to
src/components/Navbar.jsx - Navigation and auth → Login page: links to
src/components/Navbar.jsx - Navigation and auth → Admin dashboard: admin link
src/components/Navbar.jsx - Lost listings → Lost item logic: reads items
src/app/lost/page.js - Lost reporting → Lost item logic: uses item logic
src/app/lost/add/page.js - Lost details → Lost item logic: reads details
src/app/lost/[id]/page.js - Found listings → Found item store: reads items
src/app/found/page.js - Found listings → Found data and categories: reads categories
src/app/found/page.js - Found listings → Found item card: renders cards
src/app/found/page.js - Found item card → Status badge: renders
src/components/ui/FoundItemCard.jsx - Found item card → Category badge: renders
src/components/ui/FoundItemCard.jsx - Found item store → Found data and categories: initializes from
src/modules/found/store.js - Found reporting and editing → Found item store: writes items
src/app/found/add/page.js - Found details → Found item store: reads details
src/app/found/[id]/page.js - Admin dashboard → Found item store: manages records
src/app/dashboard/page.js - Admin dashboard → Status badge: renders
src/app/dashboard/page.js - Admin dashboard → Category badge: renders
src/app/dashboard/page.js - Claims and verification → Claims module logic: implements module