fix: call desk layout — collapsible context panel, worklist/calls tabs, phone numbers

- Context panel now collapsible via toggle button (sidebar icon in status bar)
- Fixed width 400px when open, full-width worklist when closed
- Worklist and Today's Calls as separate tabs instead of stacked
- Fix missed calls callerNumber transform (PHONES composite → array)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 13:13:19 +05:30
parent cd9e7af688
commit 94f4a18035
2 changed files with 82 additions and 35 deletions

View File

@@ -102,6 +102,9 @@ export const useWorklist = (): UseWorklistResult => {
...call,
callDirection: call.direction ?? call.callDirection,
durationSeconds: call.durationSec ?? call.durationSeconds ?? 0,
callerNumber: call.callerNumber?.primaryPhoneNumber
? [{ number: call.callerNumber.primaryPhoneNumber, callingCode: '+91' }]
: call.callerNumber,
})),
followUps: (json.followUps ?? []).map((fu: any) => ({
...fu,