Melhorias no comportamento do chat com IA;

Adição do histórico de conversas com IA.
This commit is contained in:
2026-05-21 23:20:18 +01:00
parent 5bda59f7af
commit 7ee262f4c7
5 changed files with 825 additions and 162 deletions

View File

@@ -142,14 +142,7 @@ class AppRouter {
],
),
// AI Tutor Route (independent)
GoRoute(
path: tutor,
name: 'aiTutor',
builder: (context, state) => const TutorChatPageSimple(),
),
// AI Tutor Route with conversation ID (resume conversation)
// AI Tutor Route with conversation ID (resume conversation) - MUST come before regular /ai-tutor route
GoRoute(
path: '$tutor/:conversationId',
name: 'aiTutorConversation',
@@ -159,6 +152,13 @@ class AppRouter {
},
),
// AI Tutor Route (independent - new conversation)
GoRoute(
path: tutor,
name: 'aiTutor',
builder: (context, state) => const TutorChatPageSimple(),
),
// Chat History Route
GoRoute(
path: chatHistory,