Commit Graph

84 Commits

Author SHA1 Message Date
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
Felipe Cardoso
991fd0356a Add InfoCard component to display customizable card layouts
Introduced a reusable InfoCard component with support for a variety of props including images, colors, text, and buttons. This component enhances flexibility and consistency in displaying card-based UI elements across the application.
2025-03-14 11:45:34 +01:00
Felipe Cardoso
41464f8bea Style adjustments 2025-03-14 11:18:10 +01:00
Felipe Cardoso
c82d80bc4c Refactor asset image handling in event theme form.
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
Ensure asset_image_urls are merged instead of replaced during updates. Add a useEffect hook to log theme assets when editing an existing theme. These changes improve data handling consistency and debugging clarity.
2025-03-14 05:10:02 +01:00
Felipe Cardoso
9bf8025389 Remove debug console log from image uploader component
Commented out a leftover console log statement used for debugging. This cleans up the code and prevents unnecessary logging in the production environment.
2025-03-14 05:09:56 +01:00
Felipe Cardoso
382df4f83f Enhance invitation page with theme-based design and features
This update integrates theme-based styling and assets for the invitation page, including dynamic colors, fonts, and images. Added features include improved loading states, detailed event information, RSVP handling, gift registry, and interactive map functionality. This refactor enhances the user experience and supports event-specific personalization.
2025-03-14 05:03:15 +01:00
Felipe Cardoso
3862fdb1ad Add date-fns dependency to the frontend project
Added date-fns version 4.1.0 to package.json and package-lock.json. This introduces date utility functions, enabling easier date manipulations and formatting across the frontend. No functional changes yet, just preparing for future use.
2025-03-14 05:03:09 +01:00
Felipe Cardoso
9d13760b5f Add refetchThemes function to event theme context and usage
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
Introduce a new `refetchThemes` function in the event theme context to allow for refreshing event theme data. Update `EventThemeForm` to call `refetchThemes` after updating a theme, ensuring the data stays synchronized. This enhances the consistency of the UI after changes to event themes.
2025-03-14 04:43:29 +01:00
Felipe Cardoso
0fa298ef4b Fix syntax error by removing extraneous semicolon
Removed an unnecessary semicolon within the JSX structure to adhere to proper syntax rules. This change prevents potential rendering issues and maintains consistency with the codebase style.
2025-03-14 03:55:46 +01:00
Felipe Cardoso
c580effb52 Display event theme details on the event detail page
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
Added functionality to show event theme information, including name, description, and preview image, on the event detail page. Integrated `useEventThemes` context and updated utility function `getServerFileUrl` to handle nullable URLs.
2025-03-14 03:33:19 +01:00
Felipe Cardoso
4c6b97c9be Format event date as DD.MM.YYYY on the dashboard.
Updated the event date formatting logic to display dates in the DD.MM.YYYY format (used in the RSVP section). This improves consistency and aligns with user expectations for date representation.
2025-03-14 03:19:40 +01:00
Felipe Cardoso
33c3a03d19 Set RSVP deadline to date-only format in event form.
This ensures that the RSVP deadline value is always stored and displayed as a date-only string. It prevents issues with time components affecting the form's behavior and improves consistency across the app.
2025-03-14 03:16:57 +01:00
Felipe Cardoso
c7120b84b6 Simplify event date initialization in event form.
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
Ensure the event date is formatted to 'YYYY-MM-DD' when pre-filling the form. This prevents potential issues with date handling and improves consistency in date rendering.
2025-03-14 03:15:38 +01:00
Felipe Cardoso
08ad83a872 Format event date and time consistently.
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 48s
Updated event date to use "DD.MM.YYYY" format and replaced time formatting logic with substring extraction for improved simplicity and consistency. This ensures a cleaner and more localized display of event information.
2025-03-14 03:09:40 +01:00
Felipe Cardoso
74d37fc54c Add "Edit" button to event details page
Introduced an "Edit" button in the event details header for improved user access to editing event information. This button uses a link with an outline variant and includes an icon for better visual context. The layout was adjusted to accommodate the new button while preserving responsiveness.
2025-03-14 03:06:39 +01:00
Felipe Cardoso
3e12a47e1d Add event editing page with delete functionality
This commit introduces a new page for editing events at the route `dashboard/events/[slug]/edit`. It includes features for loading event details, updating event data via a form, and a confirmation dialog for deleting events. Error handling and loading states are also implemented.
2025-03-14 03:02:46 +01:00
Felipe Cardoso
a49411d62d Add AlertDialog and Select UI components using Radix primitives
This commit introduces reusable AlertDialog and Select UI components built with Radix UI primitives, enabling consistent UI patterns in the project. Necessary dependencies for these components have been added to the package.json and package-lock.json files.
2025-03-14 02:56:20 +01:00
Felipe Cardoso
fa5daa605c Refactor event creation page to use reusable EventForm component
Replaced inlined event creation logic on `CreateEventPage` with a new reusable `EventForm` component. This decouples the form functionality, improves modularity, and enables future reuse for editing events. Enhanced validation and added support for event themes and additional settings within `EventForm`.
2025-03-14 02:55:59 +01:00
Felipe Cardoso
a5ce709e9e Enable hard delete option for event theme deletion
Updated the delete mutation to include a `hard_delete` query parameter. This ensures themes are permanently removed when deleted. The change improves clarity and control over deletion behavior.
2025-03-14 02:24:01 +01:00
Felipe Cardoso
ea91511ae5 Add delete theme functionality to Edit Theme page
Introduced a delete button to the Edit Theme page, allowing users to delete themes with a confirmation prompt. Upon deletion, users are redirected to the event themes dashboard. Updated relevant imports and added a handler for the delete action.
2025-03-14 02:23:53 +01:00
Felipe Cardoso
3244fd8beb Update grid layout, refetch interval, and image handling
Adjusted the grid column behavior for medium screens in event themes and commented out unused badge rendering. Updated the image uploader to handle `existingImage` using the server URL and added debugging output. Modified the event theme context to use a fixed refetch interval of 60 seconds.
2025-03-14 02:00:41 +01:00
Felipe Cardoso
b7a9e3f981 Enable automatic refetching for event theme queries
Added `refetchOnWindowFocus` and `refetchIntervalInBackground` options to the event theme query. This ensures data stays updated when switching tabs or in the background.
2025-03-14 01:46:10 +01:00
Felipe Cardoso
187f52bbe0 Update image URL handling and edit link in Event Themes
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
Replaced direct `preview_image_url` usage with `getServerFileUrl` for consistent file URL handling. Updated the "Edit Theme" button to navigate to the `/edit` path for improved routing clarity.
2025-03-14 01:33:57 +01:00
Felipe Cardoso
996727aa13 Remove unused Cancel button in ImageUploader component
The Cancel button was commented out as it is no longer needed. This simplifies the UI and reduces potential confusion for users. Future iterations can reintroduce it if necessary functionality is added.
2025-03-14 01:31:56 +01:00
Felipe Cardoso
9c4d0f97dc Refactor asset uploader layout and improve UI components
Updated the layout to use a responsive grid for displaying assets and separated CardHeader for better organization. Simplified the asset input and image uploader components while improving responsiveness and styling consistency. Removed redundant code and added enhancements for a cleaner and more user-friendly UI.
2025-03-14 01:30:10 +01:00
Felipe Cardoso
3d26c0f982 Update image URL logic in ImageUploader 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
Replace direct `fileUrl` usage with `getServerFileUrl` utility for consistent server URL formatting. Remove unnecessary fallback logic to streamline image selection.
2025-03-14 01:18:14 +01:00
Felipe Cardoso
aaa7c68c12 Refactor file upload to use generated upload mutation
Replaced direct SDK file upload calls with generated React Query mutations for better progress tracking and error handling. Streamlined logic for obtaining presigned URLs and uploading files, ensuring consistency and maintainability. Removed redundant code and improved state management during the upload process.
2025-03-14 01:17:13 +01:00
Felipe Cardoso
0afdbc973c Enable remote image loading in Next.js configuration
Added support for loading images from pragmazest.com and localhost. This allows flexibility for handling remote images during development and production. Adjustments align with application requirements for external asset management.
2025-03-14 01:17:07 +01:00
Felipe Cardoso
058b2b3c73 Move constants, add API URL, and implement file URL helper
Relocated common constants to a new "lib/constants" directory for better organization. Added BACKEND_API_URL constant to manage API base URL dynamically. Introduced a utility function `getServerFileUrl` to generate file URLs using the backend API.
2025-03-14 01:17:02 +01:00
Felipe Cardoso
b47dbaeb0b Refactor file upload to use SDK instead of XMLHttpRequest
Some checks failed
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) Failing after 47s
Replaced manual XMLHttpRequest implementation with the SDK's `uploadFile` method for handling file uploads to presigned URLs. This simplifies the code, leverages built-in features like progress tracking, and improves error handling. Added token extraction and upload progress updates to maintain functionality.
2025-03-14 00:05:26 +01:00
Felipe Cardoso
8c1e6b7ebe Refactor forms and uploader components UI with Card layout
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 49s
Updated color, font, and asset forms to use Card and CardContent for improved structure and consistency. Enhanced input styles and hover effects for better user experience. Adjusted the image uploader background for a more cohesive design.
2025-03-13 16:04:54 +01:00
Felipe Cardoso
4044d85410 Add components and hooks for event theme 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 49s
Introduced the `usePresignedUpload` hook for file uploads and multiple components for event theme management, including form handling, asset uploads, and UI enhancements. These additions support creating, editing, and managing event themes effectively.
2025-03-13 08:36:20 +01:00
Felipe Cardoso
f2f8d85775 Update link in event themes page to correct path
Fixed the href value in the "Create Your First Theme" button to point to the correct `/dashboard/event-themes/new` route. This ensures proper navigation and resolves potential routing issues.
2025-03-13 08:36:11 +01:00
Felipe Cardoso
d9e9a88ea1 Add @radix-ui/react-progress to dependencies
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) Has been cancelled
Included @radix-ui/react-progress (v1.1.2) in package.json and package-lock.json. This addition introduces progress components, enhancing the UI toolkit. Updated related peer and optional dependencies accordingly.
2025-03-13 08:35:38 +01:00
Felipe Cardoso
0449291caf Refactor file upload and presigned URL types and method names
Simplify and standardize type and function names for uploadFile and generatePresignedUrl operations. This change improves readability and aligns naming conventions across the codebase. No functional behavior was altered.
2025-03-13 07:51:19 +01:00
Felipe Cardoso
6397cfae49 Add support for generating and uploading files via presigned URLs
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 48s
Introduces schemas, types, and API endpoints for managing file uploads using presigned URLs. Includes request and response models, React Query hooks, and client SDK functionality for generating and consuming presigned URLs.
2025-03-13 07:34:53 +01:00
Felipe Cardoso
63dadb9429 Add Event Themes management page to dashboard
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
Introduced a new "Event Themes" page to allow users to manage visual themes for events. Updated the dashboard to include a button for navigating to the new page. The themes page supports listing, viewing, and creating themes, enhancing customization options for users.
2025-03-12 16:39:58 +01:00
Felipe Cardoso
9c7bc1f2cf Add new properties to event theme schemas and types
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 48s
Introduce `background_image_url`, `foreground_image_url`, `asset_image_urls`, and `is_active` properties to the `EventTheme` schemas and types. These additions enhance flexibility and allow better customization of event themes. Default value for `is_active` ensures consistent behavior.
2025-03-12 16:23:00 +01:00
Felipe Cardoso
b94d88bcf6 Refactor provider composition with DataProviders wrapper
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 49s
Encapsulated `EventsProvider` and `EventThemesProvider` into a new `DataProviders` component to simplify and modularize provider structure. Updated the root provider hierarchy to use `DataProviders`, improving maintainability and readability.
2025-03-12 15:59:01 +01:00
Felipe Cardoso
99ec4ebfa1 Add EventThemesContext for managing event theme state
Introduced a new React context, EventThemesContext, to handle event theme state and CRUD operations. It includes support for creating, updating, deleting, and fetching themes with React Query integration. This provides a centralized solution for managing event theme-related data in the application.
2025-03-12 15:55:28 +01:00
Felipe Cardoso
e2265573eb Add support for deleting event themes
This commit introduces functionality to delete event themes via the API. It includes type definitions, SDK methods, and a React Query mutation for `deleteEventTheme`. Users can perform both soft and hard deletes with this implementation.
2025-03-12 15:22:03 +01:00
Felipe Cardoso
a0d472f583 Remove Events link from the navbar.
The Events link in the navbar has been commented out, effectively hiding it from the UI. This change may be temporary or subject to further decision, but it cleans up the navigation display for now.
2025-03-12 15:02:50 +01:00
Felipe Cardoso
3356c93374 Add Popover component using Radix UI primitives
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 48s
Introduce a reusable Popover component with Trigger, Content, and Anchor subcomponents, leveraging Radix UI primitives for accessibility and animations. Includes utility classes for styling and positioning, ensuring consistency and ease of use in the UI.
2025-03-12 14:47:03 +01:00
Felipe Cardoso
b7598350ba Enhance event details UI and add date/time format utilities
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 40s
Refactor event details page with a modernized design using cards, badges, and icons, improving user experience and accessibility. Introduce robust utilities in `/lib/utils.ts` for formatting dates and
2025-03-12 12:44:52 +01:00
Felipe Cardoso
768d1820e5 Add user menu with logout in navbar
Replaced the text-based logout button with a user menu using a popover. The menu includes the user's name and a logout option with an icon for better UX. This improves the design and accessibility of the authenticated navbar.
2025-03-12 10:14:08 +01:00
Felipe Cardoso
d5a24234d0 Refactor container layout and remove redundant wrappers
Reorganized container layouts across dashboard and event pages to remove redundant `div` wrappers and ensure consistent structure. This improves maintainability and simplifies the codebase while retaining visual behavior.
2025-03-12 10:14:04 +01:00
Felipe Cardoso
3ddb289c76 Add @radix 2025-03-12 10:13:53 +01:00