Skip to content

Oz pol 7.24 #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Aug 7, 2024
Merged

Oz pol 7.24 #34

merged 26 commits into from
Aug 7, 2024

Conversation

OzPol
Copy link
Owner

@OzPol OzPol commented Aug 7, 2024

No description provided.

OzPol and others added 26 commits July 29, 2024 12:18
…include the data needed for Booking implementation.
…move the Footer to the bottom of the pages, and added a simple style.

-Booking Calendar - Date picker is added to the CustomerProfile.
-Currently implementing a credit system for booking services - to avoid unnecessary expenses.
-Added a view details button to service detail card.
- Added a Service Provider Set Availability Calendar component, and updated the Availability Calender for Customer viewing.
-Updated the DB Schemas and models to incorporate Booking data objects.
…mpted refactor to improve modularity, deferring until all features are implemented.

- Corrected parameter passing in 'BookingForm' component and related components to resolve compilation errors.

- Fixed issues with fetching and displaying service details in the 'ServiceDetails' component.

- Restored functionality for viewing and booking services from the customer profile.

- Fixed navigation between customer profile tabs and service details works correctly.
…ion and time range setting.

- Fixed navigation through tabs and back button in Provider Profile.
- Created and integrated  a payment  (partially - using a coupon system for now, to avoid real payments) confirmation page.
-Removed AuthContext to fix errors, and handling the "isLoggedIn" Logic within the components instead.
-Added the Availability Collection to appwrite DB and types
"Property 'providerID' does not exist on type 'IntrinsicAttributes & ServiceCardProps'. Did you mean 'providerId'?"
Type error: Type '{}' is missing the following properties from type 'BookingFormProps': providerId, serviceId
Type error: Type '{ onServiceClick: Dispatch<SetStateAction<Service | null>>; }' is not assignable to type 'IntrinsicAttributes'.
…confirmation

- Fetch provider availability correctly and display on the availability calendar in the customer profile (highlighted yellow)
- Allow customers to select an available date, which auto-populates the booking form date field.
- Remove start and end time fields from the booking form as they are not required for customer booking.
- Enable customers to enter booking details and submit the form.
- Save the booking to the database with a status of 'pending'.
- Route customers to the booking confirmation page upon successful booking.
- Display the booking ID and amount on the confirmation page (amount display to be improved when payment is integrated).
- Prepare for next steps including provider approval workflow.
Added selectedDate to BookingFormProps interface.
Ensured selectedDate is passed correctly from ServiceDetails and CustomerBooking components.
Added validation to ensure selectedDate is provided before form submission.
Updated BookingForm to handle the selectedDate and render the form correctly.
…ack to Profile' button (instead of generic landing page)

- Updated BookingForm to redirect to confirmation page after booking.
- Modified confirmation page to include a Back to Profile button.
- the Back to Profile button routes the user back to their profile page.
…enable them to navigate back to their profile.
- Added dynamic content for logged-in customers and providers on the home page.
- Customers now see a section encouraging them to explore popular services in their area. (This will need to be further developed - currently, if clicked on, the buttons will route to 404)
- Providers see a section with tips and best practices along with sample blog post cards ( This will need to be further developed)
- Removed the logout button from the middle of the home page for logged-in users.
- handle Link components to avoid invalid nesting errors.
- Implemented CustomerViewBookings component to display customer's bookings with options to delete.
- Implemented ServiceViewBookings component to display provider's bookings with options to approve or reject.
- Added API endpoints to fetch bookings for customers and providers.
- Updated booking creation process to set initial status to "pending" and added approval/rejection functionality for providers.
…ookings - ViewBookings Tab

- Added EditBookingForm component for editing bookings.
- Enhanced CustomerViewBookings to handle booking edits and deletions.
- Implemented fetchBookings to refresh the booking list after updates.
- Improved UI with edit and delete buttons for each booking.
- Updated the Footer component to ensure proper positioning and styling
- Added CSS styles to position the footer at the bottom of the page.
- the footer content is centered and spaced correctly
- preserved Ben's admin login sequence logic for keyboard input.
@OzPol OzPol temporarily deployed to probooker-app August 7, 2024 02:41 Inactive
Copy link
Collaborator

@buppgard buppgard left a comment

Choose a reason for hiding this comment

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

Looks good!

@OzPol OzPol merged commit 4164c60 into main Aug 7, 2024
5 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.

3 participants