Commit Graph

26 Commits

Author SHA1 Message Date
Felipe Cardoso
2c73ee4d7e Add purchase link and reservation details to gift list
Enhanced the gift list by showing a clickable purchase link icon and added conditional reservation details for reserved or received items using a popover. Simplified and cleaned up related code for better readability and maintainability.
2025-03-19 09:43:58 +01:00
Felipe Cardoso
1f1192fb62 Trigger data refetch on mount for events and themes pages
Added `useEffect` hooks to automatically refetch guests data in the Event Detail Page and themes data in the Event Themes Page upon component mount. This ensures the displayed data is always up-to-date when the user navigates to these pages.
2025-03-19 09:02:57 +01:00
Felipe Cardoso
472a0b7834 Add delete functionality for gifts in the dashboard
Introduced `handleDeleteGift` to delete a gift and refetch items after deletion. Connected the delete action to the dropdown menu, enabling users to remove gifts from the UI seamlessly. This enhances gift management capabilities on the dashboard.
2025-03-19 08:23:26 +01:00
Felipe Cardoso
5971dfb405 Update gifts table in dashboard
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 52s
2025-03-16 18:20:45 +01:00
Felipe Cardoso
e10e43fb8b Add gift modal 2025-03-16 17:56:14 +01:00
Felipe Cardoso
97a9e1588f Add category-modal.tsx to gifts page 2025-03-16 17:37:08 +01:00
Felipe Cardoso
ac800e6356 Add draft implementation of gifts page
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 53s
2025-03-16 17:10:29 +01:00
Felipe Cardoso
df1256996b Refactor of dashboard page with breadcrumbs and cleaner component 2025-03-16 17:10:05 +01:00
Felipe Cardoso
b9bff35122 Add gift registry page 2025-03-16 16:56:30 +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
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
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
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
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
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
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
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
ad0f9f1078 Refactor: Move Navbar to MainLayout for consistency
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 47s
Relocated the Navbar component to the MainLayout to streamline its rendering across dashboard pages. This eliminates redundant Navbar instances in individual pages, improving maintainability and reducing duplication.
2025-03-12 09:56:03 +01:00
Felipe Cardoso
193e9fa4d2 Refactor event creation form with improved UI and validation
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) Has been cancelled
Replaced basic HTML form with styled components for better UI consistency. Added fields for start/end time and location URL, along with live slug validation to prevent reserved slugs. Enhanced layout and structure for improved usability and responsiveness.
2025-03-12 09:48:50 +01:00
Felipe Cardoso
11fa5f6c78 Add event detail page with dynamic slug support
This commit introduces a new dynamic event detail page under the dashboard. It fetches event data based on the slug using context and handles loading, error, and empty states gracefully. Includes integration with the Navbar component for consistent UI.
2025-03-12 09:22:13 +01:00
Felipe Cardoso
9a59c88143 Add event creation page and link from dashboard
Introduced a new page for creating events with a form to input event details and added a link from the dashboard to this page. The form includes fields for title, description, date, location, and public/private options, enhancing user functionality. Users are redirected to the event page upon successful creation.
2025-03-12 09:22:06 +01:00
Felipe Cardoso
082c1dc585 Remove unused DashboardPage component from the codebase.
This component was no longer in use and has been deleted to clean up the codebase. Its removal helps maintain clarity and reduces unnecessary clutter in the frontend directory.
2025-03-11 06:57:55 +01:00
Felipe Cardoso
158a8b441a Add invitation and dashboard pages with UI components
Introduced a dynamic invitation page to display event details based on a slug, including RSVP functionality (placeholder). Added a dashboard page for authenticated users, providing a welcome message and placeholder for event management. Also implemented reusable Card UI components for consistent styling.
2025-03-11 06:57:34 +01:00