Create the UI Component
packages/features/insights/components/booking/
:Add Component to Barrel Export
Add Component to Insights View
Create tRPC Handler
getInsightsBookingService()
DI container function:Add Service Method to InsightsBookingBaseService
InsightsBookingBaseService
class:getInsightsBookingService()
: Always use the DI container function for consistent service creation$queryRaw
for complex aggregations and better performanceawait this.getBaseConditions()
for proper filtering and permissionsTRPCError
LoadingInsight
recharts
for new charts.getDateRanges()
and getTimeView()
for time-based charts