feat(notifications): add push notifications for completed and no-show… - #174
Merged
MukhammadIbrokhimov merged 3 commits intoMar 18, 2026
Merged
Conversation
… bookings - booking_completed: prompts user to leave a review after visit - booking_no_show: friendly message when guest misses reservation - All messages in en/uz/ru
- Add icon='ic_notification' to AndroidNotification - Add color='#B52428' (brand red) for notification accent
There was a problem hiding this comment.
Pull request overview
This PR extends the booking status → push-notification mapping so users can receive push notifications when a booking is marked COMPLETED or NO_SHOW, and adds localized notification copy for those new notification types.
Changes:
- Map
Booking.Status.COMPLETEDandBooking.Status.NO_SHOWto new notification types in the booking post-save signal. - Add
booking_completedandbooking_no_showlocalized templates (en/uz/ru) to the notification message catalog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
backend/apps/notifications/signals.py |
Adds COMPLETED/NO_SHOW to STATUS_NOTIFICATION_MAP so status changes dispatch new notification types. |
backend/apps/notifications/messages.py |
Adds localized NotificationContent for booking_completed and booking_no_show. |
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+16
to
+17
| Booking.Status.COMPLETED: "booking_completed", | ||
| Booking.Status.NO_SHOW: "booking_no_show", |
| Booking.Status.CONFIRMED: "booking_confirmed", | ||
| Booking.Status.REJECTED: "booking_rejected", | ||
| Booking.Status.CANCELLED: "booking_cancelled", | ||
| Booking.Status.COMPLETED: "booking_completed", |
Comment on lines
+72
to
+80
| body="How was your experience at {restaurant_name}? We'd love to hear your feedback!", | ||
| ), | ||
| "uz": NotificationContent( | ||
| title="Tashrifingiz uchun rahmat! 🍽️", | ||
| body="{restaurant_name}da qanday bo'ldi? Fikringizni bilishni xohlaymiz!", | ||
| ), | ||
| "ru": NotificationContent( | ||
| title="Спасибо за визит! 🍽️", | ||
| body="Как вам в {restaurant_name}? Поделитесь впечатлениями!", |
Users authenticating via OTP flow (first-time booking) weren't receiving push notifications because FCM token wasn't registered after OTP verification. Now registers token in verifyOtp() same as in login().
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… bookings
Description
Related Issue
Type of Change
Changes Made
Testing
Test Evidence
# Commands run for testingChecklist
Screenshots (if applicable)
Additional Notes