Skip to content

feat: add parent/child (epic) support to cards#479

Open
ageorg06 wants to merge 2 commits intokanbn:mainfrom
ARCANO-CO:feat/epic-parent-child
Open

feat: add parent/child (epic) support to cards#479
ageorg06 wants to merge 2 commits intokanbn:mainfrom
ARCANO-CO:feat/epic-parent-child

Conversation

@ageorg06
Copy link
Copy Markdown

Summary

  • Adds parentId column to the card table (nullable self-referencing FK) enabling parent/child card hierarchy (epics)
  • Cards with children automatically become epics — no separate epic entity needed
  • Includes full frontend UI: EpicsBar above board lists, epic badges on cards, sub-tasks section in card detail

Changes

Schema & Backend

  • parentId column on card table with SET NULL on delete
  • Parent/children Drizzle relations
  • setParent, getChildren, getEpicsByBoard repository methods
  • setParent and getEpics tRPC procedures
  • Updated cardDetailSchema and boardDetailCardSchema to include parent/children data

Frontend

  • EpicsBar — collapsible horizontal bar above board lists showing epics with progress badges (done/total) and colored progress bars
  • Card badge — shows parent epic title on cards that belong to an epic
  • Card detail — "Epic: [title]" link when card has a parent, "Sub-tasks" section listing children with list names

Test plan

  • Create a card, set it as parent of other cards via API
  • Verify EpicsBar appears above board with progress
  • Verify card badges show epic name
  • Verify card detail shows parent link and sub-tasks
  • Verify deleting an epic orphans children (parentId set to null)
  • Verify a card cannot be its own parent

🤖 Generated with Claude Code

ageorg06 and others added 2 commits April 22, 2026 13:35
- Add parentId column to card table with self-referencing FK
- Add parent/children relations in Drizzle schema
- Add setParent, getChildren, getEpicsByBoard to card repo
- Add setParent and getEpics tRPC procedures
- Add set_parent, list_epics, list_children MCP tools

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- EpicsBar component above board lists with progress badges
- Epic title badge on cards that have a parent
- Parent link and sub-tasks section in card detail panel
- Board query now includes parent data on cards
- Card detail schema includes parent and children

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant