Merged
Conversation
- Setup booking api routes, GET, PATCH, DELETE - Setup bookingDbService logic for routes
- Added api route for screening with detailed data populated with movie/room data (did not want to break roberts restful api structure)
- Setup frontend API fetch functions
- Added "handle booking" section in admin page - Added logic for manage booking(filter, uodate, delete etc)
- Added styling for all Admin bookings components
- Added some error handling/validations in frontend & backend
- Fixed bug where user chould select seats when ticketcount was = 0
- Added tests for booking API routes for GET, PATCH and DELETE
- Added loading state for better UX
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Collaborator
|
Looks very good!! |
Owner
Author
Fixed the merge conflict, where is the typo u referring to? |
Deansie
approved these changes
Jun 4, 2025
Collaborator
Deansie
left a comment
There was a problem hiding this comment.
Once again, I'm really impressed by your work with the admin panel, incredible! Looks good and works as intended, approved. 👍
Owner
Author
Thank u so much :) |
5 tasks
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.
Pull Request Type
Please check the type of change your PR introduces:
Description
This PR introduces complete booking management functionality for the admin UI.
It includes:
View all bookings with filters for name, movie, room, and date.
Show booked seats with visual seat map.
Enable editing of booked seats via modal.
Update booking seats with feedback and validation.
Delete bookings with confirmation modal.
Display success and error messages with reusable ErrorMessage and SuccessModal components.
Motivation and Context
Admin users need a efficient and easy UI to manage bookings for example, customer support, capacity monitoring, and operational flexibility. This feature introduces a booking management panel where admins can:
Quickly locate and filter bookings by movie, room, or date.
Visually inspect which seats have been booked using a seat map.
Edit seat selections in response to customer inquiries or errors.
Cancel bookings directly from the admin interface if necessary.
All these things are important to make user experience better.
How Has This Been Tested?
Jest tests for booking API routes and methods
Manually testes on dev localhost
Screenshots (if appropriate):
Here is the overview of all bookings where admin can filter by different things:

Here is the booking overview where admin can see what seats belong to the booking

If admin press "redigera platser", they can edit and change bookings seat selection:


If admin does not press "redigera platser" before trying to edit it will not work:
Success message if updated booking was succesful:

Admin user gets a extra warning/confirmation when trying to delete booking:

Checklist:
Additional Information:
Related Issues:
#48