I think we can get rid of UpdateUIActions. They're not used anymore since our UpdateState has callbacks.
Remove deprecated UpdateUIActions from codebase
Unlisted
Done! I've successfully removed UpdateUIActions and migrated all the UI code to use the callbacks directly from UpdateState. The changes include:
- UpdatePopoverView - Now extracts callbacks directly from the state cases (e.g.,
req.reply()from.permissionRequest,checking.cancel()from.checking, etc.) - UpdatePill - Removed the
actionsparameter - UpdateAccessoryView - Removed the
actionsparameter - AppDelegate - Removed
updateActionsproperty andcreateUpdateActions()method - UpdateViewModel - Removed the
UpdateUIActionsstruct entirely - UpdateDriver - Added a
retryHandlerparameter and updated the error state to include a retry callback - UpdateState.Error - Added a
retrycallback field
The refactoring simplifies the code by eliminating the intermediate UpdateUIActions wrapper and using the callbacks already embedded in the UpdateState enum cases.