History component#35
Closed
bnmajor wants to merge 6 commits into
Closed
Conversation
Do not import `Optional` or `Union`. Signed-off-by: Brianna Major <brianna.major@kitware.com>
Signed-off-by: Brianna Major <brianna.major@kitware.com>
Signed-off-by: Brianna Major <brianna.major@kitware.com>
Signed-off-by: Brianna Major <brianna.major@kitware.com>
Signed-off-by: Brianna Major <brianna.major@kitware.com>
Signed-off-by: Brianna Major <brianna.major@kitware.com>
bnmajor
force-pushed
the
history-component
branch
from
April 9, 2026 13:25
6a552e8 to
0bd71c9
Compare
Closed
Collaborator
|
Superseded: the conversation history drawer was harvested from this branch and incorporated into #45 (sessions model). Closing. |
jlee-kitware
added a commit
that referenced
this pull request
Jun 30, 2026
History panel (cherry-picked and adapted from PR #35): - New ui/layout/conversation_history.py: a browsable list of past conversation pairs with newest/oldest sort and a favorites filter. Clicking a card jumps to that conversation; a heart toggles favorite. - Switch the app to SinglePageWithDrawerLayout and host the panel in the left drawer (bound to existing main_drawer, collapsed by default); the toolbar nav icon now toggles it instead of being hidden. - Controllers navigate_to_conversation and toggle_favorite_conversation, plus history_sort_order / history_filter_mode / favorited_conversations state. Per-conversation code state (new): - generated_code, code_history and code_history_pos were global singletons, so editing code in one conversation and navigating away discarded the edit and bled undo/redo history across conversations. - Add a server-side store keyed by a content hash of each pair. Navigating away saves the active (possibly hand-edited) code and history; arriving restores it, seeding from the original generated code on first visit. Keying by content hash is robust to index shifts and conversation reloads.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Screencast.from.04-09-2026.09.23.23.AM.webm
Depends on #34