Commit Graph

76 Commits

Author SHA1 Message Date
Jose Selesan
d6e32f3e84 feat: implement booking cancellation feature in HomePage 2026-04-24 15:44:46 -03:00
Jose Selesan
82dbc8ad99 feat: update styles for HomePage and RootLayout, adjust background color in CSS 2026-04-24 15:32:49 -03:00
Jose Selesan
fb19458ddf feat: add price field to CourtBooking model and related schemas
- Added `price` field to `CourtBookingScalarFieldEnum` in `prismaNamespace.ts` and `prismaNamespaceBrowser.ts`.
- Updated `CourtBooking` model to include average and sum aggregations for `price`.
- Enhanced input types and aggregate input types to support `price`.
- Modified `public-booking.service.ts` to calculate and return price information for bookings.
- Updated frontend components to display price information in booking confirmation and selection pages.
- Introduced `priceRangeSchema` in API contract to validate price ranges.
2026-04-24 15:22:11 -03:00
Jose Selesan
c63f0f2109 feat: update public booking page layout for improved responsiveness 2026-04-24 14:50:46 -03:00
Jose Selesan
f1a7e6c24a feat: enhance public booking page with improved layout and date formatting
- Added new date formatting function for better user experience.
- Updated layout of the public booking page for improved responsiveness and aesthetics.
- Integrated sport selection with visual icons for better clarity.
- Enhanced error handling and loading states for availability queries.

feat: revamp select complex page for better user interaction

- Redesigned the select complex page layout for a more modern look.
- Added contextual information about complex selection.
- Improved button interactions with loading indicators and icons.

style: update CSS variables for a cohesive sports-club theme

- Adjusted color variables to reflect a sports-club identity.
- Enhanced background styles for both light and dark modes.
- Improved overall styling consistency across components.
2026-04-24 14:47:39 -03:00
Jose Selesan
c63b5a0a07 feat: enhance sport selection UI in public booking page
Co-authored-by: Copilot <copilot@github.com>
2026-04-24 14:14:09 -03:00
Jose Selesan
503c29613b feat(interface-design): add comprehensive interface design skill documentation and references
- Introduced SKILL.md outlining the principles and processes for effective interface design.
- Added critique.md for evaluating design outputs and ensuring craft over correctness.
- Created example.md to illustrate the application of subtle layering principles in design decisions.
- Developed principles.md detailing core craft principles for consistent design quality.
- Implemented validation.md for memory management and pattern reuse in the design system.
- Established system.md for the Playzer design system, defining direction, domain concepts, and design decisions.
- Added StatusBadge component for displaying booking statuses with appropriate styles and labels.
- Updated skills-lock.json to include the new interface-design skill.
2026-04-24 11:23:45 -03:00
7bfa3b390e Merge pull request 'send-invitation' (#8) from send-invitation into development
Reviewed-on: https://gitea.2pidev.com/jselesan/playzer/pulls/8
2026-04-22 18:59:35 +00:00
Jose Selesan
4658b168ed feat: implement complex user invitation handler with tests and configuration 2026-04-22 15:58:34 -03:00
Jose Selesan
6ad4fc9ee9 feat: add complex user invitation and management features
- Implemented complex member and invitation schemas using Zod for validation.
- Created new API endpoints for inviting, accepting, revoking, and canceling complex user invitations.
- Developed handlers for managing complex users, including listing, inviting, revoking, and canceling invitations.
- Added frontend components for displaying and managing complex users and invitations.
- Introduced session storage management for pending invitations.
- Integrated Gravatar for user avatars based on email.
- Created database migration for complex invitations table.
2026-04-22 15:30:04 -03:00
Jose Selesan
5f2a7fd494 Fixed Better Auth infra on local env 2026-04-22 08:42:18 -03:00
Jose Selesan
0fd72ea1de fix: return 404 error when admin user is not found during complex creation 2026-04-21 16:11:14 -03:00
0aecbfa3dd Merge pull request 'redefine-onboard' (#7) from redefine-onboard into development
Reviewed-on: https://gitea.2pidev.com/jselesan/playzer/pulls/7
2026-04-21 18:04:01 +00:00
Jose Selesan
62b7a75093 feat: integrate @better-auth/infra for dashboard and sentinel monitoring 2026-04-21 15:03:29 -03:00
Jose Selesan
07408dbbbe feat: implement onboarding flow with complex creation and email verification, and add Zustand for state management 2026-04-21 09:14:45 -03:00
23e4218f6f Merge pull request 'select-complex' (#6) from select-complex into development
Reviewed-on: https://gitea.2pidev.com/jselesan/playzer/pulls/6
2026-04-20 19:10:09 +00:00
Jose Selesan
34cb63364c refactor: modularize API client by splitting resources into individual files and standardizing HTTP request handling. 2026-04-20 16:05:37 -03:00
Jose Selesan
28fd51f926 feat: implement complex selection flow 2026-04-20 15:47:47 -03:00
Jose Selesan
a5e39c94c5 fix: use window.location.origin for Google callback URL and remove redundant whitespace in auth config 2026-04-20 13:37:25 -03:00
Jose Selesan
4e327b7318 refactor: remove custom username generation logic from auth configuration 2026-04-20 10:29:33 -03:00
c69ea82f26 Merge pull request 'feat: integrate Google OAuth authentication provider and add login UI button' (#5) from add-google-auth into development
Reviewed-on: https://gitea.2pidev.com/jselesan/playzer/pulls/5
2026-04-20 13:21:08 +00:00
Jose Selesan
a4075866f8 feat: integrate Google OAuth authentication provider and add login UI button 2026-04-20 10:16:02 -03:00
Jose Selesan
5b53a10bbc Merge branch 'add-realtime-cappabilities' into development 2026-04-17 17:35:24 -03:00
Jose Selesan
585e7d2226 feat: implement polling fallback for SSE connection failures and add event deduplication 2026-04-17 17:34:04 -03:00
a1dbab98be Merge pull request 'feat: implement real-time booking updates using Server-Sent Events (SSE) and add public booking URL sharing to the dashboard' (#4) from add-realtime-cappabilities into development
Reviewed-on: https://gitea.2pidev.com/jselesan/playzer/pulls/4
2026-04-17 20:26:38 +00:00
Jose Selesan
e0d755bef7 feat: implement real-time booking updates using Server-Sent Events (SSE) and add public booking URL sharing to the dashboard 2026-04-17 17:25:46 -03:00
Jose Selesan
a075f13587 chore: ignore backend environment file and remove trailing newline in gitignore 2026-04-17 16:26:41 -03:00
Jose Selesan
7fe1eef297 chore: ignore backend environment file and remove trailing newline in gitignore 2026-04-17 16:26:24 -03:00
Jose Selesan
20b70c06c1 feat: refactor onboarding into a multi-step flow with dedicated routes and session state management 2026-04-17 16:17:19 -03:00
4588e63fa5 Merge pull request 'feat: implement session persistence for onboarding flow and fix typo in password label' (#3) from fix-onboarding into development
Reviewed-on: https://gitea.2pidev.com/jselesan/playzer/pulls/3
2026-04-17 19:04:59 +00:00
Jose Selesan
400f67b268 feat: implement session persistence for onboarding flow and fix typo in password label 2026-04-17 16:03:40 -03:00
Jose Selesan
ea8e3f6a24 Updated mailer service 2026-04-17 15:40:29 -03:00
Jose Selesan
32c436e772 feat: make Mailtrap testInboxId configurable via environment variable 2026-04-17 15:32:50 -03:00
Jose Selesan
a1ff9f2831 Updated mailer to use Mailtrap API 2026-04-17 15:23:51 -03:00
Jose Selesan
b3f1b72da4 refactor: migrate authentication from Supabase to Better Auth and update project configuration 2026-04-17 08:35:54 -03:00
Jose Selesan
aabd9a8266 refactor: standardize tsconfig paths, update deprecation settings, and format user creation timestamp to ISO string 2026-04-16 22:23:34 -03:00
Jose Selesan
f98a0c2c02 feat: migrate authentication to Better Auth and update profile management logic 2026-04-16 21:10:38 -03:00
6dc8cae3a8 Merge pull request 'migrate-to-better-auth' (#2) from migrate-to-better-auth into development
Reviewed-on: https://gitea.2pidev.com/jselesan/playzer/pulls/2
2026-04-16 23:56:35 +00:00
Jose Selesan
34a24ce6c9 feat: add user role field and implement Gravatar fallback for user avatars 2026-04-16 20:51:53 -03:00
Jose Selesan
e5002ce440 refactor: integrate Better-Auth for authentication and remove Supabase dependencies 2026-04-16 20:30:01 -03:00
Jose Selesan
f158845279 refactor: migrate authentication from Supabase to Better Auth and update Prisma schema models 2026-04-16 20:05:08 -03:00
Jose Selesan
bd30b32b49 Added Better auth mitation 2026-04-16 15:45:49 -03:00
Jose Selesan
e2299c6d46 feat: update .gitignore for Bun and generated files, minor formatting fix in password reset handler 2026-04-13 21:25:53 -03:00
Jose Selesan
62d28734fc cleanup: remove debug console.log from auth benchmarking 2026-04-13 19:33:13 -03:00
Jose Selesan
b7c303377a perf: validate JWT locally instead of calling Supabase API
- Use jose library for ES256 JWT verification with cached JWKS
- Fallback to Supabase only if JWT verification fails
- Use findUnique instead of findFirst for DB lookup
- Estimated improvement: ~450ms -> ~5ms per request
2026-04-13 17:50:52 -03:00
Jose Selesan
1d09716492 Updated Dockerfile 2026-04-13 13:45:28 -03:00
Jose Selesan
c409d44765 Removed REMOTE_ADDR variable 2026-04-13 13:24:45 -03:00
Jose Selesan
2b95ab37f6 chore(frontend): add generated route tree for Docker build 2026-04-13 09:34:29 -03:00
Jose Selesan
ff42f3cd60 fix(docker): copy full backend in prisma stage for .prisma cache 2026-04-13 09:29:04 -03:00
Jose Selesan
43df46f520 fix(docker): add prisma generate stage to Dockerfile build 2026-04-13 09:25:46 -03:00