feat: add no-show hosts and csat graphs on Insights (#24556)

* feat: Add No-Show Hosts and CSAT insights with beautiful card design

- Add No-Show Hosts Over Time chart with line visualization
- Add CSAT Over Time chart with percentage tracking
- Add Recent No-Show Guests list with email copy functionality
- Redesign all KPI cards as individual separated cards with curved edges
- Add proper TRPC endpoints and database queries for new insights
- Follow Cal.com design patterns with consistent styling
- All charts now have individual cards with rounded-2xl borders and shadow-sm elevation
- Fix all linting issues with unused imports and variables

* coderabbit fixes

* fix(insights): address review feedback on charts

* fix(insights): correct dayjs timezone usage for type safety

* Update packages/features/insights/services/InsightsBookingBaseService.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* Fix InfoBadge import path

* Wrap InfoBadge in span for styling

* Add insights charts and i18n keys

* Fix ChartCard usage and double card wrapping issues

* Remove double card wrapping for chart components

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Eunjae Lee <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-10-28 10:39:39 +00:00
1 parent c7c8564b63
commit 89cc175d73
8 files changed
+444 -49

No files matched your search

@@ -16,6 +16,7 @@ import {
AverageEventDurationChart,
BookingKPICards,
BookingsByHourChart,
CSATOverTimeChart,
EventTrendsChart,
HighestNoShowHostTable,
HighestRatedMembersTable,
@@ -25,6 +26,7 @@ import {
MostCancelledBookingsTables,
MostCompletedTeamMembersTable,
LeastCompletedTeamMembersTable,
NoShowHostsOverTimeChart,
PopularEventsTable,
RecentNoShowGuestsChart,
RecentFeedbackTable,
@@ -105,6 +107,11 @@ function InsightsPageContent() {
<EventTrendsChart />
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
<NoShowHostsOverTimeChart />
<CSATOverTimeChart />
</div>
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-4">
<div className="sm:col-span-2">
<BookingsByHourChart />
@@ -2406,6 +2406,10 @@
"insights": "Insights",
"routing_forms": "Routing Forms",
"insights_no_data_found_for_filter": "No data found for the selected filter or selected dates.",
"no_show_hosts_over_time": "No-Show Hosts Over Time",
"csat_over_time": "CSAT Over Time",
"no_show_hosts": "No-Show Hosts",
"csat": "CSAT",
"acknowledge_booking_no_show_fee": "I acknowledge that if I do not attend this event that a {{amount, currency}} no show fee will be applied to my card.",
"days": "days",
"card_details": "Card details",