@burdenoff/microfe-headshotmarketing 2026.1123.1 → 2026.1124.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/wspace-operations.d.ts +742 -0
- package/dist/generated/wspace-operations.js +752 -351
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +41 -33
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.d.ts +7 -0
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +133 -0
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +54 -49
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.d.ts +31 -0
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +150 -0
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -0
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.d.ts +2 -18
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +607 -8
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/aiDecisionHelpers.d.ts +53 -0
- package/dist/headshotmarketing/pages/ai/aiDecisionHelpers.js +50 -0
- package/dist/headshotmarketing/pages/ai/aiDecisionHelpers.js.map +1 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.d.ts +7 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +267 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +258 -251
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.d.ts +14 -0
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +116 -0
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.d.ts +20 -0
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +319 -0
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +78 -41
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +126 -102
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PipelinePage.js","names":["_Fragment","stages","PipelinePage","useRecordSelection","useHeadshotMarketing","useHeadshotmarketingBootstrap","refetch","useRefreshCrmSelection","showCreatePipeline","setShowCreatePipeline","useState","contacts","data","toContactModel","item","contactById","contact","deals","toDealModel","pipelines","dealCountByPipeline","useMemo","counts","totalValue","sum","d","openValue","wonValue","PageLayout","Fragment","GitBranch","navigate","basePath","Plus","PagePurpose","CrmSubNav","CrmRecordSelection","QueryStateBoundary","EmphasisPanel","formatCurrency","EmptyState","stageDeals","stageConfig","stageValue","cn","selectRecord","deal","DealActionsMenu","DollarSign","User","Calendar","formatDate","dealCount","pipeline","PipelineActionsMenu","CreatePipelineModal"],"sources":["../../../../src/headshotmarketing/pages/crm/PipelinePage.tsx"],"sourcesContent":["/**\n * Pipeline Page\n * @module headshotmarketing/pages/crm\n */\n\nimport { useMemo, useState, type FC } from \"react\";\nimport { Plus, DollarSign, Calendar, User, GitBranch } from \"lucide-react\";\nimport { PageLayout, EmptyState, QueryStateBoundary } from \"../../components\";\nimport { EmphasisPanel, PagePurpose } from \"@burdenoff/fe-libs/ui\";\nimport { cn, formatCurrency, formatDate } from \"../../utils/helpers\";\nimport { toContactModel, toDealModel } from \"../../utils/crmMapper\";\nimport { useHeadshotMarketing } from \"../../context/HeadshotMarketingContext\";\nimport { CrmSubNav } from \"./CrmSubNav\";\nimport { CreatePipelineModal } from \"./CreatePipelineModal\";\nimport { useHeadshotmarketingBootstrap } from \"../../hooks/useHeadshotmarketingBootstrap\";\nimport type { Contact, Deal, DealStage } from \"../../types\";\nimport { DealActionsMenu } from \"./CrmActions\";\nimport { PipelineActionsMenu } from \"./PipelineActions\";\nimport { useRecordSelection } from \"../../hooks/useRecordSelection\";\nimport { useRefreshCrmSelection } from \"../../hooks/useRefreshCrmSelection\";\nimport { CrmRecordSelection } from \"../../components/CrmRecordSelection\";\nimport type { HeadshotmarketingBootstrapDataQuery } from \"../../../generated/wspace-operations\";\n\ntype PipelineItem =\n HeadshotmarketingBootstrapDataQuery[\"headshotmarketingPipelines\"][\"items\"][number];\n\ninterface PipelineStage {\n stage: DealStage;\n label: string;\n color: string;\n bgColor: string;\n}\n\nconst stages: PipelineStage[] = [\n {\n stage: \"prospecting\",\n label: \"Prospecting\",\n color: \"bg-status-info-text\",\n bgColor: \"bg-status-info-bg\",\n },\n {\n stage: \"qualification\",\n label: \"Qualification\",\n color: \"bg-status-warning-text\",\n bgColor: \"bg-status-warning-bg\",\n },\n {\n stage: \"proposal\",\n label: \"Proposal\",\n color: \"bg-status-warning-text\",\n bgColor: \"bg-status-warning-bg\",\n },\n {\n stage: \"negotiation\",\n label: \"Negotiation\",\n color: \"bg-action-primary-bg\",\n bgColor: \"bg-[var(--color-accent-soft)]\",\n },\n {\n stage: \"closed_won\",\n label: \"Closed Won\",\n color: \"bg-status-success-text\",\n bgColor: \"bg-status-success-bg\",\n },\n {\n stage: \"closed_lost\",\n label: \"Closed Lost\",\n color: \"bg-status-error-text\",\n bgColor: \"bg-status-error-bg\",\n },\n];\n\nexport const PipelinePage: FC = () => {\n const { selectRecord } = useRecordSelection();\n const { navigate, basePath } = useHeadshotMarketing();\n const { data, loading, error } = useHeadshotmarketingBootstrap();\n const refetch = useRefreshCrmSelection(\"deal\");\n const [showCreatePipeline, setShowCreatePipeline] = useState(false);\n\n const contacts: Contact[] = (data?.headshotmarketingContacts.items ?? []).map(\n (item: Parameters<typeof toContactModel>[0]) => toContactModel(item),\n );\n const contactById = Object.fromEntries(\n contacts.map((contact: Contact) => [contact.id, contact]),\n );\n const deals: Deal[] = (data?.headshotmarketingDeals.items ?? []).map(\n (item: Parameters<typeof toDealModel>[0]) => toDealModel(item, contactById),\n );\n\n const pipelines: PipelineItem[] =\n data?.headshotmarketingPipelines.items ?? [];\n\n // Deals carry the owning pipeline id; count them so the delete confirmation\n // can warn when a pipeline still has deals (the backend may reject the delete).\n const dealCountByPipeline = useMemo(() => {\n const counts: Record<string, number> = {};\n for (const item of data?.headshotmarketingDeals.items ?? []) {\n if (item.pipelineId) {\n counts[item.pipelineId] = (counts[item.pipelineId] ?? 0) + 1;\n }\n }\n return counts;\n }, [data?.headshotmarketingDeals.items]);\n\n const totalValue = deals.reduce((sum: number, d: Deal) => sum + d.value, 0);\n const openValue = deals\n .filter((d: Deal) => ![\"closed_won\", \"closed_lost\"].includes(d.stage))\n .reduce((sum: number, d: Deal) => sum + d.value, 0);\n const wonValue = deals\n .filter((d: Deal) => d.stage === \"closed_won\")\n .reduce((sum: number, d: Deal) => sum + d.value, 0);\n\n return (\n <PageLayout\n title=\"Deal Pipeline\"\n description=\"Visualize and manage your sales pipeline\"\n actions={\n <>\n <button\n onClick={() => setShowCreatePipeline(true)}\n className=\"inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken\"\n >\n <GitBranch className=\"h-4 w-4\" />\n New pipeline\n </button>\n <button\n onClick={() => navigate(basePath + \"/crm/pipeline/new\")}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90\"\n >\n <Plus className=\"h-4 w-4\" />\n Add Deal\n </button>\n </>\n }\n >\n <PagePurpose>\n Every deal in flight, grouped by stage. Watch open versus won value\n update in real time, open a deal's menu to edit or close it, and spot\n where opportunities are getting stuck so you can move them forward.\n </PagePurpose>\n\n <CrmSubNav active=\"pipeline\" basePath={basePath} navigate={navigate} />\n <CrmRecordSelection kind=\"deal\" />\n\n <QueryStateBoundary\n loading={loading}\n error={error}\n onRetry={refetch}\n hasData={Boolean(data)}\n >\n {/* Pipeline Value Summary — primary emphasis zone */}\n <EmphasisPanel>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-4\">\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4\">\n <p className=\"text-sm text-text-secondary\">Total Pipeline</p>\n <p className=\"text-2xl font-bold text-text-primary mt-1\">\n {formatCurrency(totalValue)}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {deals.length} deals\n </p>\n </div>\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4\">\n <p className=\"text-sm text-text-secondary\">Open Pipeline</p>\n <p className=\"text-2xl font-bold text-text-primary mt-1\">\n {formatCurrency(openValue)}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {\n deals.filter(\n (d: Deal) =>\n ![\"closed_won\", \"closed_lost\"].includes(d.stage),\n ).length\n }{\" \"}\n deals\n </p>\n </div>\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4\">\n <p className=\"text-sm text-text-secondary\">Won This Period</p>\n <p className=\"text-2xl font-bold text-status-success-text mt-1\">\n {formatCurrency(wonValue)}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {deals.filter((d: Deal) => d.stage === \"closed_won\").length}{\" \"}\n deals\n </p>\n </div>\n </div>\n </EmphasisPanel>\n\n {deals.length === 0 && (\n <EmptyState\n illustration=\"empty-generic\"\n title=\"No deals yet\"\n description=\"Add your first deal to start tracking opportunities through your pipeline.\"\n action={\n <button\n onClick={() => navigate(basePath + \"/crm/pipeline/new\")}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90\"\n >\n <Plus className=\"h-4 w-4\" />\n Add Deal\n </button>\n }\n />\n )}\n\n {/* Kanban Board */}\n <div className=\"overflow-x-auto\">\n <div className=\"flex gap-4 min-w-[1100px] pb-4\">\n {stages.map((stageConfig) => {\n const stageDeals = deals.filter(\n (d: Deal) => d.stage === stageConfig.stage,\n );\n const stageValue = stageDeals.reduce(\n (sum: number, d: Deal) => sum + d.value,\n 0,\n );\n\n return (\n <div key={stageConfig.stage} className=\"flex-1 min-w-[200px]\">\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop overflow-hidden\">\n {/* Column Header */}\n <div className=\"p-3 border-b border-border-subtle\">\n <div className=\"flex items-center gap-2\">\n <div\n className={cn(\n \"h-3 w-3 rounded-full\",\n stageConfig.color,\n )}\n />\n <h4 className=\"text-sm font-semibold text-text-primary\">\n {stageConfig.label}\n </h4>\n <span className=\"ml-auto text-xs text-text-secondary bg-bg-sunken rounded-full px-2 py-0.5\">\n {stageDeals.length}\n </span>\n </div>\n <p className=\"text-xs text-text-secondary mt-1\">\n {formatCurrency(stageValue)}\n </p>\n </div>\n\n {/* Deal Cards */}\n <div className=\"p-2 space-y-2 min-h-[200px] max-h-[500px] overflow-y-auto\">\n {stageDeals.length === 0 ? (\n <div className=\"py-8 text-center text-xs text-text-secondary\">\n No deals\n </div>\n ) : (\n stageDeals.map((deal) => (\n <div\n key={deal.id}\n className=\"rounded-md border border-border-seam bg-gloss-card p-3 transition-shadow hover:shadow-pop\"\n >\n <div className=\"flex items-start justify-between gap-1\">\n <button\n type=\"button\"\n onClick={() => selectRecord(deal.id)}\n className=\"text-sm font-medium text-text-primary leading-tight hover:underline text-left\"\n >\n {deal.name}\n </button>\n <DealActionsMenu\n deal={deal}\n onChanged={refetch}\n />\n </div>\n <div className=\"mt-2 space-y-1.5\">\n <div className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <DollarSign className=\"h-3 w-3\" />\n <span className=\"font-semibold text-text-primary\">\n {formatCurrency(deal.value)}\n </span>\n </div>\n <div className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <User className=\"h-3 w-3\" />\n <span>{deal.contactName}</span>\n </div>\n <div className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <Calendar className=\"h-3 w-3\" />\n <span>\n {formatDate(deal.expectedCloseDate)}\n </span>\n </div>\n </div>\n {deal.probability > 0 && deal.probability < 100 && (\n <div className=\"mt-2 pt-2 border-t border-border-subtle\">\n <div className=\"flex items-center justify-between text-xs\">\n <span className=\"text-text-secondary\">\n Probability\n </span>\n <span className=\"font-medium text-text-primary\">\n {deal.probability}%\n </span>\n </div>\n <div className=\"w-full h-1.5 rounded-full bg-bg-sunken mt-1 overflow-hidden\">\n <div\n className=\"h-full rounded-full bg-action-primary-bg\"\n style={{ width: `${deal.probability}%` }}\n />\n </div>\n </div>\n )}\n </div>\n ))\n )}\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n\n {/* Manage pipelines — rename happens in the deal form; here you can\n remove pipelines that are no longer used. */}\n {pipelines.length > 0 && (\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop\">\n <div className=\"border-b border-border-subtle p-4\">\n <h3 className=\"text-sm font-semibold text-text-primary\">\n Manage pipelines\n </h3>\n <p className=\"mt-0.5 text-xs text-text-secondary\">\n Remove pipelines you no longer use. Pipelines with open deals\n may need those deals moved first.\n </p>\n </div>\n <ul className=\"divide-y divide-border-subtle\">\n {pipelines.map((pipeline) => {\n const dealCount = dealCountByPipeline[pipeline.id] ?? 0;\n return (\n <li\n key={pipeline.id}\n className=\"flex items-center justify-between gap-3 p-4\"\n >\n <div className=\"min-w-0\">\n <div className=\"flex items-center gap-2\">\n <p className=\"truncate text-sm font-medium text-text-primary\">\n {pipeline.name}\n </p>\n {pipeline.isDefault && (\n <span className=\"rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary\">\n Default\n </span>\n )}\n </div>\n <p className=\"mt-0.5 text-xs text-text-secondary\">\n {pipeline.stages.length} stage\n {pipeline.stages.length === 1 ? \"\" : \"s\"} · {dealCount}{\" \"}\n deal{dealCount === 1 ? \"\" : \"s\"}\n </p>\n </div>\n <PipelineActionsMenu\n pipeline={{ id: pipeline.id, name: pipeline.name }}\n dealCount={dealCount}\n onDeleted={refetch}\n />\n </li>\n );\n })}\n </ul>\n </div>\n )}\n </QueryStateBoundary>\n\n <CreatePipelineModal\n open={showCreatePipeline}\n onClose={() => setShowCreatePipeline(false)}\n onCreated={() => refetch()}\n />\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiCA,IAAMC,IAA0B;CAC9B;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;AACF,GAEaC,UAAyB;CACpC,IAAM,EAAE,oBAAiBC,EAAmB,GACtC,EAAE,aAAU,gBAAaC,EAAqB,GAC9C,EAAE,SAAM,YAAS,aAAUC,EAA8B,GACzDC,IAAUC,EAAuB,MAAM,GACvC,CAACC,GAAoBC,KAAyBC,EAAS,EAAK,GAE5DC,KAAuBC,GAAM,0BAA0B,SAAS,CAAC,EAAA,CAAG,KACvE,MAA+CC,EAAeC,CAAI,CACrE,GACMC,IAAc,OAAO,YACzBJ,EAAS,KAAK,MAAqB,CAACK,EAAQ,IAAIA,CAAO,CAAC,CAC1D,GACMC,KAAiBL,GAAM,uBAAuB,SAAS,CAAC,EAAA,CAAG,KAC9D,MAA4CM,EAAYJ,GAAMC,CAAW,CAC5E,GAEMI,IACJP,G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AFZ,UAAA,CAIE,kBAAC,OAAD;UAAK,WAAU;UAAf,UAAA,CACE,kBAAC,OAAD;WAAK,WAAU;WAAf,UAAA,CACE,kBAAC,KAAD;YAAG,WAAU;YACV,UAAAA,EAAS;WACT,CAAA,GACFA,EAAS,aACR,kBAAC,QAAD;YAAM,WAAU;YAAoF,UAAA;WAE9F,CAAA,CAEL;UACL,CAAA,GAAA,kBAAC,KAAD;WAAG,WAAU;WAAb,UAAA;YACGA,EAAS,OAAO;YAAO;YACvBA,EAAS,OAAO,WAAW,IAAI,KAAK;YAAI;YAAID;YAAW;YAAI;YACvDA,MAAc,IAAI,KAAK;WAC3B;UACA,CAAA,CAAA;SACL,CAAA,GAAA,kBAACE,GAAD;UACE,UAAU;WAAE,IAAID,EAAS;WAAI,MAAMA,EAAS;UAAK;UACtC;UACX,WAAW/C;SACZ,CAAA,CACC;QAzBG,GAAA+C,EAAS,EAyBZ;OAER,CAAC;MACC,CAAA,CACD;;IAEW;;GAEpB,kBAACE,GAAD;IACE,MAAM/C;IACN,eAAeC,EAAsB,EAAK;IAC1C,iBAAiBH,EAAQ;GAC1B,CAAA;EACS;;AAEhB"}
|
|
1
|
+
{"version":3,"file":"PipelinePage.js","names":["_Fragment","stages","PipelinePage","useRecordSelection","useHeadshotMarketing","useHeadshotmarketingBootstrap","refetch","useRefreshCrmSelection","showCreatePipeline","setShowCreatePipeline","useState","nextActionDeal","setNextActionDeal","contacts","data","toContactModel","item","contactById","contact","deals","toDealModel","pipelines","stageNamesById","useMemo","map","pipeline","stage","dealCountByPipeline","counts","totalValue","sum","d","openValue","wonValue","PageLayout","Fragment","GitBranch","navigate","basePath","Plus","PagePurpose","CrmSubNav","CrmRecordSelection","QueryStateBoundary","EmphasisPanel","formatCurrency","EmptyState","stageDeals","stageConfig","stageValue","cn","selectRecord","deal","DealActionsMenu","DollarSign","User","Calendar","formatDate","Sparkles","dealCount","PipelineActionsMenu","CreatePipelineModal","DealNextActionModal"],"sources":["../../../../src/headshotmarketing/pages/crm/PipelinePage.tsx"],"sourcesContent":["/**\n * Pipeline Page\n * @module headshotmarketing/pages/crm\n */\n\nimport { useMemo, useState, type FC } from \"react\";\nimport {\n Plus,\n DollarSign,\n Calendar,\n User,\n GitBranch,\n Sparkles,\n} from \"lucide-react\";\nimport { PageLayout, EmptyState, QueryStateBoundary } from \"../../components\";\nimport { EmphasisPanel, PagePurpose } from \"@burdenoff/fe-libs/ui\";\nimport { cn, formatCurrency, formatDate } from \"../../utils/helpers\";\nimport { toContactModel, toDealModel } from \"../../utils/crmMapper\";\nimport { useHeadshotMarketing } from \"../../context/HeadshotMarketingContext\";\nimport { CrmSubNav } from \"./CrmSubNav\";\nimport { CreatePipelineModal } from \"./CreatePipelineModal\";\nimport { useHeadshotmarketingBootstrap } from \"../../hooks/useHeadshotmarketingBootstrap\";\nimport type { Contact, Deal, DealStage } from \"../../types\";\nimport { DealActionsMenu } from \"./CrmActions\";\nimport { PipelineActionsMenu } from \"./PipelineActions\";\nimport { useRecordSelection } from \"../../hooks/useRecordSelection\";\nimport { useRefreshCrmSelection } from \"../../hooks/useRefreshCrmSelection\";\nimport { CrmRecordSelection } from \"../../components/CrmRecordSelection\";\nimport type { HeadshotmarketingBootstrapDataQuery } from \"../../../generated/wspace-operations\";\nimport {\n DealNextActionModal,\n type DealNextActionTarget,\n} from \"./DealNextActionPanel\";\n\ntype PipelineItem =\n HeadshotmarketingBootstrapDataQuery[\"headshotmarketingPipelines\"][\"items\"][number];\n\ninterface PipelineStage {\n stage: DealStage;\n label: string;\n color: string;\n bgColor: string;\n}\n\nconst stages: PipelineStage[] = [\n {\n stage: \"prospecting\",\n label: \"Prospecting\",\n color: \"bg-status-info-text\",\n bgColor: \"bg-status-info-bg\",\n },\n {\n stage: \"qualification\",\n label: \"Qualification\",\n color: \"bg-status-warning-text\",\n bgColor: \"bg-status-warning-bg\",\n },\n {\n stage: \"proposal\",\n label: \"Proposal\",\n color: \"bg-status-warning-text\",\n bgColor: \"bg-status-warning-bg\",\n },\n {\n stage: \"negotiation\",\n label: \"Negotiation\",\n color: \"bg-action-primary-bg\",\n bgColor: \"bg-[var(--color-accent-soft)]\",\n },\n {\n stage: \"closed_won\",\n label: \"Closed Won\",\n color: \"bg-status-success-text\",\n bgColor: \"bg-status-success-bg\",\n },\n {\n stage: \"closed_lost\",\n label: \"Closed Lost\",\n color: \"bg-status-error-text\",\n bgColor: \"bg-status-error-bg\",\n },\n];\n\nexport const PipelinePage: FC = () => {\n const { selectRecord } = useRecordSelection();\n const { navigate, basePath } = useHeadshotMarketing();\n const { data, loading, error } = useHeadshotmarketingBootstrap();\n const refetch = useRefreshCrmSelection(\"deal\");\n const [showCreatePipeline, setShowCreatePipeline] = useState(false);\n const [nextActionDeal, setNextActionDeal] =\n useState<DealNextActionTarget | null>(null);\n\n const contacts: Contact[] = (data?.headshotmarketingContacts.items ?? []).map(\n (item: Parameters<typeof toContactModel>[0]) => toContactModel(item),\n );\n const contactById = Object.fromEntries(\n contacts.map((contact: Contact) => [contact.id, contact]),\n );\n const deals: Deal[] = (data?.headshotmarketingDeals.items ?? []).map(\n (item: Parameters<typeof toDealModel>[0]) => toDealModel(item, contactById),\n );\n\n const pipelines: PipelineItem[] =\n data?.headshotmarketingPipelines.items ?? [];\n\n const stageNamesById = useMemo(() => {\n const map: Record<string, string> = {};\n for (const pipeline of pipelines) {\n for (const stage of pipeline.stages) {\n map[stage.id] = stage.name;\n }\n }\n return map;\n }, [pipelines]);\n\n // Deals carry the owning pipeline id; count them so the delete confirmation\n // can warn when a pipeline still has deals (the backend may reject the delete).\n const dealCountByPipeline = useMemo(() => {\n const counts: Record<string, number> = {};\n for (const item of data?.headshotmarketingDeals.items ?? []) {\n if (item.pipelineId) {\n counts[item.pipelineId] = (counts[item.pipelineId] ?? 0) + 1;\n }\n }\n return counts;\n }, [data?.headshotmarketingDeals.items]);\n\n const totalValue = deals.reduce((sum: number, d: Deal) => sum + d.value, 0);\n const openValue = deals\n .filter((d: Deal) => ![\"closed_won\", \"closed_lost\"].includes(d.stage))\n .reduce((sum: number, d: Deal) => sum + d.value, 0);\n const wonValue = deals\n .filter((d: Deal) => d.stage === \"closed_won\")\n .reduce((sum: number, d: Deal) => sum + d.value, 0);\n\n return (\n <PageLayout\n title=\"Deal Pipeline\"\n description=\"Visualize and manage your sales pipeline\"\n actions={\n <>\n <button\n onClick={() => setShowCreatePipeline(true)}\n className=\"inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken\"\n >\n <GitBranch className=\"h-4 w-4\" />\n New pipeline\n </button>\n <button\n onClick={() => navigate(basePath + \"/crm/pipeline/new\")}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90\"\n >\n <Plus className=\"h-4 w-4\" />\n Add Deal\n </button>\n </>\n }\n >\n <PagePurpose>\n Every deal in flight, grouped by stage. Watch open versus won value\n update in real time, open a deal's menu to edit or close it, and spot\n where opportunities are getting stuck so you can move them forward.\n </PagePurpose>\n\n <CrmSubNav active=\"pipeline\" basePath={basePath} navigate={navigate} />\n <CrmRecordSelection kind=\"deal\" />\n\n <QueryStateBoundary\n loading={loading}\n error={error}\n onRetry={refetch}\n hasData={Boolean(data)}\n >\n {/* Pipeline Value Summary — primary emphasis zone */}\n <EmphasisPanel>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-4\">\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4\">\n <p className=\"text-sm text-text-secondary\">Total Pipeline</p>\n <p className=\"text-2xl font-bold text-text-primary mt-1\">\n {formatCurrency(totalValue)}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {deals.length} deals\n </p>\n </div>\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4\">\n <p className=\"text-sm text-text-secondary\">Open Pipeline</p>\n <p className=\"text-2xl font-bold text-text-primary mt-1\">\n {formatCurrency(openValue)}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {\n deals.filter(\n (d: Deal) =>\n ![\"closed_won\", \"closed_lost\"].includes(d.stage),\n ).length\n }{\" \"}\n deals\n </p>\n </div>\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4\">\n <p className=\"text-sm text-text-secondary\">Won This Period</p>\n <p className=\"text-2xl font-bold text-status-success-text mt-1\">\n {formatCurrency(wonValue)}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {deals.filter((d: Deal) => d.stage === \"closed_won\").length}{\" \"}\n deals\n </p>\n </div>\n </div>\n </EmphasisPanel>\n\n {deals.length === 0 && (\n <EmptyState\n illustration=\"empty-generic\"\n title=\"No deals yet\"\n description=\"Add your first deal to start tracking opportunities through your pipeline.\"\n action={\n <button\n onClick={() => navigate(basePath + \"/crm/pipeline/new\")}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90\"\n >\n <Plus className=\"h-4 w-4\" />\n Add Deal\n </button>\n }\n />\n )}\n\n {/* Kanban Board */}\n <div className=\"overflow-x-auto\">\n <div className=\"flex gap-4 min-w-[1100px] pb-4\">\n {stages.map((stageConfig) => {\n const stageDeals = deals.filter(\n (d: Deal) => d.stage === stageConfig.stage,\n );\n const stageValue = stageDeals.reduce(\n (sum: number, d: Deal) => sum + d.value,\n 0,\n );\n\n return (\n <div key={stageConfig.stage} className=\"flex-1 min-w-[200px]\">\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop overflow-hidden\">\n {/* Column Header */}\n <div className=\"p-3 border-b border-border-subtle\">\n <div className=\"flex items-center gap-2\">\n <div\n className={cn(\n \"h-3 w-3 rounded-full\",\n stageConfig.color,\n )}\n />\n <h4 className=\"text-sm font-semibold text-text-primary\">\n {stageConfig.label}\n </h4>\n <span className=\"ml-auto text-xs text-text-secondary bg-bg-sunken rounded-full px-2 py-0.5\">\n {stageDeals.length}\n </span>\n </div>\n <p className=\"text-xs text-text-secondary mt-1\">\n {formatCurrency(stageValue)}\n </p>\n </div>\n\n {/* Deal Cards */}\n <div className=\"p-2 space-y-2 min-h-[200px] max-h-[500px] overflow-y-auto\">\n {stageDeals.length === 0 ? (\n <div className=\"py-8 text-center text-xs text-text-secondary\">\n No deals\n </div>\n ) : (\n stageDeals.map((deal) => (\n <div\n key={deal.id}\n className=\"rounded-md border border-border-seam bg-gloss-card p-3 transition-shadow hover:shadow-pop\"\n >\n <div className=\"flex items-start justify-between gap-1\">\n <button\n type=\"button\"\n onClick={() => selectRecord(deal.id)}\n className=\"text-sm font-medium text-text-primary leading-tight hover:underline text-left\"\n >\n {deal.name}\n </button>\n <DealActionsMenu\n deal={deal}\n onChanged={refetch}\n />\n </div>\n <div className=\"mt-2 space-y-1.5\">\n <div className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <DollarSign className=\"h-3 w-3\" />\n <span className=\"font-semibold text-text-primary\">\n {formatCurrency(deal.value)}\n </span>\n </div>\n <div className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <User className=\"h-3 w-3\" />\n <span>{deal.contactName}</span>\n </div>\n <div className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <Calendar className=\"h-3 w-3\" />\n <span>\n {formatDate(deal.expectedCloseDate)}\n </span>\n </div>\n </div>\n {deal.probability > 0 && deal.probability < 100 && (\n <div className=\"mt-2 pt-2 border-t border-border-subtle\">\n <div className=\"flex items-center justify-between text-xs\">\n <span className=\"text-text-secondary\">\n Probability\n </span>\n <span className=\"font-medium text-text-primary\">\n {deal.probability}%\n </span>\n </div>\n <div className=\"w-full h-1.5 rounded-full bg-bg-sunken mt-1 overflow-hidden\">\n <div\n className=\"h-full rounded-full bg-action-primary-bg\"\n style={{ width: `${deal.probability}%` }}\n />\n </div>\n </div>\n )}\n <div className=\"mt-2 pt-2 border-t border-border-subtle\">\n <button\n type=\"button\"\n onClick={() =>\n setNextActionDeal({\n id: deal.id,\n name: deal.name,\n stageLabel: stageConfig.label,\n })\n }\n className=\"inline-flex w-full items-center justify-center gap-1 rounded-md border border-border-subtle px-2 py-1 text-[11px] font-medium text-text-primary hover:bg-bg-sunken\"\n >\n <Sparkles className=\"h-3 w-3 text-action-primary-bg\" />\n AI Next Action\n </button>\n </div>\n </div>\n ))\n )}\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n\n {/* Manage pipelines — rename happens in the deal form; here you can\n remove pipelines that are no longer used. */}\n {pipelines.length > 0 && (\n <div className=\"rounded-lg border border-border-seam bg-gloss-card shadow-pop\">\n <div className=\"border-b border-border-subtle p-4\">\n <h3 className=\"text-sm font-semibold text-text-primary\">\n Manage pipelines\n </h3>\n <p className=\"mt-0.5 text-xs text-text-secondary\">\n Remove pipelines you no longer use. Pipelines with open deals\n may need those deals moved first.\n </p>\n </div>\n <ul className=\"divide-y divide-border-subtle\">\n {pipelines.map((pipeline) => {\n const dealCount = dealCountByPipeline[pipeline.id] ?? 0;\n return (\n <li\n key={pipeline.id}\n className=\"flex items-center justify-between gap-3 p-4\"\n >\n <div className=\"min-w-0\">\n <div className=\"flex items-center gap-2\">\n <p className=\"truncate text-sm font-medium text-text-primary\">\n {pipeline.name}\n </p>\n {pipeline.isDefault && (\n <span className=\"rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary\">\n Default\n </span>\n )}\n </div>\n <p className=\"mt-0.5 text-xs text-text-secondary\">\n {pipeline.stages.length} stage\n {pipeline.stages.length === 1 ? \"\" : \"s\"} · {dealCount}{\" \"}\n deal{dealCount === 1 ? \"\" : \"s\"}\n </p>\n </div>\n <PipelineActionsMenu\n pipeline={{ id: pipeline.id, name: pipeline.name }}\n dealCount={dealCount}\n onDeleted={refetch}\n />\n </li>\n );\n })}\n </ul>\n </div>\n )}\n </QueryStateBoundary>\n\n <CreatePipelineModal\n open={showCreatePipeline}\n onClose={() => setShowCreatePipeline(false)}\n onCreated={() => refetch()}\n />\n <DealNextActionModal\n deal={nextActionDeal}\n stageNamesById={stageNamesById}\n onClose={() => setNextActionDeal(null)}\n onApplied={refetch}\n />\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4CA,IAAMC,IAA0B;CAC9B;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;CACA;EACE,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;CACX;AACF,GAEaC,UAAyB;CACpC,IAAM,EAAE,oBAAiBC,EAAmB,GACtC,EAAE,aAAU,gBAAaC,EAAqB,GAC9C,EAAE,SAAM,YAAS,aAAUC,EAA8B,GACzDC,IAAUC,EAAuB,MAAM,GACvC,CAACC,GAAoBC,KAAyBC,EAAS,EAAK,GAC5D,CAACC,GAAgBC,KACrBF,EAAsC,IAAI,GAEtCG,KAAuBC,GAAM,0BAA0B,SAAS,CAAC,EAAA,CAAG,KACvE,MAA+CC,EAAeC,CAAI,CACrE,GACMC,IAAc,OAAO,YACzBJ,EAAS,KAAK,MAAqB,CAACK,EAAQ,IAAIA,CAAO,CAAC,CAC1D,GACMC,KAAiBL,GAAM,uBAAuB,SAAS,CAAC,EAAA,CAAG,KAC9D,MAA4CM,EAAYJ,GAAMC,CAAW,CAC5E,GAEMI,IACJP,GAAM,2BAA2B,SAAS,CAAC,GAEvCQ,IAAiBC,QAAc;EACnC,IAAMC,IAA8B,CAAC;EACrC,KAAK,IAAMC,KAAYJ,GACrB,KAAK,IAAMK,KAASD,EAAS,QAC3B,EAAIC,EAAM,MAAMA,EAAM;EAG1B,OAAOF;CACT,GAAG,CAACH,CAAS,CAAC,GAIRM,IAAsBJ,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C,KAAD;QAAG,WAAU;QAAqC,UAAA;OAG/C,CAAA,CACA;MACL,CAAA,GAAA,kBAAC,MAAD;OAAI,WAAU;OACX,UAAAA,EAAU,KAAK,MAAa;QAC3B,IAAMsC,IAAYhC,EAAoBF,EAAS,OAAO;QACtD,OACE,kBAAC,MAAD;SAEE,WAAU;SAFZ,UAAA,CAIE,kBAAC,OAAD;UAAK,WAAU;UAAf,UAAA,CACE,kBAAC,OAAD;WAAK,WAAU;WAAf,UAAA,CACE,kBAAC,KAAD;YAAG,WAAU;YACV,UAAAA,EAAS;WACT,CAAA,GACFA,EAAS,aACR,kBAAC,QAAD;YAAM,WAAU;YAAoF,UAAA;WAE9F,CAAA,CAEL;UACL,CAAA,GAAA,kBAAC,KAAD;WAAG,WAAU;WAAb,UAAA;YACGA,EAAS,OAAO;YAAO;YACvBA,EAAS,OAAO,WAAW,IAAI,KAAK;YAAI;YAAIkC;YAAW;YAAI;YACvDA,MAAc,IAAI,KAAK;WAC3B;UACA,CAAA,CAAA;SACL,CAAA,GAAA,kBAACC,GAAD;UACE,UAAU;WAAE,IAAInC,EAAS;WAAI,MAAMA,EAAS;UAAK;UACtC;UACX,WAAWnB;SACZ,CAAA,CACC;QAzBG,GAAAmB,EAAS,EAyBZ;OAER,CAAC;MACC,CAAA,CACD;;IAEW;;GAEpB,kBAACoC,GAAD;IACE,MAAMrD;IACN,eAAeC,EAAsB,EAAK;IAC1C,iBAAiBH,EAAQ;GAC1B,CAAA;GACD,kBAACwD,GAAD;IACE,MAAMnD;IACU;IAChB,eAAeC,EAAkB,IAAI;IACrC,WAAWN;GACZ,CAAA;EACS;;AAEhB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-headshotmarketing",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1124.2",
|
|
4
4
|
"description": "Burdenoff HeadshotMarketing Microfrontend - All-in-one marketing automation platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@apollo/client": "^4.3.7",
|
|
56
|
-
"@burdenoff/fe-libs": "2026.
|
|
56
|
+
"@burdenoff/fe-libs": "2026.1124.9",
|
|
57
57
|
"@tanstack/react-query": "^5.106.1",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
59
59
|
"date-fns": "^4.4.0",
|