Commit Graph

4 Commits

Author SHA1 Message Date
Ruslan Bakiev
3ff9120070 fix: export isCommCallPlaying from useCallAudio composable
Same issue as isCommCallPlayable — used in template but not exported/destructured.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 21:09:39 +07:00
Ruslan Bakiev
c07ef2026d fix: export isCommCallPlayable from useCallAudio composable
Function was used in CrmWorkspaceApp template but not exported/destructured,
causing TypeError at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 21:00:10 +07:00
Ruslan Bakiev
d892d0c604 refactor: distribute types from crm-types.ts to owning composables
Each composable now owns its types and exports them. Other composables
import types from the owning composable. Deleted centralized crm-types.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:21:30 +07:00
Ruslan Bakiev
a4d8d81de9 refactor: decompose CrmWorkspaceApp.vue into 15 composables
Split the 6000+ line monolithic component into modular composables:
- crm-types.ts: shared types and utility functions
- useAuth, useContacts, useContactInboxes, useCalendar, useDeals,
  useDocuments, useFeed, useTimeline, usePilotChat, useCallAudio,
  usePins, useChangeReview, useCrmRealtime, useWorkspaceRouting
CrmWorkspaceApp.vue is now a thin orchestrator (~2500 lines) that
wires composables together with glue code, keeping template and
styles intact.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:05:01 +07:00