diff --git a/lib/modules/copilot/screens/copilot_chat_page.dart b/lib/modules/copilot/screens/copilot_chat_page.dart index a3af5b17..16fdf37e 100644 --- a/lib/modules/copilot/screens/copilot_chat_page.dart +++ b/lib/modules/copilot/screens/copilot_chat_page.dart @@ -116,6 +116,7 @@ class _CopilotChatPageState extends State { style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap), icon: "history_icon".toSvgAsset(width: 24, height: 24, color: AppColor.icon2Color(context)), constraints: const BoxConstraints(), + tooltip: "History", ), ], ), diff --git a/lib/modules/copilot/screens/copilot_history_page.dart b/lib/modules/copilot/screens/copilot_history_page.dart index 990144f7..f3d41425 100644 --- a/lib/modules/copilot/screens/copilot_history_page.dart +++ b/lib/modules/copilot/screens/copilot_history_page.dart @@ -40,17 +40,6 @@ class _CopilotHistoryPageState extends State { } void _openConversation(String threadId) { - // Navigator.push( - // context, - // CupertinoPageRoute( - // builder: (_) => const CopilotChatPage( - // isNewConversation: false, - // ), - // ), - // ).then( - // (_) => context.read().loadHistory(), - // ); - context.read().loadConversation(threadId); Navigator.pop(context); } @@ -58,16 +47,6 @@ class _CopilotHistoryPageState extends State { void _startNewConversation() { context.read().startNewConversation(); Navigator.pop(context); - // Navigator.push( - // context, - // CupertinoPageRoute( - // builder: (_) => const CopilotChatPage( - // isNewConversation: true, - // ), - // ), - // ).then( - // (_) => context.read().loadHistory(), - // ); } List _filteredHistory(List history) { @@ -93,6 +72,7 @@ class _CopilotHistoryPageState extends State { style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap), icon: Icon(Icons.chat_bubble, color: AppColor.icon2Color(context)), constraints: const BoxConstraints(), + tooltip: "New Chat", ), ], ),