25 add history sort order preference#36
Merged
Merged
Conversation
- Default behavior: newest items appear first (True) - Add menu action 'Sort newest history item first' in View menu - Implement settings methods to save/load sort preference: * getHistorySortNewestFirst() - returns True by default (newest first) * setHistorySortNewestFirst() - saves user preference - Add _apply_sort_setting() method in HistoryWidget to reverse data when needed - Apply sort setting in all history data update paths: * _on_history_changed() - when history changes * _on_toggle_view() - when switching between static/dynamic views * _on_copy_to_queue_clicked() - when copying items (fixes row index mapping) * onStatusChanged() - when plans become available - Connect menu action in MainWindow to toggle sort direction - Update menu action checked state to reflect current setting
- Add 'Save History' menu action in File menu - Add save button in history widget toolbar - Implement doSaveHistory() method in MainWindow to save history as CSV - Extract data with separate columns for Status, Name, Detector, Arguments, Metadata, User - Apply current sort setting to saved data (matches display) - Include sort order indication at end of CSV file - Add writeHistoryFile() method to handle file dialog and CSV writing - Add extract_row_data() and extract_arguments() helper methods
Contributor
Author
prjemian
approved these changes
Jan 15, 2026
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.





close Add history sort order preference #25: Add user-configurable history sort order preference
True)close Console messages #34: commented out the
print(txt)fromsetMessage(txt)(method to set status in the main window status bar)close Save history to file #20:
doSaveHistory()method in MainWindow to save history as CSV