How lucaseduardo76/sipf works
SIP is a campus lost-and-found application: users create accounts, browse and search found items, and pursue item recovery; administrators manage items, review recovery requests, and maintain pickup schedules. The graph also shows authentication, profile, and notification support. Several domain pages and API modules are present in the tree but were not sampled, so their internal calls are not inferred; edges reflect only shown calls, imports listed in the source index, or documented behavior.
Main entry points: recoveryService.ts Recovery service · axios.ts HTTP client · LoginClient.tsx Sign in · page.tsx Registration
Components 24
Identity and access
- Sign in
src/app/(public)/login/LoginClient.tsx - Registration
src/app/(public)/signup/page.tsx - Auth context
src/context/AuthContext.tsx - Auth endpoints
src/api/endpoints/auth.ts - User endpoints
src/api/endpoints/user.ts - Route access
src/middleware.ts
Item discovery
- Item details
src/app/(private)/dashboard/items/[id]/page.tsx - Item browsing
src/app/(private)/dashboard/items/list/[filter]/page.tsx - Item search
src/app/(private)/dashboard/items/search/[[...operation]]/page.tsx - Item management
src/app/(private)/dashboard/(admin)/items - Item endpoints
src/api/endpoints/item.ts
Recovery operations
- Request history
src/app/(private)/dashboard/request-history/page.tsx - Review requests
src/app/(private)/dashboard/(admin)/requests/page.tsx - Recovery service
src/api/endpoints/recoveryService.ts - Withdrawal endpoints
src/api/endpoints/withdrawal.ts - Pickup schedules
src/app/(private)/dashboard/(admin)/schedule
Shared platform
- Profile management
src/app/(private)/dashboard/profile/page.tsx - Avatar upload
src/utils/useAvatarUpload.ts - HTTP client
src/api/axios.ts - Live notifications
src/context/WebsocketContext.tsx - Notification header
src/components/ui/PageHeader.tsx - Notification endpoints
src/api/endpoints/notification.ts
Other components
- Campus user
- Application API
Connections 25
- Campus user → Sign in: signs in
src/app/(public)/login/LoginClient.tsx - Campus user → Registration: registers
src/app/(public)/signup/page.tsx - Sign in → Auth context: calls login
src/app/(public)/login/LoginClient.tsx - Registration → Auth context: calls register
src/app/(public)/signup/page.tsx - Auth context → Auth endpoints: calls auth
src/context/AuthContext.tsx - Auth endpoints → HTTP client: uses client
src/api/endpoints/auth.ts - Sign in → User endpoints: requests reactivation
src/app/(public)/login/LoginClient.tsx - Route access → Campus user: gates routes
src/middleware.ts - Item details → Item endpoints: loads item
src/app/(private)/dashboard/items/[id]/page.tsx - Item details → Withdrawal endpoints: submits withdrawal
src/app/(private)/dashboard/items/[id]/page.tsx - Request history → Recovery service: loads history
src/app/(private)/dashboard/request-history/page.tsx - Review requests → Recovery service: reviews requests
src/app/(private)/dashboard/(admin)/requests/page.tsx - Recovery service → HTTP client: uses client
src/api/endpoints/recoveryService.ts - Registration → Avatar upload: uploads photo
src/app/(public)/signup/page.tsx - Avatar upload → HTTP client: sends upload
src/utils/useAvatarUpload.ts - Profile management → HTTP client: loads profile
src/app/(private)/dashboard/profile/page.tsx - Notification header → Live notifications: uses context
src/components/ui/PageHeader.tsx - Notification header → Notification endpoints: loads notifications
src/components/ui/PageHeader.tsx - Live notifications → Notification endpoints: uses endpoints
src/context/WebsocketContext.tsx - Item endpoints → Application API: exchanges item data
- Recovery service → Application API: exchanges requests
src/api/endpoints/recoveryService.ts - Withdrawal endpoints → Application API: exchanges withdrawals
- Notification endpoints → Application API: exchanges notifications
- User endpoints → Application API: exchanges account data
- Pickup schedules → Application API: manages pickup slots