How mariacacacho/kraft works
Kraft is a project and ticket management application: users sign in, select or manage projects, track tickets on a Kanban board, and open ticket details to edit work, comment, upload attachments, and view billing fields. The client routes those workflows to an Express API backed by PostgreSQL. The graph preserves project, ticket, authentication, and ticket-detail stages; relationships for unsampled project and ticket handlers are based on the source index, while no README was provided.
Main entry points: App.tsx Route guard · BoardPage.tsx Kanban board · api.ts API client · app.ts HTTP application
Components 21
Web client
- Route guard
client/src/App.tsx - Sign in
client/src/pages/LoginPage.tsx - Session state
client/src/store/auth.ts - Projects
client/src/pages/ProjectsPage.tsx - Project state
client/src/store/project.ts - API client
client/src/lib/api.ts
API and persistence
- HTTP application
server/src/app.ts - Auth routes
server/src/routes/auth.ts - JWT middleware
server/src/middleware/auth.ts - Project routes
server/src/routes/projects.ts - Ticket routes
server/src/routes/tickets.ts - PostgreSQL pool
server/src/db/index.ts - Schema migrator
server/src/db/migrator.ts
Ticket workflows
- Kanban board
client/src/pages/BoardPage.tsx - Board columns
client/src/components/KanbanColumn.tsx - Ticket cards
client/src/components/TicketCard.tsx - Create ticket
client/src/components/CreateTicketModal.tsx - Ticket details
client/src/pages/TicketDetailPage.tsx - Domain types
client/src/types/index.ts
Other components
- User
- PostgreSQL
Connections 31
- User → Route guard: opens app
client/src/App.tsx - Route guard → Sign in: routes to
client/src/App.tsx - Route guard → Kanban board: routes to
client/src/App.tsx - Route guard → Ticket details: routes to
client/src/App.tsx - Route guard → Projects: routes to
client/src/App.tsx - Route guard → Session state: checks session
client/src/App.tsx - Sign in → Session state: submits credentials
client/src/pages/LoginPage.tsx - Session state → API client: requests auth
client/src/store/auth.ts - Projects → API client: requests projects
client/src/pages/ProjectsPage.tsx - Projects → Project state: updates selection
client/src/pages/ProjectsPage.tsx - Kanban board → API client: loads tickets
client/src/pages/BoardPage.tsx - Kanban board → Project state: reads active project
client/src/pages/BoardPage.tsx - Kanban board → Board columns: renders columns
client/src/pages/BoardPage.tsx - Kanban board → Create ticket: opens modal
client/src/pages/BoardPage.tsx - Board columns → Ticket cards: renders cards
client/src/components/KanbanColumn.tsx - Create ticket → API client: creates ticket
client/src/components/CreateTicketModal.tsx - Ticket details → API client: reads and updates
client/src/pages/TicketDetailPage.tsx - API client → HTTP application: sends API requests
- HTTP application → Auth routes: mounts auth
server/src/app.ts - HTTP application → Project routes: mounts projects
server/src/app.ts - HTTP application → Ticket routes: mounts tickets
server/src/app.ts - Auth routes → JWT middleware: protects profile
server/src/routes/auth.ts - Project routes → JWT middleware: authenticates requests
server/src/routes/projects.ts - Ticket routes → JWT middleware: authenticates requests
server/src/routes/tickets.ts - Auth routes → PostgreSQL pool: queries users
server/src/routes/auth.ts - Project routes → PostgreSQL pool: queries projects
server/src/routes/projects.ts - Ticket routes → PostgreSQL pool: queries tickets
server/src/routes/tickets.ts - PostgreSQL pool → PostgreSQL: queries
server/src/db/index.ts - Schema migrator → PostgreSQL: applies schema
server/src/db/migrator.ts - Kanban board → Domain types: uses ticket types
client/src/pages/BoardPage.tsx - Ticket details → Domain types: uses ticket types
client/src/pages/TicketDetailPage.tsx