feat: implement filter cache rebuilding for mapping, SUPP, and validation#286
Merged
rubentalstra merged 1 commit intomainfrom Jan 26, 2026
Merged
Conversation
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.
This pull request refactors the toast notification and auto-save mechanisms in the TSS GUI to use event-driven, one-shot timers instead of polling subscriptions. It also introduces helper functions to rebuild filter caches in the domain editor, ensuring UI consistency after relevant data changes. Several code paths now trigger cache rebuilds and auto-save checks more reliably. The subscription system is simplified as a result of these changes.
Event-driven timers for toast and auto-save:
Task::perform-based one-shot timers, improving efficiency and responsiveness. The new approach schedules a timer when a toast is shown or when changes are made, rather than polling at fixed intervals. [1] [2] [3] [4]Domain editor UI cache management:
rebuild_mapping_cache,rebuild_supp_cache,rebuild_validation_cache) to rebuild filter caches for mapping, SUPP, and validation views, ensuring UI state stays in sync with data changes. These are called after relevant actions in the domain editor. [1] [2] [3]Improved auto-save and cache rebuild triggers:
Subscription system simplification:
Startup and feedback improvements:
These changes collectively improve UI responsiveness, reduce unnecessary background work, and make the codebase easier to maintain.