The way we handled updates from SwiftUI to logic was through closures. However, the view hierarchy made this incredibly challenging to work with. To address this, we now perform updates via a ConfigurationUpdater that is passed down as an environment object. Internally, this component can perform targeted updates to the current configuration, such as updating a workflow, a group, a trigger, or any other relevant component. Additionally, it debounces updates to the storage to prevent excessive disk writes.
Furthermore, the implementation includes significant renaming and organization of the UI components into different folders. Moreover, it employs more precise naming conventions to enhance clarity and maintainability.
Commit summary
Initial feature commit
Send configuration updates to configuration store Migrate workflow info to the new solution
Migrate WorkflowKeyboardTriggerView to use ConfigurationUpdater
Migrate workflow application trigger views to use configuration updater
Migrrate snippet trigger list
Finish up migrating workflow triggers
Remove old actions
Finish up updater migration for all detail views
Improve how updates are applied to the UI using the configuration updater
Fix UX when adding a new group (The group should be selected after creation)
Show keyboard shortcut in empty command list Fix dev tag
The way we handled updates from SwiftUI to logic was through closures. However, the view hierarchy made this incredibly challenging to work with. To address this, we now perform updates via a
ConfigurationUpdater
that is passed down as an environment object. Internally, this component can perform targeted updates to the current configuration, such as updating a workflow, a group, a trigger, or any other relevant component. Additionally, it debounces updates to the storage to prevent excessive disk writes.Furthermore, the implementation includes significant renaming and organization of the UI components into different folders. Moreover, it employs more precise naming conventions to enhance clarity and maintainability.
Commit summary
WorkflowKeyboardTriggerView
to useConfigurationUpdater