Skip to content

feat: 📦 Sub-items - Nested checklist items within parent items#26

Merged
brianorwhatever merged 1 commit intomainfrom
feature/sub-items
Feb 7, 2026
Merged

feat: 📦 Sub-items - Nested checklist items within parent items#26
brianorwhatever merged 1 commit intomainfrom
feature/sub-items

Conversation

@krusty-agent
Copy link
Collaborator

Summary

Implements the Sub-items feature that allows creating nested checklist items within a parent item.

Features

  • Sub-item management - Create, check, uncheck, and delete sub-items in ItemDetailsModal
  • Independent checkboxes - Each sub-item has its own checkbox that can be toggled independently
  • Progress tracking - Shows progress bar in modal (e.g., "2/5")
  • ListItem indicator - Shows 📦 badge with progress on parent items (e.g., "📦 2/5")
  • Haptic feedback - Follows existing patterns with success/light/medium/error feedback
  • Permission-aware - Respects canEdit for viewers vs editors
  • Smart sorting - Unchecked items first, checked at bottom

Technical Details

  • Backend already had full sub-items support (parentId field, by_parent index, getSubItems query)
  • Made SubItems.tsx fully functional (was a placeholder)
  • Added useSubItemProgress hook for ListItem to fetch progress
  • Uses existing Convex mutations: addItem, checkItem, uncheckItem, removeItem

Screenshots

The sub-items section appears in ItemDetailsModal with:

  • Progress bar showing completion
  • Individual checkable items
  • Add sub-item button (for editors)

Parent ListItem shows:

  • 📦 2/5 badge when item has sub-items
  • Badge turns green when all sub-items completed

- Make SubItems.tsx fully functional with real Convex mutations
- Add sub-item creation, checking, unchecking, and removal
- Show progress bar in modal (e.g., 2/5 sub-items done)
- Add sub-item progress indicator on ListItem (📦 2/5 badge)
- Follow existing haptic feedback patterns
- Respect canEdit permissions throughout
- Sort unchecked sub-items first, checked at bottom
@brianorwhatever brianorwhatever merged commit 182ad3b into main Feb 7, 2026
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.

2 participants