fix: UI polish — nav labels, date picker, rules engine, error messages

- Sidebar: removed "Master" from nav labels (Leads, Patients, Appointments, Call Log)
- Appointment form: Dept + Doctor in 2-col row, Date below, disabled cascade
- DatePicker: placement="bottom start" + shouldFlip fixes popover positioning
- Team Performance: default to "Week", grid KPI cards, chart legend spacing
- Rules Engine: manual save (removed auto-debounce), Reset to Defaults uses
  DEFAULT_PRIORITY_CONFIG (no template endpoint), removed dead saveTimerRef
- Automation rules: 6 showcase cards with trigger/condition/action, replaced
  agent-specific rule with generic round-robin
- Recording analysis: friendly error message with retry instead of raw Deepgram error
- Sidebar active/hover: brand color reference for theming

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-02 16:55:16 +05:30
parent afd0829dc6
commit 8470dd03c7
7 changed files with 98 additions and 61 deletions

View File

@@ -76,7 +76,7 @@ const KpiCard = ({ icon, value, label, color }: { icon: any; value: string | num
);
export const TeamPerformancePage = () => {
const [range, setRange] = useState<DateRange>('today');
const [range, setRange] = useState<DateRange>('week');
const [agents, setAgents] = useState<AgentPerf[]>([]);
const [allCalls, setAllCalls] = useState<any[]>([]);
const [allAppointments, setAllAppointments] = useState<any[]>([]);