Skip to content
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

Conversation

Fiery-132
Copy link
Contributor

Implemented #487.

Booking request notifications:
Screenshot 2024-10-22 at 18 15 33

Which lead to the new booking review page:
Screenshot 2024-10-22 at 18 10 52

…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
@danieladugyan danieladugyan self-requested a review October 22, 2024 21:12
@danieladugyan danieladugyan linked an issue Oct 24, 2024 that may be closed by this pull request
2 tasks
@danieladugyan
Copy link
Contributor

Sorry for the slow review, I just want to do quick demo for @philip-nielsen before we merge!

@philip-nielsen
Copy link

Looks good

Copy link
Contributor

@danieladugyan danieladugyan left a 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: {
Copy link
Contributor

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,
},
});

Copy link
Contributor

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.

@danieladugyan danieladugyan enabled auto-merge (squash) November 9, 2024 20:02
@danieladugyan danieladugyan merged commit 9a7fbd3 into Dsek-LTH:main Nov 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send notification to KM when new bookings are created
3 participants