Melhoria no funcionamento do histórico, Os nomes no dashboard do aluno carregam a primeira vez e ficam salvos para n ficarem sempre a carregar quando se volta ao dashboard, removi o butão de novo chat na interface de introdução da IA, mudei a aparencia dessa introdução e do histórico

This commit is contained in:
2026-05-23 16:20:27 +01:00
parent 7ee262f4c7
commit 895ce64c6f
22 changed files with 1330 additions and 582 deletions

View File

@@ -7,6 +7,47 @@
## [Unreleased]
### Added
- **Comprehensive Quiz System** - quiz_list_page.dart, teacher_quiz_page.dart, quiz_page.dart
- AI-powered quiz generation from uploaded materials
- Multiple choice question type implementation
- Scoring system with immediate feedback
- Progress tracking and results display
- Quiz history and retry functionality
- Teacher quiz management interface
- Student quiz taking interface
- Quiz categories by material and class
- Integration with gamification service
- **Analytics System** - analytics_page.dart, class_analytics_card.dart, class_ranking_widget.dart
- Teacher analytics dashboard with class breakdowns
- Student rankings and performance metrics
- Class statistics and progress tracking
- Achievement system integration
- Gamification service implementation
- Create achievement dialog for teachers
- **Smart Back Navigation in Chat History** - chat_history_page.dart & tutor_chat_page_simple.dart
- Intelligent back navigation based on entry point (chat vs intro)
- PopScope for Android back gesture handling
- Source parameter (chat/intro) and conversationId in URL
- **Material Names Display in Chat History** - chat_history_page.dart
- Replaced raw material IDs with readable file names
- Added _materialNamesCache for ID-to-name mappings
- Material names truncated to 20 characters if too long
- **Filter Conversations with User Messages Only** - chat_memory_service.dart
- Added hasUserMessage field to conversation documents
- Prevents empty conversations from appearing in history
- **Dashboard Data Caching** - progress_hero_widget.dart & student_dashboard_page.dart
- Caching for user stats to prevent flickering on navigation
- Caching for user name to prevent flickering on navigation
- Shows cached data while loading new data in background
- **Profile Edit Integration** - profile_edit_page.dart
- Calls StudentDashboardPage.clearCachedUserName() when profile is updated
- **Teacher Materials Page (Upload Conteúdo)** - Nova tela dedicada para upload de materiais para a IA
- Novo ficheiro: `lib/features/materials/presentation/pages/teacher_materials_page.dart`
- Acedida através do card "Upload Conteúdo" no dashboard do professor (usando `Navigator.push`)