Skip to content

feat(duplicate-booking): create feature to duplicate booking#1934

Merged
DonKoko merged 5 commits intoShelf-nu:mainfrom
rockingrohit9639:feature/duplicate-booking
Jul 21, 2025
Merged

feat(duplicate-booking): create feature to duplicate booking#1934
DonKoko merged 5 commits intoShelf-nu:mainfrom
rockingrohit9639:feature/duplicate-booking

Conversation

@rockingrohit9639
Copy link
Copy Markdown
Contributor

Closes #1916

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 18, 2025

@rockingrohit9639 is attempting to deploy a commit to the Whaleagency Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
shelf-docs ⬜️ Ignored (Inspect) Visit Preview Jul 21, 2025 2:25pm

@DonKoko DonKoko requested a review from Copilot July 21, 2025 14:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread app/modules/booking/service.server.ts
Comment thread app/modules/booking/service.server.ts
Comment thread app/modules/booking/service.server.ts
Comment thread app/modules/booking/service.server.ts
@DonKoko DonKoko merged commit 5bae852 into Shelf-nu:main Jul 21, 2025
6 checks 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.

[Feature request]: Copy/Duplicate Bookings

3 participants