302 Commits

Author SHA1 Message Date
Felipe Cardoso
f6ac22731d Update gift-context.tsx 2025-03-16 16:35:35 +01:00
Felipe Cardoso
88c9e634de Add quantity in reserve_gift_item endpoint 2025-03-16 16:33:17 +01:00
Felipe Cardoso
4363e27ae6 Add minor change in client api 2025-03-16 16:31:30 +01:00
Felipe Cardoso
44d6f6d837 Add initial implementation of gift context in frontend 2025-03-16 16:05:14 +01:00
Felipe Cardoso
861baa7b66 remove local .next volume from docker-compose.dev.yml 2025-03-16 16:02:56 +01:00
Felipe Cardoso
9a58a38903 Update generated api client
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 52s
2025-03-16 15:46:28 +01:00
Felipe Cardoso
29ba036094 Add operation ids for gift route 2025-03-16 15:45:09 +01:00
Felipe Cardoso
19f3534f22 Additional fixes for gift models 2025-03-16 15:33:17 +01:00
Felipe Cardoso
b5f1c7ddcb Fixe (partially) gift tests and api 2025-03-16 15:07:31 +01:00
Felipe Cardoso
4ef202cc5a Big refactor of gift categories model
All checks were successful
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Successful in 52s
Build and Push Docker Images / build-frontend (push) Has been skipped
2025-03-16 14:51:04 +01:00
Felipe Cardoso
ed017a42ed Add for gifts: schema, crud, route, tests
All checks were successful
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Successful in 51s
Build and Push Docker Images / build-frontend (push) Has been skipped
2025-03-16 14:23:28 +01:00
Felipe Cardoso
25d2f16816 Fix max-additional guests in guests-list.tsx
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
2025-03-16 12:10:54 +01:00
Felipe Cardoso
b6cabf6031 Update guest-context.tsx with new guest rsvp hybrid endpoint 2025-03-16 12:07:25 +01:00
Felipe Cardoso
f3b5192e4d Update server with new guest rsvp endpoint 2025-03-16 12:06:52 +01:00
Felipe Cardoso
8c1b737de9 Update client with new guest rsvp endpoint
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
2025-03-16 12:06:43 +01:00
Felipe Cardoso
2117655ec8 update rsvp-form handling the guest 2025-03-16 12:02:04 +01:00
Felipe Cardoso
a38eca3377 remove useless log 2025-03-16 12:01:37 +01:00
Felipe Cardoso
121cbcb42a Update rsvp-form.tsx style
Some checks failed
Build and Push Docker Images / build-frontend (push) Failing after 52s
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
2025-03-16 11:04:32 +01:00
Felipe Cardoso
551a7ba9dc Add copy invitation link to clipboard in guests-list.tsx
Some checks failed
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-frontend (push) Failing after 50s
2025-03-16 10:59:08 +01:00
Felipe Cardoso
86ae3ca234 Add generateInviteLink util function 2025-03-16 10:58:35 +01:00
Felipe Cardoso
4d1bf86d19 Add APP URL env variable to frontend project 2025-03-16 10:58:15 +01:00
Felipe Cardoso
52476151a4 Improve current guest management
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
2025-03-16 10:21:37 +01:00
Felipe Cardoso
c231f41e9c Enhance guest management features in GuestListTable
Some checks failed
Build and Push Docker Images / build-frontend (push) Failing after 52s
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Added functionality for adding, editing, deleting, and copying guests' details, along with filtering, exporting, and sending invitations. Improved user interactions with dialog handling and introduced error handling for better usability. Integrated GuestsList into the event detail page.
2025-03-16 10:13:41 +01:00
Felipe Cardoso
4e66b22bae Set default guest permissions to allow bringing up to 10 guests.
Updated guest schema and database models to increase the default value for `max_additional_guests` from 0 to 10 and enable `can_bring_guests` by default. This ensures new guests can bring additional attendees without manual configuration.
2025-03-16 09:45:37 +01:00
Felipe Cardoso
d6e5ade040 Add reusable UI components and update dependencies
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
Introduce new `Toaster`, `Tabs`, `DropdownMenu`, and `Table` components under `ui` for consistent design and functionality. Updated `next-themes` to `^0.4.6` and added `sonner` as a notification library to support the `Toaster` component.
2025-03-16 09:31:26 +01:00
Felipe Cardoso
445d644538 Add GuestContext for managing guest-related state
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
Introduced a new GuestContext with accompanying provider to handle guest-related data, including fetching, creating, updating, and deleting guests. Integrated GuestsProvider into the application's data provider hierarchy to ensure guest data is accessible across components.
2025-03-15 21:45:16 +01:00
Felipe Cardoso
90f49f99c6 Add @radix-ui/react-dropdown-menu dependency
Integrates the @radix-ui/react-dropdown-menu package to the project. Updates both package.json and package-lock.json to include the relevant version and dependencies. This prepares the app for dropdown menu functionality using Radix UI components.
2025-03-15 21:03:20 +01:00
Felipe Cardoso
22e11e9bfe Add guests list table MOCK component with search and actions
Introduce a dynamic guests list table featuring search, filters, and status badges. Includes functionality to add new guests, perform actions like editing or deleting, and view summarized data for confirmations and additional guests. just the mock
2025-03-15 21:03:13 +01:00
Felipe Cardoso
3800fcea19 Comment out RSVP section and update Gift Registry text
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
The RSVP section is now commented out, removing its visibility from the page. Additionally, the text and button for the Gift Registry section have been updated to better reflect its purpose, allowing users to manage and edit the registry.
2025-03-15 20:58:17 +01:00
Felipe Cardoso
df5a11a2a3 Make invitation_code optional and nullable in Guest schemas
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
Updated GuestCreate and GuestRead schemas to adjust the `invitation_code` field. It is now optional and can be null for GuestCreate, while required for GuestRead. This change ensures better flexibility in handling guest data.
2025-03-15 20:35:39 +01:00
Felipe Cardoso
3c196b1e91 Add invitation code validation and auto-generation for guests
All checks were successful
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Successful in 50s
Build and Push Docker Images / build-frontend (push) Has been skipped
Validate uniqueness of invitation codes during guest creation to prevent duplicates. Automatically generate an 8-character code if none is provided, ensuring consistent data handling. Updated tests and schemas to support these changes.
2025-03-15 20:34:38 +01:00
Felipe Cardoso
e41e7d0867 Add RSVP modal and form components for event attendance
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 50s
Introduced a new RSVP modal and form to enable guests to RSVP to events more seamlessly. Updated the invite page to integrate the new modal and handle guest attendance submissions. Refactored the RSVP functionality into reusable components for better maintainability.
2025-03-15 20:19:08 +01:00
Felipe Cardoso
695743fa76 Refactor schemas to update event-related models.
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 50s
Replaced generation-related schemas with event-oriented ones like EventCreate, EventResponse, and EventTheme schemas. Introduced new fields and structures to support event management, including RSVP, themes, and contact information. Removed unused schemas and adjusted naming for consistency.
2025-03-15 20:00:54 +01:00
Felipe Cardoso
9695c29ab5 Add reusable Dialog component using Radix UI
Implemented a Dialog component with Radix UI's primitives for a customizable and accessible modal experience. Updated dependencies to include `@radix-ui/react-dialog` and structured the component for extensibility and reuse.
2025-03-15 19:56:57 +01:00
Felipe Cardoso
0ee314f1c0 Update react-query typings and methods for API endpoints
This refactor replaces outdated API methods with new ones, aligning with updated backend endpoints. The changes include renaming and restructuring query/mutation functions and their corresponding types to improve consistency and support additional API capabilities.
2025-03-15 19:56:50 +01:00
Felipe Cardoso
7f3401e759 Refactor: Update auto-generated schemas for API changes
Replaced and updated multiple schema definitions to align with new API structures. Includes renaming, adding new enums, refining object properties, and reorganizing schemas for clarity. Ensures better compatibility and adherence to the updated API specifications.
2025-03-15 19:56:38 +01:00
Felipe Cardoso
58ac33990f Add RSVP context and provider for managing RSVP state
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s
Introduce a context and provider for handling RSVP data, including fetching, updating, creating, and deleting RSVPs. The implementation utilizes React Query for data management and exposes methods for managing RSVP operations throughout the application.
2025-03-15 19:44:20 +01:00
Felipe Cardoso
c0516c1086 Add schemas and APIs for Guest and RSVP management
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 50s
Introduced schemas and types for Guests and RSVPs, along with their create, read, update, and delete endpoints. This also includes React Query integrations for managing guest and RSVP data in the frontend.
2025-03-15 02:26:04 +01:00
Felipe Cardoso
85eed0eac0 Add RSVP routes and integrate with events API router
Some checks failed
Build and Push Docker Images / build-frontend (push) Blocked by required conditions
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been cancelled
This commit introduces a new RSVP module with endpoints for creating, reading, updating, and deleting RSVPs, along with a custom status update endpoint. The router is integrated into the events API, providing full RSVP management capabilities. Validation and error handling have been implemented to ensure data consistency.
2025-03-15 02:25:32 +01:00
Felipe Cardoso
632a762d64 Add CRUD and schema for RSVP management
Introduce CRUD operations and Pydantic schemas to manage RSVP entries, including creation, updates, retrieval, and deletion. This enables comprehensive handling of RSVP data with validation and support for guest and event IDs.
2025-03-15 02:20:36 +01:00
Felipe Cardoso
270bfda1f8 Add guests API with CRUD operations and tests
All checks were successful
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Successful in 50s
Build and Push Docker Images / build-frontend (push) Has been skipped
Introduce a new API for managing event guests, including endpoints for creating, reading, updating, deleting, and changing guest status. Added corresponding Pydantic schemas, database CRUD logic, and extensive test coverage to validate functionality. Integrated the guests API under the events router.
2025-03-15 02:09:17 +01:00
Felipe Cardoso
12161e048d Refactor tests and fix patch imports in event themes tests
Updated `@patch` targets to match their correct import paths and adjusted imports for clarity and consistency. Fixed indentation issues and resolved minor import ordering problems to improve code readability.
2025-03-15 01:29:39 +01:00
Felipe Cardoso
fee7d8b5ec Refactor CRUD module imports and usage for clarity.
Replaces ambiguous shorthand references like `event` and `user` with more descriptive names such as `event_crud` and `user_crud`. Updates imports, function calls, tests, and other references across the codebase to maintain consistency. This improves code readability and reduces potential confusion.
2025-03-15 01:22:04 +01:00
Felipe Cardoso
d5d6c4b3c9 Update RSVP date format and enhance invite page styles
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 50s
Changed the RSVP deadline format to "dd.MM.yyyy" for consistency. Improved text styles by adding bold fonts to emphasize key sections and included a new confirmation message for RSVP deadline.
2025-03-15 01:18:10 +01:00
Felipe Cardoso
78533d3d17 Revamp invite page banner styling and layout.
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 50s
Updated the invite page banner to use a more dynamic and visually appealing design with a background image or fallback styling. Added a text overlay for improved readability and enhanced the fallback display when an image is unavailable.
2025-03-14 18:47:02 +01:00
Felipe Cardoso
cb092cd643 Revamp invite page banner styling and layout.
Updated the invite page banner to use a more dynamic and visually appealing design with a background image or fallback styling. Added a text overlay for improved readability and enhanced the fallback display when an image is unavailable.
2025-03-14 17:00:10 +01:00
Felipe Cardoso
f65500902c Revamp invite page banner styling and layout.
Updated the invite page banner to use a more dynamic and visually appealing design with a background image or fallback styling. Added a text overlay for improved readability and enhanced the fallback display when an image is unavailable.
2025-03-14 16:14:32 +01:00
Felipe Cardoso
08f5661c99 Refactor gift registry UI to use InfoCard component
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 49s
Simplified the gift registry section by replacing custom JSX with the reusable InfoCard component. This improves code maintainability and consistency in the UI while retaining the existing styles and functionality. Updated InfoCard styling to ensure compatibility with the new use case.
2025-03-14 15:54:53 +01:00
Felipe Cardoso
03cb95b4b3 Refactor gift registry UI to use InfoCard component
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 57s
Simplified the gift registry section by replacing custom JSX with the reusable InfoCard component. This improves code maintainability and consistency in the UI while retaining the existing styles and functionality. Updated InfoCard styling to ensure compatibility with the new use case.
2025-03-14 15:27:13 +01:00
Felipe Cardoso
5ca138928a Refactor event details to use reusable InfoCard component
Replaced repetitive JSX for event details (date/time, location) with the reusable `InfoCard` component. This reduces code duplication, improves readability, and centralizes styling logic. Added support for image positioning and optional button props in `InfoCard`.
2025-03-14 11:46:06 +01:00