Skip to content

Feature(Edit-Profile)#6

Open
Mayboyzz wants to merge 11 commits intodevfrom
edit-profile
Open

Feature(Edit-Profile)#6
Mayboyzz wants to merge 11 commits intodevfrom
edit-profile

Conversation

@Mayboyzz
Copy link
Owner

No description provided.

Mayboyzz and others added 11 commits November 13, 2024 21:31
* Init(Bookings): Initalized Store for bookings, created ManageBookings page

* Feat: Add new project structure and components

- Updated package.json to reflect new project name and added scripts for development and Docker.
- Introduced new files: bun.lockb, turbo.json, lefthook.yml, and example.js for project configuration.
- Enhanced frontend with new BookingModal component and updated ManageBookingsPage to handle upcoming and past bookings.
- Refactored SpotDetail to include modal for booking reservations.
- Updated backend routes to improve booking management and added logic for distinguishing between upcoming and past bookings.
- Added .turbo to .gitignore to exclude Turbo build artifacts.

* Enhance Booking Functionality and UI

- Implemented date selection for booking reservations in BookingModal component.
- Added error handling for booking creation process.
- Updated ManageBookingsPage to ensure safe access to booking properties using optional chaining.
- Refactored date formatting in ManageBookingsPage for improved readability.
- Changed fetch method to csrfFetch for current user bookings in bookings.js.
- Ensured consistent handling of upcoming and past bookings in the Redux store.

* Add error state management to BookingModal

- Introduced errors state using useState in BookingModal component
- Prepares for form validation and error handling in booking creation process
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.

1 participant

Comments