Dashboard — 计算配置
Source of truth:
studio-website-monorepo/apps/api/src/routes/v3/dashboard-summary.ts·dashboard-staff.tslast_verified: 2026-06-15
Dashboard 指标来自多个 endpoint,全部按 store_id 隔离。
Performance Tab
KPI 卡片
数据来自 GET /v3/dashboard/summary?storeId=...&period=week|month。
Intros Booked 口径注意:summary endpoint 用的是
primary_outcome_result = 'success' AND primary_category = 'revenue_impacting',不是按intro_bookingsubcategory 筛选。与 multi-store endpoint 的intro_booking口径不同。
趋势:当期 vs 上期同长度时段,delta = (当期 - 上期) / 上期 × 100。
快捷牵引
Team Tab
数据来自 GET /v3/dashboard/staff?storeId=...&startDate=...&endDate=...。
按 staff_name 分组聚合,只统计 call_state IN ('human_conversation', 'voicemail') 且 staff_name IS NOT NULL 的通话。
Live / Voicemail / No Answer:prototype 的 Team tab 展示这三列。⚠️ 待开发 — 当前 staff endpoint 不返回这三类拆分,且 SQL 过滤了
call_state IN ('human_conversation', 'voicemail'),no_answer不在结果集中。需后端扩展。