Commit Graph

113 Commits

Author SHA1 Message Date
Jose Selesan
dc8a10a612 feat: add geolocation fields to session and implement geo stats endpoint
- Added country, city, countryCode, latitude, and longitude fields to the Session model.
- Updated geoip service to fetch and store geolocation data based on user IP.
- Created a new admin endpoint to retrieve geolocation statistics, including user counts by country and city.
- Enhanced admin page to display geolocation statistics with expandable city details.
- Introduced caching for geolocation data to optimize performance.
2026-06-10 10:18:31 -03:00
Jose Selesan
00f0cf511f feat(admin): add geolocation information to user sessions and implement geo IP fetching 2026-06-10 10:01:36 -03:00
Jose Selesan
93b3a82638 feat(admin): implement user search functionality in admin portal 2026-06-10 09:44:02 -03:00
Jose Selesan
c1c2f18471 Add admin portal 2026-06-10 09:39:20 -03:00
Jose Selesan
c278c78e3d feat(booking): replace filter toggle with dedicated list view for today's bookings 2026-06-08 23:21:35 -03:00
Jose Selesan
d767ac3ac7 fix(booking): prevent past time slots from being selectable for today 2026-06-08 22:50:56 -03:00
Jose Selesan
8c3ca0e7e1 Fix booking cancelation 2026-06-08 16:53:28 -03:00
Jose Selesan
72f273354e fix(public-booking): enhance focus behavior for customer name input on slot selection 2026-06-08 16:47:13 -03:00
Jose Selesan
ef2ded9d64 Fix input focus on time select 2026-06-08 16:41:24 -03:00
Jose Selesan
4c7b825129 refactor(public-booking): remove MobileBottomNav component and adjust layout styles 2026-06-08 16:34:36 -03:00
Jose Selesan
c70541b4f5 refactor(public-booking): remove CourtDetails component and simplify canGoBack logic 2026-06-08 16:14:27 -03:00
Jose Selesan
630dedb507 feat(booking): add validation to prevent past bookings and implement slot validation logic 2026-06-08 15:46:17 -03:00
Jose Selesan
49d2a13672 feat(booking): allow empty customer email in booking forms and schemas 2026-06-08 15:34:53 -03:00
Jose Selesan
b2f9a14b87 refactor(booking): remove maintenance-related metrics and UI components 2026-06-08 15:28:49 -03:00
Jose Selesan
b48dd4f15d feat(public-booking): update logo and improve layout in confirmation page 2026-06-05 17:06:24 -03:00
Jose Selesan
fee0be7e1f feat(booking-ui): add date navigation buttons in MobileFilters component 2026-06-05 15:52:56 -03:00
Jose Selesan
721ebaa775 fix(booking-ui): adjust height units in booking dialog styling 2026-06-05 15:24:02 -03:00
Jose Selesan
4b1b06f00f feat(booking-ui): enhance mobile booking dialog styling and layout 2026-06-05 14:37:27 -03:00
Jose Selesan
af687fe2d8 refactor(tests): simplify prisma mock imports and ensure sport mock is included 2026-06-05 11:36:21 -03:00
Jose Selesan
260d79fc99 feat: implement public booking cancellation feature
- Added cancelPublicBooking handler to manage booking cancellations.
- Updated public booking service to include cancellation logic.
- Created cancelPublicBooking schema for input validation.
- Modified public booking confirmation page to allow users to cancel their bookings.
- Enhanced email service to send cancellation confirmation emails.
- Made customerEmail field required in booking schemas and updated related components.
- Updated API client to support cancellation requests.
- Added migration to enforce non-nullable customer_email fields in the database.
2026-06-05 11:24:02 -03:00
Jose Selesan
1210854c22 feat(booking-ui): add confirmation dialog for cancelling bookings and improve mobile UI 2026-06-04 16:39:45 -03:00
Jose Selesan
7ca784d5f5 feat(booking-ui): conditionally render action buttons based on booking status 2026-06-04 16:33:51 -03:00
Jose Selesan
e441f15ee4 feat(complex-selection): enhance auto-selection logic and error handling for complex selection 2026-06-04 14:06:23 -03:00
Jose Selesan
228004a7e0 feat(emails): update email layout padding and remove min-height for improved design consistency 2026-06-03 10:57:23 -03:00
Jose Selesan
43287a4baa feat(emails): integrate email verification layout into auth email sending process 2026-06-03 10:41:56 -03:00
Jose Selesan
93fea8ecad feat(emails): enhance booking cancellation and no-show email templates with improved layout and styling 2026-06-03 10:37:07 -03:00
Jose Selesan
ba7b0322ff Refactor code structure for improved readability and maintainability 2026-06-03 10:31:01 -03:00
Jose Selesan
473686528e feat(tests): update test configurations and improve mocking setup 2026-06-03 09:35:04 -03:00
Jose Selesan
85f234b05e feat: add customer email functionality for booking confirmations
- Implemented email confirmation for admin and public bookings.
- Added customerEmail field to booking schemas and services.
- Created email templates for booking confirmation, cancellation, and no-show notifications.
- Updated booking handlers to send emails upon booking creation and status updates.
- Enhanced frontend forms to capture customer email during booking creation.
2026-06-02 19:21:04 -03:00
Jose Selesan
07496e6673 feat(public-booking): enhance booking confirmation with price and address details 2026-06-02 16:55:47 -03:00
Jose Selesan
9045a8c017 feat(public-booking): add pricing logic to booking slots and update schemas 2026-06-02 16:37:11 -03:00
Jose Selesan
3e314a9b9a feat(public-booking): refactor court selection and available slots components for improved usability 2026-06-02 16:26:47 -03:00
Jose Selesan
0e69759549 feat(email-validation): implement email verification checks for booking creation and resend functionality 2026-06-02 15:47:36 -03:00
Jose Selesan
7a30f9a29b refactor(routes): convert route components to lazy-loaded for improved performance 2026-06-02 10:55:55 -03:00
Jose Selesan
4544911f0e refactor(onboarding): restructure onboarding routes and components
- Removed obsolete onboarding routes: complete, create-complex, index, verify-email, and verify.
- Introduced new setup stepper page for onboarding process.
- Created a multi-step setup component to handle complex creation with validation.
- Added new schemas for complex creation and plan features.
- Implemented detailed steps for complex name, location, plan selection, and court setup.
- Enhanced error handling and user feedback during the onboarding process.
2026-06-02 10:02:28 -03:00
Jose Selesan
2aaa91444d feat: add phone field to User model and update authentication flow
- Added phone field to User model in Prisma schema and generated types.
- Updated backend authentication to include phone as an additional field.
- Implemented phone input in the signup form with validation.
- Created a new SignupPage component for user registration.
- Updated routing to include signup path and redirect authenticated users.
- Modified login page to reference Playzer and added link to signup.
2026-06-01 16:43:52 -03:00
Jose Selesan
c18db76c7a Refactor header and layout components, remove About page, and introduce Background component for improved UI structure 2026-06-01 15:50:33 -03:00
Jose Selesan
8acb81e6b4 Refactor UserAvatar component to simplify image handling and remove error state management 2026-05-22 11:58:25 -03:00
Jose Selesan
91125e82f5 Improve sport selector UI with visual button components
Replace dropdown select with interactive pill buttons for sport selection

- Added SportSelector component with icon-based visual buttons (desktop)
- Added MobileSportSelector component for mobile-optimized layout
- Added getSportIcon() function to map sport names to appropriate icons
- Improved visual feedback with emerald highlight on selection
- Better hover states and transitions for improved UX
- Works on both desktop and mobile views

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-19 16:43:39 -03:00
Jose Selesan
e9bd759fa5 Add navigation for previous and next days in public booking 2026-05-19 11:02:32 -03:00
Jose Selesan
57416bf53a Added complex data 2026-05-19 10:35:23 -03:00
Jose Selesan
0b6041d146 Better complex show 2026-05-19 09:42:31 -03:00
Jose Selesan
900e6146e7 Stepper improvement 2026-05-19 09:32:26 -03:00
Jose Selesan
e905052cc1 Added Stepper component 2026-05-19 09:21:21 -03:00
Jose Selesan
c1d910708a New UI for public booking 2026-05-19 09:06:03 -03:00
Jose Selesan
b47f00651e Fixed mobile bottom toolbar 2026-05-08 12:00:52 -03:00
Jose Selesan
d1b5bea1bc Fix lint 2026-05-08 11:07:21 -03:00
Jose Selesan
ab22ec86ec Improved mobile layout 2026-05-08 11:02:03 -03:00
Jose Selesan
65295236c5 Mobile booking view 2026-05-08 10:56:58 -03:00
Jose Selesan
f104161bbd Fixed build error 2026-05-06 20:30:23 -03:00