feat: event creation functionality #99

Merged
micha.bok merged 7 commits from feat/92-event_creation_functionality into main 2025-06-26 17:16:55 +00:00
Member

nicht erschrecken, viele Commits sind einfach weil ich so oft irgendwas gerebased hab :)

In dem Branch sind jetzt

  • Event Erstellug
  • Event Bearbeitug
  • Event Ansicht
  • Toaster
  • noch in paar kleinere Sachen

closes #92

nicht erschrecken, viele Commits sind einfach weil ich so oft irgendwas gerebased hab :) In dem Branch sind jetzt - Event Erstellug - Event Bearbeitug - Event Ansicht - Toaster - noch in paar kleinere Sachen closes #92
micha.bok added 62 commits 2025-06-19 22:50:22 +00:00
When testing api endpoints make sure to login with a real user (not with the dev hardcoded user) by either registering one with a password other than "password" or setting DISABLE_AUTH_TEST_USER to "true" (`DISABLE_AUTH_TEST_USER=true yarn dev`)
refactor(validation): restucture api input and output validation
All checks were successful
container-scan / Container Scan (pull_request) Successful in 5m17s
docker-build / docker (pull_request) Successful in 6m1s
eef17c5360
fix(api): update paths in Swagger documentation to include '/api' prefix
All checks were successful
container-scan / Container Scan (pull_request) Successful in 2m54s
docker-build / docker (pull_request) Successful in 6m5s
5e9f8b59a4
fix: update default background color and adjust layout for ToastInner component
Some checks failed
container-scan / Container Scan (pull_request) Failing after 4m19s
docker-build / docker (pull_request) Failing after 6m19s
1f6f34ba1a
requested review from Contributor 2025-06-19 22:50:35 +00:00
micha.bok added 1 commit 2025-06-19 22:56:11 +00:00
fix: format
Some checks failed
container-scan / Container Scan (pull_request) Failing after 1m25s
docker-build / docker (pull_request) Failing after 6m48s
5cc7f3c391
micha.bok added 1 commit 2025-06-19 23:05:42 +00:00
fix: correct parameter extraction in EditEventPage function
Some checks failed
container-scan / Container Scan (pull_request) Failing after 1m31s
docker-build / docker (pull_request) Failing after 6m57s
7a7b07ae8e
micha.bok added 1 commit 2025-06-19 23:29:46 +00:00
refactor: simplify parameter typing in EditEventPage function
Some checks failed
container-scan / Container Scan (pull_request) Failing after 1m32s
docker-build / docker (pull_request) Failing after 7m7s
d443bc0593
micha.bok added 1 commit 2025-06-19 23:39:08 +00:00
refactor: rename EditEventPage function to Page
Some checks failed
container-scan / Container Scan (pull_request) Failing after 1m29s
docker-build / docker (pull_request) Failing after 6m51s
7c0e53458f
micha.bok added 1 commit 2025-06-20 10:32:54 +00:00
feat: light mode user icon
Some checks failed
container-scan / Container Scan (pull_request) Failing after 1m25s
docker-build / docker (pull_request) Failing after 8m42s
d6aa3ab7da
micha.bok added 1 commit 2025-06-20 10:42:50 +00:00
fix: update parameter typing in Page function to use Promise
All checks were successful
container-scan / Container Scan (pull_request) Successful in 3m30s
docker-build / docker (pull_request) Successful in 9m17s
194e329468
micha.bok added 1 commit 2025-06-21 21:19:05 +00:00
refactor: rename event folder to events
All checks were successful
container-scan / Container Scan (pull_request) Successful in 4m55s
docker-build / docker (pull_request) Successful in 12m15s
25b3ec6808
micha.bok added 1 commit 2025-06-22 00:34:21 +00:00
feat: add Events page and EventListEntry component for displaying events
All checks were successful
container-scan / Container Scan (pull_request) Successful in 4m40s
docker-build / docker (pull_request) Successful in 11m52s
96c2d2ecc6
micha.bok added 1 commit 2025-06-22 00:42:02 +00:00
style: make events page a little bit prettier
All checks were successful
container-scan / Container Scan (pull_request) Successful in 4m13s
docker-build / docker (pull_request) Successful in 12m30s
ea6bef9562
micha.bok added 1 commit 2025-06-22 19:23:37 +00:00
feat: add user image to ParticipantListEntry component
All checks were successful
container-scan / Container Scan (pull_request) Successful in 5m25s
docker-build / docker (pull_request) Successful in 12m43s
24628a13f5
micha.bok added 1 commit 2025-06-22 20:16:56 +00:00
feat: enhance EventForm to handle URL parameters for creating events
Some checks failed
docker-build / docker (pull_request) Waiting to run
container-scan / Container Scan (pull_request) Failing after 11m57s
9baf4d6be6
micha.bok added 1 commit 2025-06-22 20:44:05 +00:00
fix: add suspence boundary around event form
All checks were successful
container-scan / Container Scan (pull_request) Successful in 4m33s
docker-build / docker (pull_request) Successful in 13m41s
40868bbd61
micha.bok force-pushed feat/92-event_creation_functionality from 40868bbd61 to a8cc166f41 2025-06-24 18:54:56 +00:00 Compare
dominik reviewed 2025-06-24 19:47:24 +00:00
dominik left a comment
Owner

Sieht schon ganz gut aus, auch wenn du beim rebase irgend was komisches passiert ist xD

Sieht schon ganz gut aus, auch wenn du beim rebase irgend was komisches passiert ist xD
@ -3,6 +3,7 @@ services:
build:
context: .
dockerfile: Dockerfile
network: host
Owner

Aus irgend einem Grund sind hier noch dinge, die von mir (zwischenzeitlich) in meinem branch waren drinne. Musst warscheinlich hier noch ein paar commits droppen oder so.

Aus irgend einem Grund sind hier noch dinge, die von mir (zwischenzeitlich) in meinem branch waren drinne. Musst warscheinlich hier noch ein paar commits droppen oder so.
Author
Member

ja wenn du mir sagst wie des geht ;)

ja wenn du mir sagst wie des geht ;)
dominik marked this conversation as resolved
@ -0,0 +48,4 @@
},
"security": []
}
}
Owner

Hier die ganze Datei...

Hier die ganze Datei...
dominik marked this conversation as resolved
@ -0,0 +17,4 @@
const pathname = usePathname();
// Extract eventId from URL like /events/[eventId]
const eventId = pathname.split('/').pop() || '';
Owner

Sollte am besten über die native nextjs funktionalität extrahiert werden.
https://nextjs.org/docs/app/api-reference/file-conventions/page#params-optional

Sollte am besten über die native nextjs funktionalität extrahiert werden. https://nextjs.org/docs/app/api-reference/file-conventions/page#params-optional
micha.bok marked this conversation as resolved
@ -29,3 +30,3 @@
--background: var(--neutral-800);
--background-reversed: var(--neutral-000);
--base: var(--neutral-800);
--basecl: var(--neutral-800);
Owner

verstehe nicht so ganz, warum das umbenannt wurde.

verstehe nicht so ganz, warum das umbenannt wurde.
Author
Member

weil --base blockiert ist von irgendwas, weiß nicht mehr genau von was

weil --base blockiert ist von irgendwas, weiß nicht mehr genau von was
dominik marked this conversation as resolved
@ -0,0 +3,4 @@
import { Label } from '@/components/ui/label';
import Link from 'next/link';
type EventListEntryProps = {
Owner

Könntest dir hierfür auch einfach den rückgabewert von der API nehmen. Dann passt das auf jeden fall immer.

type EventListEntryProps = zod.output<typeof EventSchema>;

und dann mit

<EventListEntry
    key={event.id}
    {...event}
/>

nutzen.

Könntest dir hierfür auch einfach den rückgabewert von der API nehmen. Dann passt das auf jeden fall immer. ```typescript type EventListEntryProps = zod.output<typeof EventSchema>; ``` und dann mit ```typescript <EventListEntry key={event.id} {...event} /> ``` nutzen.
micha.bok marked this conversation as resolved
@ -0,0 +4,4 @@
import { user_default_light } from '@/assets/usericon/default/defaultusericon-export';
import { useTheme } from 'next-themes';
type ParticipantListEntryProps = {
Owner

Hier das gleiche mit

import { zod } from 'zod/v4';
import { ParticipantSchema } from '@/app/api/event/[eventID]/participant/validation';

type ParticipantListEntryProps = zod.output<typeof ParticipantSchema>;

und

<ParticipantListEntry
  {...user}
/>

bzw.

<ParticipantListEntry
  user={user}
  status={"PENDING"}
/>
Hier das gleiche mit ```typescript import { zod } from 'zod/v4'; import { ParticipantSchema } from '@/app/api/event/[eventID]/participant/validation'; type ParticipantListEntryProps = zod.output<typeof ParticipantSchema>; ``` und ```typescript <ParticipantListEntry {...user} /> ``` bzw. ```typescript <ParticipantListEntry user={user} status={"PENDING"} /> ```
micha.bok marked this conversation as resolved
@ -0,0 +19,4 @@
import { useSearchParams } from 'next/navigation';
interface User {
Owner

Hier am besten auch den API type direkt nutzen.

Hier am besten auch den API type direkt nutzen.
micha.bok marked this conversation as resolved
@ -0,0 +35,4 @@
</Button>
*/
Owner

Warum haben wir do einen riesigen USAGE block hier drinne?
Können wir das auch in eine extra .md Datei auslagern?

Warum haben wir do einen riesigen USAGE block hier drinne? Können wir das auch in eine extra `.md` Datei auslagern?
Author
Member

theoretisch schon, ja, ich wollte das irgendwo hinpacken, wo ich es wieder finde, weiß aber nicht, ob wir das immernoch brauchen, schau ich mir morgen mal an

theoretisch schon, ja, ich wollte das irgendwo hinpacken, wo ich es wieder finde, weiß aber nicht, ob wir das immernoch brauchen, schau ich mir morgen mal an
dominik marked this conversation as resolved
@ -3,3 +3,3 @@
export const config = {
matcher: [
'/((?!api|_next/static|api-doc|_next/image|site\.webmanifest|web-app-manifest-(?:192x192|512x512)\.png|apple-touch-icon.png|favicon(?:-(?:dark|light))?\.(?:png|svg|ico)|fonts).*)',
'/((?!api|_next/static|api-doc|api-doc|_next/image|site\.webmanifest|web-app-manifest-(?:192x192|512x512)\.png|apple-touch-icon.png|favicon(?:-(?:dark|light))?\.(?:png|svg|ico)|fonts).*)',
Owner

Hier scheinbar auch ein rebase problem. Ist jetzt doppelt api-doc drinnen

Hier scheinbar auch ein rebase problem. Ist jetzt doppelt api-doc drinnen
Author
Member

ja das hab ich gesehen beim rebase, aber eigentlich dachte ich dass ein späterer commit das wieder raus geschmissen hat 🤔

ja das hab ich gesehen beim rebase, aber eigentlich dachte ich dass ein späterer commit das wieder raus geschmissen hat 🤔
dominik marked this conversation as resolved
dominik force-pushed feat/92-event_creation_functionality from a8cc166f41 to d9129f3f93 2025-06-25 11:11:50 +00:00 Compare
micha.bok added 1 commit 2025-06-25 17:11:45 +00:00
feat(events): refactor event and participant list entries to use schema validation
Some checks failed
container-scan / Container Scan (pull_request) Failing after 4m21s
docker-build / docker (pull_request) Failing after 6m5s
018f94e69d
dominik force-pushed feat/92-event_creation_functionality from 018f94e69d to d92ca56a7d 2025-06-25 17:51:06 +00:00 Compare
dominik changed title from feat/92-event_creation_functionality to feat: event creation functionality 2025-06-25 17:51:23 +00:00
micha.bok force-pushed feat/92-event_creation_functionality from d92ca56a7d to 42e1b69720 2025-06-26 10:57:33 +00:00 Compare
dominik approved these changes 2025-06-26 13:42:14 +00:00
micha.bok merged commit 412117b4dd into main 2025-06-26 17:16:55 +00:00
micha.bok deleted branch feat/92-event_creation_functionality 2025-06-26 17:16:56 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: DHBW-WE/MeetUp#99
No description provided.