-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernize redux: eventDetailsSlice #269
Modernize redux: eventDetailsSlice #269
Conversation
While storing dates as date objects in redux does not necessarily break anything, it can interfere with some features (persisting, debugging) and lead to bad practices (for an encompassing discussion see reduxjs/redux-toolkit#456). This changes the scheduling info fetching method to store dates as strings
Turns out even more of the parameters for the addNotification function in the notificationThunks are perfectly optional.
Fixes a "can't access lexical declaration 'X' before initialization" error, by resolving a kind of circular dependency.
Switching to redux toolkit for getting event details for the event details modal.
Adds types to the redux state for event details. Also fixes small errors regarding fetching workflow details introduced in the previous commit.
This pull request has conflicts ☹ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Event details modal is working. (See #242 (review) for more info on these approvals)
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
…oolkit-eventDetails
…oolkit-eventDetails
Statistics were commented out for statistics in the events details tab. This comments the functionality back in and fixes it by making use of the new functionality offeered by statisticsSlice.ts. Same as for the "Modernize Statistics" PR, I have not tested this with actual statistics, because setting that up is very hard for some reason.
This pull request has conflicts ☹ |
…oolkit-eventDetails
…oolkit-eventDetails
Helps with #213.
Switching to redux toolkit for getting event details for the event details modal.
This breaks statistics for the event details! To be fixed after #264 is merged.
(Feels like the event details alone send more different web requests then the rest of the ui combined, sheesh)