← Selected work

Project & Task Management System

A collaborative project management system designed for teams to track progress, make decisions, and for individuals to clearly monitor their own contributions.

Role
Full-stack build
Stack
Next.js, Prisma, PostgreSQL
Scope
Self-hosted Kanban with voting, comments, and dashboards
Result
Used by two startup teams (~5–10 people each)
01 — Problem → solution

The problem → the solution

source: project write-up
before · the problem

The Startup Dilemma

  1. ✕
    A friend's interior design startup needed a reliable task management system to coordinate projects.
  2. ✕
    However, enterprise tools like ClickUp were too expensive for a small team.
  3. ✕
    More importantly, dealing with sensitive client floor plans and design assets required strict data privacy, making them hesitant to rely on third-party public cloud SaaS.
after · the solution

A Self-Hosted Ecosystem

  1. 01
    I built a lightweight, performant project management platform designed specifically for self-hosting on a custom homelab.
  2. 02
    It delivers core enterprise features—like Kanban boards, project-level voting, and granular task assignments—without the bloat, ensuring 100% data sovereignty and zero recurring SaaS costs for the startup.
02 — Flow

Team board

source: code · Wish-We-Don-t-Resign (repo-notes) · api/teams/**, tasks/[taskId]/assign, tasks/[taskId]/move
live trace · Team boardscroll to play · tap a step on mobile
yes no no yes Sign up and log in:JWT cookie Create team: creatoris ADMIN Invite existing userby email: MEMBER Admin creates projectand tasks ◆ Assignee loadscore over 50? 400: user isoverloaded Task assigned ◆ Assignee or adminmoving it? 403: not allowed tomove TO_DO → IN_PROGRESS →IN_REVIEW → COMPLETE COMPLETE setscompletedAt andcompletedBy
  1. 01
    Sign up and log in: JWT cookie→ Create team: creator is ADMIN
  2. 02
    Create team: creator is ADMIN→ Invite existing user by email: MEMBER
  3. 03
    Invite existing user by email: MEMBER→ Admin creates project and tasks
  4. 04
    Admin creates project and tasks→ Assignee load score over 50?
  5. 05
    ◆ Assignee load score over 50?→ 400: user is overloaded [yes]→ Task assigned [no]
  6. 06
    400: user is overloaded
  7. 07
    Task assigned→ Assignee or admin moving it?
  8. 08
    ◆ Assignee or admin moving it?→ 403: not allowed to move [no]→ TO_DO → IN_PROGRESS → IN_REVIEW → COMPLETE [yes]
  9. 09
    403: not allowed to move
  10. 10
    TO_DO → IN_PROGRESS → IN_REVIEW → COMPLETE→ COMPLETE sets completedAt and completedBy
  11. 11
    COMPLETE sets completedAt and completedBy
03 — Sequence

Casting a project vote

source: code · Wish-We-Don-t-Resign (repo-notes) · api/votes/[voteId]/choose, lib/vote.ts
live trace · Casting a project votescroll to play · tap a step on mobile
Member API Database Pusher Team 01POST /api/votes/:voteId/choose 02load vote; closed → error 03update this member's choice, else create 04count voters vs team members 05everyone voted → mark closed 06vote-updated or vote-closed 07results update live
  1. 01
    Member → APIPOST /api/votes/:voteId/choose
  2. 02
    API → Databaseload vote; closed → error
  3. 03
    API → Databaseupdate this member's choice, else create
  4. 04
    API → Databasecount voters vs team members
  5. 05
    API → Databaseeveryone voted → mark closed
  6. 06
    API → Pushervote-updated or vote-closed
  7. 07
    Pusher → Teamresults update live
04 — Data model

Data model (simplified)

source: code · Wish-We-Don-t-Resign (repo-notes) · prisma/schema.prisma
explorer · Data model (simplified)click a table

Tap a table to see what it links to.

TEAM
TEAM_MEMBERenum roleunique userId_teamId
USER
PROJECTenum prioritydatetime endDate
TASKenum progressStageenum prioritydatetime completedAtstring completedById
TASK_ASSIGNEE
COMMENT
COMMENT_MENTION
COMMENT_READ
VOTE
VOTE_OPTIONstring textstring imageUrl
VOTE_RESPONSEunique userId_optionId
  • TEAM has TEAM_MEMBER 1 → many
  • USER joins TEAM_MEMBER 1 → many
  • TEAM owns PROJECT 1 → many
  • PROJECT contains TASK 1 → many
  • TASK assigned to TASK_ASSIGNEE 1 → many
  • USER works TASK_ASSIGNEE 1 → many
  • PROJECT project chat COMMENT 1 → many
  • TASK task chat COMMENT 1 → many
  • COMMENT mentions COMMENT_MENTION 1 → many
  • COMMENT read by COMMENT_READ 1 → many
  • PROJECT runs VOTE 1 → many
  • VOTE offers VOTE_OPTION 1 → 1+
  • VOTE_OPTION receives VOTE_RESPONSE 1 → many
  • USER casts VOTE_RESPONSE 1 → many
05 — Features

Features

open a row to read more
01

Task Progress & Assignment

Tasks move through multiple progress stages with an intuitive drag-and-drop interface. Admins can assign tasks to team members, with workload scores displayed for balanced distribution. If a task is unassigned, all members can update its progress. Once assigned, only the assignee and admins have control.

02

Project & Task Comments

Communication is streamlined through dedicated chatboxes: one at the project level and another for each task. This allows teams to hold both broad and focused discussions. The system also supports user mentions for direct attention.

03

Voting

Decision-making within teams is supported by an integrated voting system. Members can create votes with options in text, image, or a combination of both. Each member can cast only one vote, ensuring fairness in the process.

04

Personal Dashboard

Each member has a personalized dashboard that highlights tasks they are involved in, the teams they have joined, and their individual completion rate. This provides clarity on personal contributions and responsibilities.

06 — Details

More details

open a row to read more
01

Dark Mode

The interface supports dark mode for a modern and user-friendly experience, ensuring accessibility and comfort across environments.

02

Engineering Spotlight

01. Advanced Drag & Drop (DnD) Architecture

Implementing the Kanban board wasn't just about UI; it required precise event handling across devices. I utilized @dnd-kit/core with custom sensor orchestration: MouseSensors for desktop precision, and TouchSensors with delay/tolerance constraints to allow native page scrolling on mobile without triggering accidental drags. UI updates are handled optimistically on the client to ensure zero-latency feedback before syncing the new state to the PostgreSQL database.

02. Complex State Lifting & Component Decoupling

To keep the architecture clean, I heavily decoupled the UI components. For example, when a task is moved or marked 'COMPLETE', the ProjectBoard computes real-time statistics (completion rates and priority distributions) and lifts this state via an onStatsChange callback to the parent ClientProjectPage. This ensures the dashboard header reflects live data without prop-drilling or relying on heavy state management libraries.

03

Tech Stack

This project is powered by a modern full-stack JavaScript ecosystem, leveraging both frontend and backend technologies for performance, scalability, and developer efficiency.

Next.js React TailwindCSS Prisma PostgreSQL Vercel

Frontend: React, Next.js, Tailwind CSS

Backend: Node.js, Next.js API Routes, Prisma

Database: PostgreSQL

Auth: JWT cookie auth

Deployment: Vercel, PlanetScale

04

Future Roadmap

Gantt Chart

Visualize task dependencies, ensuring sequential workflows are respected.

Audit Trail

When admins remove members, the system will generate a timestamped PDF report of their contributions and comments, safeguarding transparency and fairness.

Custom Categories

Members will be able to group their projects into personal categories for easier management.