@burdenoff/microfe-support 2026.510.52
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/README.md +290 -0
- package/dist/generated/global-operations.js +1118 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.js +20 -0
- package/dist/generated/global-types.js.map +1 -0
- package/dist/index.js +11 -0
- package/dist/microfe-support.css +2 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +555 -0
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/dist/node_modules/marked/lib/marked.esm.js +1430 -0
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/support/SupportAdminRoot.js +69 -0
- package/dist/support/SupportAdminRoot.js.map +1 -0
- package/dist/support/SupportAdminRoutes.js +73 -0
- package/dist/support/SupportAdminRoutes.js.map +1 -0
- package/dist/support/SupportUserRoot.js +42 -0
- package/dist/support/SupportUserRoot.js.map +1 -0
- package/dist/support/SupportUserRoutes.js +49 -0
- package/dist/support/SupportUserRoutes.js.map +1 -0
- package/dist/support/components/NotificationToast.js +34 -0
- package/dist/support/components/NotificationToast.js.map +1 -0
- package/dist/support/components/PageLayout.js +87 -0
- package/dist/support/components/PageLayout.js.map +1 -0
- package/dist/support/components/RouteHelpers.js +22 -0
- package/dist/support/components/RouteHelpers.js.map +1 -0
- package/dist/support/components/analytics/CategoryBreakdown.js +63 -0
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -0
- package/dist/support/components/analytics/MetricCard.js +31 -0
- package/dist/support/components/analytics/MetricCard.js.map +1 -0
- package/dist/support/components/analytics/PriorityBreakdown.js +59 -0
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -0
- package/dist/support/components/analytics/SLAReport.js +110 -0
- package/dist/support/components/analytics/SLAReport.js.map +1 -0
- package/dist/support/components/analytics/SatisfactionDistribution.js +150 -0
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -0
- package/dist/support/components/analytics/TopAgents.js +70 -0
- package/dist/support/components/analytics/TopAgents.js.map +1 -0
- package/dist/support/components/analytics/TrendChart.js +48 -0
- package/dist/support/components/analytics/TrendChart.js.map +1 -0
- package/dist/support/components/kb/ArticleForm.js +244 -0
- package/dist/support/components/kb/ArticleForm.js.map +1 -0
- package/dist/support/components/kb/index.js +1 -0
- package/dist/support/components/settings/CannedResponsesSettings.js +84 -0
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -0
- package/dist/support/components/settings/SLAPoliciesSettings.js +249 -0
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -0
- package/dist/support/components/settings/TicketCategoriesSettings.js +360 -0
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -0
- package/dist/support/components/tickets/AttachmentList.js +54 -0
- package/dist/support/components/tickets/AttachmentList.js.map +1 -0
- package/dist/support/components/tickets/MarkdownContent.js +11 -0
- package/dist/support/components/tickets/MarkdownContent.js.map +1 -0
- package/dist/support/components/tickets/MessageComposer.js +137 -0
- package/dist/support/components/tickets/MessageComposer.js.map +1 -0
- package/dist/support/components/tickets/MessageThread.js +88 -0
- package/dist/support/components/tickets/MessageThread.js.map +1 -0
- package/dist/support/components/tickets/TicketDetailHeader.js +123 -0
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -0
- package/dist/support/components/tickets/TicketHeader.js +191 -0
- package/dist/support/components/tickets/TicketHeader.js.map +1 -0
- package/dist/support/components/tickets/TicketSidebar.js +271 -0
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -0
- package/dist/support/components/ui.js +2 -0
- package/dist/support/constants.js +6 -0
- package/dist/support/constants.js.map +1 -0
- package/dist/support/hooks/index.js +5 -0
- package/dist/support/hooks/useAnalyticsOperations.js +61 -0
- package/dist/support/hooks/useAnalyticsOperations.js.map +1 -0
- package/dist/support/hooks/useAttachmentsFailedToast.js +22 -0
- package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -0
- package/dist/support/hooks/useChatOperations.js +146 -0
- package/dist/support/hooks/useChatOperations.js.map +1 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.js +194 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -0
- package/dist/support/hooks/useNotification.js +26 -0
- package/dist/support/hooks/useNotification.js.map +1 -0
- package/dist/support/hooks/useRegisterFooter.js +17 -0
- package/dist/support/hooks/useRegisterFooter.js.map +1 -0
- package/dist/support/hooks/useSettingsOperations.js +145 -0
- package/dist/support/hooks/useSettingsOperations.js.map +1 -0
- package/dist/support/hooks/useSupportAttachments.js +37 -0
- package/dist/support/hooks/useSupportAttachments.js.map +1 -0
- package/dist/support/hooks/useTicketOperations.js +222 -0
- package/dist/support/hooks/useTicketOperations.js.map +1 -0
- package/dist/support/index.js +10 -0
- package/dist/support/pages/AnalyticsPage.js +206 -0
- package/dist/support/pages/AnalyticsPage.js.map +1 -0
- package/dist/support/pages/ArticleDetailAdminPage.js +350 -0
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -0
- package/dist/support/pages/ArticleDetailUserPage.js +150 -0
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -0
- package/dist/support/pages/ContactInquiriesPage.js +314 -0
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -0
- package/dist/support/pages/ContactInquiryDetailPage.js +481 -0
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -0
- package/dist/support/pages/CreateArticlePage.js +120 -0
- package/dist/support/pages/CreateArticlePage.js.map +1 -0
- package/dist/support/pages/CreateTicketPage.js +281 -0
- package/dist/support/pages/CreateTicketPage.js.map +1 -0
- package/dist/support/pages/EditArticlePage.js +151 -0
- package/dist/support/pages/EditArticlePage.js.map +1 -0
- package/dist/support/pages/KnowledgeBaseAdminPage.js +208 -0
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -0
- package/dist/support/pages/KnowledgeBaseUserPage.js +188 -0
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -0
- package/dist/support/pages/SettingsPage.js +215 -0
- package/dist/support/pages/SettingsPage.js.map +1 -0
- package/dist/support/pages/TicketDetailAdminPage.js +157 -0
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -0
- package/dist/support/pages/TicketDetailUserPage.js +292 -0
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -0
- package/dist/support/pages/TicketListPage.js +337 -0
- package/dist/support/pages/TicketListPage.js.map +1 -0
- package/dist/support/providers/SupportProvider.js +40 -0
- package/dist/support/providers/SupportProvider.js.map +1 -0
- package/dist/support/store/supportStore.js +102 -0
- package/dist/support/store/supportStore.js.map +1 -0
- package/dist/support/utils/cn.js +10 -0
- package/dist/support/utils/cn.js.map +1 -0
- package/dist/support/utils/context.js +32 -0
- package/dist/support/utils/context.js.map +1 -0
- package/dist/support/utils/errors.js +13 -0
- package/dist/support/utils/errors.js.map +1 -0
- package/dist/support/utils/i18n.js +9 -0
- package/dist/support/utils/i18n.js.map +1 -0
- package/dist/support/utils/index.js +105 -0
- package/dist/support/utils/index.js.map +1 -0
- package/dist/support/utils/markdown.js +47 -0
- package/dist/support/utils/markdown.js.map +1 -0
- package/dist/support/utils/supportFiles.js +116 -0
- package/dist/support/utils/supportFiles.js.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +145 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { Star as e, ThumbsUp as t } from "lucide-react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
//#region src/support/components/analytics/SatisfactionDistribution.tsx
|
|
4
|
+
function i({ metrics: i }) {
|
|
5
|
+
let a = [
|
|
6
|
+
{
|
|
7
|
+
stars: 5,
|
|
8
|
+
count: i.ratings.rating5
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
stars: 4,
|
|
12
|
+
count: i.ratings.rating4
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
stars: 3,
|
|
16
|
+
count: i.ratings.rating3
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
stars: 2,
|
|
20
|
+
count: i.ratings.rating2
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
stars: 1,
|
|
24
|
+
count: i.ratings.rating1
|
|
25
|
+
}
|
|
26
|
+
], o = Math.max(...a.map((e) => e.count));
|
|
27
|
+
return /* @__PURE__ */ r("div", {
|
|
28
|
+
className: "p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ r("h2", {
|
|
31
|
+
className: "text-xl font-semibold mb-4 flex items-center gap-2 text-primary",
|
|
32
|
+
children: [/* @__PURE__ */ n(t, { size: 20 }), "Customer Satisfaction"]
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ r("div", {
|
|
35
|
+
className: "grid grid-cols-3 gap-4 mb-6",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ r("div", {
|
|
38
|
+
className: "text-center p-3 rounded-lg bg-muted transition-colors duration-200",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ n("p", {
|
|
41
|
+
className: "text-xs font-medium mb-1 text-tertiary",
|
|
42
|
+
children: "Avg Rating"
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ n("p", {
|
|
45
|
+
className: "text-2xl font-bold text-primary",
|
|
46
|
+
children: i.averageRating.toFixed(1)
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ n("div", {
|
|
49
|
+
className: "flex items-center justify-center gap-1 mt-1",
|
|
50
|
+
children: [...[
|
|
51
|
+
,
|
|
52
|
+
,
|
|
53
|
+
,
|
|
54
|
+
,
|
|
55
|
+
,
|
|
56
|
+
]].map((t, r) => /* @__PURE__ */ n(e, {
|
|
57
|
+
size: 12,
|
|
58
|
+
className: r < Math.round(i.averageRating) ? "text-warning fill-warning" : "text-tertiary"
|
|
59
|
+
}, r))
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ r("div", {
|
|
64
|
+
className: "text-center p-3 rounded-lg bg-muted transition-colors duration-200",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ n("p", {
|
|
67
|
+
className: "text-xs font-medium mb-1 text-tertiary",
|
|
68
|
+
children: "CSAT"
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ r("p", {
|
|
71
|
+
className: "text-2xl font-bold text-success",
|
|
72
|
+
children: [i.csat.toFixed(0), "%"]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ n("p", {
|
|
75
|
+
className: "text-xs mt-1 text-tertiary",
|
|
76
|
+
children: "Satisfaction"
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ r("div", {
|
|
81
|
+
className: "text-center p-3 rounded-lg bg-muted transition-colors duration-200",
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ n("p", {
|
|
84
|
+
className: "text-xs font-medium mb-1 text-tertiary",
|
|
85
|
+
children: "NPS"
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ n("p", {
|
|
88
|
+
className: "text-2xl font-bold text-accent",
|
|
89
|
+
children: i.nps.toFixed(0)
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ n("p", {
|
|
92
|
+
className: "text-xs mt-1 text-tertiary",
|
|
93
|
+
children: "Promoter Score"
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ r("div", { children: [/* @__PURE__ */ r("h3", {
|
|
100
|
+
className: "text-sm font-semibold mb-3 text-secondary",
|
|
101
|
+
children: [
|
|
102
|
+
"Rating Distribution (",
|
|
103
|
+
i.totalResponses,
|
|
104
|
+
" responses)"
|
|
105
|
+
]
|
|
106
|
+
}), /* @__PURE__ */ n("div", {
|
|
107
|
+
className: "space-y-2",
|
|
108
|
+
children: a.map((t) => {
|
|
109
|
+
let a = i.totalResponses > 0 ? t.count / i.totalResponses * 100 : 0, s = o > 0 ? t.count / o * 100 : 0;
|
|
110
|
+
return /* @__PURE__ */ r("div", {
|
|
111
|
+
className: "flex items-center gap-3",
|
|
112
|
+
children: [/* @__PURE__ */ r("div", {
|
|
113
|
+
className: "flex items-center gap-1 w-16",
|
|
114
|
+
children: [/* @__PURE__ */ n("span", {
|
|
115
|
+
className: "text-sm font-medium text-primary",
|
|
116
|
+
children: t.stars
|
|
117
|
+
}), /* @__PURE__ */ n(e, {
|
|
118
|
+
size: 14,
|
|
119
|
+
className: "text-warning fill-warning"
|
|
120
|
+
})]
|
|
121
|
+
}), /* @__PURE__ */ r("div", {
|
|
122
|
+
className: "flex-1 flex items-center gap-2",
|
|
123
|
+
children: [/* @__PURE__ */ n("div", {
|
|
124
|
+
className: "flex-1 h-6 rounded bg-muted",
|
|
125
|
+
children: /* @__PURE__ */ n("div", {
|
|
126
|
+
className: "h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-primary",
|
|
127
|
+
style: {
|
|
128
|
+
width: `${s}%`,
|
|
129
|
+
minWidth: t.count > 0 ? "30px" : "0"
|
|
130
|
+
},
|
|
131
|
+
children: t.count > 0 && /* @__PURE__ */ n("span", {
|
|
132
|
+
className: "text-xs font-medium text-primary-foreground",
|
|
133
|
+
children: t.count
|
|
134
|
+
})
|
|
135
|
+
})
|
|
136
|
+
}), /* @__PURE__ */ r("span", {
|
|
137
|
+
className: "text-xs w-12 text-right text-tertiary",
|
|
138
|
+
children: [a.toFixed(0), "%"]
|
|
139
|
+
})]
|
|
140
|
+
})]
|
|
141
|
+
}, t.stars);
|
|
142
|
+
})
|
|
143
|
+
})] })
|
|
144
|
+
]
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
export { i as SatisfactionDistribution };
|
|
149
|
+
|
|
150
|
+
//# sourceMappingURL=SatisfactionDistribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SatisfactionDistribution.js","names":[],"sources":["../../../../src/support/components/analytics/SatisfactionDistribution.tsx"],"sourcesContent":["import { ThumbsUp, Star } from 'lucide-react';\n\ninterface SatisfactionMetrics {\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n totalResponses: number;\n averageRating: number;\n csat: number;\n nps: number;\n ratings: {\n rating1: number;\n rating2: number;\n rating3: number;\n rating4: number;\n rating5: number;\n };\n}\n\ninterface SatisfactionDistributionProps {\n metrics: SatisfactionMetrics;\n}\n\nexport function SatisfactionDistribution({ metrics }: SatisfactionDistributionProps) {\n const ratingsArray = [\n { stars: 5, count: metrics.ratings.rating5 },\n { stars: 4, count: metrics.ratings.rating4 },\n { stars: 3, count: metrics.ratings.rating3 },\n { stars: 2, count: metrics.ratings.rating2 },\n { stars: 1, count: metrics.ratings.rating1 },\n ];\n\n const maxCount = Math.max(...ratingsArray.map((r) => r.count));\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <ThumbsUp size={20} />\n Customer Satisfaction\n </h2>\n\n <div className=\"grid grid-cols-3 gap-4 mb-6\">\n <div className=\"text-center p-3 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Avg Rating</p>\n <p className=\"text-2xl font-bold text-primary\">{metrics.averageRating.toFixed(1)}</p>\n <div className=\"flex items-center justify-center gap-1 mt-1\">\n {[...Array(5)].map((_, i) => (\n <Star\n key={i}\n size={12}\n className={\n i < Math.round(metrics.averageRating)\n ? 'text-warning fill-warning'\n : 'text-tertiary'\n }\n />\n ))}\n </div>\n </div>\n\n <div className=\"text-center p-3 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">CSAT</p>\n <p className=\"text-2xl font-bold text-success\">{metrics.csat.toFixed(0)}%</p>\n <p className=\"text-xs mt-1 text-tertiary\">Satisfaction</p>\n </div>\n\n <div className=\"text-center p-3 rounded-lg bg-muted transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">NPS</p>\n <p className=\"text-2xl font-bold text-accent\">{metrics.nps.toFixed(0)}</p>\n <p className=\"text-xs mt-1 text-tertiary\">Promoter Score</p>\n </div>\n </div>\n\n <div>\n <h3 className=\"text-sm font-semibold mb-3 text-secondary\">\n Rating Distribution ({metrics.totalResponses} responses)\n </h3>\n <div className=\"space-y-2\">\n {ratingsArray.map((item) => {\n const percentage =\n metrics.totalResponses > 0 ? (item.count / metrics.totalResponses) * 100 : 0;\n const widthPercent = maxCount > 0 ? (item.count / maxCount) * 100 : 0;\n\n return (\n <div key={item.stars} className=\"flex items-center gap-3\">\n <div className=\"flex items-center gap-1 w-16\">\n <span className=\"text-sm font-medium text-primary\">{item.stars}</span>\n <Star size={14} className=\"text-warning fill-warning\" />\n </div>\n <div className=\"flex-1 flex items-center gap-2\">\n <div className=\"flex-1 h-6 rounded bg-muted\">\n <div\n className=\"h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-primary\"\n style={{\n width: `${widthPercent}%`,\n minWidth: item.count > 0 ? '30px' : '0',\n }}\n >\n {item.count > 0 && (\n <span className=\"text-xs font-medium text-primary-foreground\">\n {item.count}\n </span>\n )}\n </div>\n </div>\n <span className=\"text-xs w-12 text-right text-tertiary\">\n {percentage.toFixed(0)}%\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,SAAgB,EAAyB,EAAE,cAA0C;CACnF,IAAM,IAAe;EACnB;GAAE,OAAO;GAAG,OAAO,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I,QAAQ,EAAE;QAAK,CAAA;OAC1E,kBAAC,KAAD;QAAG,WAAU;kBAA6B;QAAkB,CAAA;OACxD;;KACF;;GAEN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAAd;KAA0D;KAClC,EAAQ;KAAe;KAC1C;OACL,kBAAC,OAAD;IAAK,WAAU;cACZ,EAAa,KAAK,MAAS;KAC1B,IAAM,IACJ,EAAQ,iBAAiB,IAAK,EAAK,QAAQ,EAAQ,iBAAkB,MAAM,GACvE,IAAe,IAAW,IAAK,EAAK,QAAQ,IAAY,MAAM;AAEpE,YACE,kBAAC,OAAD;MAAsB,WAAU;gBAAhC,CACE,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,QAAD;QAAM,WAAU;kBAAoC,EAAK;QAAa,CAAA,EACtE,kBAAC,GAAD;QAAM,MAAM;QAAI,WAAU;QAA8B,CAAA,CACpD;UACN,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,OAAD;SACE,WAAU;SACV,OAAO;UACL,OAAO,GAAG,EAAa;UACvB,UAAU,EAAK,QAAQ,IAAI,SAAS;UACrC;mBAEA,EAAK,QAAQ,KACZ,kBAAC,QAAD;UAAM,WAAU;oBACb,EAAK;UACD,CAAA;SAEL,CAAA;QACF,CAAA,EACN,kBAAC,QAAD;QAAM,WAAU;kBAAhB,CACG,EAAW,QAAQ,EAAE,EAAC,IAClB;UACH;SACF;QAzBI,EAAK,MAyBT;MAER;IACE,CAAA,CACF,EAAA,CAAA;GACF"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Award as e, Star as t } from "lucide-react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
//#region src/support/components/analytics/TopAgents.tsx
|
|
4
|
+
function i({ agents: i }) {
|
|
5
|
+
let a = i.slice(0, 5);
|
|
6
|
+
return /* @__PURE__ */ r("div", {
|
|
7
|
+
className: "p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2",
|
|
8
|
+
children: [/* @__PURE__ */ r("h2", {
|
|
9
|
+
className: "text-xl font-semibold mb-4 flex items-center gap-2 text-primary",
|
|
10
|
+
children: [/* @__PURE__ */ n(e, { size: 20 }), "Top Performing Agents"]
|
|
11
|
+
}), /* @__PURE__ */ r("div", {
|
|
12
|
+
className: "space-y-4",
|
|
13
|
+
children: [a.map((e) => {
|
|
14
|
+
let i = {
|
|
15
|
+
1: "#fbbf24",
|
|
16
|
+
2: "#d1d5db",
|
|
17
|
+
3: "#cd7f32"
|
|
18
|
+
}[e.rank];
|
|
19
|
+
return /* @__PURE__ */ r("div", {
|
|
20
|
+
className: "flex items-center gap-4 p-3 rounded-lg bg-muted transition-colors duration-200 hover:bg-muted/80",
|
|
21
|
+
children: [/* @__PURE__ */ n("div", {
|
|
22
|
+
className: "w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200 hover:scale-105",
|
|
23
|
+
style: {
|
|
24
|
+
backgroundColor: i ? i + "20" : void 0,
|
|
25
|
+
color: i || void 0
|
|
26
|
+
},
|
|
27
|
+
children: e.rank <= 3 ? "🏆" : e.rank
|
|
28
|
+
}), /* @__PURE__ */ r("div", {
|
|
29
|
+
className: "flex-1 min-w-0",
|
|
30
|
+
children: [/* @__PURE__ */ r("div", {
|
|
31
|
+
className: "flex items-center justify-between mb-1",
|
|
32
|
+
children: [/* @__PURE__ */ n("p", {
|
|
33
|
+
className: "font-semibold truncate text-primary",
|
|
34
|
+
children: e.agent.user.name
|
|
35
|
+
}), /* @__PURE__ */ r("div", {
|
|
36
|
+
className: "flex items-center gap-1",
|
|
37
|
+
children: [/* @__PURE__ */ n(t, {
|
|
38
|
+
size: 14,
|
|
39
|
+
className: "text-warning fill-warning"
|
|
40
|
+
}), /* @__PURE__ */ n("span", {
|
|
41
|
+
className: "text-sm font-medium text-primary",
|
|
42
|
+
children: e.avgRating.toFixed(1)
|
|
43
|
+
})]
|
|
44
|
+
})]
|
|
45
|
+
}), /* @__PURE__ */ r("div", {
|
|
46
|
+
className: "flex items-center justify-between",
|
|
47
|
+
children: [/* @__PURE__ */ n("p", {
|
|
48
|
+
className: "text-xs truncate text-tertiary",
|
|
49
|
+
children: e.agent.user.email
|
|
50
|
+
}), /* @__PURE__ */ r("p", {
|
|
51
|
+
className: "text-xs font-medium text-secondary",
|
|
52
|
+
children: [e.ticketsResolved, " resolved"]
|
|
53
|
+
})]
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
}, e.agent.id);
|
|
57
|
+
}), a.length === 0 && /* @__PURE__ */ n("div", {
|
|
58
|
+
className: "text-center py-8",
|
|
59
|
+
children: /* @__PURE__ */ n("p", {
|
|
60
|
+
className: "text-tertiary",
|
|
61
|
+
children: "No agent data available"
|
|
62
|
+
})
|
|
63
|
+
})]
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { i as TopAgents };
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=TopAgents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopAgents.js","names":[],"sources":["../../../../src/support/components/analytics/TopAgents.tsx"],"sourcesContent":["import { Award, Star } from 'lucide-react';\n\ninterface TopAgent {\n agent: {\n id: string;\n user: {\n id: string;\n name: string;\n email: string;\n avatarUrl?: string | null;\n };\n };\n ticketsResolved: number;\n avgRating: number;\n rank: number;\n}\n\ninterface TopAgentsProps {\n agents: TopAgent[];\n}\n\nexport function TopAgents({ agents }: TopAgentsProps) {\n const topAgents = agents.slice(0, 5);\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <h2 className=\"text-xl font-semibold mb-4 flex items-center gap-2 text-primary\">\n <Award size={20} />\n Top Performing Agents\n </h2>\n\n <div className=\"space-y-4\">\n {topAgents.map((agent) => {\n const medalColors: Record<number, string> = {\n 1: '#fbbf24',\n 2: '#d1d5db',\n 3: '#cd7f32',\n };\n const medalColor = medalColors[agent.rank];\n\n return (\n <div\n key={agent.agent.id}\n className=\"flex items-center gap-4 p-3 rounded-lg bg-muted transition-colors duration-200 hover:bg-muted/80\"\n >\n <div\n className=\"w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200 hover:scale-105\"\n style={{\n backgroundColor: medalColor ? medalColor + '20' : undefined,\n color: medalColor || undefined,\n }}\n >\n {agent.rank <= 3 ? '🏆' : agent.rank}\n </div>\n\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center justify-between mb-1\">\n <p className=\"font-semibold truncate text-primary\">{agent.agent.user.name}</p>\n <div className=\"flex items-center gap-1\">\n <Star size={14} className=\"text-warning fill-warning\" />\n <span className=\"text-sm font-medium text-primary\">\n {agent.avgRating.toFixed(1)}\n </span>\n </div>\n </div>\n <div className=\"flex items-center justify-between\">\n <p className=\"text-xs truncate text-tertiary\">{agent.agent.user.email}</p>\n <p className=\"text-xs font-medium text-secondary\">\n {agent.ticketsResolved} resolved\n </p>\n </div>\n </div>\n </div>\n );\n })}\n\n {topAgents.length === 0 && (\n <div className=\"text-center py-8\">\n <p className=\"text-tertiary\">No agent data available</p>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAqBA,SAAgB,EAAU,EAAE,aAA0B;CACpD,IAAM,IAAY,EAAO,MAAM,GAAG,EAAE;AAEpC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,EAAA,wBAEhB;MAEL,kBAAC,OAAD;GAAK,WAAU;aAAf,CACG,EAAU,KAAK,MAAU;IAMxB,IAAM,IALsC;KAC1C,GAAG;KACH,GAAG;KACH,GAAG;KACJ,CAC8B,EAAM;AAErC,WACE,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,OAAD;MACE,WAAU;MACV,OAAO;OACL,iBAAiB,IAAa,IAAa,OAAO,KAAA;OAClD,OAAO,KAAc,KAAA;OACtB;gBAEA,EAAM,QAAQ,IAAI,OAAO,EAAM;MAC5B,CAAA,EAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,KAAD;QAAG,WAAU;kBAAuC,EAAM,MAAM,KAAK;QAAS,CAAA,EAC9E,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACE,kBAAC,GAAD;SAAM,MAAM;SAAI,WAAU;SAA8B,CAAA,EACxD,kBAAC,QAAD;SAAM,WAAU;mBACb,EAAM,UAAU,QAAQ,EAAE;SACtB,CAAA,CACH;UACF;UACN,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,KAAD;QAAG,WAAU;kBAAkC,EAAM,MAAM,KAAK;QAAU,CAAA,EAC1E,kBAAC,KAAD;QAAG,WAAU;kBAAb,CACG,EAAM,iBAAgB,YACrB;UACA;SACF;QACF;OA9BC,EAAM,MAAM,GA8Bb;KAER,EAED,EAAU,WAAW,KACpB,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAAgB;KAA2B,CAAA;IACpD,CAAA,CAEJ;KACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TrendingUp as e } from "lucide-react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/support/components/analytics/TrendChart.tsx
|
|
4
|
+
function r({ trends: r, period: i }) {
|
|
5
|
+
if (!r || r.length === 0) return null;
|
|
6
|
+
let a = Math.max(...r.map((e) => e.value)), o = Math.min(...r.map((e) => e.value)), s = a - o || 1;
|
|
7
|
+
return /* @__PURE__ */ n("div", {
|
|
8
|
+
className: "p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2",
|
|
9
|
+
children: [/* @__PURE__ */ t("div", {
|
|
10
|
+
className: "flex items-center justify-between mb-6",
|
|
11
|
+
children: /* @__PURE__ */ n("div", { children: [/* @__PURE__ */ n("h2", {
|
|
12
|
+
className: "text-xl font-semibold flex items-center gap-2 text-primary",
|
|
13
|
+
children: [/* @__PURE__ */ t(e, { size: 20 }), "Ticket Volume Trends"]
|
|
14
|
+
}), /* @__PURE__ */ t("p", {
|
|
15
|
+
className: "text-sm mt-1 text-secondary",
|
|
16
|
+
children: i.label
|
|
17
|
+
})] })
|
|
18
|
+
}), /* @__PURE__ */ t("div", {
|
|
19
|
+
className: "space-y-2",
|
|
20
|
+
children: r.map((e, r) => {
|
|
21
|
+
let i = (e.value - o) / s * 100, a = new Date(e.timestamp);
|
|
22
|
+
return /* @__PURE__ */ n("div", {
|
|
23
|
+
className: "flex items-center gap-3 transition-colors duration-200 hover:bg-muted/50 p-1 rounded",
|
|
24
|
+
children: [/* @__PURE__ */ t("span", {
|
|
25
|
+
className: "text-xs w-20 text-right text-tertiary",
|
|
26
|
+
children: e.label || a.toLocaleDateString("en-US", {
|
|
27
|
+
month: "short",
|
|
28
|
+
day: "numeric"
|
|
29
|
+
})
|
|
30
|
+
}), /* @__PURE__ */ n("div", {
|
|
31
|
+
className: "flex-1 flex items-center gap-2",
|
|
32
|
+
children: [/* @__PURE__ */ t("div", {
|
|
33
|
+
className: "h-8 rounded transition-all duration-300 bg-primary/80 hover:bg-primary",
|
|
34
|
+
style: { width: `${Math.max(i, 2)}%` }
|
|
35
|
+
}), /* @__PURE__ */ t("span", {
|
|
36
|
+
className: "text-sm font-medium text-primary",
|
|
37
|
+
children: e.value
|
|
38
|
+
})]
|
|
39
|
+
})]
|
|
40
|
+
}, r);
|
|
41
|
+
})
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { r as TrendChart };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=TrendChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrendChart.js","names":[],"sources":["../../../../src/support/components/analytics/TrendChart.tsx"],"sourcesContent":["import { TrendingUp } from 'lucide-react';\n\ninterface TrendDataPoint {\n timestamp: string;\n value: number;\n label?: string | null;\n}\n\ninterface TrendChartProps {\n trends: TrendDataPoint[];\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n}\n\nexport function TrendChart({ trends, period }: TrendChartProps) {\n if (!trends || trends.length === 0) {\n return null;\n }\n\n const maxValue = Math.max(...trends.map((t) => t.value));\n const minValue = Math.min(...trends.map((t) => t.value));\n const range = maxValue - minValue || 1;\n\n return (\n <div className=\"p-6 rounded-lg border border-default bg-surface transition-all duration-200 hover:shadow-sm animate-in fade-in-0 slide-in-from-bottom-2\">\n <div className=\"flex items-center justify-between mb-6\">\n <div>\n <h2 className=\"text-xl font-semibold flex items-center gap-2 text-primary\">\n <TrendingUp size={20} />\n Ticket Volume Trends\n </h2>\n <p className=\"text-sm mt-1 text-secondary\">{period.label}</p>\n </div>\n </div>\n\n <div className=\"space-y-2\">\n {trends.map((point, index) => {\n const heightPercent = ((point.value - minValue) / range) * 100;\n const date = new Date(point.timestamp);\n const label =\n point.label || date.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });\n\n return (\n <div\n key={index}\n className=\"flex items-center gap-3 transition-colors duration-200 hover:bg-muted/50 p-1 rounded\"\n >\n <span className=\"text-xs w-20 text-right text-tertiary\">{label}</span>\n <div className=\"flex-1 flex items-center gap-2\">\n <div\n className=\"h-8 rounded transition-all duration-300 bg-primary/80 hover:bg-primary\"\n style={{\n width: `${Math.max(heightPercent, 2)}%`,\n }}\n />\n <span className=\"text-sm font-medium text-primary\">{point.value}</span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAiBA,SAAgB,EAAW,EAAE,WAAQ,aAA2B;AAC9D,KAAI,CAAC,KAAU,EAAO,WAAW,EAC/B,QAAO;CAGT,IAAM,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,MAAM,CAAC,EAClD,IAAW,KAAK,IAAI,GAAG,EAAO,KAAK,MAAM,EAAE,MAAM,CAAC,EAClD,IAAQ,IAAW,KAAY;AAErC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA,EAAA,uBAErB;OACL,kBAAC,KAAD;IAAG,WAAU;cAA+B,EAAO;IAAU,CAAA,CACzD,EAAA,CAAA;GACF,CAAA,EAEN,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAO,KAAK,GAAO,MAAU;IAC5B,IAAM,KAAkB,EAAM,QAAQ,KAAY,IAAS,KACrD,IAAO,IAAI,KAAK,EAAM,UAAU;AAItC,WACE,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,QAAD;MAAM,WAAU;gBAPlB,EAAM,SAAS,EAAK,mBAAmB,SAAS;OAAE,OAAO;OAAS,KAAK;OAAW,CAAC;MAOX,CAAA,EACtE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OACE,WAAU;OACV,OAAO,EACL,OAAO,GAAG,KAAK,IAAI,GAAe,EAAE,CAAC,IACtC;OACD,CAAA,EACF,kBAAC,QAAD;OAAM,WAAU;iBAAoC,EAAM;OAAa,CAAA,CACnE;QACF;OAbC,EAaD;KAER;GACE,CAAA,CACF"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { Button as e, Input as t } from "../ui.js";
|
|
2
|
+
import { g as n } from "../../../node_modules/marked/lib/marked.esm.js";
|
|
3
|
+
import { useMemo as r, useState as i } from "react";
|
|
4
|
+
import { Edit as a, Eye as o, Loader2 as s, Save as c, X as l } from "lucide-react";
|
|
5
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
+
//#region src/support/components/kb/ArticleForm.tsx
|
|
7
|
+
function p(e) {
|
|
8
|
+
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").substring(0, 100);
|
|
9
|
+
}
|
|
10
|
+
function m({ initialData: m, categories: h, onSubmit: g, onCancel: _, isSubmitting: v, submitLabel: y = "Save Article" }) {
|
|
11
|
+
let [b, x] = i({
|
|
12
|
+
title: m?.title || "",
|
|
13
|
+
slug: m?.slug || "",
|
|
14
|
+
content: m?.content || "",
|
|
15
|
+
excerpt: m?.excerpt || "",
|
|
16
|
+
categoryId: m?.categoryId || "",
|
|
17
|
+
tags: m?.tags || [],
|
|
18
|
+
metaDescription: m?.metaDescription || "",
|
|
19
|
+
status: m?.status || "DRAFT"
|
|
20
|
+
}), [S, C] = i(m?.tags?.join(", ") || ""), [w, T] = i(!1), [E, D] = i(!1), O = r(() => {
|
|
21
|
+
if (!b.content) return "";
|
|
22
|
+
try {
|
|
23
|
+
return n.setOptions({
|
|
24
|
+
breaks: !0,
|
|
25
|
+
gfm: !0
|
|
26
|
+
}), n.parse(b.content);
|
|
27
|
+
} catch {
|
|
28
|
+
return b.content;
|
|
29
|
+
}
|
|
30
|
+
}, [b.content]), k = (e) => {
|
|
31
|
+
x(w ? (t) => ({
|
|
32
|
+
...t,
|
|
33
|
+
title: e
|
|
34
|
+
}) : (t) => ({
|
|
35
|
+
...t,
|
|
36
|
+
title: e,
|
|
37
|
+
slug: p(e)
|
|
38
|
+
}));
|
|
39
|
+
}, A = (e) => {
|
|
40
|
+
C(e);
|
|
41
|
+
let t = e.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
|
|
42
|
+
x((e) => ({
|
|
43
|
+
...e,
|
|
44
|
+
tags: t
|
|
45
|
+
}));
|
|
46
|
+
}, j = (e) => {
|
|
47
|
+
T(!0), x((t) => ({
|
|
48
|
+
...t,
|
|
49
|
+
slug: e
|
|
50
|
+
}));
|
|
51
|
+
}, M = async (e) => {
|
|
52
|
+
e.preventDefault(), await g(b);
|
|
53
|
+
}, N = b.title.trim() && b.slug.trim() && b.content.trim();
|
|
54
|
+
return /* @__PURE__ */ f("form", {
|
|
55
|
+
onSubmit: M,
|
|
56
|
+
className: "space-y-6",
|
|
57
|
+
children: [/* @__PURE__ */ f("div", {
|
|
58
|
+
className: "p-6 rounded-xl border bg-card space-y-6",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("label", {
|
|
61
|
+
className: "block text-sm font-medium mb-2 text-foreground",
|
|
62
|
+
children: ["Title ", /* @__PURE__ */ d("span", {
|
|
63
|
+
className: "text-destructive",
|
|
64
|
+
children: "*"
|
|
65
|
+
})]
|
|
66
|
+
}), /* @__PURE__ */ d(t, {
|
|
67
|
+
type: "text",
|
|
68
|
+
required: !0,
|
|
69
|
+
value: b.title,
|
|
70
|
+
onChange: (e) => k(e.target.value),
|
|
71
|
+
placeholder: "Article title"
|
|
72
|
+
})] }),
|
|
73
|
+
/* @__PURE__ */ f("div", { children: [
|
|
74
|
+
/* @__PURE__ */ f("label", {
|
|
75
|
+
className: "block text-sm font-medium mb-2 text-foreground",
|
|
76
|
+
children: ["URL Slug ", /* @__PURE__ */ d("span", {
|
|
77
|
+
className: "text-destructive",
|
|
78
|
+
children: "*"
|
|
79
|
+
})]
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ f("div", {
|
|
82
|
+
className: "flex items-center gap-2",
|
|
83
|
+
children: [/* @__PURE__ */ d("span", {
|
|
84
|
+
className: "text-sm text-muted-foreground",
|
|
85
|
+
children: "/kb/articles/"
|
|
86
|
+
}), /* @__PURE__ */ d(t, {
|
|
87
|
+
type: "text",
|
|
88
|
+
required: !0,
|
|
89
|
+
value: b.slug,
|
|
90
|
+
onChange: (e) => j(e.target.value),
|
|
91
|
+
placeholder: "article-url-slug",
|
|
92
|
+
className: "flex-1"
|
|
93
|
+
})]
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ d("p", {
|
|
96
|
+
className: "text-xs text-muted-foreground mt-1",
|
|
97
|
+
children: "Auto-generated from title. Edit to customize."
|
|
98
|
+
})
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
101
|
+
className: "block text-sm font-medium mb-2 text-foreground",
|
|
102
|
+
children: "Excerpt"
|
|
103
|
+
}), /* @__PURE__ */ d("textarea", {
|
|
104
|
+
rows: 3,
|
|
105
|
+
value: b.excerpt,
|
|
106
|
+
onChange: (e) => x({
|
|
107
|
+
...b,
|
|
108
|
+
excerpt: e.target.value
|
|
109
|
+
}),
|
|
110
|
+
className: "w-full px-4 py-3 rounded-lg border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
111
|
+
placeholder: "Brief summary of the article (displayed in search results)"
|
|
112
|
+
})] }),
|
|
113
|
+
/* @__PURE__ */ f("div", { children: [
|
|
114
|
+
/* @__PURE__ */ f("div", {
|
|
115
|
+
className: "flex items-center justify-between mb-2",
|
|
116
|
+
children: [/* @__PURE__ */ f("label", {
|
|
117
|
+
className: "text-sm font-medium text-foreground",
|
|
118
|
+
children: ["Content ", /* @__PURE__ */ d("span", {
|
|
119
|
+
className: "text-destructive",
|
|
120
|
+
children: "*"
|
|
121
|
+
})]
|
|
122
|
+
}), /* @__PURE__ */ d(e, {
|
|
123
|
+
type: "button",
|
|
124
|
+
variant: "ghost",
|
|
125
|
+
size: "sm",
|
|
126
|
+
onClick: () => D(!E),
|
|
127
|
+
className: "text-xs",
|
|
128
|
+
children: E ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(a, { size: 14 }), "Edit"] }) : /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(o, { size: 14 }), "Preview"] })
|
|
129
|
+
})]
|
|
130
|
+
}),
|
|
131
|
+
E ? /* @__PURE__ */ d("div", {
|
|
132
|
+
className: "w-full min-h-[400px] px-4 py-3 rounded-lg border bg-background overflow-auto",
|
|
133
|
+
children: /* @__PURE__ */ d("div", {
|
|
134
|
+
className: "prose prose-sm max-w-none dark:prose-invert",
|
|
135
|
+
dangerouslySetInnerHTML: { __html: O || "<p class=\"text-muted-foreground\">Nothing to preview</p>" }
|
|
136
|
+
})
|
|
137
|
+
}) : /* @__PURE__ */ d("textarea", {
|
|
138
|
+
required: !0,
|
|
139
|
+
rows: 20,
|
|
140
|
+
value: b.content,
|
|
141
|
+
onChange: (e) => x({
|
|
142
|
+
...b,
|
|
143
|
+
content: e.target.value
|
|
144
|
+
}),
|
|
145
|
+
className: "w-full px-4 py-3 rounded-lg border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors font-mono text-sm",
|
|
146
|
+
placeholder: "Article content (supports Markdown)"
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ d("p", {
|
|
149
|
+
className: "text-xs text-muted-foreground mt-1",
|
|
150
|
+
children: "Supports Markdown: **bold**, *italic*, # headings, - lists, [links](url), ```code```"
|
|
151
|
+
})
|
|
152
|
+
] }),
|
|
153
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
154
|
+
className: "block text-sm font-medium mb-2 text-foreground",
|
|
155
|
+
children: "Category"
|
|
156
|
+
}), /* @__PURE__ */ f("select", {
|
|
157
|
+
value: b.categoryId,
|
|
158
|
+
onChange: (e) => x({
|
|
159
|
+
...b,
|
|
160
|
+
categoryId: e.target.value
|
|
161
|
+
}),
|
|
162
|
+
className: "w-full px-4 py-3 rounded-lg border bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
163
|
+
children: [/* @__PURE__ */ d("option", {
|
|
164
|
+
value: "",
|
|
165
|
+
children: "Select a category"
|
|
166
|
+
}), h.map((e) => /* @__PURE__ */ d("option", {
|
|
167
|
+
value: e.id,
|
|
168
|
+
children: e.name
|
|
169
|
+
}, e.id))]
|
|
170
|
+
})] }),
|
|
171
|
+
/* @__PURE__ */ f("div", { children: [
|
|
172
|
+
/* @__PURE__ */ d("label", {
|
|
173
|
+
className: "block text-sm font-medium mb-2 text-foreground",
|
|
174
|
+
children: "Tags"
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ d(t, {
|
|
177
|
+
type: "text",
|
|
178
|
+
value: S,
|
|
179
|
+
onChange: (e) => A(e.target.value),
|
|
180
|
+
placeholder: "Enter tags separated by commas (e.g., billing, account, setup)"
|
|
181
|
+
}),
|
|
182
|
+
b.tags.length > 0 && /* @__PURE__ */ d("div", {
|
|
183
|
+
className: "flex flex-wrap gap-2 mt-2",
|
|
184
|
+
children: b.tags.map((e, t) => /* @__PURE__ */ d("span", {
|
|
185
|
+
className: "px-2 py-1 text-xs rounded-full bg-primary/10 text-primary",
|
|
186
|
+
children: e
|
|
187
|
+
}, t))
|
|
188
|
+
})
|
|
189
|
+
] }),
|
|
190
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
191
|
+
className: "block text-sm font-medium mb-2 text-foreground",
|
|
192
|
+
children: "Meta Description"
|
|
193
|
+
}), /* @__PURE__ */ d("textarea", {
|
|
194
|
+
rows: 2,
|
|
195
|
+
value: b.metaDescription,
|
|
196
|
+
onChange: (e) => x({
|
|
197
|
+
...b,
|
|
198
|
+
metaDescription: e.target.value
|
|
199
|
+
}),
|
|
200
|
+
className: "w-full px-4 py-3 rounded-lg border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
201
|
+
placeholder: "SEO meta description (optional)"
|
|
202
|
+
})] }),
|
|
203
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
204
|
+
className: "block text-sm font-medium mb-2 text-foreground",
|
|
205
|
+
children: "Status"
|
|
206
|
+
}), /* @__PURE__ */ f("select", {
|
|
207
|
+
value: b.status,
|
|
208
|
+
onChange: (e) => x({
|
|
209
|
+
...b,
|
|
210
|
+
status: e.target.value
|
|
211
|
+
}),
|
|
212
|
+
className: "w-full px-4 py-3 rounded-lg border bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
213
|
+
children: [/* @__PURE__ */ d("option", {
|
|
214
|
+
value: "DRAFT",
|
|
215
|
+
children: "Draft - Not visible to users"
|
|
216
|
+
}), /* @__PURE__ */ d("option", {
|
|
217
|
+
value: "PUBLISHED",
|
|
218
|
+
children: "Published - Visible to all users"
|
|
219
|
+
})]
|
|
220
|
+
})] })
|
|
221
|
+
]
|
|
222
|
+
}), /* @__PURE__ */ f("div", {
|
|
223
|
+
className: "flex gap-3",
|
|
224
|
+
children: [/* @__PURE__ */ d(e, {
|
|
225
|
+
type: "submit",
|
|
226
|
+
disabled: v || !N,
|
|
227
|
+
className: "flex-1",
|
|
228
|
+
children: v ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(s, {
|
|
229
|
+
size: 18,
|
|
230
|
+
className: "animate-spin"
|
|
231
|
+
}), "Saving..."] }) : /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(c, { size: 18 }), y] })
|
|
232
|
+
}), /* @__PURE__ */ f(e, {
|
|
233
|
+
type: "button",
|
|
234
|
+
variant: "outline",
|
|
235
|
+
onClick: _,
|
|
236
|
+
children: [/* @__PURE__ */ d(l, { size: 18 }), "Cancel"]
|
|
237
|
+
})]
|
|
238
|
+
})]
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
//#endregion
|
|
242
|
+
export { m as ArticleForm };
|
|
243
|
+
|
|
244
|
+
//# sourceMappingURL=ArticleForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArticleForm.js","names":[],"sources":["../../../../src/support/components/kb/ArticleForm.tsx"],"sourcesContent":["import { useState, useMemo } from 'react';\nimport { Loader2, Save, X, Eye, Edit } from 'lucide-react';\nimport { Button, Input } from '../ui';\nimport { marked } from 'marked';\n\nexport interface ArticleFormData {\n title: string;\n slug: string;\n content: string;\n excerpt: string;\n categoryId: string;\n tags: string[];\n metaDescription: string;\n status: 'DRAFT' | 'PUBLISHED';\n}\n\ninterface Category {\n id: string;\n name: string;\n color?: string;\n}\n\ninterface ArticleFormProps {\n initialData?: Partial<ArticleFormData>;\n categories: Category[];\n onSubmit: (data: ArticleFormData) => Promise<void>;\n onCancel: () => void;\n isSubmitting: boolean;\n submitLabel?: string;\n}\n\n// Generate URL-friendly slug from title\nfunction generateSlug(title: string): string {\n return title\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .substring(0, 100);\n}\n\nexport function ArticleForm({\n initialData,\n categories,\n onSubmit,\n onCancel,\n isSubmitting,\n submitLabel = 'Save Article',\n}: ArticleFormProps) {\n const [formData, setFormData] = useState<ArticleFormData>({\n title: initialData?.title || '',\n slug: initialData?.slug || '',\n content: initialData?.content || '',\n excerpt: initialData?.excerpt || '',\n categoryId: initialData?.categoryId || '',\n tags: initialData?.tags || [],\n metaDescription: initialData?.metaDescription || '',\n status: initialData?.status || 'DRAFT',\n });\n\n const [tagsInput, setTagsInput] = useState(initialData?.tags?.join(', ') || '');\n const [slugManuallyEdited, setSlugManuallyEdited] = useState(false);\n const [showPreview, setShowPreview] = useState(false);\n\n // Parse markdown content for preview\n const parsedContent = useMemo(() => {\n if (!formData.content) return '';\n try {\n marked.setOptions({\n breaks: true,\n gfm: true,\n });\n return marked.parse(formData.content) as string;\n } catch {\n return formData.content;\n }\n }, [formData.content]);\n\n // Handle title change with auto-slug generation\n const handleTitleChange = (title: string) => {\n if (!slugManuallyEdited) {\n setFormData((prev) => ({\n ...prev,\n title,\n slug: generateSlug(title),\n }));\n } else {\n setFormData((prev) => ({ ...prev, title }));\n }\n };\n\n // Parse tags from comma-separated input\n const handleTagsChange = (value: string) => {\n setTagsInput(value);\n const tags = value\n .split(',')\n .map((tag) => tag.trim())\n .filter((tag) => tag.length > 0);\n setFormData((prev) => ({ ...prev, tags }));\n };\n\n const handleSlugChange = (value: string) => {\n setSlugManuallyEdited(true);\n setFormData((prev) => ({ ...prev, slug: value }));\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n await onSubmit(formData);\n };\n\n const isValid = formData.title.trim() && formData.slug.trim() && formData.content.trim();\n\n return (\n <form onSubmit={handleSubmit} className=\"space-y-6\">\n <div className=\"p-6 rounded-xl border bg-card space-y-6\">\n {/* Title */}\n <div>\n <label className=\"block text-sm font-medium mb-2 text-foreground\">\n Title <span className=\"text-destructive\">*</span>\n </label>\n <Input\n type=\"text\"\n required\n value={formData.title}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleTitleChange(e.target.value)}\n placeholder=\"Article title\"\n />\n </div>\n\n {/* Slug */}\n <div>\n <label className=\"block text-sm font-medium mb-2 text-foreground\">\n URL Slug <span className=\"text-destructive\">*</span>\n </label>\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm text-muted-foreground\">/kb/articles/</span>\n <Input\n type=\"text\"\n required\n value={formData.slug}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n handleSlugChange(e.target.value)\n }\n placeholder=\"article-url-slug\"\n className=\"flex-1\"\n />\n </div>\n <p className=\"text-xs text-muted-foreground mt-1\">\n Auto-generated from title. Edit to customize.\n </p>\n </div>\n\n {/* Excerpt */}\n <div>\n <label className=\"block text-sm font-medium mb-2 text-foreground\">Excerpt</label>\n <textarea\n rows={3}\n value={formData.excerpt}\n onChange={(e) => setFormData({ ...formData, excerpt: e.target.value })}\n className=\"w-full px-4 py-3 rounded-lg border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors\"\n placeholder=\"Brief summary of the article (displayed in search results)\"\n />\n </div>\n\n {/* Content */}\n <div>\n <div className=\"flex items-center justify-between mb-2\">\n <label className=\"text-sm font-medium text-foreground\">\n Content <span className=\"text-destructive\">*</span>\n </label>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => setShowPreview(!showPreview)}\n className=\"text-xs\"\n >\n {showPreview ? (\n <>\n <Edit size={14} />\n Edit\n </>\n ) : (\n <>\n <Eye size={14} />\n Preview\n </>\n )}\n </Button>\n </div>\n\n {showPreview ? (\n <div className=\"w-full min-h-[400px] px-4 py-3 rounded-lg border bg-background overflow-auto\">\n <div\n className=\"prose prose-sm max-w-none dark:prose-invert\"\n dangerouslySetInnerHTML={{\n __html:\n parsedContent || '<p class=\"text-muted-foreground\">Nothing to preview</p>',\n }}\n />\n </div>\n ) : (\n <textarea\n required\n rows={20}\n value={formData.content}\n onChange={(e) => setFormData({ ...formData, content: e.target.value })}\n className=\"w-full px-4 py-3 rounded-lg border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors font-mono text-sm\"\n placeholder=\"Article content (supports Markdown)\"\n />\n )}\n <p className=\"text-xs text-muted-foreground mt-1\">\n Supports Markdown: **bold**, *italic*, # headings, - lists, [links](url), ```code```\n </p>\n </div>\n\n {/* Category */}\n <div>\n <label className=\"block text-sm font-medium mb-2 text-foreground\">Category</label>\n <select\n value={formData.categoryId}\n onChange={(e) => setFormData({ ...formData, categoryId: e.target.value })}\n className=\"w-full px-4 py-3 rounded-lg border bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors\"\n >\n <option value=\"\">Select a category</option>\n {categories.map((cat) => (\n <option key={cat.id} value={cat.id}>\n {cat.name}\n </option>\n ))}\n </select>\n </div>\n\n {/* Tags */}\n <div>\n <label className=\"block text-sm font-medium mb-2 text-foreground\">Tags</label>\n <Input\n type=\"text\"\n value={tagsInput}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleTagsChange(e.target.value)}\n placeholder=\"Enter tags separated by commas (e.g., billing, account, setup)\"\n />\n {formData.tags.length > 0 && (\n <div className=\"flex flex-wrap gap-2 mt-2\">\n {formData.tags.map((tag, index) => (\n <span\n key={index}\n className=\"px-2 py-1 text-xs rounded-full bg-primary/10 text-primary\"\n >\n {tag}\n </span>\n ))}\n </div>\n )}\n </div>\n\n {/* Meta Description */}\n <div>\n <label className=\"block text-sm font-medium mb-2 text-foreground\">Meta Description</label>\n <textarea\n rows={2}\n value={formData.metaDescription}\n onChange={(e) => setFormData({ ...formData, metaDescription: e.target.value })}\n className=\"w-full px-4 py-3 rounded-lg border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors\"\n placeholder=\"SEO meta description (optional)\"\n />\n </div>\n\n {/* Status */}\n <div>\n <label className=\"block text-sm font-medium mb-2 text-foreground\">Status</label>\n <select\n value={formData.status}\n onChange={(e) =>\n setFormData({ ...formData, status: e.target.value as 'DRAFT' | 'PUBLISHED' })\n }\n className=\"w-full px-4 py-3 rounded-lg border bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors\"\n >\n <option value=\"DRAFT\">Draft - Not visible to users</option>\n <option value=\"PUBLISHED\">Published - Visible to all users</option>\n </select>\n </div>\n </div>\n\n {/* Actions */}\n <div className=\"flex gap-3\">\n <Button type=\"submit\" disabled={isSubmitting || !isValid} className=\"flex-1\">\n {isSubmitting ? (\n <>\n <Loader2 size={18} className=\"animate-spin\" />\n Saving...\n </>\n ) : (\n <>\n <Save size={18} />\n {submitLabel}\n </>\n )}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={onCancel}>\n <X size={18} />\n Cancel\n </Button>\n </div>\n </form>\n );\n}\n"],"mappings":";;;;;;AAgCA,SAAS,EAAa,GAAuB;AAC3C,QAAO,EACJ,aAAa,CACb,QAAQ,eAAe,IAAI,CAC3B,QAAQ,YAAY,GAAG,CACvB,UAAU,GAAG,IAAI;;AAGtB,SAA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