Add persisted filtering (status/priority/tags) to Todo widgets and tests#803
Merged
multiplex55 merged 3 commits intomasterfrom Feb 7, 2026
Merged
Conversation
Add dashboard.json to .gitignore and apply small formatting/whitespace cleanups across several files for readability. Reorder/import mouse_gestures DB and usage modules in data_cache.rs, simplify and reflow long UI calls and closures in gesture_cheat_sheet.rs, mouse_gestures_dialog.rs, and plugins/mouse_gestures.rs, and tidy test formatting and imports in tests/mouse_gestures_service.rs and tests/mouse_gestures_settings.rs. These are non-functional stylistic changes to improve code consistency and maintainability.
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.
Motivation
show_doneflag.Description
TodoStatusFilter,status,min_priority, andfilter_tagstoTodoWidgetConfigand analogousTodoFocusStatusFilterand fields toTodoFocusConfig. (files:src/dashboard/widgets/todo.rs,src/dashboard/widgets/todo_focus.rs).DragValue, and a tag selector populated from the current snapshot; these appear in both the settings UI and the widget header/summary area. (changes insettings_uiand summary rendering).status_match,priority_match,tags_match,entry_matches_filters) and afilter_entrieshelper so filtering is executed beforesort_entriesand truncation, preserving existing sort behavior.migrate_config) andon_config_updatedhandlers to translate legacyshow_doneusage into the newstatusfilter and to normalize tag lists, ensuring backward-compatible persisted config.filters_combine_before_sortingandconfig_serialization_persists_filter_stateintodo.rs, andfocus_filters_by_status_priority_and_tagsandfocus_config_persists_filter_stateintodo_focus.rs.Testing
cargo fmt --all, which completed successfully.cargo test todo_widget -- --nocapture, but the test run failed to build in this environment because thealsa-syscrate requires the systemalsalibrary (alsa.pcviapkg-config) which is not available; therefore the new unit tests could not be executed here.Codex Task