How mateusz-bogacz-collegiumwitelona/spcrm_frontend works
SPCRM is a browser-based CRM frontend for a steel-trading business. Users sign in, navigate CRM workspaces, and manage customer relationships and sales records; task calendars, analytics, product and finance records, mailing, and administration are distinct product capabilities. The sampled authentication code confirms context-to-auth-API calls and the shared HTTP client; task excerpts confirm hooks calling task APIs. Other domain wiring is represented only where the file tree establishes the subsystem, so unsampled call relationships are omitted.
Main entry points: routes.ts Route map · auth-context.tsx Auth context · auth.api.ts Auth API · client.ts HTTP client
Components 23
Access and navigation
- Route map
app/routes.ts - Auth context
app/context/auth-context.tsx - Auth API
app/api/auth.api.ts - HTTP client
app/lib/client.ts
Customer relationships
- Company workspace
app/routes/company - Contact workspace
app/routes/contact - Task calendar
app/routes/task - Task data hooks
app/hooks/use-tasks.ts - Task API
app/api/task.api.ts - Company map
app/routes/company/map.tsx
Sales and commerce
- Sales workspace
app/routes/deal - Product catalog
app/routes/product - Promotions
app/routes/promotion - Offers
app/routes/offer - Invoices
app/routes/invoice
Insights and outreach
- Dashboards
app/routes/dashboard.tsx - Analytics
app/api/analytics.api.ts - Mailing creator
app/routes/mailing-creator.tsx
Administration
- User management
app/routes/user - Help and support
app/routes/help.tsx - Reference data
app/routes/steel-grade
Other components
- CRM user
- CRM backend
Connections 23
- CRM user → Route map: navigates
- Route map → Auth context: renders auth flow
- Auth context → Auth API: fetches session
- Auth context → Auth API: logs out
- Auth API → HTTP client: sends requests
- HTTP client → CRM backend: HTTP requests
- Route map → Company workspace: routes to
- Route map → Contact workspace: routes to
- Route map → Task calendar: routes to
- Task calendar → Task data hooks: loads task data
- Task data hooks → Task API: calls
- Task API → HTTP client: sends requests
- Route map → Sales workspace: routes to
- Route map → Product catalog: routes to
- Route map → Promotions: routes to
- Route map → Offers: routes to
- Route map → Invoices: routes to
- Route map → Dashboards: routes to
- Route map → Mailing creator: routes to
- Route map → User management: routes to
- Route map → Help and support: routes to
- Route map → Reference data: routes to
- Route map → Company map: routes to