Add event detail page at /:group-short/:event-short#25
Conversation
- Add `short` (URL slug) and `notes` fields to Event model and EventData DTO - Auto-generate slug from event name using improved toSlug() helper - Create UpdateEventAddShortAndNotes migration for new DB fields - Register migration in configure.swift - Add webViewEvent handler rendering title, start/end times, location, notes - Add coffeeEventDetailView with same styling as group page - Add /:groupID/:eventShort route to routes.swift - Update EventController create/update to handle new fields consistently Co-authored-by: mcritz <398942+mcritz@users.noreply.github.com>
|
@copilot examine main and use its implementation of Event notes |
…n branch - Add AddNotesToEvent migration (matching main's implementation) - Add AddShortToEvent migration (new, just for the URL slug field) - Remove UpdateEventAddShortAndNotes combined migration - Update configure.swift to use AddNotesToEvent then AddShortToEvent Co-authored-by: mcritz <398942+mcritz@users.noreply.github.com>
Done in dbd148c. Split the combined
|
|
Just putting it on record here. This is garbage. Copilot doesn’t understand Vapor routes so it didn’t include them. It literally tried to cast a string like "hangin-at-andytown" to a UUID init. I asked it to create an event page but it didn’t think to ask or clarify if the event page should be linked to from anywhere. (I admit I messed up the requirement spec, but COME ON.) Anyway. I don’t have any faith in this PR. Debating on closing it as unacceptable but first I have to waste time seeing if there’s anything salvageable from this. |
|
It doesn’t understand Fluent, either. So, it can’t handle relations properly. |
|
I’m not mad. I’m just disappointed. This is why people hate Microslop. And, yeah, Claude’s models are also to blame. |
shortandnotesfields toEventmodelshortandnotesfields toEventDataDTOString+Slug.swiftextension for robust URL slug generationAddNotesToEventmigration (matching main branch implementation)AddShortToEventmigration (separate, just for URL slug)configure.swiftwebViewEventhandler toInterestGroupController+Plot.swiftcoffeeEventDetailViewfor event detail layout (title, times, location, notes, image)/:groupID/:eventShorttoroutes.swiftEventController.createandEventController.updateto handle new fields consistentlyOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.