@burdenoff/microfe-support 2026.1029.2 → 2026.1031.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.
Files changed (260) hide show
  1. package/dist/generated/global-operations.js +1 -2
  2. package/dist/generated/global-operations.js.map +1 -1
  3. package/dist/generated/global-types.js +1 -2
  4. package/dist/generated/global-types.js.map +1 -1
  5. package/dist/node_modules/@tiptap/core/dist/index.js +701 -712
  6. package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
  7. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +1 -2
  8. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -1
  9. package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +1 -2
  10. package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +1 -1
  11. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +15 -16
  12. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
  13. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -2
  14. package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
  15. package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -2
  16. package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
  17. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +25 -26
  18. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
  19. package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -2
  20. package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
  21. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -2
  22. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
  23. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -2
  24. package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
  25. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +16 -17
  26. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
  27. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -2
  28. package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
  29. package/dist/node_modules/@tiptap/extension-link/dist/index.js +71 -80
  30. package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
  31. package/dist/node_modules/@tiptap/extension-list/dist/index.js +77 -90
  32. package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
  33. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -2
  34. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
  35. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -2
  36. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
  37. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -2
  38. package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
  39. package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -2
  40. package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
  41. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +1 -2
  42. package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
  43. package/dist/node_modules/@tiptap/extensions/dist/index.js +112 -113
  44. package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
  45. package/dist/node_modules/@tiptap/react/dist/index.js +5 -10
  46. package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
  47. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -2
  48. package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
  49. package/dist/node_modules/clsx/dist/clsx.js +1 -2
  50. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  51. package/dist/node_modules/dompurify/dist/purify.es.js +357 -347
  52. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  53. package/dist/node_modules/fast-equals/dist/es/index.js +1 -2
  54. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  55. package/dist/node_modules/linkifyjs/dist/linkify.js +1 -2
  56. package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -1
  57. package/dist/node_modules/marked/lib/marked.esm.js +10 -70
  58. package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
  59. package/dist/node_modules/orderedmap/dist/index.js +1 -2
  60. package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
  61. package/dist/node_modules/prosemirror-commands/dist/index.js +107 -108
  62. package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
  63. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +12 -13
  64. package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
  65. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +42 -47
  66. package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
  67. package/dist/node_modules/prosemirror-history/dist/index.js +47 -49
  68. package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
  69. package/dist/node_modules/prosemirror-keymap/dist/index.js +15 -16
  70. package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
  71. package/dist/node_modules/prosemirror-model/dist/index.js +37 -41
  72. package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
  73. package/dist/node_modules/prosemirror-schema-list/dist/index.js +36 -37
  74. package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
  75. package/dist/node_modules/prosemirror-state/dist/index.js +1 -2
  76. package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
  77. package/dist/node_modules/prosemirror-transform/dist/index.js +1 -2
  78. package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
  79. package/dist/node_modules/prosemirror-view/dist/index.js +302 -304
  80. package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
  81. package/dist/node_modules/rope-sequence/dist/index.js +1 -2
  82. package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
  83. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
  84. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  85. package/dist/node_modules/w3c-keyname/index.js +0 -1
  86. package/dist/node_modules/w3c-keyname/index.js.map +1 -1
  87. package/dist/support/SupportAdminRoot.js +14 -15
  88. package/dist/support/SupportAdminRoot.js.map +1 -1
  89. package/dist/support/SupportAdminRoutes.js +5 -6
  90. package/dist/support/SupportAdminRoutes.js.map +1 -1
  91. package/dist/support/SupportUserRoot.js +10 -11
  92. package/dist/support/SupportUserRoot.js.map +1 -1
  93. package/dist/support/SupportUserRoutes.js +1 -2
  94. package/dist/support/SupportUserRoutes.js.map +1 -1
  95. package/dist/support/components/NotificationToast.js +1 -2
  96. package/dist/support/components/NotificationToast.js.map +1 -1
  97. package/dist/support/components/PageLayout.js +15 -16
  98. package/dist/support/components/PageLayout.js.map +1 -1
  99. package/dist/support/components/RouteHelpers.js +1 -2
  100. package/dist/support/components/RouteHelpers.js.map +1 -1
  101. package/dist/support/components/analytics/CategoryBreakdown.js +9 -10
  102. package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
  103. package/dist/support/components/analytics/MetricCard.js +1 -2
  104. package/dist/support/components/analytics/MetricCard.js.map +1 -1
  105. package/dist/support/components/analytics/PriorityBreakdown.js +9 -10
  106. package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
  107. package/dist/support/components/analytics/SLAReport.js +5 -6
  108. package/dist/support/components/analytics/SLAReport.js.map +1 -1
  109. package/dist/support/components/analytics/SatisfactionDistribution.js +5 -6
  110. package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
  111. package/dist/support/components/analytics/TopAgents.js +5 -6
  112. package/dist/support/components/analytics/TopAgents.js.map +1 -1
  113. package/dist/support/components/analytics/TrendChart.js +5 -6
  114. package/dist/support/components/analytics/TrendChart.js.map +1 -1
  115. package/dist/support/components/careers/BulkCandidateActionGuidance.js +1 -2
  116. package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -1
  117. package/dist/support/components/careers/BulkCandidateDialogs.js +321 -322
  118. package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -1
  119. package/dist/support/components/careers/BulkOperationFeedback.js +1 -2
  120. package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -1
  121. package/dist/support/components/careers/BulkSelectionSummary.js +1 -2
  122. package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -1
  123. package/dist/support/components/careers/JobApplicationFilterContextGuard.js +1 -2
  124. package/dist/support/components/careers/JobApplicationFilterContextGuard.js.map +1 -1
  125. package/dist/support/components/careers/RichTextEditor.js +17 -18
  126. package/dist/support/components/careers/RichTextEditor.js.map +1 -1
  127. package/dist/support/components/kb/ArticleForm.js +10 -11
  128. package/dist/support/components/kb/ArticleForm.js.map +1 -1
  129. package/dist/support/components/settings/CannedResponsesSettings.js +2 -3
  130. package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
  131. package/dist/support/components/settings/SLAPoliciesSettings.js +1 -2
  132. package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
  133. package/dist/support/components/settings/TicketCategoriesSettings.js +3 -8
  134. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
  135. package/dist/support/components/tickets/AttachmentList.js +4 -5
  136. package/dist/support/components/tickets/AttachmentList.js.map +1 -1
  137. package/dist/support/components/tickets/MarkdownContent.js +1 -2
  138. package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
  139. package/dist/support/components/tickets/MessageComposer.js +1 -2
  140. package/dist/support/components/tickets/MessageComposer.js.map +1 -1
  141. package/dist/support/components/tickets/MessageThread.js +13 -14
  142. package/dist/support/components/tickets/MessageThread.js.map +1 -1
  143. package/dist/support/components/tickets/TicketDetailHeader.js +13 -14
  144. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
  145. package/dist/support/components/tickets/TicketHeader.js +1 -2
  146. package/dist/support/components/tickets/TicketHeader.js.map +1 -1
  147. package/dist/support/components/tickets/TicketSidebar.js +6 -7
  148. package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
  149. package/dist/support/components/tickets/TriagePanel.js +25 -26
  150. package/dist/support/components/tickets/TriagePanel.js.map +1 -1
  151. package/dist/support/components/ui.js +1 -2
  152. package/dist/support/constants/pipeline.js +1 -2
  153. package/dist/support/constants/pipeline.js.map +1 -1
  154. package/dist/support/constants.js +1 -2
  155. package/dist/support/constants.js.map +1 -1
  156. package/dist/support/events/rybbit.js +1 -2
  157. package/dist/support/events/rybbit.js.map +1 -1
  158. package/dist/support/hooks/index.js +6 -6
  159. package/dist/support/hooks/useAnalyticsOperations.js +1 -2
  160. package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
  161. package/dist/support/hooks/useAttachmentsFailedToast.js +1 -2
  162. package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
  163. package/dist/support/hooks/useChatOperations.js +14 -15
  164. package/dist/support/hooks/useChatOperations.js.map +1 -1
  165. package/dist/support/hooks/useDebouncedUrlText.js +1 -2
  166. package/dist/support/hooks/useDebouncedUrlText.js.map +1 -1
  167. package/dist/support/hooks/useKnowledgeBaseOperations.js +62 -63
  168. package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
  169. package/dist/support/hooks/useNotification.js +1 -2
  170. package/dist/support/hooks/useNotification.js.map +1 -1
  171. package/dist/support/hooks/useRegisterFooter.js +1 -2
  172. package/dist/support/hooks/useRegisterFooter.js.map +1 -1
  173. package/dist/support/hooks/useSettingsOperations.js +1 -2
  174. package/dist/support/hooks/useSettingsOperations.js.map +1 -1
  175. package/dist/support/hooks/useSupportAttachments.js +1 -2
  176. package/dist/support/hooks/useSupportAttachments.js.map +1 -1
  177. package/dist/support/hooks/useTicketListOperations.js +9 -10
  178. package/dist/support/hooks/useTicketListOperations.js.map +1 -1
  179. package/dist/support/hooks/useTicketOperations.d.ts +8 -0
  180. package/dist/support/hooks/useTicketOperations.js +92 -93
  181. package/dist/support/hooks/useTicketOperations.js.map +1 -1
  182. package/dist/support/hooks/useTr.js +1 -2
  183. package/dist/support/hooks/useTr.js.map +1 -1
  184. package/dist/support/index.js +4 -4
  185. package/dist/support/pages/AnalyticsPage.js +34 -35
  186. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  187. package/dist/support/pages/ArticleDetailAdminPage.js +33 -38
  188. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  189. package/dist/support/pages/ArticleDetailUserPage.js +22 -23
  190. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  191. package/dist/support/pages/ContactInquiriesPage.js +5 -6
  192. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  193. package/dist/support/pages/ContactInquiryDetailPage.js +13 -14
  194. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  195. package/dist/support/pages/CreateArticlePage.js +15 -16
  196. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  197. package/dist/support/pages/CreateTicketPage.js +37 -44
  198. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  199. package/dist/support/pages/EditArticlePage.js +20 -21
  200. package/dist/support/pages/EditArticlePage.js.map +1 -1
  201. package/dist/support/pages/InterviewersPage.js +121 -122
  202. package/dist/support/pages/InterviewersPage.js.map +1 -1
  203. package/dist/support/pages/JobApplicationDetailPage.js +322 -332
  204. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  205. package/dist/support/pages/JobApplicationsPage.js +556 -561
  206. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  207. package/dist/support/pages/JobPostingDetailPage.js +489 -490
  208. package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
  209. package/dist/support/pages/JobPostingsPage.js +279 -280
  210. package/dist/support/pages/JobPostingsPage.js.map +1 -1
  211. package/dist/support/pages/KnowledgeBaseAdminPage.js +26 -27
  212. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  213. package/dist/support/pages/KnowledgeBaseUserPage.js +23 -24
  214. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  215. package/dist/support/pages/SettingsPage.js +43 -44
  216. package/dist/support/pages/SettingsPage.js.map +1 -1
  217. package/dist/support/pages/TicketDetailAdminPage.js +54 -55
  218. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  219. package/dist/support/pages/TicketDetailUserPage.js +61 -62
  220. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  221. package/dist/support/pages/TicketListPage.js +77 -78
  222. package/dist/support/pages/TicketListPage.js.map +1 -1
  223. package/dist/support/providers/SupportProvider.js +1 -2
  224. package/dist/support/providers/SupportProvider.js.map +1 -1
  225. package/dist/support/store/supportStore.js +1 -2
  226. package/dist/support/store/supportStore.js.map +1 -1
  227. package/dist/support/translations/en.js +1 -2
  228. package/dist/support/translations/en.js.map +1 -1
  229. package/dist/support/utils/attachments.js +1 -2
  230. package/dist/support/utils/attachments.js.map +1 -1
  231. package/dist/support/utils/breadcrumbRegistry.js +3 -4
  232. package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
  233. package/dist/support/utils/bulkCandidateOperations.js +0 -1
  234. package/dist/support/utils/bulkCandidateOperations.js.map +1 -1
  235. package/dist/support/utils/bulkCandidateTargetQuery.js +1 -2
  236. package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -1
  237. package/dist/support/utils/categoryColors.js +1 -2
  238. package/dist/support/utils/categoryColors.js.map +1 -1
  239. package/dist/support/utils/cn.js +1 -2
  240. package/dist/support/utils/cn.js.map +1 -1
  241. package/dist/support/utils/context.js +3 -4
  242. package/dist/support/utils/context.js.map +1 -1
  243. package/dist/support/utils/errors.js +1 -2
  244. package/dist/support/utils/errors.js.map +1 -1
  245. package/dist/support/utils/i18n.js +1 -2
  246. package/dist/support/utils/i18n.js.map +1 -1
  247. package/dist/support/utils/index.js +1 -2
  248. package/dist/support/utils/index.js.map +1 -1
  249. package/dist/support/utils/jobApplicationFilterParams.js +1 -2
  250. package/dist/support/utils/jobApplicationFilterParams.js.map +1 -1
  251. package/dist/support/utils/markdown.js +1 -2
  252. package/dist/support/utils/markdown.js.map +1 -1
  253. package/dist/support/utils/supportFiles.js +2 -11
  254. package/dist/support/utils/supportFiles.js.map +1 -1
  255. package/dist/support/utils/ticketFilters.js +1 -2
  256. package/dist/support/utils/ticketFilters.js.map +1 -1
  257. package/dist/support/utils/uiTokens.js +1 -2
  258. package/dist/support/utils/uiTokens.js.map +1 -1
  259. package/dist/utils/nativeBridge.js +1 -2
  260. package/package.json +21 -14
@@ -1,56 +1,56 @@
1
- import { useTr as e } from "../hooks/useTr.js";
2
- import { useSupport as t } from "../providers/SupportProvider.js";
3
- import { isAdminRole as n } from "../utils/index.js";
4
- import { Button as r, EmphasisPanel as i, NextSteps as a } from "../components/ui.js";
5
- import { useGetCannedResponsesQuery as o, useGetTicketCategoriesQuery as ee } from "../../generated/global-operations.js";
6
- import { MessageType as s, SupportTicketStatus as c } from "../../generated/global-types.js";
7
- import { EmptyState as l, LoadingState as u, PageLayout as d } from "../components/PageLayout.js";
8
- import { useTicketOperations as f } from "../hooks/useTicketOperations.js";
9
- import { registerBreadcrumbName as p, unregisterBreadcrumbName as m } from "../utils/breadcrumbRegistry.js";
10
- import { useNotification as h } from "../hooks/useNotification.js";
11
- import { NotificationToast as g } from "../components/NotificationToast.js";
12
- import { extractErrorMessage as _ } from "../utils/errors.js";
13
- import { uploadSupportAttachmentFiles as te } from "../utils/supportFiles.js";
14
- import { useAttachmentsFailedToast as ne } from "../hooks/useAttachmentsFailedToast.js";
15
- import { TicketHeader as v } from "../components/tickets/TicketHeader.js";
16
- import { TicketSidebar as y } from "../components/tickets/TicketSidebar.js";
17
- import { TriagePanel as b } from "../components/tickets/TriagePanel.js";
18
- import { AttachmentList as x } from "../components/tickets/AttachmentList.js";
19
- import { MarkdownContent as S } from "../components/tickets/MarkdownContent.js";
20
- import { MessageThread as re } from "../components/tickets/MessageThread.js";
21
- import { MessageComposer as C } from "../components/tickets/MessageComposer.js";
1
+ import { Button as e, EmphasisPanel as t, NextSteps as n } from "../components/ui.js";
2
+ import { useTicketOperations as r } from "../hooks/useTicketOperations.js";
3
+ import { useTr as i } from "../hooks/useTr.js";
4
+ import { useGetCannedResponsesQuery as ee, useGetTicketCategoriesQuery as a } from "../../generated/global-operations.js";
5
+ import { useNotification as o } from "../hooks/useNotification.js";
6
+ import { useAttachmentsFailedToast as s } from "../hooks/useAttachmentsFailedToast.js";
7
+ import { TicketHeader as c } from "../components/tickets/TicketHeader.js";
8
+ import { TicketSidebar as l } from "../components/tickets/TicketSidebar.js";
9
+ import { TriagePanel as u } from "../components/tickets/TriagePanel.js";
10
+ import { MessageThread as d } from "../components/tickets/MessageThread.js";
11
+ import { MessageComposer as f } from "../components/tickets/MessageComposer.js";
12
+ import { AttachmentList as p } from "../components/tickets/AttachmentList.js";
13
+ import { MarkdownContent as m } from "../components/tickets/MarkdownContent.js";
14
+ import { NotificationToast as h } from "../components/NotificationToast.js";
15
+ import { EmptyState as g, LoadingState as te, PageLayout as _ } from "../components/PageLayout.js";
16
+ import { MessageType as v, SupportTicketStatus as y } from "../../generated/global-types.js";
17
+ import { useSupport as b } from "../providers/SupportProvider.js";
18
+ import { extractErrorMessage as x } from "../utils/errors.js";
19
+ import { isAdminRole as S } from "../utils/index.js";
20
+ import { uploadSupportAttachmentFiles as C } from "../utils/supportFiles.js";
21
+ import { registerBreadcrumbName as ne, unregisterBreadcrumbName as re } from "../utils/breadcrumbRegistry.js";
22
22
  import { useEffect as w, useMemo as T, useRef as E } from "react";
23
23
  import { AlertCircle as D, ArrowLeft as O } from "lucide-react";
24
24
  import { useNavigate as k, useParams as A } from "react-router";
25
25
  import { jsx as j, jsxs as M } from "react/jsx-runtime";
26
26
  import { useShellUi as N } from "@burdenoff/fe-libs/shared/providers/shell/ShellUiProvider";
27
- //#region src/support/pages/TicketDetailAdminPage.tsx
27
+ // src/support/pages/TicketDetailAdminPage.tsx
28
28
  function P() {
29
- let { ticketId: P } = A(), F = k(), { currentUser: I } = t(), { footerVisible: L, setFooterVisible: R } = N(), ie = E(L), z = e(), { ticketDetail: B, ticketDetailLoading: V, ticketDetailError: H, changeTicketStatus: U, addTicketMessage: W, addMessageLoading: G, refetchTicketDetail: K, setSelectedTicket: q } = f(), J = n(I?.role), { data: Y, loading: ae } = o({
29
+ let { ticketId: P } = A(), F = k(), { currentUser: I } = b(), { footerVisible: L, setFooterVisible: R } = N(), ie = E(L), z = i(), { ticketDetail: B, ticketDetailLoading: V, ticketDetailError: H, changeTicketStatus: U, addTicketMessage: W, addMessageLoading: G, refetchTicketDetail: K, setSelectedTicket: q } = r({ ticketId: P }), J = S(I?.role), { data: Y, loading: ae } = ee({
30
30
  variables: {
31
31
  filter: { isActive: !0 },
32
32
  limit: 100
33
33
  },
34
34
  skip: !J
35
- }), oe = Y?.cannedResponses.nodes ?? [], { data: X } = ee({
35
+ }), oe = Y?.cannedResponses.nodes ?? [], { data: X } = a({
36
36
  variables: {
37
37
  limit: 100,
38
38
  offset: 0
39
39
  },
40
40
  skip: !J
41
- }), se = T(() => Object.fromEntries((X?.ticketCategories.nodes ?? []).map((e) => [e.id, e.name])), [X]), { notification: ce, notify: Z } = h();
42
- ne(Z), w(() => (P && q({ id: P }), () => {
41
+ }), se = T(() => Object.fromEntries((X?.ticketCategories.nodes ?? []).map((e) => [e.id, e.name])), [X]), { notification: ce, notify: Z } = o();
42
+ s(Z), w(() => (P && q({ id: P }), () => {
43
43
  q(null);
44
44
  }), [P, q]), w(() => (R(!1), () => {
45
45
  R(ie.current);
46
- }), [R]), w(() => (p(P, B?.ticketNumber), () => m(P)), [P, B?.ticketNumber]);
46
+ }), [R]), w(() => (ne(P, B?.ticketNumber), () => re(P)), [P, B?.ticketNumber]);
47
47
  let Q = () => {
48
48
  q(null), F("..");
49
49
  }, $ = async (e) => {
50
50
  if (P) try {
51
51
  await U(P, e);
52
52
  } catch (e) {
53
- console.error("Failed to change status:", e), Z("error", _(e, z("support.ticketDetail.errors.changeStatus", "Failed to change ticket status.")), 6e3);
53
+ console.error("Failed to change status:", e), Z("error", x(e, z("support.ticketDetail.errors.changeStatus", "Failed to change ticket status.")), 6e3);
54
54
  }
55
55
  }, le = async (e, t, n) => {
56
56
  if (!P) return;
@@ -60,12 +60,12 @@ function P() {
60
60
  }
61
61
  let r, i = null;
62
62
  if (n.length > 0) try {
63
- r = (await te({
63
+ r = (await C({
64
64
  ticketId: P,
65
65
  files: n
66
66
  })).files.map((e) => e.id);
67
67
  } catch (e) {
68
- i = _(e, z("support.ticketDetail.errors.uploadAttachments", "Failed to upload attachments."));
68
+ i = x(e, z("support.ticketDetail.errors.uploadAttachments", "Failed to upload attachments."));
69
69
  }
70
70
  if (!e.trim() && !r?.length) {
71
71
  let e = i ? z("support.ticketDetail.errors.attachmentUploadFailed", "Attachment upload failed: {{message}}", { message: i }) : z("support.ticketDetail.errors.nothingToSend", "Nothing to send.");
@@ -75,21 +75,21 @@ function P() {
75
75
  if (await W({
76
76
  ticketId: P,
77
77
  message: e,
78
- type: t ? s.InternalNote : s.AgentReply,
78
+ type: t ? v.InternalNote : v.AgentReply,
79
79
  isInternal: t,
80
80
  attachments: r
81
81
  }), i) return Z("error", z("support.ticketDetail.errors.messageSentAttachmentsFailed", "Message sent, but attachments failed: {{message}}", { message: i }), 6e3), { preserveAttachedFiles: n.length > 0 };
82
82
  } catch (e) {
83
- return console.error("[support] addTicketMessage failed", e), Z("error", _(e, z("support.ticketDetail.errors.sendMessage", "Failed to send message.")), 6e3), {
83
+ return console.error("[support] addTicketMessage failed", e), Z("error", x(e, z("support.ticketDetail.errors.sendMessage", "Failed to send message.")), 6e3), {
84
84
  preserveMessage: !0,
85
85
  preserveAttachedFiles: n.length > 0
86
86
  };
87
87
  }
88
88
  };
89
- return V && !B ? /* @__PURE__ */ j(d, {
89
+ return V && !B ? /* @__PURE__ */ j(_, {
90
90
  showHeader: !1,
91
- children: /* @__PURE__ */ j(u, { message: z("support.ticketDetail.loading", "Loading ticket details...") })
92
- }) : H ? /* @__PURE__ */ j(d, {
91
+ children: /* @__PURE__ */ j(te, { message: z("support.ticketDetail.loading", "Loading ticket details...") })
92
+ }) : H ? /* @__PURE__ */ j(_, {
93
93
  showHeader: !1,
94
94
  children: /* @__PURE__ */ M("div", {
95
95
  className: "flex flex-col items-center justify-center py-16 text-center",
@@ -106,7 +106,7 @@ function P() {
106
106
  className: "text-sm text-text-secondary max-w-md mb-4",
107
107
  children: H.message || z("support.ticketDetail.error.description", "An error occurred while loading the ticket. Please try again.")
108
108
  }),
109
- /* @__PURE__ */ M(r, {
109
+ /* @__PURE__ */ M(e, {
110
110
  onClick: Q,
111
111
  children: [/* @__PURE__ */ j(O, { size: 18 }), z("support.ticketDetail.actions.back", "Back to Tickets")]
112
112
  })
@@ -115,8 +115,8 @@ function P() {
115
115
  }) : B ? /* @__PURE__ */ M("div", {
116
116
  className: "flex h-full min-h-0 flex-col bg-bg-surface",
117
117
  children: [
118
- /* @__PURE__ */ j(g, { notification: ce }),
119
- /* @__PURE__ */ j(v, {
118
+ /* @__PURE__ */ j(h, { notification: ce }),
119
+ /* @__PURE__ */ j(c, {
120
120
  ticket: B,
121
121
  onBack: Q,
122
122
  onStatusChange: $
@@ -128,18 +128,18 @@ function P() {
128
128
  children: [
129
129
  /* @__PURE__ */ j("div", {
130
130
  className: "shrink-0 border-b border-border-subtle bg-bg-surface p-4 sm:p-6",
131
- children: /* @__PURE__ */ M(i, {
131
+ children: /* @__PURE__ */ M(t, {
132
132
  className: "p-4",
133
133
  children: [
134
134
  /* @__PURE__ */ j("h2", {
135
135
  className: "text-lg font-semibold mb-2 text-text-primary",
136
136
  children: z("support.ticketDetail.descriptionTitle", "Customer request — Description")
137
137
  }),
138
- /* @__PURE__ */ j(S, {
138
+ /* @__PURE__ */ j(m, {
139
139
  content: B.description,
140
140
  className: "text-sm"
141
141
  }),
142
- /* @__PURE__ */ j(x, {
142
+ /* @__PURE__ */ j(p, {
143
143
  ticketId: B.id,
144
144
  fileIds: B.metadata?.initialAttachmentIds ?? []
145
145
  })
@@ -150,7 +150,7 @@ function P() {
150
150
  "data-tour": "support-admin-ticket-conversation",
151
151
  className: "min-h-0 flex-1 overflow-y-auto p-4 sm:p-6",
152
152
  children: [
153
- /* @__PURE__ */ j(a, {
153
+ /* @__PURE__ */ j(n, {
154
154
  storageKey: "support-ticket-detail-admin",
155
155
  title: z("support.ticketDetail.nextSteps.title", "Agent quick actions"),
156
156
  className: "mb-6",
@@ -166,17 +166,17 @@ function P() {
166
166
  id: "in-progress",
167
167
  label: z("support.ticketDetail.nextSteps.inProgress.label", "Mark as In Progress"),
168
168
  description: z("support.ticketDetail.nextSteps.inProgress.description", "Let the customer know you are working on it."),
169
- onClick: () => void $(c.InProgress),
170
- done: B.status === c.InProgress
169
+ onClick: () => void $(y.InProgress),
170
+ done: B.status === y.InProgress
171
171
  }, {
172
172
  id: "resolve",
173
173
  label: z("support.ticketDetail.nextSteps.resolve.label", "Resolve the ticket"),
174
174
  description: z("support.ticketDetail.nextSteps.resolve.description", "Close out the request once the issue is fixed."),
175
- onClick: () => void $(c.Resolved),
176
- done: B.status === c.Resolved
175
+ onClick: () => void $(y.Resolved),
176
+ done: B.status === y.Resolved
177
177
  }] : []]
178
178
  }),
179
- J && /* @__PURE__ */ j(b, {
179
+ J && /* @__PURE__ */ j(u, {
180
180
  ticketId: B.id,
181
181
  decision: B.triageDecision,
182
182
  draft: B.replyDraft,
@@ -188,7 +188,7 @@ function P() {
188
188
  className: "text-lg font-semibold mb-4 text-text-primary",
189
189
  children: z("support.ticketDetail.conversationTitle", "Conversation")
190
190
  }),
191
- /* @__PURE__ */ j(re, {
191
+ /* @__PURE__ */ j(d, {
192
192
  ticketId: B.id,
193
193
  messages: B.messages || [],
194
194
  currentUserId: I?.id,
@@ -198,11 +198,11 @@ function P() {
198
198
  }),
199
199
  /* @__PURE__ */ j("div", {
200
200
  className: "mt-6 rounded-xl border border-border-seam bg-bg-surface p-4 xl:hidden",
201
- children: /* @__PURE__ */ j(y, { ticket: B })
201
+ children: /* @__PURE__ */ j(l, { ticket: B })
202
202
  })
203
203
  ]
204
204
  }),
205
- /* @__PURE__ */ j(C, {
205
+ /* @__PURE__ */ j(f, {
206
206
  ticketId: B.id,
207
207
  onSendMessage: le,
208
208
  disabled: G,
@@ -213,24 +213,23 @@ function P() {
213
213
  ]
214
214
  }), /* @__PURE__ */ j("div", {
215
215
  className: "hidden min-h-0 xl:block",
216
- children: /* @__PURE__ */ j(y, { ticket: B })
216
+ children: /* @__PURE__ */ j(l, { ticket: B })
217
217
  })]
218
218
  })
219
219
  ]
220
- }) : /* @__PURE__ */ j(d, {
220
+ }) : /* @__PURE__ */ j(_, {
221
221
  showHeader: !1,
222
- children: /* @__PURE__ */ j(l, {
222
+ children: /* @__PURE__ */ j(g, {
223
223
  illustration: "empty-search",
224
224
  title: z("support.ticketDetail.notFound.title", "Ticket not found"),
225
225
  description: z("support.ticketDetail.notFound.description", "The ticket you're looking for doesn't exist or has been deleted."),
226
- action: /* @__PURE__ */ M(r, {
226
+ action: /* @__PURE__ */ M(e, {
227
227
  onClick: Q,
228
228
  children: [/* @__PURE__ */ j(O, { size: 18 }), z("support.ticketDetail.actions.back", "Back to Tickets")]
229
229
  })
230
230
  })
231
231
  });
232
232
  }
233
- //#endregion
234
233
  export { P as TicketDetailAdminPage };
235
234
 
236
235
  //# sourceMappingURL=TicketDetailAdminPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TicketDetailAdminPage.js","names":[],"sources":["../../../src/support/pages/TicketDetailAdminPage.tsx"],"sourcesContent":["import { useEffect, useMemo, useRef } from 'react';\nimport { useParams, useNavigate } from 'react-router';\nimport { AlertCircle, ArrowLeft } from 'lucide-react';\nimport { Button, EmphasisPanel, NextSteps } from '../components/ui';\nimport { useShellUi } from '@burdenoff/fe-libs/shared/providers/shell/ShellUiProvider';\nimport { useTicketOperations } from '../hooks/useTicketOperations';\nimport { useTr } from '../hooks/useTr';\nimport {\n useGetCannedResponsesQuery,\n useGetTicketCategoriesQuery,\n} from '../../generated/global-operations';\nimport { useNotification } from '../hooks/useNotification';\nimport { useAttachmentsFailedToast } from '../hooks/useAttachmentsFailedToast';\nimport { TicketHeader } from '../components/tickets/TicketHeader';\nimport { TicketSidebar } from '../components/tickets/TicketSidebar';\nimport { TriagePanel } from '../components/tickets/TriagePanel';\nimport { MessageThread } from '../components/tickets/MessageThread';\nimport {\n MessageComposer,\n type MessageComposerSendResult,\n} from '../components/tickets/MessageComposer';\nimport { AttachmentList } from '../components/tickets/AttachmentList';\nimport { MarkdownContent } from '../components/tickets/MarkdownContent';\nimport { NotificationToast } from '../components/NotificationToast';\nimport { PageLayout, LoadingState, EmptyState } from '../components/PageLayout';\nimport { MessageType, SupportTicketStatus, type SupportTicket } from '../../generated/global-types';\nimport { useSupport } from '../providers/SupportProvider';\nimport { extractErrorMessage } from '../utils/errors';\nimport { isAdminRole } from '../utils';\nimport { uploadSupportAttachmentFiles } from '../utils/supportFiles';\nimport { registerBreadcrumbName, unregisterBreadcrumbName } from '../utils/breadcrumbRegistry';\n\n/**\n * Admin-facing ticket detail page.\n *\n * Admins/agents get full controls: status changes, ticket assignment,\n * internal notes, and all reply types in addition to the standard\n * ticket view and conversation.\n */\nexport function TicketDetailAdminPage() {\n const { ticketId } = useParams<{ ticketId: string }>();\n const navigate = useNavigate();\n const { currentUser } = useSupport();\n const { footerVisible, setFooterVisible } = useShellUi();\n const initialFooterVisible = useRef(footerVisible);\n const tr = useTr();\n const {\n ticketDetail,\n ticketDetailLoading,\n ticketDetailError,\n changeTicketStatus,\n addTicketMessage,\n addMessageLoading,\n refetchTicketDetail,\n setSelectedTicket,\n } = useTicketOperations();\n const canLeaveInternalNotes = isAdminRole(currentUser?.role);\n const { data: cannedResponsesData, loading: cannedResponsesLoading } = useGetCannedResponsesQuery(\n {\n variables: {\n filter: { isActive: true },\n limit: 100,\n },\n skip: !canLeaveInternalNotes,\n }\n );\n const cannedResponses = cannedResponsesData?.cannedResponses.nodes ?? [];\n const { data: categoriesData } = useGetTicketCategoriesQuery({\n variables: { limit: 100, offset: 0 },\n skip: !canLeaveInternalNotes,\n });\n const categoryNames = useMemo(\n () =>\n Object.fromEntries(\n (categoriesData?.ticketCategories.nodes ?? []).map(\n (category: { id: string; name: string }) => [category.id, category.name]\n )\n ),\n [categoriesData]\n );\n\n const { notification, notify } = useNotification();\n useAttachmentsFailedToast(notify);\n\n useEffect(() => {\n if (ticketId) {\n setSelectedTicket({ id: ticketId } as SupportTicket);\n }\n return () => {\n setSelectedTicket(null);\n };\n }, [ticketId, setSelectedTicket]);\n\n useEffect(() => {\n setFooterVisible(false);\n\n return () => {\n setFooterVisible(initialFooterVisible.current);\n };\n }, [setFooterVisible]);\n\n useEffect(() => {\n registerBreadcrumbName(ticketId, ticketDetail?.ticketNumber);\n return () => unregisterBreadcrumbName(ticketId);\n }, [ticketId, ticketDetail?.ticketNumber]);\n\n const handleBack = () => {\n setSelectedTicket(null);\n navigate('..');\n };\n\n const handleStatusChange = async (status: SupportTicketStatus) => {\n if (!ticketId) return;\n try {\n await changeTicketStatus(ticketId, status);\n } catch (error) {\n console.error('Failed to change status:', error);\n notify(\n 'error',\n extractErrorMessage(\n error,\n tr('support.ticketDetail.errors.changeStatus', 'Failed to change ticket status.')\n ),\n 6000\n );\n }\n };\n\n const handleSendMessage = async (\n messageText: string,\n isInternal: boolean,\n files: File[]\n ): Promise<MessageComposerSendResult | void> => {\n if (!ticketId) return;\n\n // Synchronous guard: if there is nothing to send AND nothing to upload, bail\n // before touching the network.\n if (!messageText.trim() && files.length === 0) {\n notify('error', tr('support.ticketDetail.errors.nothingToSend', 'Nothing to send.'), 6000);\n return;\n }\n\n let attachmentIds: string[] | undefined;\n let attachmentError: string | null = null;\n\n if (files.length > 0) {\n try {\n const uploadResult = await uploadSupportAttachmentFiles({\n ticketId,\n files,\n });\n attachmentIds = uploadResult.files.map((file) => file.id);\n } catch (uploadError) {\n attachmentError = extractErrorMessage(\n uploadError,\n tr('support.ticketDetail.errors.uploadAttachments', 'Failed to upload attachments.')\n );\n }\n }\n\n if (!messageText.trim() && !attachmentIds?.length) {\n const errorMessage = attachmentError\n ? tr(\n 'support.ticketDetail.errors.attachmentUploadFailed',\n 'Attachment upload failed: {{message}}',\n { message: attachmentError }\n )\n : tr('support.ticketDetail.errors.nothingToSend', 'Nothing to send.');\n notify('error', errorMessage, 6000);\n return files.length > 0 ? { preserveAttachedFiles: true } : undefined;\n }\n\n try {\n await addTicketMessage({\n ticketId,\n message: messageText,\n type: isInternal ? MessageType.InternalNote : MessageType.AgentReply,\n isInternal,\n attachments: attachmentIds,\n });\n\n if (attachmentError) {\n notify(\n 'error',\n tr(\n 'support.ticketDetail.errors.messageSentAttachmentsFailed',\n 'Message sent, but attachments failed: {{message}}',\n { message: attachmentError }\n ),\n 6000\n );\n return { preserveAttachedFiles: files.length > 0 };\n }\n } catch (sendError) {\n console.error('[support] addTicketMessage failed', sendError);\n notify(\n 'error',\n extractErrorMessage(\n sendError,\n tr('support.ticketDetail.errors.sendMessage', 'Failed to send message.')\n ),\n 6000\n );\n return {\n preserveMessage: true,\n preserveAttachedFiles: files.length > 0,\n };\n }\n };\n\n if (ticketDetailLoading && !ticketDetail) {\n return (\n <PageLayout showHeader={false}>\n <LoadingState message={tr('support.ticketDetail.loading', 'Loading ticket details...')} />\n </PageLayout>\n );\n }\n\n if (ticketDetailError) {\n return (\n <PageLayout showHeader={false}>\n <div className=\"flex flex-col items-center justify-center py-16 text-center\">\n <div className=\"p-4 rounded-2xl bg-status-error-bg/10 text-status-error-text mb-4\">\n <AlertCircle size={48} />\n </div>\n <h3 className=\"text-lg font-semibold text-text-primary mb-2\">\n {tr('support.ticketDetail.error.title', 'Failed to load ticket')}\n </h3>\n <p className=\"text-sm text-text-secondary max-w-md mb-4\">\n {ticketDetailError.message ||\n tr(\n 'support.ticketDetail.error.description',\n 'An error occurred while loading the ticket. Please try again.'\n )}\n </p>\n <Button onClick={handleBack}>\n <ArrowLeft size={18} />\n {tr('support.ticketDetail.actions.back', 'Back to Tickets')}\n </Button>\n </div>\n </PageLayout>\n );\n }\n\n if (!ticketDetail) {\n return (\n <PageLayout showHeader={false}>\n <EmptyState\n illustration=\"empty-search\"\n title={tr('support.ticketDetail.notFound.title', 'Ticket not found')}\n description={tr(\n 'support.ticketDetail.notFound.description',\n \"The ticket you're looking for doesn't exist or has been deleted.\"\n )}\n action={\n <Button onClick={handleBack}>\n <ArrowLeft size={18} />\n {tr('support.ticketDetail.actions.back', 'Back to Tickets')}\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n return (\n <div className=\"flex h-full min-h-0 flex-col bg-bg-surface\">\n <NotificationToast notification={notification} />\n\n <TicketHeader ticket={ticketDetail} onBack={handleBack} onStatusChange={handleStatusChange} />\n\n <div className=\"flex min-h-0 flex-1 overflow-hidden\">\n <div className=\"flex min-h-0 flex-1 flex-col overflow-hidden\">\n <div className=\"shrink-0 border-b border-border-subtle bg-bg-surface p-4 sm:p-6\">\n <EmphasisPanel className=\"p-4\">\n <h2 className=\"text-lg font-semibold mb-2 text-text-primary\">\n {tr('support.ticketDetail.descriptionTitle', 'Customer request — Description')}\n </h2>\n <MarkdownContent content={ticketDetail.description} className=\"text-sm\" />\n <AttachmentList\n ticketId={ticketDetail.id}\n fileIds={\n ((ticketDetail.metadata as Record<string, unknown> | null)\n ?.initialAttachmentIds as string[] | undefined) ?? []\n }\n />\n </EmphasisPanel>\n </div>\n\n <div\n data-tour=\"support-admin-ticket-conversation\"\n className=\"min-h-0 flex-1 overflow-y-auto p-4 sm:p-6\"\n >\n <NextSteps\n storageKey=\"support-ticket-detail-admin\"\n title={tr('support.ticketDetail.nextSteps.title', 'Agent quick actions')}\n className=\"mb-6\"\n steps={[\n {\n id: 'reply',\n label: tr('support.ticketDetail.nextSteps.reply.label', 'Reply to the customer'),\n description: tr(\n 'support.ticketDetail.nextSteps.reply.description',\n 'Draft a response in the composer below.'\n ),\n onClick: () =>\n document\n .querySelector('[data-tour=\"support-admin-ticket-conversation\"]')\n ?.scrollTo({ top: 999999, behavior: 'smooth' }),\n },\n ...(canLeaveInternalNotes\n ? [\n {\n id: 'in-progress',\n label: tr(\n 'support.ticketDetail.nextSteps.inProgress.label',\n 'Mark as In Progress'\n ),\n description: tr(\n 'support.ticketDetail.nextSteps.inProgress.description',\n 'Let the customer know you are working on it.'\n ),\n onClick: () => void handleStatusChange(SupportTicketStatus.InProgress),\n done: ticketDetail.status === SupportTicketStatus.InProgress,\n },\n {\n id: 'resolve',\n label: tr(\n 'support.ticketDetail.nextSteps.resolve.label',\n 'Resolve the ticket'\n ),\n description: tr(\n 'support.ticketDetail.nextSteps.resolve.description',\n 'Close out the request once the issue is fixed.'\n ),\n onClick: () => void handleStatusChange(SupportTicketStatus.Resolved),\n done: ticketDetail.status === SupportTicketStatus.Resolved,\n },\n ]\n : []),\n ]}\n />\n {canLeaveInternalNotes && (\n <TriagePanel\n ticketId={ticketDetail.id}\n decision={ticketDetail.triageDecision}\n draft={ticketDetail.replyDraft}\n categoryNames={categoryNames}\n onChanged={() => refetchTicketDetail()}\n notify={notify}\n />\n )}\n <h2 className=\"text-lg font-semibold mb-4 text-text-primary\">\n {tr('support.ticketDetail.conversationTitle', 'Conversation')}\n </h2>\n <MessageThread\n ticketId={ticketDetail.id}\n messages={ticketDetail.messages || []}\n currentUserId={currentUser?.id}\n viewerRole=\"agent\"\n showInternalMessages={canLeaveInternalNotes}\n showRealAgentIdentity={canLeaveInternalNotes}\n />\n\n <div className=\"mt-6 rounded-xl border border-border-seam bg-bg-surface p-4 xl:hidden\">\n <TicketSidebar ticket={ticketDetail} />\n </div>\n </div>\n\n <MessageComposer\n ticketId={ticketDetail.id}\n onSendMessage={handleSendMessage}\n disabled={addMessageLoading}\n allowInternalNotes={canLeaveInternalNotes}\n cannedResponses={cannedResponses}\n cannedResponsesLoading={cannedResponsesLoading}\n />\n </div>\n\n <div className=\"hidden min-h-0 xl:block\">\n <TicketSidebar ticket={ticketDetail} />\n </div>\n </div>\n </div>\n );\n}\n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F;;EACF;MAzIH,kBAAC,GAAD;EAAY,YAAY;EACtB,UAAA,kBAAC,GAAD;GACE,cAAa;GACb,OAAO,EAAG,uCAAuC,kBAAkB;GACnE,aAAa,EACX,6CACA,kEACF;GACA,QACE,kBAAC,GAAD;IAAQ,SAAS;IAAjB,UAAA,CACE,kBAAC,GAAD,EAAW,MAAM,GAAK,CAAA,GACrB,EAAG,qCAAqC,iBAAiB,CACpD;;EAEX,CAAA;CACS,CAAA;AA4HlB"}
1
+ {"version":3,"file":"TicketDetailAdminPage.js","names":["TicketDetailAdminPage","useParams","navigate","useNavigate","useSupport","useShellUi","initialFooterVisible","useRef","footerVisible","tr","useTr","useTicketOperations","canLeaveInternalNotes","isAdminRole","currentUser","cannedResponsesData","cannedResponsesLoading","useGetCannedResponsesQuery","cannedResponses","categoriesData","useGetTicketCategoriesQuery","categoryNames","useMemo","category","useNotification","useAttachmentsFailedToast","notify","useEffect","ticketId","setSelectedTicket","setFooterVisible","registerBreadcrumbName","ticketDetail","unregisterBreadcrumbName","handleBack","handleStatusChange","changeTicketStatus","status","error","extractErrorMessage","handleSendMessage","messageText","files","attachmentIds","attachmentError","uploadSupportAttachmentFiles","file","uploadError","errorMessage","addTicketMessage","isInternal","MessageType","sendError","ticketDetailLoading","PageLayout","LoadingState","ticketDetailError","AlertCircle","Button","ArrowLeft","NotificationToast","TicketHeader","EmphasisPanel","MarkdownContent","AttachmentList","NextSteps","SupportTicketStatus","TriagePanel","refetchTicketDetail","MessageThread","TicketSidebar","MessageComposer","addMessageLoading","EmptyState"],"sources":["../../../src/support/pages/TicketDetailAdminPage.tsx"],"sourcesContent":["import { useEffect, useMemo, useRef } from 'react';\nimport { useParams, useNavigate } from 'react-router';\nimport { AlertCircle, ArrowLeft } from 'lucide-react';\nimport { Button, EmphasisPanel, NextSteps } from '../components/ui';\nimport { useShellUi } from '@burdenoff/fe-libs/shared/providers/shell/ShellUiProvider';\nimport { useTicketOperations } from '../hooks/useTicketOperations';\nimport { useTr } from '../hooks/useTr';\nimport {\n useGetCannedResponsesQuery,\n useGetTicketCategoriesQuery,\n} from '../../generated/global-operations';\nimport { useNotification } from '../hooks/useNotification';\nimport { useAttachmentsFailedToast } from '../hooks/useAttachmentsFailedToast';\nimport { TicketHeader } from '../components/tickets/TicketHeader';\nimport { TicketSidebar } from '../components/tickets/TicketSidebar';\nimport { TriagePanel } from '../components/tickets/TriagePanel';\nimport { MessageThread } from '../components/tickets/MessageThread';\nimport {\n MessageComposer,\n type MessageComposerSendResult,\n} from '../components/tickets/MessageComposer';\nimport { AttachmentList } from '../components/tickets/AttachmentList';\nimport { MarkdownContent } from '../components/tickets/MarkdownContent';\nimport { NotificationToast } from '../components/NotificationToast';\nimport { PageLayout, LoadingState, EmptyState } from '../components/PageLayout';\nimport { MessageType, SupportTicketStatus, type SupportTicket } from '../../generated/global-types';\nimport { useSupport } from '../providers/SupportProvider';\nimport { extractErrorMessage } from '../utils/errors';\nimport { isAdminRole } from '../utils';\nimport { uploadSupportAttachmentFiles } from '../utils/supportFiles';\nimport { registerBreadcrumbName, unregisterBreadcrumbName } from '../utils/breadcrumbRegistry';\n\n/**\n * Admin-facing ticket detail page.\n *\n * Admins/agents get full controls: status changes, ticket assignment,\n * internal notes, and all reply types in addition to the standard\n * ticket view and conversation.\n */\nexport function TicketDetailAdminPage() {\n const { ticketId } = useParams<{ ticketId: string }>();\n const navigate = useNavigate();\n const { currentUser } = useSupport();\n const { footerVisible, setFooterVisible } = useShellUi();\n const initialFooterVisible = useRef(footerVisible);\n const tr = useTr();\n const {\n ticketDetail,\n ticketDetailLoading,\n ticketDetailError,\n changeTicketStatus,\n addTicketMessage,\n addMessageLoading,\n refetchTicketDetail,\n setSelectedTicket,\n } = useTicketOperations({ ticketId });\n const canLeaveInternalNotes = isAdminRole(currentUser?.role);\n const { data: cannedResponsesData, loading: cannedResponsesLoading } = useGetCannedResponsesQuery(\n {\n variables: {\n filter: { isActive: true },\n limit: 100,\n },\n skip: !canLeaveInternalNotes,\n }\n );\n const cannedResponses = cannedResponsesData?.cannedResponses.nodes ?? [];\n const { data: categoriesData } = useGetTicketCategoriesQuery({\n variables: { limit: 100, offset: 0 },\n skip: !canLeaveInternalNotes,\n });\n const categoryNames = useMemo(\n () =>\n Object.fromEntries(\n (categoriesData?.ticketCategories.nodes ?? []).map(\n (category: { id: string; name: string }) => [category.id, category.name]\n )\n ),\n [categoriesData]\n );\n\n const { notification, notify } = useNotification();\n useAttachmentsFailedToast(notify);\n\n useEffect(() => {\n if (ticketId) {\n setSelectedTicket({ id: ticketId } as SupportTicket);\n }\n return () => {\n setSelectedTicket(null);\n };\n }, [ticketId, setSelectedTicket]);\n\n useEffect(() => {\n setFooterVisible(false);\n\n return () => {\n setFooterVisible(initialFooterVisible.current);\n };\n }, [setFooterVisible]);\n\n useEffect(() => {\n registerBreadcrumbName(ticketId, ticketDetail?.ticketNumber);\n return () => unregisterBreadcrumbName(ticketId);\n }, [ticketId, ticketDetail?.ticketNumber]);\n\n const handleBack = () => {\n setSelectedTicket(null);\n navigate('..');\n };\n\n const handleStatusChange = async (status: SupportTicketStatus) => {\n if (!ticketId) return;\n try {\n await changeTicketStatus(ticketId, status);\n } catch (error) {\n console.error('Failed to change status:', error);\n notify(\n 'error',\n extractErrorMessage(\n error,\n tr('support.ticketDetail.errors.changeStatus', 'Failed to change ticket status.')\n ),\n 6000\n );\n }\n };\n\n const handleSendMessage = async (\n messageText: string,\n isInternal: boolean,\n files: File[]\n ): Promise<MessageComposerSendResult | void> => {\n if (!ticketId) return;\n\n // Synchronous guard: if there is nothing to send AND nothing to upload, bail\n // before touching the network.\n if (!messageText.trim() && files.length === 0) {\n notify('error', tr('support.ticketDetail.errors.nothingToSend', 'Nothing to send.'), 6000);\n return;\n }\n\n let attachmentIds: string[] | undefined;\n let attachmentError: string | null = null;\n\n if (files.length > 0) {\n try {\n const uploadResult = await uploadSupportAttachmentFiles({\n ticketId,\n files,\n });\n attachmentIds = uploadResult.files.map((file) => file.id);\n } catch (uploadError) {\n attachmentError = extractErrorMessage(\n uploadError,\n tr('support.ticketDetail.errors.uploadAttachments', 'Failed to upload attachments.')\n );\n }\n }\n\n if (!messageText.trim() && !attachmentIds?.length) {\n const errorMessage = attachmentError\n ? tr(\n 'support.ticketDetail.errors.attachmentUploadFailed',\n 'Attachment upload failed: {{message}}',\n { message: attachmentError }\n )\n : tr('support.ticketDetail.errors.nothingToSend', 'Nothing to send.');\n notify('error', errorMessage, 6000);\n return files.length > 0 ? { preserveAttachedFiles: true } : undefined;\n }\n\n try {\n await addTicketMessage({\n ticketId,\n message: messageText,\n type: isInternal ? MessageType.InternalNote : MessageType.AgentReply,\n isInternal,\n attachments: attachmentIds,\n });\n\n if (attachmentError) {\n notify(\n 'error',\n tr(\n 'support.ticketDetail.errors.messageSentAttachmentsFailed',\n 'Message sent, but attachments failed: {{message}}',\n { message: attachmentError }\n ),\n 6000\n );\n return { preserveAttachedFiles: files.length > 0 };\n }\n } catch (sendError) {\n console.error('[support] addTicketMessage failed', sendError);\n notify(\n 'error',\n extractErrorMessage(\n sendError,\n tr('support.ticketDetail.errors.sendMessage', 'Failed to send message.')\n ),\n 6000\n );\n return {\n preserveMessage: true,\n preserveAttachedFiles: files.length > 0,\n };\n }\n };\n\n if (ticketDetailLoading && !ticketDetail) {\n return (\n <PageLayout showHeader={false}>\n <LoadingState message={tr('support.ticketDetail.loading', 'Loading ticket details...')} />\n </PageLayout>\n );\n }\n\n if (ticketDetailError) {\n return (\n <PageLayout showHeader={false}>\n <div className=\"flex flex-col items-center justify-center py-16 text-center\">\n <div className=\"p-4 rounded-2xl bg-status-error-bg/10 text-status-error-text mb-4\">\n <AlertCircle size={48} />\n </div>\n <h3 className=\"text-lg font-semibold text-text-primary mb-2\">\n {tr('support.ticketDetail.error.title', 'Failed to load ticket')}\n </h3>\n <p className=\"text-sm text-text-secondary max-w-md mb-4\">\n {ticketDetailError.message ||\n tr(\n 'support.ticketDetail.error.description',\n 'An error occurred while loading the ticket. Please try again.'\n )}\n </p>\n <Button onClick={handleBack}>\n <ArrowLeft size={18} />\n {tr('support.ticketDetail.actions.back', 'Back to Tickets')}\n </Button>\n </div>\n </PageLayout>\n );\n }\n\n if (!ticketDetail) {\n return (\n <PageLayout showHeader={false}>\n <EmptyState\n illustration=\"empty-search\"\n title={tr('support.ticketDetail.notFound.title', 'Ticket not found')}\n description={tr(\n 'support.ticketDetail.notFound.description',\n \"The ticket you're looking for doesn't exist or has been deleted.\"\n )}\n action={\n <Button onClick={handleBack}>\n <ArrowLeft size={18} />\n {tr('support.ticketDetail.actions.back', 'Back to Tickets')}\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n return (\n <div className=\"flex h-full min-h-0 flex-col bg-bg-surface\">\n <NotificationToast notification={notification} />\n\n <TicketHeader ticket={ticketDetail} onBack={handleBack} onStatusChange={handleStatusChange} />\n\n <div className=\"flex min-h-0 flex-1 overflow-hidden\">\n <div className=\"flex min-h-0 flex-1 flex-col overflow-hidden\">\n <div className=\"shrink-0 border-b border-border-subtle bg-bg-surface p-4 sm:p-6\">\n <EmphasisPanel className=\"p-4\">\n <h2 className=\"text-lg font-semibold mb-2 text-text-primary\">\n {tr('support.ticketDetail.descriptionTitle', 'Customer request — Description')}\n </h2>\n <MarkdownContent content={ticketDetail.description} className=\"text-sm\" />\n <AttachmentList\n ticketId={ticketDetail.id}\n fileIds={\n ((ticketDetail.metadata as Record<string, unknown> | null)\n ?.initialAttachmentIds as string[] | undefined) ?? []\n }\n />\n </EmphasisPanel>\n </div>\n\n <div\n data-tour=\"support-admin-ticket-conversation\"\n className=\"min-h-0 flex-1 overflow-y-auto p-4 sm:p-6\"\n >\n <NextSteps\n storageKey=\"support-ticket-detail-admin\"\n title={tr('support.ticketDetail.nextSteps.title', 'Agent quick actions')}\n className=\"mb-6\"\n steps={[\n {\n id: 'reply',\n label: tr('support.ticketDetail.nextSteps.reply.label', 'Reply to the customer'),\n description: tr(\n 'support.ticketDetail.nextSteps.reply.description',\n 'Draft a response in the composer below.'\n ),\n onClick: () =>\n document\n .querySelector('[data-tour=\"support-admin-ticket-conversation\"]')\n ?.scrollTo({ top: 999999, behavior: 'smooth' }),\n },\n ...(canLeaveInternalNotes\n ? [\n {\n id: 'in-progress',\n label: tr(\n 'support.ticketDetail.nextSteps.inProgress.label',\n 'Mark as In Progress'\n ),\n description: tr(\n 'support.ticketDetail.nextSteps.inProgress.description',\n 'Let the customer know you are working on it.'\n ),\n onClick: () => void handleStatusChange(SupportTicketStatus.InProgress),\n done: ticketDetail.status === SupportTicketStatus.InProgress,\n },\n {\n id: 'resolve',\n label: tr(\n 'support.ticketDetail.nextSteps.resolve.label',\n 'Resolve the ticket'\n ),\n description: tr(\n 'support.ticketDetail.nextSteps.resolve.description',\n 'Close out the request once the issue is fixed.'\n ),\n onClick: () => void handleStatusChange(SupportTicketStatus.Resolved),\n done: ticketDetail.status === SupportTicketStatus.Resolved,\n },\n ]\n : []),\n ]}\n />\n {canLeaveInternalNotes && (\n <TriagePanel\n ticketId={ticketDetail.id}\n decision={ticketDetail.triageDecision}\n draft={ticketDetail.replyDraft}\n categoryNames={categoryNames}\n onChanged={() => refetchTicketDetail()}\n notify={notify}\n />\n )}\n <h2 className=\"text-lg font-semibold mb-4 text-text-primary\">\n {tr('support.ticketDetail.conversationTitle', 'Conversation')}\n </h2>\n <MessageThread\n ticketId={ticketDetail.id}\n messages={ticketDetail.messages || []}\n currentUserId={currentUser?.id}\n viewerRole=\"agent\"\n showInternalMessages={canLeaveInternalNotes}\n showRealAgentIdentity={canLeaveInternalNotes}\n />\n\n <div className=\"mt-6 rounded-xl border border-border-seam bg-bg-surface p-4 xl:hidden\">\n <TicketSidebar ticket={ticketDetail} />\n </div>\n </div>\n\n <MessageComposer\n ticketId={ticketDetail.id}\n onSendMessage={handleSendMessage}\n disabled={addMessageLoading}\n allowInternalNotes={canLeaveInternalNotes}\n cannedResponses={cannedResponses}\n cannedResponsesLoading={cannedResponsesLoading}\n />\n </div>\n\n <div className=\"hidden min-h-0 x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