scheduledBy null) in their own section with the same metrics as employee performance for apples-to-apples comparison.CCDashboardClient.tsx) loads two endpoints today with different date attribution and no user-visible control:GET /cc-dashboard/metrics — top KPI grid uses inspection datetime (appointment / inspection date).GET /cc-dashboard/scheduler-metrics — employee table uses scheduledTs (booking moment).scheduledBy: { $ne: null }; online self-booked Attik jobs often have scheduledBy null and therefore never appear in the employee table despite contributing to regional totals.datetimescheduledTs (timestamp set when the order is saved at booking time, whether the job is confirmed or unconfirmed at creation)scheduledBy: null appear in a separate Online Scheduler section (not mixed into employee rows).ccDashboardSavedViews.ts) with companies, timeframe, date range, add-on categories, and scheduler selections so users do not re-select filters each visit.datetimescheduledTs (booking save time), not quote createdAtbuildCompanyTzRanges / TZDayjs patterns in ccDashboard.tsattik-backend/src/routes/ccDashboard.ts — accept dateType=inspection|booked (name TBD) on /metrics and /scheduler-metrics; drive $match on datetime vs scheduledTs consistently.attik-backend/src/routes/ccDashboardSavedViews.ts + saved view schema — persist dateType on create/update/read.scheduledBy: null, exposed in scheduler-metrics response (e.g. dedicated row/section) or parallel structure.attik-frontend/src/app/admin/client-care-dashboard/_components/DashboardHeader.tsx / shared DashboardHeader — Date Type control.CCDashboardClient.tsx — pass dateType to KPI and scheduler fetches; include in save-view payload.KPIStatsGrid.tsx — tooltip copy should state active date type (Inspection Date vs Booked Date).EmployeeTable.tsx — render Online Scheduler section with identical columns/metrics._types.ts — extend saved view DTO and API params.datetime; Booked Date uses scheduledTs.scheduledBy: null jobs with same metrics/columns as employees.attik-backend/src/routes/ccDashboard.tsattik-backend/src/routes/ccDashboardSavedViews.tsattik-backend/scripts/createCcDashboardViews.ts (scheduledTs, scheduledBy, datetime)attik-frontend/src/app/admin/client-care-dashboard/CCDashboardClient.tsxattik-frontend/src/app/admin/client-care-dashboard/_components/KPIStatsGrid.tsxattik-frontend/src/app/admin/client-care-dashboard/_components/EmployeeTable.tsxattik-backend/src/util/functions/inspection/createInspection.ts (scheduledTs at booking save)The team said the top regional dashboard numbers on the client care dashboard in admin attik were pulling revenue based on what was scheduled in that week instead of what schedulers had actually booked during the week. That made the view less useful for coaching and weekly booking visibility. They also called out that average fee was being derived from the scheduled-date basis, which made the metric misleading for the use case they had in mind. They suggested either making the date basis selectable or showing separate booked vs scheduled sections; product decision: single Date Type filter instead of duplicate metric tiles. They also noted that online scheduler and admin-created orders should be represented in the aggregate view; Online Scheduler section covers self-booked jobs with null scheduledBy.
Please authenticate to join the conversation.
Planned
Main App
1 day ago
Linear
Get notified by email when there are changes.
Planned
Main App
1 day ago
Linear
Get notified by email when there are changes.