@burdenoff/microfe-support 2026.830.1 → 2026.830.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/support/SupportAdminRoot.js +31 -34
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportUserRoot.js +19 -22
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/components/PageLayout.d.ts +1 -1
- package/dist/support/components/PageLayout.js +46 -44
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js +24 -23
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js +27 -26
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js +48 -54
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js +56 -59
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js +27 -26
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +23 -21
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.js +145 -132
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js +104 -103
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js +120 -123
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js +175 -180
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js +21 -20
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +35 -35
- package/dist/support/components/tickets/MessageThread.js +55 -54
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +62 -57
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js +47 -47
- package/dist/support/components/tickets/TicketSidebar.js +122 -121
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/hooks/index.d.ts +1 -0
- package/dist/support/hooks/index.js +1 -0
- package/dist/support/hooks/useTr.d.ts +16 -0
- package/dist/support/hooks/useTr.js +12 -0
- package/dist/support/hooks/useTr.js.map +1 -0
- package/dist/support/index.d.ts +1 -0
- package/dist/support/index.js +2 -1
- package/dist/support/pages/AnalyticsPage.js +151 -145
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +134 -147
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +70 -79
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +140 -139
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +259 -232
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +57 -56
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +151 -146
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +80 -79
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +92 -99
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +85 -92
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +88 -87
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +91 -90
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +120 -118
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +139 -139
- package/dist/support/translations/en.d.ts +814 -0
- package/dist/support/translations/en.js +779 -0
- package/dist/support/translations/en.js.map +1 -0
- package/dist/support/translations/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { tWithFallback as e } from "../utils/i18n.js";
|
|
2
|
+
import { useSupport as t } from "../providers/SupportProvider.js";
|
|
3
|
+
import { isAdminRole as n } from "../utils/index.js";
|
|
4
|
+
import { Badge as r, Button as i, Input as a, PagePurpose as o } from "../components/ui.js";
|
|
5
|
+
import { useSupportStore as s } from "../store/supportStore.js";
|
|
6
|
+
import { useTicketListOperations as c } from "../hooks/useTicketListOperations.js";
|
|
7
|
+
import { cn as l } from "../utils/cn.js";
|
|
8
|
+
import { EmptyState as u, LoadingState as d, PageLayout as f } from "../components/PageLayout.js";
|
|
9
9
|
import { slaBreachBadgeClasses as p, ticketPriorityDotClasses as m, ticketStatusBadgeClasses as h } from "../utils/uiTokens.js";
|
|
10
10
|
import { getCategoryBadgeClass as g } from "../utils/categoryColors.js";
|
|
11
11
|
import { useState as _ } from "react";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
13
|
+
import { AlertCircle as y, Filter as b, Grid as x, List as S, Loader2 as C, Plus as w, Search as T, Ticket as E } from "lucide-react";
|
|
14
|
+
import { useNavigate as D } from "react-router";
|
|
15
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
16
16
|
//#region src/support/pages/TicketListPage.tsx
|
|
17
17
|
function j(e) {
|
|
18
18
|
return e ? e.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase()) : null;
|
|
@@ -34,191 +34,191 @@ var N = {
|
|
|
34
34
|
LOW: "Low"
|
|
35
35
|
};
|
|
36
36
|
function F({ adminView: j = !1 }) {
|
|
37
|
-
let F =
|
|
38
|
-
return B && z.length === 0 ? /* @__PURE__ */
|
|
39
|
-
title:
|
|
40
|
-
subtitle:
|
|
41
|
-
icon: /* @__PURE__ */
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
}) : V ? /* @__PURE__ */
|
|
44
|
-
title:
|
|
45
|
-
subtitle:
|
|
46
|
-
icon: /* @__PURE__ */
|
|
47
|
-
children: /* @__PURE__ */
|
|
37
|
+
let F = D(), { t: I } = v(), { currentUser: L, showAllProductTickets: R } = t(), { tickets: z, ticketsLoading: B, ticketsError: V, hasMoreTickets: H, loadMoreTickets: U, totalTickets: W, isScopedLocalSearch: G, isMissingProductScope: K } = c(j), q = s((e) => e.viewMode), J = s((e) => e.setViewMode), Y = s((e) => e.ticketFilter), X = s((e) => e.updateTicketFilter), [Z, Q] = _(!1), $ = j && n(L?.role), ee = $ || R;
|
|
38
|
+
return B && z.length === 0 ? /* @__PURE__ */ k(f, {
|
|
39
|
+
title: e(I, "support.ticketList.title", "Support Tickets"),
|
|
40
|
+
subtitle: e(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
|
|
41
|
+
icon: /* @__PURE__ */ k(E, { size: 24 }),
|
|
42
|
+
children: /* @__PURE__ */ k(d, { message: e(I, "support.ticketList.loading", "Loading tickets...") })
|
|
43
|
+
}) : V ? /* @__PURE__ */ k(f, {
|
|
44
|
+
title: e(I, "support.ticketList.title", "Support Tickets"),
|
|
45
|
+
subtitle: e(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
|
|
46
|
+
icon: /* @__PURE__ */ k(E, { size: 24 }),
|
|
47
|
+
children: /* @__PURE__ */ A("div", {
|
|
48
48
|
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ k("div", {
|
|
51
51
|
className: "p-4 rounded-2xl bg-status-error-bg/10 text-status-error-text mb-4",
|
|
52
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ k(y, { size: 48 })
|
|
53
53
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ k("h3", {
|
|
55
55
|
className: "text-lg font-semibold mb-2",
|
|
56
|
-
children:
|
|
56
|
+
children: e(I, "support.ticketList.error.title", "Failed to load tickets")
|
|
57
57
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ k("p", {
|
|
59
59
|
className: "text-sm text-text-secondary max-w-md",
|
|
60
|
-
children: V.message ||
|
|
60
|
+
children: V.message || e(I, "support.ticketList.error.description", "An error occurred while loading tickets. Please try again.")
|
|
61
61
|
})
|
|
62
62
|
]
|
|
63
63
|
})
|
|
64
|
-
}) : /* @__PURE__ */
|
|
65
|
-
title:
|
|
66
|
-
subtitle:
|
|
67
|
-
icon: /* @__PURE__ */
|
|
64
|
+
}) : /* @__PURE__ */ A(f, {
|
|
65
|
+
title: e(I, "support.ticketList.title", "Support Tickets"),
|
|
66
|
+
subtitle: e(I, "support.ticketList.subtitle", "Manage and respond to customer support requests"),
|
|
67
|
+
icon: /* @__PURE__ */ k(E, { size: 24 }),
|
|
68
68
|
aurora: !0,
|
|
69
|
-
titleAccent:
|
|
70
|
-
headerActions: /* @__PURE__ */
|
|
69
|
+
titleAccent: e(I, "support.ticketList.titleAccent", "Tickets"),
|
|
70
|
+
headerActions: /* @__PURE__ */ A(i, {
|
|
71
71
|
"data-tour": "support-new-ticket-button",
|
|
72
72
|
onClick: () => F("new"),
|
|
73
|
-
children: [/* @__PURE__ */
|
|
73
|
+
children: [/* @__PURE__ */ k(w, { size: 18 }), e(I, "support.ticketList.actions.newTicket", "New Ticket")]
|
|
74
74
|
}),
|
|
75
|
-
headerContent: /* @__PURE__ */
|
|
75
|
+
headerContent: /* @__PURE__ */ k("div", {
|
|
76
76
|
className: "flex items-center gap-2",
|
|
77
|
-
children: /* @__PURE__ */
|
|
77
|
+
children: /* @__PURE__ */ k(r, {
|
|
78
78
|
variant: "secondary",
|
|
79
79
|
className: "font-medium",
|
|
80
|
-
children:
|
|
80
|
+
children: e(I, "support.ticketList.count", "{{count}} {{label}}", {
|
|
81
81
|
count: W,
|
|
82
|
-
label: W === 1 ?
|
|
82
|
+
label: W === 1 ? e(I, "support.ticketList.count.single", "ticket") : e(I, "support.ticketList.count.plural", "tickets")
|
|
83
83
|
})
|
|
84
84
|
})
|
|
85
85
|
}),
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ k(o, { children: $ ? e(I, "support.ticketList.purpose.admin", "Your shared support inbox — triage, prioritise and respond to every customer ticket here. Filter by product, status, priority or assignee to find what needs attention, and open a ticket to read the full conversation and reply.") : e(I, "support.ticketList.purpose.user", "Track every help request you have raised. Open a ticket to follow the conversation with our team, add details, or share attachments — or create a new ticket whenever you hit a snag.") }),
|
|
88
|
+
/* @__PURE__ */ A("div", {
|
|
89
89
|
"data-tour": "support-ticket-list-toolbar",
|
|
90
90
|
className: "flex flex-col sm:flex-row items-stretch sm:items-center gap-4 p-4 rounded-xl border border-border-seam bg-bg-surface",
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ A("div", {
|
|
93
93
|
className: "flex-1 relative",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
94
|
+
children: [/* @__PURE__ */ k(T, {
|
|
95
95
|
size: 18,
|
|
96
96
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
97
|
-
}), /* @__PURE__ */
|
|
97
|
+
}), /* @__PURE__ */ k(a, {
|
|
98
98
|
"data-tour": "support-ticket-search",
|
|
99
99
|
type: "text",
|
|
100
|
-
placeholder:
|
|
100
|
+
placeholder: e(I, "support.ticketList.search.placeholder", "Search tickets..."),
|
|
101
101
|
value: Y.search,
|
|
102
102
|
onChange: (e) => X({ search: e.target.value }),
|
|
103
103
|
className: "pl-[3.25rem]"
|
|
104
104
|
})]
|
|
105
105
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ A("div", {
|
|
107
107
|
"data-tour": "support-ticket-view-toggle",
|
|
108
108
|
className: "flex items-center gap-1 p-1 rounded-lg border bg-bg-sunken/50",
|
|
109
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ k(i, {
|
|
110
110
|
variant: q === "list" ? "secondary" : "ghost",
|
|
111
111
|
size: "sm",
|
|
112
112
|
onClick: () => J("list"),
|
|
113
113
|
className: "px-3",
|
|
114
114
|
"aria-label": "Show tickets as a list",
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
}), /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ k(S, { size: 18 })
|
|
116
|
+
}), /* @__PURE__ */ k(i, {
|
|
117
117
|
variant: q === "grid" ? "secondary" : "ghost",
|
|
118
118
|
size: "sm",
|
|
119
119
|
onClick: () => J("grid"),
|
|
120
120
|
className: "px-3",
|
|
121
121
|
"aria-label": "Show tickets as a grid",
|
|
122
|
-
children: /* @__PURE__ */
|
|
122
|
+
children: /* @__PURE__ */ k(x, { size: 18 })
|
|
123
123
|
})]
|
|
124
124
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ A(i, {
|
|
126
126
|
"data-tour": "support-ticket-filters-button",
|
|
127
127
|
variant: Z ? "secondary" : "outline",
|
|
128
128
|
onClick: () => Q(!Z),
|
|
129
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ k(b, { size: 18 }), e(I, "support.ticketList.filters.toggle", "Filters")]
|
|
130
130
|
})
|
|
131
131
|
]
|
|
132
132
|
}),
|
|
133
|
-
G && /* @__PURE__ */
|
|
133
|
+
G && /* @__PURE__ */ A("div", {
|
|
134
134
|
className: "flex items-start gap-2 rounded-lg border border-border-seam bg-bg-sunken/30 p-3 text-sm text-text-secondary",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ k(y, {
|
|
136
136
|
size: 16,
|
|
137
137
|
className: "mt-0.5 shrink-0"
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ k("span", { children: e(I, "support.ticketList.scopedSearch.hint", "Search results are limited to tickets already loaded for this product. Load more tickets to expand the searchable set.") })]
|
|
139
139
|
}),
|
|
140
|
-
Z && /* @__PURE__ */
|
|
140
|
+
Z && /* @__PURE__ */ k("div", {
|
|
141
141
|
className: "p-4 rounded-xl border border-border-seam bg-bg-sunken/30",
|
|
142
|
-
children: /* @__PURE__ */
|
|
142
|
+
children: /* @__PURE__ */ A("div", {
|
|
143
143
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
|
|
144
144
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
146
146
|
className: "block text-sm font-medium mb-2 text-text-secondary",
|
|
147
147
|
htmlFor: "ticketlistpage-twithfallback-t-support-ticketlist-filte-0",
|
|
148
|
-
children:
|
|
149
|
-
}), /* @__PURE__ */
|
|
148
|
+
children: e(I, "support.ticketList.filters.status.label", "Status")
|
|
149
|
+
}), /* @__PURE__ */ A("select", {
|
|
150
150
|
id: "ticketlistpage-twithfallback-t-support-ticketlist-filte-0",
|
|
151
151
|
value: Y.status,
|
|
152
152
|
onChange: (e) => X({ status: e.target.value }),
|
|
153
153
|
className: "w-full px-3 py-2 rounded-lg border bg-bg-surface text-text-primary",
|
|
154
154
|
children: [
|
|
155
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ k("option", {
|
|
156
156
|
value: "all",
|
|
157
|
-
children:
|
|
157
|
+
children: e(I, "support.ticketList.filters.status.all", "All Statuses")
|
|
158
158
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ k("option", {
|
|
160
160
|
value: "NEW",
|
|
161
|
-
children:
|
|
161
|
+
children: e(I, "support.shared.status.new", "New")
|
|
162
162
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ k("option", {
|
|
164
164
|
value: "IN_PROGRESS",
|
|
165
|
-
children:
|
|
165
|
+
children: e(I, "support.shared.status.inProgress", "In Progress")
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ k("option", {
|
|
168
168
|
value: "WAITING_CUSTOMER",
|
|
169
|
-
children:
|
|
169
|
+
children: e(I, "support.shared.status.waitingCustomer", "Waiting on Customer")
|
|
170
170
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ k("option", {
|
|
172
172
|
value: "RESOLVED",
|
|
173
|
-
children:
|
|
173
|
+
children: e(I, "support.shared.status.resolved", "Resolved")
|
|
174
174
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ k("option", {
|
|
176
176
|
value: "CLOSED",
|
|
177
|
-
children:
|
|
177
|
+
children: e(I, "support.shared.status.closed", "Closed")
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ k("option", {
|
|
180
180
|
value: "REOPENED",
|
|
181
|
-
children:
|
|
181
|
+
children: e(I, "support.shared.status.reopened", "Reopened")
|
|
182
182
|
})
|
|
183
183
|
]
|
|
184
184
|
})] }),
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
186
186
|
className: "block text-sm font-medium mb-2 text-text-secondary",
|
|
187
187
|
htmlFor: "ticketlistpage-twithfallback-t-support-ticketlist-filte-2",
|
|
188
|
-
children:
|
|
189
|
-
}), /* @__PURE__ */
|
|
188
|
+
children: e(I, "support.ticketList.filters.priority.label", "Priority")
|
|
189
|
+
}), /* @__PURE__ */ A("select", {
|
|
190
190
|
id: "ticketlistpage-twithfallback-t-support-ticketlist-filte-2",
|
|
191
191
|
value: Y.priority,
|
|
192
192
|
onChange: (e) => X({ priority: e.target.value }),
|
|
193
193
|
className: "w-full px-3 py-2 rounded-lg border bg-bg-surface text-text-primary",
|
|
194
194
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ k("option", {
|
|
196
196
|
value: "all",
|
|
197
|
-
children:
|
|
197
|
+
children: e(I, "support.ticketList.filters.priority.all", "All Priorities")
|
|
198
198
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ k("option", {
|
|
200
200
|
value: "CRITICAL",
|
|
201
|
-
children:
|
|
201
|
+
children: e(I, "support.shared.priority.critical", "Critical")
|
|
202
202
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ k("option", {
|
|
204
204
|
value: "HIGH",
|
|
205
|
-
children:
|
|
205
|
+
children: e(I, "support.shared.priority.high", "High")
|
|
206
206
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ k("option", {
|
|
208
208
|
value: "NORMAL",
|
|
209
|
-
children:
|
|
209
|
+
children: e(I, "support.shared.priority.normal", "Normal")
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ k("option", {
|
|
212
212
|
value: "LOW",
|
|
213
|
-
children:
|
|
213
|
+
children: e(I, "support.shared.priority.low", "Low")
|
|
214
214
|
})
|
|
215
215
|
]
|
|
216
216
|
})] }),
|
|
217
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
218
218
|
htmlFor: "ticket-filter-date-from",
|
|
219
219
|
className: "block text-sm font-medium mb-2 text-text-secondary",
|
|
220
220
|
children: "Date From"
|
|
221
|
-
}), /* @__PURE__ */
|
|
221
|
+
}), /* @__PURE__ */ k(a, {
|
|
222
222
|
id: "ticket-filter-date-from",
|
|
223
223
|
type: "date",
|
|
224
224
|
value: Y.dateRange.start ? Y.dateRange.start.toISOString().slice(0, 10) : "",
|
|
@@ -227,11 +227,11 @@ function F({ adminView: j = !1 }) {
|
|
|
227
227
|
start: e.target.value ? /* @__PURE__ */ new Date(`${e.target.value}T00:00:00`) : null
|
|
228
228
|
} })
|
|
229
229
|
})] }),
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
231
231
|
htmlFor: "ticket-filter-date-to",
|
|
232
232
|
className: "block text-sm font-medium mb-2 text-text-secondary",
|
|
233
233
|
children: "Date To"
|
|
234
|
-
}), /* @__PURE__ */
|
|
234
|
+
}), /* @__PURE__ */ k(a, {
|
|
235
235
|
id: "ticket-filter-date-to",
|
|
236
236
|
type: "date",
|
|
237
237
|
value: Y.dateRange.end ? Y.dateRange.end.toISOString().slice(0, 10) : "",
|
|
@@ -240,21 +240,21 @@ function F({ adminView: j = !1 }) {
|
|
|
240
240
|
end: e.target.value ? /* @__PURE__ */ new Date(`${e.target.value}T23:59:59`) : null
|
|
241
241
|
} })
|
|
242
242
|
})] }),
|
|
243
|
-
$ && /* @__PURE__ */
|
|
243
|
+
$ && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
244
244
|
htmlFor: "ticket-filter-product",
|
|
245
245
|
className: "block text-sm font-medium mb-2 text-text-secondary",
|
|
246
246
|
children: "Product"
|
|
247
|
-
}), /* @__PURE__ */
|
|
247
|
+
}), /* @__PURE__ */ k(a, {
|
|
248
248
|
id: "ticket-filter-product",
|
|
249
249
|
type: "text",
|
|
250
250
|
value: Y.productId || "",
|
|
251
251
|
onChange: (e) => X({ productId: e.target.value || null }),
|
|
252
252
|
placeholder: "vibecontrols"
|
|
253
|
-
})] }), /* @__PURE__ */
|
|
253
|
+
})] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
254
254
|
htmlFor: "ticket-filter-assignee",
|
|
255
255
|
className: "block text-sm font-medium mb-2 text-text-secondary",
|
|
256
256
|
children: "Assignee"
|
|
257
|
-
}), /* @__PURE__ */
|
|
257
|
+
}), /* @__PURE__ */ k(a, {
|
|
258
258
|
id: "ticket-filter-assignee",
|
|
259
259
|
type: "text",
|
|
260
260
|
value: Y.assignedToId || "",
|
|
@@ -264,90 +264,90 @@ function F({ adminView: j = !1 }) {
|
|
|
264
264
|
]
|
|
265
265
|
})
|
|
266
266
|
}),
|
|
267
|
-
K ? /* @__PURE__ */
|
|
267
|
+
K ? /* @__PURE__ */ k(u, {
|
|
268
268
|
illustration: "empty-generic",
|
|
269
|
-
title:
|
|
270
|
-
description:
|
|
271
|
-
}) : z.length === 0 ? /* @__PURE__ */
|
|
269
|
+
title: e(I, "support.ticketList.missingProduct.title", "Unable to load tickets for this product"),
|
|
270
|
+
description: e(I, "support.ticketList.missingProduct.description", "This support view needs a product configuration before tickets can be loaded.")
|
|
271
|
+
}) : z.length === 0 ? /* @__PURE__ */ k(u, {
|
|
272
272
|
illustration: "empty-data",
|
|
273
|
-
title:
|
|
274
|
-
description:
|
|
275
|
-
action: /* @__PURE__ */
|
|
273
|
+
title: e(I, "support.ticketList.empty.title", "No tickets found"),
|
|
274
|
+
description: e(I, "support.ticketList.empty.description", "Create your first support ticket to get started, or adjust your filters."),
|
|
275
|
+
action: /* @__PURE__ */ A(i, {
|
|
276
276
|
onClick: () => F("new"),
|
|
277
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ k(w, { size: 18 }), e(I, "support.ticketList.empty.action", "Create Ticket")]
|
|
278
278
|
})
|
|
279
|
-
}) : /* @__PURE__ */
|
|
279
|
+
}) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
|
|
280
280
|
className: q === "grid" ? "grid grid-cols-1 md:grid-cols-2 gap-4" : "space-y-3",
|
|
281
|
-
children: z.map((
|
|
281
|
+
children: z.map((t) => /* @__PURE__ */ k("button", {
|
|
282
282
|
type: "button",
|
|
283
283
|
"data-tour": "support-ticket-card",
|
|
284
|
-
onClick: () => F(
|
|
284
|
+
onClick: () => F(t.id),
|
|
285
285
|
className: "w-full text-left group p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] cursor-pointer transition-[box-shadow,border-color] duration-200",
|
|
286
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ A("div", {
|
|
287
287
|
className: "flex items-start justify-between gap-4",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ A("div", {
|
|
289
289
|
className: "flex-1 min-w-0",
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ A("div", {
|
|
292
292
|
className: "flex items-center gap-2 mb-2 flex-wrap",
|
|
293
293
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ k("span", {
|
|
295
295
|
className: "text-xs font-mono text-text-secondary",
|
|
296
|
-
children:
|
|
296
|
+
children: t.ticketNumber
|
|
297
297
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
className: h[
|
|
300
|
-
children: N[
|
|
298
|
+
/* @__PURE__ */ k(r, {
|
|
299
|
+
className: h[t.status],
|
|
300
|
+
children: N[t.status]
|
|
301
301
|
}),
|
|
302
|
-
|
|
302
|
+
t.ticketCategory && /* @__PURE__ */ k(r, {
|
|
303
303
|
variant: "outline",
|
|
304
|
-
className: g(
|
|
305
|
-
children:
|
|
304
|
+
className: g(t.ticketCategory.color),
|
|
305
|
+
children: t.ticketCategory.name
|
|
306
306
|
}),
|
|
307
|
-
|
|
308
|
-
className:
|
|
309
|
-
children:
|
|
307
|
+
t.slaBreachStatus && t.slaBreachStatus !== "NONE" && /* @__PURE__ */ k(r, {
|
|
308
|
+
className: l(p[t.slaBreachStatus], "motion-safe:animate-vc-glow-pulse"),
|
|
309
|
+
children: t.slaBreachStatus === "BREACHED" ? e(I, "support.ticketList.sla.breached", "SLA Breached") : e(I, "support.ticketList.sla.atRisk", "SLA At Risk")
|
|
310
310
|
})
|
|
311
311
|
]
|
|
312
312
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ k("h3", {
|
|
314
314
|
className: "font-semibold text-text-primary mb-1 group-hover:text-primary transition-colors truncate",
|
|
315
|
-
children:
|
|
315
|
+
children: t.subject
|
|
316
316
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ A("div", {
|
|
318
318
|
className: "flex flex-wrap items-center gap-x-2 gap-y-1 text-sm text-text-secondary",
|
|
319
319
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
ee &&
|
|
320
|
+
/* @__PURE__ */ k("span", { children: M(t, e(I, "support.ticketList.category.general", "General")) }),
|
|
321
|
+
/* @__PURE__ */ k("span", { children: "•" }),
|
|
322
|
+
/* @__PURE__ */ k("span", { children: new Date(t.createdAt).toLocaleDateString() }),
|
|
323
|
+
ee && t.context?.productId && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", { children: "•" }), /* @__PURE__ */ k(r, {
|
|
324
324
|
variant: "outline",
|
|
325
|
-
children:
|
|
325
|
+
children: t.context.productId
|
|
326
326
|
})] }),
|
|
327
|
-
|
|
327
|
+
t.assignedTo && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", { children: "•" }), /* @__PURE__ */ k("span", { children: e(I, "support.ticketList.meta.assigned", "Assigned") })] })
|
|
328
328
|
]
|
|
329
329
|
})
|
|
330
330
|
]
|
|
331
|
-
}), /* @__PURE__ */
|
|
331
|
+
}), /* @__PURE__ */ k("div", {
|
|
332
332
|
className: "text-2xl flex-shrink-0",
|
|
333
|
-
title: P[
|
|
334
|
-
children: /* @__PURE__ */
|
|
335
|
-
className: `block h-3 w-3 rounded-full ${m[
|
|
333
|
+
title: P[t.priority],
|
|
334
|
+
children: /* @__PURE__ */ k("span", {
|
|
335
|
+
className: `block h-3 w-3 rounded-full ${m[t.priority]}`,
|
|
336
336
|
"aria-hidden": "true"
|
|
337
337
|
})
|
|
338
338
|
})]
|
|
339
339
|
})
|
|
340
|
-
},
|
|
341
|
-
}), H && /* @__PURE__ */
|
|
340
|
+
}, t.id))
|
|
341
|
+
}), H && /* @__PURE__ */ k("div", {
|
|
342
342
|
className: "flex justify-center pt-4",
|
|
343
|
-
children: /* @__PURE__ */
|
|
343
|
+
children: /* @__PURE__ */ k(i, {
|
|
344
344
|
variant: "outline",
|
|
345
345
|
onClick: U,
|
|
346
346
|
disabled: B,
|
|
347
|
-
children: B ? /* @__PURE__ */
|
|
347
|
+
children: B ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(C, {
|
|
348
348
|
size: 18,
|
|
349
349
|
className: "animate-spin"
|
|
350
|
-
}),
|
|
350
|
+
}), e(I, "support.ticketList.actions.loadingMore", "Loading...")] }) : e(I, "support.ticketList.actions.loadMore", "Load More")
|
|
351
351
|
})
|
|
352
352
|
})] })
|
|
353
353
|
]
|