@burdenoff/microfe-support 2026.608.1 → 2026.624.1
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/support/components/PageLayout.js +8 -8
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js +2 -2
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js +5 -5
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js +6 -6
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js +3 -3
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +2 -2
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.js +23 -23
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js +10 -10
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js +10 -10
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js +37 -37
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js +4 -4
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +12 -12
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/MessageThread.js +6 -6
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +4 -4
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js +6 -6
- package/dist/support/components/tickets/TicketHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketSidebar.js +44 -44
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/pages/AnalyticsPage.js +2 -2
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +11 -11
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +7 -7
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +5 -5
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +2 -2
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +4 -4
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +18 -18
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +5 -5
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +5 -5
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +16 -16
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +15 -15
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +3 -3
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +8 -8
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +17 -17
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +18 -18
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/utils/categoryColors.js +1 -1
- package/dist/support/utils/categoryColors.js.map +1 -1
- package/dist/support/utils/uiTokens.js +1 -1
- package/dist/support/utils/uiTokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,14 +24,14 @@ function i({ children: i, title: a, subtitle: o, icon: s, headerActions: c, head
|
|
|
24
24
|
children: [(a || s) && /* @__PURE__ */ n("div", {
|
|
25
25
|
className: "flex items-center gap-3",
|
|
26
26
|
children: [s && /* @__PURE__ */ t("div", {
|
|
27
|
-
className: "flex-shrink-0 p-2.5 rounded-xl bg-primary/10 text-primary",
|
|
27
|
+
className: "flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary",
|
|
28
28
|
children: s
|
|
29
29
|
}), a && /* @__PURE__ */ t("h1", {
|
|
30
|
-
className: "text-2xl sm:text-3xl font-bold tracking-tight text-
|
|
30
|
+
className: "text-2xl sm:text-3xl font-bold tracking-tight text-text-primary",
|
|
31
31
|
children: a
|
|
32
32
|
})]
|
|
33
33
|
}), o && /* @__PURE__ */ t("p", {
|
|
34
|
-
className: "text-sm sm:text-base text-
|
|
34
|
+
className: "text-sm sm:text-base text-text-secondary max-w-2xl",
|
|
35
35
|
children: o
|
|
36
36
|
})]
|
|
37
37
|
}), c && /* @__PURE__ */ t("div", {
|
|
@@ -54,15 +54,15 @@ function a({ icon: r, title: i, description: a, action: o, className: s }) {
|
|
|
54
54
|
className: e("flex flex-col items-center justify-center", "py-12 sm:py-16 px-4", "text-center", "animate-in fade-in-0 zoom-in-95 duration-300", s),
|
|
55
55
|
children: [
|
|
56
56
|
r && /* @__PURE__ */ t("div", {
|
|
57
|
-
className: "mb-4 p-4 rounded-2xl bg-
|
|
57
|
+
className: "mb-4 p-4 rounded-2xl bg-bg-sunken/50 text-text-secondary",
|
|
58
58
|
children: r
|
|
59
59
|
}),
|
|
60
60
|
/* @__PURE__ */ t("h3", {
|
|
61
|
-
className: "text-lg font-semibold text-
|
|
61
|
+
className: "text-lg font-semibold text-text-primary mb-1",
|
|
62
62
|
children: i
|
|
63
63
|
}),
|
|
64
64
|
a && /* @__PURE__ */ t("p", {
|
|
65
|
-
className: "text-sm text-
|
|
65
|
+
className: "text-sm text-text-secondary max-w-sm mb-4",
|
|
66
66
|
children: a
|
|
67
67
|
}),
|
|
68
68
|
o
|
|
@@ -74,9 +74,9 @@ function o({ message: r = "Loading...", className: i }) {
|
|
|
74
74
|
className: e("flex flex-col items-center justify-center py-20", i),
|
|
75
75
|
children: [/* @__PURE__ */ n("div", {
|
|
76
76
|
className: "relative",
|
|
77
|
-
children: [/* @__PURE__ */ t("div", { className: "absolute inset-0 bg-primary/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ t("div", { className: "relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin" })]
|
|
77
|
+
children: [/* @__PURE__ */ t("div", { className: "absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse" }), /* @__PURE__ */ t("div", { className: "relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin" })]
|
|
78
78
|
}), /* @__PURE__ */ t("span", {
|
|
79
|
-
className: "mt-6 text-sm font-medium text-
|
|
79
|
+
className: "mt-6 text-sm font-medium text-text-secondary",
|
|
80
80
|
children: r
|
|
81
81
|
})]
|
|
82
82
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/support/components/PageLayout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n children: ReactNode;\n /** Page title */\n title?: string;\n /** Page subtitle/description */\n subtitle?: string;\n /** Icon component to display next to title */\n icon?: ReactNode;\n /** Actions to display in header (buttons, etc.) */\n headerActions?: ReactNode;\n /** Additional header content below title */\n headerContent?: ReactNode;\n /** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */\n maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';\n /** Whether to show the header section */\n showHeader?: boolean;\n /** Additional CSS classes for the container */\n className?: string;\n /** Additional CSS classes for the content area */\n contentClassName?: string;\n}\n\nconst maxWidthClasses = {\n sm: 'max-w-screen-sm', // 640px\n md: 'max-w-screen-md', // 768px\n lg: 'max-w-screen-lg', // 1024px\n xl: 'max-w-screen-xl', // 1280px\n '2xl': 'max-w-screen-2xl', // 1536px\n '3xl': 'max-w-[1600px]',\n full: 'max-w-full',\n};\n\n/**\n * PageLayout - A consistent page wrapper with responsive design for Support module\n *\n * Features:\n * - Proper max-width constraints\n * - Responsive padding\n * - Animated entrance\n * - Consistent header styling\n */\nexport function PageLayout({\n children,\n title,\n subtitle,\n icon,\n headerActions,\n headerContent,\n maxWidth = 'xl',\n showHeader = true,\n className,\n contentClassName,\n}: PageLayoutProps) {\n return (\n <div\n className={cn(\n // Base styles - full width container with padding\n 'min-size-full',\n // Responsive horizontal padding\n 'px-4 sm:px-6 lg:px-8 xl:px-12',\n // Responsive vertical padding\n 'py-6 sm:py-8 lg:py-10',\n // Entrance animation\n 'animate-in fade-in-0 slide-in-from-bottom-4 duration-500',\n className\n )}\n >\n {/* Max-width constrained content container */}\n <div className={cn('mx-auto w-full', maxWidthClasses[maxWidth], contentClassName)}>\n {/* Page Header */}\n {showHeader && (title || headerActions) && (\n <header className=\"mb-6 sm:mb-8\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n {/* Title Section */}\n <div className=\"space-y-1\">\n {(title || icon) && (\n <div className=\"flex items-center gap-3\">\n {icon && (\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-primary/10 text-primary\">\n {icon}\n </div>\n )}\n {title && (\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-
|
|
1
|
+
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/support/components/PageLayout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n children: ReactNode;\n /** Page title */\n title?: string;\n /** Page subtitle/description */\n subtitle?: string;\n /** Icon component to display next to title */\n icon?: ReactNode;\n /** Actions to display in header (buttons, etc.) */\n headerActions?: ReactNode;\n /** Additional header content below title */\n headerContent?: ReactNode;\n /** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */\n maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';\n /** Whether to show the header section */\n showHeader?: boolean;\n /** Additional CSS classes for the container */\n className?: string;\n /** Additional CSS classes for the content area */\n contentClassName?: string;\n}\n\nconst maxWidthClasses = {\n sm: 'max-w-screen-sm', // 640px\n md: 'max-w-screen-md', // 768px\n lg: 'max-w-screen-lg', // 1024px\n xl: 'max-w-screen-xl', // 1280px\n '2xl': 'max-w-screen-2xl', // 1536px\n '3xl': 'max-w-[1600px]',\n full: 'max-w-full',\n};\n\n/**\n * PageLayout - A consistent page wrapper with responsive design for Support module\n *\n * Features:\n * - Proper max-width constraints\n * - Responsive padding\n * - Animated entrance\n * - Consistent header styling\n */\nexport function PageLayout({\n children,\n title,\n subtitle,\n icon,\n headerActions,\n headerContent,\n maxWidth = 'xl',\n showHeader = true,\n className,\n contentClassName,\n}: PageLayoutProps) {\n return (\n <div\n className={cn(\n // Base styles - full width container with padding\n 'min-size-full',\n // Responsive horizontal padding\n 'px-4 sm:px-6 lg:px-8 xl:px-12',\n // Responsive vertical padding\n 'py-6 sm:py-8 lg:py-10',\n // Entrance animation\n 'animate-in fade-in-0 slide-in-from-bottom-4 duration-500',\n className\n )}\n >\n {/* Max-width constrained content container */}\n <div className={cn('mx-auto w-full', maxWidthClasses[maxWidth], contentClassName)}>\n {/* Page Header */}\n {showHeader && (title || headerActions) && (\n <header className=\"mb-6 sm:mb-8\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n {/* Title Section */}\n <div className=\"space-y-1\">\n {(title || icon) && (\n <div className=\"flex items-center gap-3\">\n {icon && (\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary\">\n {icon}\n </div>\n )}\n {title && (\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-text-primary\">\n {title}\n </h1>\n )}\n </div>\n )}\n {subtitle && (\n <p className=\"text-sm sm:text-base text-text-secondary max-w-2xl\">{subtitle}</p>\n )}\n </div>\n\n {/* Header Actions */}\n {headerActions && (\n <div className=\"flex items-center gap-2 flex-shrink-0\">{headerActions}</div>\n )}\n </div>\n\n {/* Additional Header Content */}\n {headerContent && <div className=\"mt-4\">{headerContent}</div>}\n </header>\n )}\n\n {/* Page content — must not use a <main> landmark here because the\n host shell (AppShellLayout) already renders one; nesting <main>\n elements is invalid HTML and an a11y violation. */}\n <div className=\"space-y-6\">{children}</div>\n </div>\n </div>\n );\n}\n\n/**\n * EmptyState - A consistent empty state component\n */\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n}: {\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col items-center justify-center',\n 'py-12 sm:py-16 px-4',\n 'text-center',\n 'animate-in fade-in-0 zoom-in-95 duration-300',\n className\n )}\n >\n {icon && <div className=\"mb-4 p-4 rounded-2xl bg-bg-sunken/50 text-text-secondary\">{icon}</div>}\n <h3 className=\"text-lg font-semibold text-text-primary mb-1\">{title}</h3>\n {description && <p className=\"text-sm text-text-secondary max-w-sm mb-4\">{description}</p>}\n {action}\n </div>\n );\n}\n\n/**\n * LoadingState - A consistent loading state component\n */\nexport function LoadingState({\n message = 'Loading...',\n className,\n}: {\n message?: string;\n className?: string;\n}) {\n return (\n <div className={cn('flex flex-col items-center justify-center py-20', className)}>\n <div className=\"relative\">\n <div className=\"absolute inset-0 bg-action-primary-bg/20 rounded-full blur-xl animate-pulse\" />\n <div className=\"relative size-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin\" />\n </div>\n <span className=\"mt-6 text-sm font-medium text-text-secondary\">{message}</span>\n </div>\n );\n}\n"],"m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C3B,aAAU,cACV,gBAIC;AACD,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,mDAAmD,EAAU;YAAhF,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD,EAAK,WAAU,+EAAgF,CAAA,EAC/F,kBAAC,OAAD,EAAK,WAAU,0FAA2F,CAAA,CACtG;MACN,kBAAC,QAAD;GAAM,WAAU;aAAgD;GAAe,CAAA,CAC3E"}
|
|
@@ -14,7 +14,7 @@ function i({ data: i }) {
|
|
|
14
14
|
children: o.map((t, i) => {
|
|
15
15
|
let o = a > 0 ? t.count / a * 100 : 0, s = e[i % e.length];
|
|
16
16
|
return /* @__PURE__ */ r("div", {
|
|
17
|
-
className: "flex items-center justify-between transition-colors duration-200 hover:bg-
|
|
17
|
+
className: "flex items-center justify-between transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded",
|
|
18
18
|
children: [/* @__PURE__ */ r("div", {
|
|
19
19
|
className: "flex items-center gap-2 flex-1",
|
|
20
20
|
children: [/* @__PURE__ */ n("div", { className: `w-3 h-3 rounded-full flex-shrink-0 ${s}` }), /* @__PURE__ */ n("span", {
|
|
@@ -26,7 +26,7 @@ function i({ data: i }) {
|
|
|
26
26
|
children: [/* @__PURE__ */ n("div", {
|
|
27
27
|
className: "w-20",
|
|
28
28
|
children: /* @__PURE__ */ n("div", {
|
|
29
|
-
className: "h-2 rounded-full bg-
|
|
29
|
+
className: "h-2 rounded-full bg-bg-sunken",
|
|
30
30
|
children: /* @__PURE__ */ n("div", {
|
|
31
31
|
className: `h-full rounded-full transition-all duration-300 ${s}`,
|
|
32
32
|
style: { width: `${o}%` }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/CategoryBreakdown.tsx"],"sourcesContent":["import { FolderOpen } from 'lucide-react';\nimport { analyticsSeriesClasses } from '../../utils/uiTokens';\n\ninterface CategoryCount {\n category: string;\n count: number;\n}\n\ninterface CategoryBreakdownProps {\n data: CategoryCount[];\n}\n\nexport function CategoryBreakdown({ data }: CategoryBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\n const topCategories = data.slice(0, 8);\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 <FolderOpen size={20} />\n Top Categories\n </h2>\n\n <div className=\"space-y-3\">\n {topCategories.map((item, index) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = analyticsSeriesClasses[index % analyticsSeriesClasses.length];\n\n return (\n <div\n key={item.category}\n className=\"flex items-center justify-between transition-colors duration-200 hover:bg-
|
|
1
|
+
{"version":3,"file":"CategoryBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/CategoryBreakdown.tsx"],"sourcesContent":["import { FolderOpen } from 'lucide-react';\nimport { analyticsSeriesClasses } from '../../utils/uiTokens';\n\ninterface CategoryCount {\n category: string;\n count: number;\n}\n\ninterface CategoryBreakdownProps {\n data: CategoryCount[];\n}\n\nexport function CategoryBreakdown({ data }: CategoryBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\n const topCategories = data.slice(0, 8);\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 <FolderOpen size={20} />\n Top Categories\n </h2>\n\n <div className=\"space-y-3\">\n {topCategories.map((item, index) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = analyticsSeriesClasses[index % analyticsSeriesClasses.length];\n\n return (\n <div\n key={item.category}\n className=\"flex items-center justify-between transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded\"\n >\n <div className=\"flex items-center gap-2 flex-1\">\n <div className={`w-3 h-3 rounded-full flex-shrink-0 ${colorClass}`} />\n <span className=\"text-sm truncate text-primary\">{item.category}</span>\n </div>\n <div className=\"flex items-center gap-3 ml-4\">\n <div className=\"w-20\">\n <div className=\"h-2 rounded-full bg-bg-sunken\">\n <div\n className={`h-full rounded-full transition-all duration-300 ${colorClass}`}\n style={{\n width: `${percentage}%`,\n }}\n />\n </div>\n </div>\n <span className=\"text-sm font-semibold w-12 text-right text-primary\">\n {item.count}\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAkB,EAAE,WAAgC;CAClE,IAAM,IAAQ,EAAK,QAAQ,GAAK,MAAS,IAAM,EAAK,OAAO,EAAE,EACvD,IAAgB,EAAK,MAAM,GAAG,EAAE;AAEtC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,MAAD;GAAI,WAAU;aAAd,CACE,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA,EAAA,iBAErB;MAEL,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAc,KAAK,GAAM,MAAU;IAClC,IAAM,IAAa,IAAQ,IAAK,EAAK,QAAQ,IAAS,MAAM,GACtD,IAAa,EAAuB,IAAQ,EAAuB;AAEzE,WACE,kBAAC,OAAD;KAEE,WAAU;eAFZ,CAIE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD,EAAK,WAAW,sCAAsC,KAAgB,CAAA,EACtE,kBAAC,QAAD;OAAM,WAAU;iBAAiC,EAAK;OAAgB,CAAA,CAClE;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OAAK,WAAU;iBACb,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,OAAD;SACE,WAAW,mDAAmD;SAC9D,OAAO,EACL,OAAO,GAAG,EAAW,IACtB;SACD,CAAA;QACE,CAAA;OACF,CAAA,EACN,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAK;OACD,CAAA,CACH;QACF;OAtBC,EAAK,SAsBN;KAER;GACE,CAAA,CACF"}
|
|
@@ -37,7 +37,7 @@ function a({ data: e }) {
|
|
|
37
37
|
})]
|
|
38
38
|
})]
|
|
39
39
|
}), /* @__PURE__ */ n("div", {
|
|
40
|
-
className: "h-2 rounded-full bg-
|
|
40
|
+
className: "h-2 rounded-full bg-bg-sunken",
|
|
41
41
|
children: /* @__PURE__ */ n("div", {
|
|
42
42
|
className: `h-full rounded-full transition-all duration-300 ${o}`,
|
|
43
43
|
style: { width: `${t}%` },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriorityBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/PriorityBreakdown.tsx"],"sourcesContent":["import { AlertCircle } from 'lucide-react';\nimport { ticketPriorityDotClasses } from '../../utils/uiTokens';\n\ninterface PriorityCount {\n priority: string;\n count: number;\n}\n\ninterface PriorityBreakdownProps {\n data: PriorityCount[];\n}\n\nconst priorityColors: Record<string, string> = {\n ...ticketPriorityDotClasses,\n URGENT: ticketPriorityDotClasses.CRITICAL,\n MEDIUM: ticketPriorityDotClasses.NORMAL,\n};\n\nexport function PriorityBreakdown({ data }: PriorityBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\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 <AlertCircle size={20} />\n Tickets by Priority\n </h2>\n\n <div className=\"space-y-4\">\n {data.map((item) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = priorityColors[item.priority] || 'bg-muted-foreground';\n\n return (\n <div key={item.priority}>\n <div className=\"flex items-center justify-between mb-2\">\n <div className=\"flex items-center gap-2\">\n <div className={`w-3 h-3 rounded-full ${colorClass}`} />\n <span className=\"font-medium text-primary\">{item.priority}</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm text-tertiary\">{percentage.toFixed(0)}%</span>\n <span className=\"font-semibold text-primary\">{item.count}</span>\n </div>\n </div>\n <div className=\"h-2 rounded-full bg-
|
|
1
|
+
{"version":3,"file":"PriorityBreakdown.js","names":[],"sources":["../../../../src/support/components/analytics/PriorityBreakdown.tsx"],"sourcesContent":["import { AlertCircle } from 'lucide-react';\nimport { ticketPriorityDotClasses } from '../../utils/uiTokens';\n\ninterface PriorityCount {\n priority: string;\n count: number;\n}\n\ninterface PriorityBreakdownProps {\n data: PriorityCount[];\n}\n\nconst priorityColors: Record<string, string> = {\n ...ticketPriorityDotClasses,\n URGENT: ticketPriorityDotClasses.CRITICAL,\n MEDIUM: ticketPriorityDotClasses.NORMAL,\n};\n\nexport function PriorityBreakdown({ data }: PriorityBreakdownProps) {\n const total = data.reduce((sum, item) => sum + item.count, 0);\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 <AlertCircle size={20} />\n Tickets by Priority\n </h2>\n\n <div className=\"space-y-4\">\n {data.map((item) => {\n const percentage = total > 0 ? (item.count / total) * 100 : 0;\n const colorClass = priorityColors[item.priority] || 'bg-muted-foreground';\n\n return (\n <div key={item.priority}>\n <div className=\"flex items-center justify-between mb-2\">\n <div className=\"flex items-center gap-2\">\n <div className={`w-3 h-3 rounded-full ${colorClass}`} />\n <span className=\"font-medium text-primary\">{item.priority}</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm text-tertiary\">{percentage.toFixed(0)}%</span>\n <span className=\"font-semibold text-primary\">{item.count}</span>\n </div>\n </div>\n <div className=\"h-2 rounded-full bg-bg-sunken\">\n <div\n className={`h-full rounded-full transition-all duration-300 ${colorClass}`}\n style={{\n width: `${percentage}%`,\n }}\n data-priority={item.priority}\n />\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n"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*/ r("div", {
|
|
16
|
-
className: "p-4 rounded-lg bg-
|
|
16
|
+
className: "p-4 rounded-lg bg-bg-sunken transition-colors duration-200",
|
|
17
17
|
children: [
|
|
18
18
|
/* @__PURE__ */ n("p", {
|
|
19
19
|
className: "text-xs font-medium mb-1 text-tertiary",
|
|
@@ -34,7 +34,7 @@ function i({ report: i }) {
|
|
|
34
34
|
]
|
|
35
35
|
}),
|
|
36
36
|
/* @__PURE__ */ r("div", {
|
|
37
|
-
className: "p-4 rounded-lg bg-
|
|
37
|
+
className: "p-4 rounded-lg bg-bg-sunken transition-colors duration-200",
|
|
38
38
|
children: [
|
|
39
39
|
/* @__PURE__ */ n("p", {
|
|
40
40
|
className: "text-xs font-medium mb-1 text-tertiary",
|
|
@@ -55,7 +55,7 @@ function i({ report: i }) {
|
|
|
55
55
|
]
|
|
56
56
|
}),
|
|
57
57
|
/* @__PURE__ */ r("div", {
|
|
58
|
-
className: "p-4 rounded-lg bg-
|
|
58
|
+
className: "p-4 rounded-lg bg-bg-sunken transition-colors duration-200",
|
|
59
59
|
children: [/* @__PURE__ */ n("p", {
|
|
60
60
|
className: "text-xs font-medium mb-1 text-tertiary",
|
|
61
61
|
children: "Total Tickets"
|
|
@@ -65,7 +65,7 @@ function i({ report: i }) {
|
|
|
65
65
|
})]
|
|
66
66
|
}),
|
|
67
67
|
/* @__PURE__ */ r("div", {
|
|
68
|
-
className: `p-4 rounded-lg flex items-center gap-2 transition-colors duration-200 ${i.breachedTickets > 0 ? "bg-error/10" : "bg-
|
|
68
|
+
className: `p-4 rounded-lg flex items-center gap-2 transition-colors duration-200 ${i.breachedTickets > 0 ? "bg-error/10" : "bg-bg-sunken"}`,
|
|
69
69
|
children: [/* @__PURE__ */ n(e, {
|
|
70
70
|
size: 20,
|
|
71
71
|
className: i.breachedTickets > 0 ? "text-error" : "text-tertiary"
|
|
@@ -85,7 +85,7 @@ function i({ report: i }) {
|
|
|
85
85
|
}), /* @__PURE__ */ n("div", {
|
|
86
86
|
className: "space-y-2",
|
|
87
87
|
children: i.byPriority.map((e) => /* @__PURE__ */ r("div", {
|
|
88
|
-
className: "flex items-center justify-between py-2 px-3 rounded bg-
|
|
88
|
+
className: "flex items-center justify-between py-2 px-3 rounded bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/80",
|
|
89
89
|
children: [/* @__PURE__ */ r("div", {
|
|
90
90
|
className: "flex items-center gap-3",
|
|
91
91
|
children: [/* @__PURE__ */ n("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SLAReport.js","names":[],"sources":["../../../../src/support/components/analytics/SLAReport.tsx"],"sourcesContent":["import { Shield, AlertTriangle } from 'lucide-react';\n\ninterface SLAComplianceByPriority {\n priority: string;\n tickets: number;\n compliance: number;\n}\n\ninterface SLAReportProps {\n report: {\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n totalTickets: number;\n firstResponseCompliance: number;\n resolutionCompliance: number;\n avgFirstResponseTime: number;\n avgResolutionTime: number;\n breachedTickets: number;\n byPriority: SLAComplianceByPriority[];\n };\n}\n\nexport function SLAReport({ report }: SLAReportProps) {\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 <Shield size={20} />\n SLA Compliance Report\n </h2>\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6\">\n <div className=\"p-4 rounded-lg bg-
|
|
1
|
+
{"version":3,"file":"SLAReport.js","names":[],"sources":["../../../../src/support/components/analytics/SLAReport.tsx"],"sourcesContent":["import { Shield, AlertTriangle } from 'lucide-react';\n\ninterface SLAComplianceByPriority {\n priority: string;\n tickets: number;\n compliance: number;\n}\n\ninterface SLAReportProps {\n report: {\n period: {\n startDate: string;\n endDate: string;\n label: string;\n };\n totalTickets: number;\n firstResponseCompliance: number;\n resolutionCompliance: number;\n avgFirstResponseTime: number;\n avgResolutionTime: number;\n breachedTickets: number;\n byPriority: SLAComplianceByPriority[];\n };\n}\n\nexport function SLAReport({ report }: SLAReportProps) {\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 <Shield size={20} />\n SLA Compliance Report\n </h2>\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6\">\n <div className=\"p-4 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">First Response</p>\n <p\n className={`text-2xl font-bold ${\n report.firstResponseCompliance >= 90 ? 'text-success' : 'text-warning'\n }`}\n >\n {report.firstResponseCompliance.toFixed(1)}%\n </p>\n <p className=\"text-xs mt-1 text-tertiary\">\n Avg: {(report.avgFirstResponseTime / 60).toFixed(1)}h\n </p>\n </div>\n\n <div className=\"p-4 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Resolution</p>\n <p\n className={`text-2xl font-bold ${\n report.resolutionCompliance >= 90 ? 'text-success' : 'text-warning'\n }`}\n >\n {report.resolutionCompliance.toFixed(1)}%\n </p>\n <p className=\"text-xs mt-1 text-tertiary\">\n Avg: {(report.avgResolutionTime / 60).toFixed(1)}h\n </p>\n </div>\n\n <div className=\"p-4 rounded-lg bg-bg-sunken transition-colors duration-200\">\n <p className=\"text-xs font-medium mb-1 text-tertiary\">Total Tickets</p>\n <p className=\"text-2xl font-bold text-primary\">{report.totalTickets}</p>\n </div>\n\n <div\n className={`p-4 rounded-lg flex items-center gap-2 transition-colors duration-200 ${\n report.breachedTickets > 0 ? 'bg-error/10' : 'bg-bg-sunken'\n }`}\n >\n <AlertTriangle\n size={20}\n className={report.breachedTickets > 0 ? 'text-error' : 'text-tertiary'}\n />\n <div>\n <p className=\"text-xs font-medium text-tertiary\">Breached</p>\n <p\n className={`text-2xl font-bold ${\n report.breachedTickets > 0 ? 'text-error' : 'text-primary'\n }`}\n >\n {report.breachedTickets}\n </p>\n </div>\n </div>\n </div>\n\n <div>\n <h3 className=\"text-sm font-semibold mb-3 text-secondary\">Compliance by Priority</h3>\n <div className=\"space-y-2\">\n {report.byPriority.map((item) => (\n <div\n key={item.priority}\n className=\"flex items-center justify-between py-2 px-3 rounded bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/80\"\n >\n <div className=\"flex items-center gap-3\">\n <span className=\"text-sm font-medium text-primary\">{item.priority}</span>\n <span className=\"text-xs text-tertiary\">{item.tickets} tickets</span>\n </div>\n <span\n className={`text-sm font-semibold ${\n item.compliance >= 90\n ? 'text-success'\n : item.compliance >= 70\n ? 'text-warning'\n : 'text-error'\n }`}\n >\n {item.compliance.toFixed(1)}%\n </span>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAyBA,SAAgB,EAAU,EAAE,aAA0B;AACpD,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,MAAD;IAAI,WAAU;cAAd,CACE,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA,EAAA,wBAEjB;;GAEL,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAkB,CAAA;OACxE,kBAAC,KAAD;QACE,WAAW,sBACT,EAAO,2BAA2B,KAAK,iBAAiB;kBAF5D,CAKG,EAAO,wBAAwB,QAAQ,EAAE,EAAC,IACzC;;OACJ,kBAAC,KAAD;QAAG,WAAU;kBAAb;SAA0C;UACjC,EAAO,uBAAuB,IAAI,QAAQ,EAAE;SAAC;SAClD;;OACA;;KAEN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,KAAD;QAAG,WAAU;kBAAyC;QAAc,CAAA;OACpE,kBAAC,KAAD;QACE,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AA,CAAA;GACF"}
|
|
@@ -35,7 +35,7 @@ function i({ metrics: i }) {
|
|
|
35
35
|
className: "grid grid-cols-3 gap-4 mb-6",
|
|
36
36
|
children: [
|
|
37
37
|
/* @__PURE__ */ r("div", {
|
|
38
|
-
className: "text-center p-3 rounded-lg bg-
|
|
38
|
+
className: "text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200",
|
|
39
39
|
children: [
|
|
40
40
|
/* @__PURE__ */ n("p", {
|
|
41
41
|
className: "text-xs font-medium mb-1 text-tertiary",
|
|
@@ -61,7 +61,7 @@ function i({ metrics: i }) {
|
|
|
61
61
|
]
|
|
62
62
|
}),
|
|
63
63
|
/* @__PURE__ */ r("div", {
|
|
64
|
-
className: "text-center p-3 rounded-lg bg-
|
|
64
|
+
className: "text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200",
|
|
65
65
|
children: [
|
|
66
66
|
/* @__PURE__ */ n("p", {
|
|
67
67
|
className: "text-xs font-medium mb-1 text-tertiary",
|
|
@@ -78,7 +78,7 @@ function i({ metrics: i }) {
|
|
|
78
78
|
]
|
|
79
79
|
}),
|
|
80
80
|
/* @__PURE__ */ r("div", {
|
|
81
|
-
className: "text-center p-3 rounded-lg bg-
|
|
81
|
+
className: "text-center p-3 rounded-lg bg-bg-sunken transition-colors duration-200",
|
|
82
82
|
children: [
|
|
83
83
|
/* @__PURE__ */ n("p", {
|
|
84
84
|
className: "text-xs font-medium mb-1 text-tertiary",
|
|
@@ -121,15 +121,15 @@ function i({ metrics: i }) {
|
|
|
121
121
|
}), /* @__PURE__ */ r("div", {
|
|
122
122
|
className: "flex-1 flex items-center gap-2",
|
|
123
123
|
children: [/* @__PURE__ */ n("div", {
|
|
124
|
-
className: "flex-1 h-6 rounded bg-
|
|
124
|
+
className: "flex-1 h-6 rounded bg-bg-sunken",
|
|
125
125
|
children: /* @__PURE__ */ n("div", {
|
|
126
|
-
className: "h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-primary",
|
|
126
|
+
className: "h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-action-primary-bg",
|
|
127
127
|
style: {
|
|
128
128
|
width: `${s}%`,
|
|
129
129
|
minWidth: t.count > 0 ? "30px" : "0"
|
|
130
130
|
},
|
|
131
131
|
children: t.count > 0 && /* @__PURE__ */ n("span", {
|
|
132
|
-
className: "text-xs font-medium text-primary-
|
|
132
|
+
className: "text-xs font-medium text-action-primary-text",
|
|
133
133
|
children: t.count
|
|
134
134
|
})
|
|
135
135
|
})
|
|
@@ -1 +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-
|
|
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-bg-sunken 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-bg-sunken 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-bg-sunken 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-bg-sunken\">\n <div\n className=\"h-full rounded transition-all duration-300 flex items-center justify-end pr-2 bg-action-primary-bg\"\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-action-primary-text\">\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,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ,QAAQ;GAAS;EAC5C;GAAE,OAAO;GAAG,OAAO,EAAQ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;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"}
|
|
@@ -4,7 +4,7 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
|
4
4
|
function i({ agents: i }) {
|
|
5
5
|
let a = i.slice(0, 5), o = {
|
|
6
6
|
1: "bg-warning/10 text-warning",
|
|
7
|
-
2: "bg-
|
|
7
|
+
2: "bg-bg-sunken text-text-secondary",
|
|
8
8
|
3: "bg-accent/10 text-accent"
|
|
9
9
|
};
|
|
10
10
|
return /* @__PURE__ */ r("div", {
|
|
@@ -15,9 +15,9 @@ function i({ agents: i }) {
|
|
|
15
15
|
}), /* @__PURE__ */ r("div", {
|
|
16
16
|
className: "space-y-4",
|
|
17
17
|
children: [a.map((i) => /* @__PURE__ */ r("div", {
|
|
18
|
-
className: "flex items-center gap-4 p-3 rounded-lg bg-
|
|
18
|
+
className: "flex items-center gap-4 p-3 rounded-lg bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/80",
|
|
19
19
|
children: [/* @__PURE__ */ n("div", {
|
|
20
|
-
className: `w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200
|
|
20
|
+
className: `w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0 transition-transform duration-200 ${o[i.rank] || "bg-bg-sunken text-text-secondary"}`,
|
|
21
21
|
children: i.rank <= 3 ? /* @__PURE__ */ n(e, { size: 18 }) : i.rank
|
|
22
22
|
}), /* @__PURE__ */ r("div", {
|
|
23
23
|
className: "flex-1 min-w-0",
|
|
@@ -1 +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 const rankClasses: Record<number, string> = {\n 1: 'bg-warning/10 text-warning',\n 2: 'bg-
|
|
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 const rankClasses: Record<number, string> = {\n 1: 'bg-warning/10 text-warning',\n 2: 'bg-bg-sunken text-text-secondary',\n 3: 'bg-accent/10 text-accent',\n };\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 return (\n <div\n key={agent.agent.id}\n className=\"flex items-center gap-4 p-3 rounded-lg bg-bg-sunken transition-colors duration-200 hover:bg-bg-sunken/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 ${rankClasses[agent.rank] || 'bg-bg-sunken text-text-secondary'}`}\n >\n {agent.rank <= 3 ? <Award size={18} /> : 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,EAC9B,IAAsC;EAC1C,GAAG;EACH,GAAG;EACH,GAAG;EACJ;AAED,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,MAEZ,kBAAC,OAAD;IAEE,WAAU;cAFZ,CAIE,kBAAC,OAAD;KACE,WAAW,6HAA6H,EAAY,EAAM,SAAS;eAElK,EAAM,QAAQ,IAAI,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,GAAG,EAAM;KAC3C,CAAA,EAEN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAuC,EAAM,MAAM,KAAK;OAAS,CAAA,EAC9E,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,GAAD;QAAM,MAAM;QAAI,WAAU;QAA8B,CAAA,EACxD,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAM,UAAU,QAAQ,EAAE;QACtB,CAAA,CACH;SACF;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAkC,EAAM,MAAM,KAAK;OAAU,CAAA,EAC1E,kBAAC,KAAD;OAAG,WAAU;iBAAb,CACG,EAAM,iBAAgB,YACrB;SACA;QACF;OACF;MA1BC,EAAM,MAAM,GA0Bb,CAER,EAED,EAAU,WAAW,KACpB,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAAgB;KAA2B,CAAA;IACpD,CAAA,CAEJ;KACF"}
|
|
@@ -20,7 +20,7 @@ function r({ trends: r, period: i }) {
|
|
|
20
20
|
children: r.map((e) => {
|
|
21
21
|
let r = (e.value - o) / s * 100, i = new Date(e.timestamp);
|
|
22
22
|
return /* @__PURE__ */ n("div", {
|
|
23
|
-
className: "flex items-center gap-3 transition-colors duration-200 hover:bg-
|
|
23
|
+
className: "flex items-center gap-3 transition-colors duration-200 hover:bg-bg-sunken/50 p-1 rounded",
|
|
24
24
|
children: [/* @__PURE__ */ t("span", {
|
|
25
25
|
className: "text-xs w-20 text-right text-tertiary",
|
|
26
26
|
children: e.label || i.toLocaleDateString("en-US", {
|
|
@@ -30,7 +30,7 @@ function r({ trends: r, period: i }) {
|
|
|
30
30
|
}), /* @__PURE__ */ n("div", {
|
|
31
31
|
className: "flex-1 flex items-center gap-2",
|
|
32
32
|
children: [/* @__PURE__ */ t("div", {
|
|
33
|
-
className: "h-8 rounded transition-all duration-300 bg-primary/80 hover:bg-primary",
|
|
33
|
+
className: "h-8 rounded transition-all duration-300 bg-action-primary-bg/80 hover:bg-action-primary-bg",
|
|
34
34
|
style: { width: `${Math.max(r, 2)}%` }
|
|
35
35
|
}), /* @__PURE__ */ t("span", {
|
|
36
36
|
className: "text-sm font-medium text-primary",
|
|
@@ -1 +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) => {\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={point.timestamp}\n className=\"flex items-center gap-3 transition-colors duration-200 hover:bg-
|
|
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) => {\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={point.timestamp}\n className=\"flex items-center gap-3 transition-colors duration-200 hover:bg-bg-sunken/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-action-primary-bg/80 hover:bg-action-primary-bg\"\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,MAAU;IACrB,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,EAAM,UAaP;KAER;GACE,CAAA,CACF"}
|
|
@@ -52,13 +52,13 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
52
52
|
onSubmit: M,
|
|
53
53
|
className: "space-y-6",
|
|
54
54
|
children: [/* @__PURE__ */ p("div", {
|
|
55
|
-
className: "p-6 rounded-xl border bg-
|
|
55
|
+
className: "p-6 rounded-xl border bg-bg-surface space-y-6",
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
58
58
|
htmlFor: "support-article-title",
|
|
59
|
-
className: "mb-2 block text-sm font-medium text-
|
|
59
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
60
60
|
children: ["Title ", /* @__PURE__ */ f("span", {
|
|
61
|
-
className: "text-
|
|
61
|
+
className: "text-status-error-text",
|
|
62
62
|
children: "*"
|
|
63
63
|
})]
|
|
64
64
|
}), /* @__PURE__ */ f(t, {
|
|
@@ -72,16 +72,16 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
72
72
|
/* @__PURE__ */ p("div", { children: [
|
|
73
73
|
/* @__PURE__ */ p("label", {
|
|
74
74
|
htmlFor: "support-article-slug",
|
|
75
|
-
className: "mb-2 block text-sm font-medium text-
|
|
75
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
76
76
|
children: ["URL Slug ", /* @__PURE__ */ f("span", {
|
|
77
|
-
className: "text-
|
|
77
|
+
className: "text-status-error-text",
|
|
78
78
|
children: "*"
|
|
79
79
|
})]
|
|
80
80
|
}),
|
|
81
81
|
/* @__PURE__ */ p("div", {
|
|
82
82
|
className: "flex flex-col gap-2 sm:flex-row sm:items-center",
|
|
83
83
|
children: [/* @__PURE__ */ f("span", {
|
|
84
|
-
className: "text-sm text-
|
|
84
|
+
className: "text-sm text-text-secondary",
|
|
85
85
|
children: "/kb/articles/"
|
|
86
86
|
}), /* @__PURE__ */ f(t, {
|
|
87
87
|
id: "support-article-slug",
|
|
@@ -94,13 +94,13 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
94
94
|
})]
|
|
95
95
|
}),
|
|
96
96
|
/* @__PURE__ */ f("p", {
|
|
97
|
-
className: "text-xs text-
|
|
97
|
+
className: "text-xs text-text-secondary mt-1",
|
|
98
98
|
children: "Auto-generated from title. Edit to customize."
|
|
99
99
|
})
|
|
100
100
|
] }),
|
|
101
101
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
102
102
|
htmlFor: "support-article-excerpt",
|
|
103
|
-
className: "mb-2 block text-sm font-medium text-
|
|
103
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
104
104
|
children: "Excerpt"
|
|
105
105
|
}), /* @__PURE__ */ f("textarea", {
|
|
106
106
|
id: "support-article-excerpt",
|
|
@@ -111,7 +111,7 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
111
111
|
...x,
|
|
112
112
|
excerpt: e.target.value
|
|
113
113
|
}),
|
|
114
|
-
className: "w-full px-4 py-3 rounded-lg border bg-
|
|
114
|
+
className: "w-full px-4 py-3 rounded-lg border bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
115
115
|
placeholder: "Brief summary of the article (displayed in search results)"
|
|
116
116
|
})] }),
|
|
117
117
|
/* @__PURE__ */ p("div", { children: [
|
|
@@ -119,9 +119,9 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
119
119
|
className: "flex items-center justify-between mb-2",
|
|
120
120
|
children: [/* @__PURE__ */ p("label", {
|
|
121
121
|
htmlFor: "support-article-content",
|
|
122
|
-
className: "text-sm font-medium text-
|
|
122
|
+
className: "text-sm font-medium text-text-primary",
|
|
123
123
|
children: ["Content ", /* @__PURE__ */ f("span", {
|
|
124
|
-
className: "text-
|
|
124
|
+
className: "text-status-error-text",
|
|
125
125
|
children: "*"
|
|
126
126
|
})]
|
|
127
127
|
}), /* @__PURE__ */ f(e, {
|
|
@@ -134,10 +134,10 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
134
134
|
})]
|
|
135
135
|
}),
|
|
136
136
|
E ? /* @__PURE__ */ f("div", {
|
|
137
|
-
className: "w-full min-h-[400px] px-4 py-3 rounded-lg border bg-
|
|
137
|
+
className: "w-full min-h-[400px] px-4 py-3 rounded-lg border bg-bg-surface overflow-auto",
|
|
138
138
|
children: /* @__PURE__ */ f("div", {
|
|
139
139
|
className: "prose prose-sm max-w-none dark:prose-invert",
|
|
140
|
-
dangerouslySetInnerHTML: { __html: O || "<p class=\"text-
|
|
140
|
+
dangerouslySetInnerHTML: { __html: O || "<p class=\"text-text-secondary\">Nothing to preview</p>" }
|
|
141
141
|
})
|
|
142
142
|
}) : /* @__PURE__ */ f("textarea", {
|
|
143
143
|
id: "support-article-content",
|
|
@@ -149,17 +149,17 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
149
149
|
...x,
|
|
150
150
|
content: e.target.value
|
|
151
151
|
}),
|
|
152
|
-
className: "w-full px-4 py-3 rounded-lg border bg-
|
|
152
|
+
className: "w-full px-4 py-3 rounded-lg border bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors font-mono text-sm",
|
|
153
153
|
placeholder: "Article content (supports Markdown)"
|
|
154
154
|
}),
|
|
155
155
|
/* @__PURE__ */ f("p", {
|
|
156
|
-
className: "text-xs text-
|
|
156
|
+
className: "text-xs text-text-secondary mt-1",
|
|
157
157
|
children: "Supports Markdown: **bold**, *italic*, # headings, - lists, [links](url), ```code```"
|
|
158
158
|
})
|
|
159
159
|
] }),
|
|
160
160
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
161
161
|
htmlFor: "support-article-category",
|
|
162
|
-
className: "mb-2 block text-sm font-medium text-
|
|
162
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
163
163
|
children: "Category"
|
|
164
164
|
}), /* @__PURE__ */ p("select", {
|
|
165
165
|
id: "support-article-category",
|
|
@@ -168,7 +168,7 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
168
168
|
...x,
|
|
169
169
|
categoryId: e.target.value
|
|
170
170
|
}),
|
|
171
|
-
className: "w-full px-4 py-3 rounded-lg border bg-
|
|
171
|
+
className: "w-full px-4 py-3 rounded-lg border bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
172
172
|
children: [/* @__PURE__ */ f("option", {
|
|
173
173
|
value: "",
|
|
174
174
|
children: "Select a category"
|
|
@@ -180,7 +180,7 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
180
180
|
/* @__PURE__ */ p("div", { children: [
|
|
181
181
|
/* @__PURE__ */ f("label", {
|
|
182
182
|
htmlFor: "support-article-tags",
|
|
183
|
-
className: "mb-2 block text-sm font-medium text-
|
|
183
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
184
184
|
children: "Tags"
|
|
185
185
|
}),
|
|
186
186
|
/* @__PURE__ */ f(t, {
|
|
@@ -193,14 +193,14 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
193
193
|
x.tags.length > 0 && /* @__PURE__ */ f("div", {
|
|
194
194
|
className: "flex flex-wrap gap-2 mt-2",
|
|
195
195
|
children: x.tags.map((e) => /* @__PURE__ */ f("span", {
|
|
196
|
-
className: "px-2 py-1 text-xs rounded-full bg-primary/10 text-primary",
|
|
196
|
+
className: "px-2 py-1 text-xs rounded-full bg-action-primary-bg/10 text-primary",
|
|
197
197
|
children: e
|
|
198
198
|
}, e))
|
|
199
199
|
})
|
|
200
200
|
] }),
|
|
201
201
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
202
202
|
htmlFor: "support-article-meta-description",
|
|
203
|
-
className: "mb-2 block text-sm font-medium text-
|
|
203
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
204
204
|
children: "Meta Description"
|
|
205
205
|
}), /* @__PURE__ */ f("textarea", {
|
|
206
206
|
id: "support-article-meta-description",
|
|
@@ -211,12 +211,12 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
211
211
|
...x,
|
|
212
212
|
metaDescription: e.target.value
|
|
213
213
|
}),
|
|
214
|
-
className: "w-full px-4 py-3 rounded-lg border bg-
|
|
214
|
+
className: "w-full px-4 py-3 rounded-lg border bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
215
215
|
placeholder: "SEO meta description (optional)"
|
|
216
216
|
})] }),
|
|
217
217
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
218
218
|
htmlFor: "support-article-status",
|
|
219
|
-
className: "mb-2 block text-sm font-medium text-
|
|
219
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
220
220
|
children: "Status"
|
|
221
221
|
}), /* @__PURE__ */ p("select", {
|
|
222
222
|
id: "support-article-status",
|
|
@@ -225,7 +225,7 @@ function h({ initialData: h, categories: g, onSubmit: _, onCancel: v, isSubmitti
|
|
|
225
225
|
...x,
|
|
226
226
|
status: e.target.value
|
|
227
227
|
}),
|
|
228
|
-
className: "w-full px-4 py-3 rounded-lg border bg-
|
|
228
|
+
className: "w-full px-4 py-3 rounded-lg border bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors",
|
|
229
229
|
children: [/* @__PURE__ */ f("option", {
|
|
230
230
|
value: "DRAFT",
|
|
231
231
|
children: "Draft - Not visible to users"
|