refactor(management): clean up structural indirection across lib #110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
apps/managementcontains structural indirection across types and messaging modules that increases reader load:apps/management/lib/types/index.tsis an artificial barrel re-exporting domain types, causing callers to bypass direct domain slice paths.apps/management/lib/connectors/whatsapp-wwebjs/andapps/management/lib/messaging/fragment single-service WhatsApp handling across redundant directories and a one-caller adapter layer.apps/management/lib/create clutter.Acceptance Criteria
apps/management/lib/types/index.tsand migrate every caller to direct domain slice imports (@/lib/orders/types,@/lib/customers/types,@/lib/inventory/types,@/lib/purchases/types).apps/management/lib/connectors/whatsapp-wwebjs/andapps/management/lib/messaging/into a single cohesiveapps/management/lib/whatsapp/directory. Collapse one-caller adapter layers and remove obsolete directories.apps/management/lib/to delete narrative narration, obsolete headers, and commented-out corpses.pnpm verify:management.