How nipuana/teflow_frontend works
Teflow’s frontend is a Next.js client for signing in, managing an organization, and coordinating project tasks. Users enter through login or registration; session state gates the application, whose pages call the backend API for dashboard, project, task, audit, member, notification, and account workflows. Project details present tasks as a ledger, board, or timeline. The graph preserves these capabilities and shared UI layers. Edges are limited to relationships shown in the README or SOURCE INDEX; several page implementations were not sampled, so their internal behavior is not inferred.
Main entry points: api.ts API client · [projectId]/page.tsx Project workspace · members/page.tsx Member management · permissions.ts UI permissions
Components 22
Access and session
- Login
app/login/page.tsx - Registration
app/register/page.tsx - Session context
lib/session.tsx
Projects and tasks
- Dashboard
app/(app)/dashboard/page.tsx - Project list
app/(app)/projects/page.tsx - Project workspace
app/(app)/projects/[projectId]/page.tsx - Task detail
app/(app)/projects/[projectId]/tasks/[taskId]/page.tsx
Organization features
- Audit log
app/(app)/audit/page.tsx - Member management
app/(app)/members/page.tsx - Account settings
app/(app)/settings/page.tsx - Notifications
app/(app)/notifications/page.tsx
Shared client layers
- API client
lib/api.ts - UI permissions
lib/permissions.ts - Data view states
components/ViewState.tsx - Ledger table
components/Ledger.tsx - Kanban board
components/KanbanBoard.tsx - Task timeline
components/Timeline.tsx - Command bar
components/CommandBar.tsx - Confirm dialog
components/Confirm.tsx - Toast feedback
components/Toast.tsx
Other components
- User
- Teflow backend
Connections 33
- User → Login: signs in
README.md - User → Registration: registers
README.md - Login → Session context: authenticates via
app/login/page.tsx - Registration → Session context: creates account via
app/register/page.tsx - Session context → API client: loads session through
lib/session.tsx - API client → Teflow backend: sends API requests
README.md - Dashboard → API client: fetches data via
app/(app)/dashboard/page.tsx - Project list → API client: fetches data via
app/(app)/projects/page.tsx - Project workspace → API client: reads and updates via
app/(app)/projects/[projectId]/page.tsx - Task detail → API client: fetches data via
app/(app)/projects/[projectId]/tasks/[taskId]/page.tsx - Audit log → API client: fetches entries via
app/(app)/audit/page.tsx - Member management → API client: manages members via
app/(app)/members/page.tsx - Account settings → API client: updates account via
app/(app)/settings/page.tsx - Notifications → API client: loads notifications via
- Dashboard → UI permissions: checks roles
app/(app)/dashboard/page.tsx - Project list → UI permissions: checks roles
app/(app)/projects/page.tsx - Project workspace → UI permissions: checks roles
app/(app)/projects/[projectId]/page.tsx - Member management → UI permissions: checks roles
app/(app)/members/page.tsx - Dashboard → Data view states: renders states with
app/(app)/dashboard/page.tsx - Project list → Data view states: renders states with
app/(app)/projects/page.tsx - Project workspace → Data view states: renders states with
app/(app)/projects/[projectId]/page.tsx - Audit log → Ledger table: renders entries in
app/(app)/audit/page.tsx - Member management → Ledger table: renders members in
app/(app)/members/page.tsx - Project list → Ledger table: renders rows in
app/(app)/projects/page.tsx - Project workspace → Ledger table: renders tasks in
app/(app)/projects/[projectId]/page.tsx - Project workspace → Kanban board: renders board with
app/(app)/projects/[projectId]/page.tsx - Project workspace → Task timeline: renders timeline with
app/(app)/projects/[projectId]/page.tsx - Command bar → Session context: reads session
components/CommandBar.tsx - Command bar → UI permissions: checks roles
components/CommandBar.tsx - Account settings → Confirm dialog: requests confirmation
app/(app)/settings/page.tsx - Member management → Confirm dialog: requests confirmation
app/(app)/members/page.tsx - Account settings → Toast feedback: shows feedback
app/(app)/settings/page.tsx - Member management → Toast feedback: shows feedback
app/(app)/members/page.tsx