Skip to content

Fix previous chat toggle#2310

Merged
hamedhemmati merged 1 commit into
experimentalfrom
previous-chat-drawer
May 11, 2026
Merged

Fix previous chat toggle#2310
hamedhemmati merged 1 commit into
experimentalfrom
previous-chat-drawer

Conversation

@a6wu
Copy link
Copy Markdown
Contributor

@a6wu a6wu commented May 7, 2026

Summary

Fixes the TGPT chat history drawer so signed-in users can collapse and expand the “Previous 7 Days” and “Older” chat sections. The drawer now persists each section’s expanded/collapsed state locally across app launches, while keeping both sections expanded by default for users who have not changed them.

Changelog

[General] [Fix] - Add persistent collapse and expand toggles to TGPT previous chat drawer sections

Test Plan

Ran targeted widget tests for the TGPT assistant sidebar:

flutter test test/ui/ai_assistant/assistant_sidebar_test.dart
Verified:

Signed-in users see Previous 7 Days and Older history sections.
Guests still see a flat chat list with no section headers.
Tapping Previous 7 Days collapses and expands recent chats.
Tapping Older collapses and expands older chats.
Saved section preferences are loaded from SharedPreferences and updated when toggled.

Copy link
Copy Markdown
Collaborator

@hamedhemmati hamedhemmati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@hamedhemmati hamedhemmati merged commit 50fa506 into experimental May 11, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants