feat: implement hierarchical tags system with categories and subcategories #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hierarchical Tags Implementation
Overview
This PR implements a comprehensive hierarchical tags system for AgileSpace, allowing users to organize issue types into categories and subcategories for better session tracking and reporting.
🎯 Features Added
Database Schema
parent_id,tag_type,sort_order, andis_systemfields to tags tablePredefined Issue Types
UI Components
Hooks & Logic
🔧 Technical Implementation
Code Organization
Cursor Rules
Added comprehensive development guidelines:
🚀 User Experience
Tag Management
Session Creation
�� Database Changes
🧪 Testing
Manual Testing Checklist
Backward Compatibility
�� Files Changed
New Files
src/components/hierarchical-tag-form.tsxsrc/components/hierarchical-tag-selector.tsxsrc/constants/issue-types.tssrc/hooks/use-hierarchical-tag-management.tssrc/hooks/use-hierarchical-tag-selector.tssupabase/migrations/20250719004549_add_hierarchy_to_tags.sql.cursor/rules/*.mdc(development guidelines)Modified Files
src/components/end-session-dialog.tsx- Updated to use hierarchical selectorsrc/hooks/api/use-tags.ts- Added seeding functionalitysrc/lib/supabase/mutations.ts- Enhanced tag CRUD operationssrc/lib/supabase/queries.ts- Added hierarchical queriessrc/routes/space/$slug/tags/index.tsx- Complete UI overhaulsrc/types/database.types.ts- Updated schema typessrc/types/index.ts- Added hierarchical tag interfaces�� UI/UX Improvements
🔮 Future Enhancements
�� Migration Notes
pnpm supabase db pushBreaking Changes: None - fully backward compatible
Performance Impact: Minimal - optimized queries with proper indexing
Security: No changes to authentication or authorization