Commit eb7bbd2
committed
feat: Add Mentor screen interface for AI assistance
Implements comprehensive Mentor screen UI with conversation display and input.
Features:
- Conversation history with distinct styling for user/AI/system messages
- User messages: right-aligned, cyan theme
- AI responses: left-aligned, lavender theme
- System messages: centered, dim theme
- Input field with placeholder text and cursor indicator
- AI provider status display (Crush/Mods/Claude)
- Example prompts when conversation is empty
- Scrollable message history for long conversations
- Responsive layout for different terminal sizes
- Nil-safe: handles empty conversation and nil character gracefully
Integration:
- Added mentorInputText and mentorConversation to Model
- Updated viewMentor() to delegate to screens.RenderMentor
- Ready for AI provider integration (Subagents 28-30)
Testing:
- Comprehensive test suite with >95% coverage
- 50+ test cases covering all rendering scenarios
- Benchmark tests for performance validation
- Tests for text wrapping, time formatting, message rendering
Subagent: Screen Development (Mentor)
Phase: Development1 parent aee6415 commit eb7bbd2
3 files changed
Lines changed: 1248 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| |||
480 | 488 | | |
481 | 489 | | |
482 | 490 | | |
483 | | - | |
| 491 | + | |
484 | 492 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
498 | 500 | | |
499 | 501 | | |
500 | 502 | | |
| |||
0 commit comments