-
Notifications
You must be signed in to change notification settings - Fork 12
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
Send notifications to KM when new booking requests are made + new booking review page #527
Send notifications to KM when new booking requests are made + new booking review page #527
Conversation
… sharedActions.ts
…notification-to-km-when-new-bookings-are-created
…notification-to-km-when-new-bookings-are-created
* Added review mode and functionality to BookingEditor.svelte * Removed old BookingInspector.svelte * Renamed instances of "inspect" to "review" * Added translations message for admin/[id] page title * Moved StatusComponent.svelte to reflect its new usage
…w-bookings-are-created
Sorry for the slow review, I just want to do quick demo for @philip-nielsen before we merge! |
Looks good |
…-to-km-when-new-bookings-are-created
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.
I made some small changes and left a few comments explaining some of the changes. If you think anything looks weird we can fix it in a future PR!
mandates: { | ||
some: { | ||
positionId: "dsek.km.mastare", | ||
endDate: { |
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.
Add a filter for the start date as well! Otherwise we might send notifications to the wrong "Källarmästare", i.e one that has been elected but not yet started their mandate term.
id: bookingRequest.bookerId ?? undefined, | ||
}, | ||
}); | ||
|
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.
In the rare case where this could actually fail, I still think we should send a notification to the KM.
Implemented #487.
Booking request notifications:
Which lead to the new booking review page: