feat(duplicate-booking): create feature to duplicate booking#1934
Merged
DonKoko merged 5 commits intoShelf-nu:mainfrom Jul 21, 2025
Merged
feat(duplicate-booking): create feature to duplicate booking#1934DonKoko merged 5 commits intoShelf-nu:mainfrom
DonKoko merged 5 commits intoShelf-nu:mainfrom
Conversation
|
@rockingrohit9639 is attempting to deploy a commit to the Whaleagency Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new feature to duplicate existing bookings, allowing users to create copies of bookings with modified dates and a "(Copy)" suffix. The feature includes UI integration through an actions dropdown and handles permissions appropriately.
- Adds a new route for handling booking duplication with proper permission checks
- Implements server-side logic to duplicate bookings with adjusted dates and status
- Integrates duplicate functionality into the booking actions dropdown menu
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| app/routes/_layout+/bookings.$bookingId.duplicate.tsx | New route handler for booking duplication with loader/action functions and UI modal |
| app/modules/booking/service.server.ts | Adds duplicateBooking function to handle server-side duplication logic |
| app/components/booking/actions-dropdown.tsx | Adds "Duplicate booking" option to the existing actions dropdown |
DonKoko
approved these changes
Jul 21, 2025
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.
Closes #1916