[WIP] In our calendar functionality we have a card made using renderEventCard that shows information about the booking. WE should show information about who created the booking in the same style we are showing the custodian. This should resolve #1978.#1982
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Co-authored-by: DonKoko <7840007+DonKoko@users.noreply.github.com>
- Add missing 'border' class to HoverCardTrigger in advanced-asset-columns.tsx to fix issue where only top border was visible - Remove 'divide-y' class from PopoverContent to prevent styling conflicts - Improve EventCardContent layout by arranging custodian and creator info side by side - Add creator data to asset booking queries in data.server.ts and use-asset-availability-data.ts - Clean up whitespace and formatting in assets-list.tsx
|
@copilot had to fix some issues. Please check the commits i did. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds creator information to calendar booking cards to match the existing custodian display pattern, resolving issue #1978. The implementation follows consistent styling and data structure patterns already established in the codebase.
- Enhanced calendar event cards to display booking creator information alongside custodian details
- Updated booking queries and data structures to include creator data throughout the system
- Maintained consistent UI patterns using the existing TeamMemberBadge component
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| app/routes/_layout+/calendar.tsx | Added creator field to CalendarExtendedProps type definition |
| app/modules/booking/service.server.ts | Updated getBookingsForCalendar to include creator data in query and response |
| app/modules/asset/types.ts | Added optional creator field to AdvancedAssetBooking type |
| app/modules/asset/query.server.ts | Enhanced SQL query to include creator data with proper joins |
| app/modules/asset/data.server.ts | Added creator selection to booking include in simple mode loader |
| app/components/calendar/event-card.tsx | Added "Created by" section to event card content with TeamMemberBadge |
| app/components/assets/assets-index/use-asset-availability-data.ts | Updated asset availability data to include creator information |
| app/components/assets/assets-index/assets-list.tsx | Removed unnecessary empty line |
| app/components/assets/assets-index/advanced-asset-columns.tsx | Added creator data to upcoming bookings popover |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
I've reviewed your commits (7804ab0 and 35c5f4d) and they're excellent improvements: Key fixes you made:
The side-by-side layout for custodian/creator is much more compact and user-friendly than the original stacked approach. The border fixes resolve visual issues with the hover cards, and using the typed Your changes address real usability and code quality issues that became apparent during testing. No further changes needed - the implementation is now complete and robust. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Implementation Summary
Added creator information to calendar booking cards as requested in issue #1978. The implementation:
CalendarExtendedPropsto include creator field matching custodian structureTeamMemberBadgecomponent as custodianThe creator information now displays in the same style as custodian information when hovering over bookings in the calendar view, resolving the feature request.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.