Event admin redesign #153

Merged
PxlLoewe merged 3 commits from event-admin-redesign into staging 2026-01-29 20:49:06 +00:00
PxlLoewe commented 2026-01-29 20:48:38 +00:00 (Migrated from github.com)

This pull request primarily removes the appointment and participant management UI and logic from the event admin interface, streamlining the event administration experience. It also introduces a new dedicated participant admin page, cleans up unused imports, and applies minor UI and code style improvements across several components.

Admin Event Management Refactor:

  • Removed the appointment and participant modals, related forms, and tables from the event admin form (Form.tsx). This includes deleting the AppointmentModal component and all logic related to handling appointments and participant attendance directly in the event form. [1] [2] [3]
  • Introduced a new admin participant page at admin/event/[id]/participant/[participantId]/page.tsx, which fetches and displays participant details and provides a dedicated participant form. (apps/hub/app/(app)/admin/event/[id]/participant/[participantId]/page.tsxR1-R55)

Frontend/UI Cleanups:

  • Removed unused imports and cleaned up the Footer component to eliminate unnecessary code and dependencies.
  • Standardized and improved className usage and formatting in several UI components, such as FeaturedEvents.tsx and FirstPath.tsx, for better readability and consistency. [1] [2] [3] [4] [5]
  • Simplified the props passed to EventCard components by removing appointments and selectedAppointments props, as this data is no longer needed after the refactor. [1] [2] [3]

Business Logic Adjustments:

  • Updated the eventCompleted helper to remove the check for participant attendance at presence events, aligning with the new event completion logic.
This pull request primarily removes the appointment and participant management UI and logic from the event admin interface, streamlining the event administration experience. It also introduces a new dedicated participant admin page, cleans up unused imports, and applies minor UI and code style improvements across several components. **Admin Event Management Refactor:** * Removed the appointment and participant modals, related forms, and tables from the event admin form (`Form.tsx`). This includes deleting the `AppointmentModal` component and all logic related to handling appointments and participant attendance directly in the event form. [[1]](diffhunk://#diff-9abe0785ce41faf3a16583753f3905292a4199df62af66e177e9604d28627dd7L3-L67) [[2]](diffhunk://#diff-9abe0785ce41faf3a16583753f3905292a4199df62af66e177e9604d28627dd7L142-L252) [[3]](diffhunk://#diff-2a48f3535e02451c2e8d236e69133ae879a87a234a15fc1273795e0693f6f240L1-L203) * Introduced a new admin participant page at `admin/event/[id]/participant/[participantId]/page.tsx`, which fetches and displays participant details and provides a dedicated participant form. ([apps/hub/app/(app)/admin/event/[id]/participant/[participantId]/page.tsxR1-R55](diffhunk://#diff-190ef793493e6da87d16a24f42184ebacfa2f88e61908d1e70de3d1e3738df10R1-R55)) **Frontend/UI Cleanups:** * Removed unused imports and cleaned up the `Footer` component to eliminate unnecessary code and dependencies. * Standardized and improved className usage and formatting in several UI components, such as `FeaturedEvents.tsx` and `FirstPath.tsx`, for better readability and consistency. [[1]](diffhunk://#diff-c7e53917ae04f97d118afc292b7f7a622120f722e98849c0cbfff3970f4f0805L23-R34) [[2]](diffhunk://#diff-c7e53917ae04f97d118afc292b7f7a622120f722e98849c0cbfff3970f4f0805L46-R57) [[3]](diffhunk://#diff-c7e53917ae04f97d118afc292b7f7a622120f722e98849c0cbfff3970f4f0805L110-R107) [[4]](diffhunk://#diff-c7e53917ae04f97d118afc292b7f7a622120f722e98849c0cbfff3970f4f0805L132-R127) [[5]](diffhunk://#diff-2538225716f7f6a21184458971cf83f3c1ede98c054d53edfc89832aaa4901dcL50-R47) * Simplified the props passed to `EventCard` components by removing `appointments` and `selectedAppointments` props, as this data is no longer needed after the refactor. [[1]](diffhunk://#diff-2538225716f7f6a21184458971cf83f3c1ede98c054d53edfc89832aaa4901dcL26-L34) [[2]](diffhunk://#diff-c7e53917ae04f97d118afc292b7f7a622120f722e98849c0cbfff3970f4f0805L79-R79) [[3]](diffhunk://#diff-2538225716f7f6a21184458971cf83f3c1ede98c054d53edfc89832aaa4901dcL50-R47) **Business Logic Adjustments:** * Updated the `eventCompleted` helper to remove the check for participant attendance at presence events, aligning with the new event completion logic.
Sign in to join this conversation.