feat(FN-1672): add AI feature suggestion UI to roadmaps

- Add dashboard API endpoints for roadmap feature suggestions
- Create useRoadmaps hook for fetching and managing roadmap data with suggestions
- Add feature suggestion UI to RoadmapsView with Accept All / Accept Individual buttons
- Render AI suggestions in MilestoneCard component
- Add CSS styling for suggestion buttons and interaction states
- Write comprehensive tests for useRoadmaps hook and RoadmapsView component
- Update dashboard guide documentation with feature suggestion usage
This commit is contained in:
Fusion
2026-04-15 12:50:08 -07:00
committed by gsxdsm
parent 533f627ea4
commit 48173275b1
11 changed files with 2097 additions and 6 deletions

View File

@@ -246,6 +246,29 @@ Roadmaps View includes one-click AI-powered milestone generation to help you qui
- Suggestions are ephemeral (in-memory only) and don't persist to the database
- The generate button is disabled when no roadmap is selected or prompt is empty
### AI Feature Suggestions
Within each milestone, you can generate AI-powered feature suggestions to quickly add features.
**How to use:**
1. Open a roadmap and select it
2. Find the milestone you want to add features to
3. Click the **AI Suggestions** button in the milestone's action bar
4. Review the suggested features:
- Click the **check icon** on any suggestion to accept it as a feature
- Click **Accept All** to add all suggestions as features (in order)
- Click **Clear** to discard all suggestions
**Key features:**
- Features are generated using AI based on the milestone's context
- Suggestions include existing features to avoid duplication
- Accepted features appear immediately in the milestone
- Features are created in the order displayed in the suggestion list
- Suggestion state is scoped to each milestone (no cross-milestone leakage)
- The AI Suggestions button shows "Generating..." while a request is in flight
### Empty States
- **No roadmaps**: "No roadmaps yet. Click + to create one."