45 Minutes of Design, 20 Minutes of Code: A Kanban Module for Web2Project

I’ve actively used Trello for longer than I care to admit and I’ve always wanted a version built into web2project. With all the recent work on 5.0 (covered in “Vibe Coding a Legacy PHP App: Web2Project Edition“), I decided now was the time.

It took about 10 hours from my first prompt to releasing the first mostly-complete version, and that was with a nap and errands mixed in. Most of those hours weren’t code.

With an agent, the build takes minutes. Knowing your own system keeps it from building the wrong thing fast.

Don’t Build on Tasks

My first idea was obvious: web2project already has Tasks. Make each card a task, use the existing dependencies and subtasks, and treat that board as a new UI layer, not new data structures.

Before sketching anything, Claude read the task schema and came back with 10 problems. The worst ones:

  • Task status only has Active and Inactive, and about 49 places in the code read it. Add “In Review” and those tasks drop out of existing views.
  • Every task save runs validation, pushes dependency dates, and rolls up to the parent. A status change cascades to every subtask. One drag on a board could move dates and change the status of every subtask underneath it.
  • Task dependencies drive scheduling, not blocking. “You can’t start this yet” doesn’t exist in core.

My reply was “This is a hot mess as web2project Tasks aren’t built for this.”

If I’d built this alone, I would have wasted hours building down a bad path not realizing all the implications from the start.

Instead, cards are their own records. Each card belongs to a project and can link to a task. The project plan stays the source of truth, and working the board never changes the schedule. That rule became the module’s first issue.

Wireframes in 15, Design in 45, Build in 20

I had wireframes to work with in 15 minutes: seven screens covering the board, a cross-project board, the card drawer, drag-and-drop rules, board settings, and Cards tabs on the project and task views.

Then came 45 minutes of design discussion and decisions. A few of them:

  • What do we call it? Claude argued for “Card” over Work Item, Ticket, Issue, To-do, and Story. Part of the reason was practical: a card_name column gets History labels for free.
  • Where does activity go? Its own card_activity table, not the History module. History doesn’t record field changes and can be turned off.
  • How do statuses work? One global status list for every project, with per-board WIP limits shown as grey, amber, and red. It warns. It never blocks a move.
  • Who sees what? If you can’t see a project or a task, you don’t see its cards.

After all that, the first build took 20 minutes. It was 31 files, tested against the dev-5.0.0 branch with web2project’s own demo data, including 57 API checks, 25 browser checks with real mouse dragging, and a cron sweep test.

Read those numbers again. The code took less than half the time of the conversation about the code. In “Developers are Solving The Wrong Problem,” I wrote that the goal is solving the problem, not writing clean code. This build makes the same point: the decisions took the time.

Where Knowing the System Mattered

Claude started down a bad path with keys on cards. It designed per-project numbers with a sequence for each project, database transactions to hand them out, and then an alias table so old keys would still work after a card moved projects.

I asked why we weren’t using the IDs that already exist. Now card_id is the identity for every link, and the key is a display label made from the project’s short name and the card’s id (CedarLane-42). The alias table, the sequence, and the locking all went away simplifying the logic and eliminating synchronization issues.

Cross-project moves were next. The initial design allowed relationships across projects, so the loop detection might have to check cards the user couldn’t see. That cycle detection got complicated. I cut cross-project relationships so loop checks stay inside one project and likely within their permissions.

Later I brought moves back in a simpler form: a “Move to…” button in the card drawer. It moves the card, its subcards, and any cards tied to it by dependencies. Before anything happens, it lists what you’ll lose, like links to tasks.

An agent is fast in both directions. It will happily build the complicated version. Someone has to know the use case well enough to say no.

Building a Module is a Good Audit

To make cards play nicely with core, Claude read a lot of core code. It found problems back in the main project, resolved some, and logged others. The biggest is web2project #526: modules can’t hear another module’s events, like “a task was deleted.” While writing it up, Claude also found a loop in the event dispatcher that throws a TypeError on PHP 8. Others cover custom fields resetting when an object is saved outside its edit form, a JSON response helper for AJAX calls, and generic tagging any module can use.

It also used the hooks that already exist. Cron runs a consistency sweep for deleted tasks, deleted projects, and moved tasks. Smart Search made cards searchable. The calendar shows your open cards on their due dates. And the tabs needed no core changes at all: one file adds a Cards tab to every project and task view.

Then It Kept Going

After the first release on Saturday, I started using it for real work and moved a significant part of my Trello work over. Daily use drove the next round: better card templating, a deep clone that copies a card with all its subcards and the dependencies between them, and repeating cards on a schedule.

Claude also created the sample project, took the screenshots, and wrote the explanations on its own.

What’s Next?

I’m using it daily now. Most likely I need color coding to tell cards apart by due date or priority and a way of recognizing new cards, especially when the automation creates them for me. I’m also thinking of making card descriptions Markdown friendly (already issue #2) and allowing checklists for cards that have a bunch of simple steps. Longer term, I want card status to show on the tasks and projects the cards are linked to.

The agent wrote the first build in 20 minutes. Knowing what not to build took 19 years of web2project.

Grab it from GitHub, try it on a copy of your data, and tell me what breaks.

Leave a Reply

Your email address will not be published. Required fields are marked *