-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Fix: Optimistically render when drag-and-dropping event (#209)
* π Fix: Optimistically render when drag-and-dropping event Fixes [issue](#203) In this commit, whenever we drag and drop a someday event to the grid, we now handle: - Optimistically removing the someday event from the sidebar - Optimistically inserting the grid event We also error handle the optimistic flow and revert if needed * fix: omit someday properties from optimistic event 'order' and 'recurrence' aren't currently needed for a grid event * refactor (web): add createOptimisticGridEvent function to cleanup saga splitting things out of the convertSomedayEvent saga will make the saga more readable * refactor: simplify optimistic event creation * refactor(web): separate someday and regular event sagas this is to make it easier to understand sagas work * refactor(web): create utility saga to use during someday event conversion * refactor(web): cleanup convertSomedayEvent saga by separating logic into smaller generators --------- Co-authored-by: Tyler Dane <tyler@switchback.tech>
- Loading branch information
1 parent
36ef38a
commit 1423ed4
Showing
8 changed files
with
210 additions
and
129 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
11 changes: 10 additions & 1 deletion
11
...src/ducks/events/sagas/event.saga.util.ts β ...s/web/src/ducks/events/sagas/saga.util.ts
This file contains 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
Oops, something went wrong.