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>
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
import { ref, type Ref, type ComputedRef } from "vue";
|
||||
import type { TabId, CalendarView, PeopleLeftMode, CalendarEvent, PilotChangeItem } from "~/composables/crm-types";
|
||||
import { safeTrim, dayKey } from "~/composables/crm-types";
|
||||
|
||||
import type { CommItem } from "~/composables/useContacts";
|
||||
import type { CalendarView, CalendarEvent } from "~/composables/useCalendar";
|
||||
import { dayKey } from "~/composables/useCalendar";
|
||||
import type { PilotChangeItem } from "~/composables/usePilotChat";
|
||||
|
||||
export type TabId = "communications" | "documents";
|
||||
|
||||
export type PeopleLeftMode = "contacts" | "calendar";
|
||||
|
||||
function safeTrim(value: unknown) { return String(value ?? "").trim(); }
|
||||
|
||||
export function useWorkspaceRouting(opts: {
|
||||
selectedTab: Ref<TabId>;
|
||||
|
||||
Reference in New Issue
Block a user