@memberjunction/ng-dashboards 5.22.0 → 5.24.0

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 (245) hide show
  1. package/README.md +51 -0
  2. package/dist/AI/components/agents/agent-configuration.component.d.ts.map +1 -1
  3. package/dist/AI/components/agents/agent-configuration.component.js +364 -362
  4. package/dist/AI/components/agents/agent-configuration.component.js.map +1 -1
  5. package/dist/AI/components/agents/agent-editor.component.js +2 -2
  6. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.d.ts +947 -64
  7. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.d.ts.map +1 -1
  8. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js +7645 -430
  9. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js.map +1 -1
  10. package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts +285 -6
  11. package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts.map +1 -1
  12. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js +2454 -277
  13. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js.map +1 -1
  14. package/dist/AI/components/execution-monitoring.component.d.ts.map +1 -1
  15. package/dist/AI/components/execution-monitoring.component.js +191 -197
  16. package/dist/AI/components/execution-monitoring.component.js.map +1 -1
  17. package/dist/AI/components/models/model-management.component.js +9 -8
  18. package/dist/AI/components/models/model-management.component.js.map +1 -1
  19. package/dist/AI/components/prompts/prompt-management.component.js +305 -299
  20. package/dist/AI/components/prompts/prompt-management.component.js.map +1 -1
  21. package/dist/AI/components/system/system-configuration.component.js +319 -313
  22. package/dist/AI/components/system/system-configuration.component.js.map +1 -1
  23. package/dist/AI/components/vectors/vector-management-resource.component.d.ts +20 -2
  24. package/dist/AI/components/vectors/vector-management-resource.component.d.ts.map +1 -1
  25. package/dist/AI/components/vectors/vector-management-resource.component.js +419 -232
  26. package/dist/AI/components/vectors/vector-management-resource.component.js.map +1 -1
  27. package/dist/APIKeys/api-applications-panel.component.js +10 -12
  28. package/dist/APIKeys/api-applications-panel.component.js.map +1 -1
  29. package/dist/APIKeys/api-key-create-dialog.component.js +13 -19
  30. package/dist/APIKeys/api-key-create-dialog.component.js.map +1 -1
  31. package/dist/APIKeys/api-key-edit-panel.component.js +12 -14
  32. package/dist/APIKeys/api-key-edit-panel.component.js.map +1 -1
  33. package/dist/APIKeys/api-scopes-panel.component.js +61 -68
  34. package/dist/APIKeys/api-scopes-panel.component.js.map +1 -1
  35. package/dist/APIKeys/api-usage-panel.component.js +10 -11
  36. package/dist/APIKeys/api-usage-panel.component.js.map +1 -1
  37. package/dist/Actions/components/actions-list-view.component.js +82 -96
  38. package/dist/Actions/components/actions-list-view.component.js.map +1 -1
  39. package/dist/Actions/components/actions-overview.component.js +130 -134
  40. package/dist/Actions/components/actions-overview.component.js.map +1 -1
  41. package/dist/Actions/components/categories-list-view.component.d.ts.map +1 -1
  42. package/dist/Actions/components/categories-list-view.component.js +40 -46
  43. package/dist/Actions/components/categories-list-view.component.js.map +1 -1
  44. package/dist/Actions/components/code-management.component.js +2 -2
  45. package/dist/Actions/components/code-management.component.js.map +1 -1
  46. package/dist/Actions/components/entity-integration.component.js +2 -2
  47. package/dist/Actions/components/entity-integration.component.js.map +1 -1
  48. package/dist/Actions/components/execution-monitoring.component.js +127 -132
  49. package/dist/Actions/components/execution-monitoring.component.js.map +1 -1
  50. package/dist/Actions/components/executions-list-view.component.js +2 -2
  51. package/dist/Actions/components/executions-list-view.component.js.map +1 -1
  52. package/dist/Actions/components/explorer/action-card.component.js +11 -17
  53. package/dist/Actions/components/explorer/action-card.component.js.map +1 -1
  54. package/dist/Actions/components/explorer/action-explorer.component.js +5 -11
  55. package/dist/Actions/components/explorer/action-explorer.component.js.map +1 -1
  56. package/dist/Actions/components/explorer/action-list-item.component.js +8 -10
  57. package/dist/Actions/components/explorer/action-list-item.component.js.map +1 -1
  58. package/dist/Actions/components/explorer/action-toolbar.component.js +112 -133
  59. package/dist/Actions/components/explorer/action-toolbar.component.js.map +1 -1
  60. package/dist/Actions/components/explorer/action-tree-panel.component.js +63 -83
  61. package/dist/Actions/components/explorer/action-tree-panel.component.js.map +1 -1
  62. package/dist/Actions/components/explorer/new-action-panel.component.js +17 -21
  63. package/dist/Actions/components/explorer/new-action-panel.component.js.map +1 -1
  64. package/dist/Actions/components/explorer/new-category-panel.component.js +17 -21
  65. package/dist/Actions/components/explorer/new-category-panel.component.js.map +1 -1
  66. package/dist/Actions/components/scheduled-actions.component.js +2 -2
  67. package/dist/Actions/components/scheduled-actions.component.js.map +1 -1
  68. package/dist/Actions/components/security-permissions.component.js +2 -2
  69. package/dist/Actions/components/security-permissions.component.js.map +1 -1
  70. package/dist/ComponentStudio/component-studio-dashboard.component.d.ts +13 -5
  71. package/dist/ComponentStudio/component-studio-dashboard.component.d.ts.map +1 -1
  72. package/dist/ComponentStudio/component-studio-dashboard.component.js +168 -145
  73. package/dist/ComponentStudio/component-studio-dashboard.component.js.map +1 -1
  74. package/dist/ComponentStudio/components/artifact-load-dialog.component.d.ts +4 -5
  75. package/dist/ComponentStudio/components/artifact-load-dialog.component.d.ts.map +1 -1
  76. package/dist/ComponentStudio/components/artifact-load-dialog.component.js +197 -200
  77. package/dist/ComponentStudio/components/artifact-load-dialog.component.js.map +1 -1
  78. package/dist/ComponentStudio/components/artifact-selection-dialog.component.d.ts +5 -7
  79. package/dist/ComponentStudio/components/artifact-selection-dialog.component.d.ts.map +1 -1
  80. package/dist/ComponentStudio/components/artifact-selection-dialog.component.js +142 -148
  81. package/dist/ComponentStudio/components/artifact-selection-dialog.component.js.map +1 -1
  82. package/dist/ComponentStudio/components/browser/component-browser.component.js +153 -166
  83. package/dist/ComponentStudio/components/browser/component-browser.component.js.map +1 -1
  84. package/dist/ComponentStudio/components/editors/code-editor-panel.component.js +15 -20
  85. package/dist/ComponentStudio/components/editors/code-editor-panel.component.js.map +1 -1
  86. package/dist/ComponentStudio/components/editors/data-requirements-editor.component.js +16 -21
  87. package/dist/ComponentStudio/components/editors/data-requirements-editor.component.js.map +1 -1
  88. package/dist/ComponentStudio/components/editors/requirements-editor.component.js +18 -23
  89. package/dist/ComponentStudio/components/editors/requirements-editor.component.js.map +1 -1
  90. package/dist/ComponentStudio/components/editors/spec-editor.component.js +25 -30
  91. package/dist/ComponentStudio/components/editors/spec-editor.component.js.map +1 -1
  92. package/dist/ComponentStudio/components/new-component-dialog/new-component-dialog.component.js +10 -11
  93. package/dist/ComponentStudio/components/new-component-dialog/new-component-dialog.component.js.map +1 -1
  94. package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.d.ts.map +1 -1
  95. package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.js +24 -35
  96. package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.js.map +1 -1
  97. package/dist/ComponentStudio/components/text-import-dialog.component.js +15 -17
  98. package/dist/ComponentStudio/components/text-import-dialog.component.js.map +1 -1
  99. package/dist/Credentials/components/credentials-categories-resource.component.js +7 -6
  100. package/dist/Credentials/components/credentials-categories-resource.component.js.map +1 -1
  101. package/dist/Credentials/components/credentials-list-resource.component.js +6 -5
  102. package/dist/Credentials/components/credentials-list-resource.component.js.map +1 -1
  103. package/dist/Credentials/components/credentials-types-resource.component.js +7 -6
  104. package/dist/Credentials/components/credentials-types-resource.component.js.map +1 -1
  105. package/dist/DashboardBrowser/dashboard-share-dialog.component.js +9 -9
  106. package/dist/DashboardBrowser/dashboard-share-dialog.component.js.map +1 -1
  107. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts.map +1 -1
  108. package/dist/DataExplorer/data-explorer-dashboard.component.js +17 -17
  109. package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
  110. package/dist/Home/home-dashboard.component.js +4 -4
  111. package/dist/Home/home-dashboard.component.js.map +1 -1
  112. package/dist/Integration/components/activity/activity.component.d.ts.map +1 -1
  113. package/dist/Integration/components/activity/activity.component.js +1 -0
  114. package/dist/Integration/components/activity/activity.component.js.map +1 -1
  115. package/dist/Integration/components/connections/connections.component.d.ts.map +1 -1
  116. package/dist/Integration/components/connections/connections.component.js +5 -4
  117. package/dist/Integration/components/connections/connections.component.js.map +1 -1
  118. package/dist/Integration/components/mapping-workspace/mapping-workspace.component.d.ts.map +1 -1
  119. package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js +247 -259
  120. package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js.map +1 -1
  121. package/dist/Integration/components/overview/overview.component.d.ts.map +1 -1
  122. package/dist/Integration/components/overview/overview.component.js +1 -0
  123. package/dist/Integration/components/overview/overview.component.js.map +1 -1
  124. package/dist/Integration/components/pipelines/pipelines.component.d.ts.map +1 -1
  125. package/dist/Integration/components/pipelines/pipelines.component.js +1 -0
  126. package/dist/Integration/components/pipelines/pipelines.component.js.map +1 -1
  127. package/dist/Integration/components/schedules/schedules.component.d.ts.map +1 -1
  128. package/dist/Integration/components/schedules/schedules.component.js +1 -0
  129. package/dist/Integration/components/schedules/schedules.component.js.map +1 -1
  130. package/dist/Integration/components/widgets/integration-card.component.js +7 -9
  131. package/dist/Integration/components/widgets/integration-card.component.js.map +1 -1
  132. package/dist/Integration/integration.module.d.ts +6 -10
  133. package/dist/Integration/integration.module.d.ts.map +1 -1
  134. package/dist/Integration/integration.module.js +12 -20
  135. package/dist/Integration/integration.module.js.map +1 -1
  136. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.d.ts +411 -0
  137. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.d.ts.map +1 -0
  138. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js +4266 -0
  139. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js.map +1 -0
  140. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.d.ts +140 -0
  141. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.d.ts.map +1 -0
  142. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.js +780 -0
  143. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.js.map +1 -0
  144. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.d.ts +8 -2
  145. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.d.ts.map +1 -1
  146. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.js +246 -195
  147. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.js.map +1 -1
  148. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.d.ts +75 -0
  149. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.d.ts.map +1 -0
  150. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.js +601 -0
  151. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.js.map +1 -0
  152. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.d.ts +93 -12
  153. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.d.ts.map +1 -1
  154. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.js +637 -107
  155. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.js.map +1 -1
  156. package/dist/KnowledgeHub/index.d.ts +3 -0
  157. package/dist/KnowledgeHub/index.d.ts.map +1 -1
  158. package/dist/KnowledgeHub/index.js +3 -0
  159. package/dist/KnowledgeHub/index.js.map +1 -1
  160. package/dist/Lists/components/lists-browse-resource.component.d.ts.map +1 -1
  161. package/dist/Lists/components/lists-browse-resource.component.js +9 -7
  162. package/dist/Lists/components/lists-browse-resource.component.js.map +1 -1
  163. package/dist/Lists/components/lists-my-lists-resource.component.js +5 -4
  164. package/dist/Lists/components/lists-my-lists-resource.component.js.map +1 -1
  165. package/dist/Lists/components/lists-operations-resource.component.js +10 -9
  166. package/dist/Lists/components/lists-operations-resource.component.js.map +1 -1
  167. package/dist/MCP/components/mcp-connection-dialog.component.js +141 -132
  168. package/dist/MCP/components/mcp-connection-dialog.component.js.map +1 -1
  169. package/dist/MCP/components/mcp-log-detail-panel.component.js +4 -4
  170. package/dist/MCP/components/mcp-log-detail-panel.component.js.map +1 -1
  171. package/dist/MCP/components/mcp-server-dialog.component.js +141 -128
  172. package/dist/MCP/components/mcp-server-dialog.component.js.map +1 -1
  173. package/dist/MCP/components/mcp-test-tool-dialog.component.js +210 -218
  174. package/dist/MCP/components/mcp-test-tool-dialog.component.js.map +1 -1
  175. package/dist/MCP/mcp-dashboard.component.js +2 -2
  176. package/dist/MCP/mcp-dashboard.component.js.map +1 -1
  177. package/dist/MCP/mcp.module.d.ts +6 -9
  178. package/dist/MCP/mcp.module.d.ts.map +1 -1
  179. package/dist/MCP/mcp.module.js +20 -22
  180. package/dist/MCP/mcp.module.js.map +1 -1
  181. package/dist/Scheduling/components/scheduling-activity.component.js +5 -4
  182. package/dist/Scheduling/components/scheduling-activity.component.js.map +1 -1
  183. package/dist/Scheduling/components/scheduling-jobs.component.js +6 -5
  184. package/dist/Scheduling/components/scheduling-jobs.component.js.map +1 -1
  185. package/dist/Scheduling/components/scheduling-overview.component.js +93 -92
  186. package/dist/Scheduling/components/scheduling-overview.component.js.map +1 -1
  187. package/dist/Testing/testing-dashboard.component.js +9 -10
  188. package/dist/Testing/testing-dashboard.component.js.map +1 -1
  189. package/dist/__tests__/analytics-resource.test.d.ts +2 -0
  190. package/dist/__tests__/analytics-resource.test.d.ts.map +1 -0
  191. package/dist/__tests__/analytics-resource.test.js +181 -0
  192. package/dist/__tests__/analytics-resource.test.js.map +1 -0
  193. package/dist/__tests__/scheduling.test.d.ts +2 -0
  194. package/dist/__tests__/scheduling.test.d.ts.map +1 -0
  195. package/dist/__tests__/scheduling.test.js +205 -0
  196. package/dist/__tests__/scheduling.test.js.map +1 -0
  197. package/dist/actions-dashboards.module.d.ts +8 -13
  198. package/dist/actions-dashboards.module.d.ts.map +1 -1
  199. package/dist/actions-dashboards.module.js +6 -27
  200. package/dist/actions-dashboards.module.js.map +1 -1
  201. package/dist/ai-dashboards.module.d.ts +20 -20
  202. package/dist/ai-dashboards.module.d.ts.map +1 -1
  203. package/dist/ai-dashboards.module.js +43 -44
  204. package/dist/ai-dashboards.module.js.map +1 -1
  205. package/dist/communication-dashboards.module.d.ts +4 -8
  206. package/dist/communication-dashboards.module.d.ts.map +1 -1
  207. package/dist/communication-dashboards.module.js +0 -19
  208. package/dist/communication-dashboards.module.js.map +1 -1
  209. package/dist/component-studio-dashboards.module.d.ts +7 -11
  210. package/dist/component-studio-dashboards.module.d.ts.map +1 -1
  211. package/dist/component-studio-dashboards.module.js +22 -34
  212. package/dist/component-studio-dashboards.module.js.map +1 -1
  213. package/dist/core-dashboards.module.d.ts +12 -18
  214. package/dist/core-dashboards.module.d.ts.map +1 -1
  215. package/dist/core-dashboards.module.js +15 -31
  216. package/dist/core-dashboards.module.js.map +1 -1
  217. package/dist/credentials-dashboards.module.d.ts +5 -8
  218. package/dist/credentials-dashboards.module.d.ts.map +1 -1
  219. package/dist/credentials-dashboards.module.js +3 -19
  220. package/dist/credentials-dashboards.module.js.map +1 -1
  221. package/dist/data-explorer-dashboards.module.d.ts +7 -13
  222. package/dist/data-explorer-dashboards.module.d.ts.map +1 -1
  223. package/dist/data-explorer-dashboards.module.js +0 -27
  224. package/dist/data-explorer-dashboards.module.js.map +1 -1
  225. package/dist/lists-dashboards.module.d.ts +5 -8
  226. package/dist/lists-dashboards.module.d.ts.map +1 -1
  227. package/dist/lists-dashboards.module.js +3 -19
  228. package/dist/lists-dashboards.module.js.map +1 -1
  229. package/dist/public-api.d.ts +2 -0
  230. package/dist/public-api.d.ts.map +1 -1
  231. package/dist/public-api.js +2 -0
  232. package/dist/public-api.js.map +1 -1
  233. package/dist/scheduling-dashboards.module.d.ts +6 -10
  234. package/dist/scheduling-dashboards.module.d.ts.map +1 -1
  235. package/dist/scheduling-dashboards.module.js +3 -23
  236. package/dist/scheduling-dashboards.module.js.map +1 -1
  237. package/dist/shared/entity-field-display.d.ts +44 -0
  238. package/dist/shared/entity-field-display.d.ts.map +1 -0
  239. package/dist/shared/entity-field-display.js +118 -0
  240. package/dist/shared/entity-field-display.js.map +1 -0
  241. package/dist/testing-dashboards.module.d.ts +7 -13
  242. package/dist/testing-dashboards.module.d.ts.map +1 -1
  243. package/dist/testing-dashboards.module.js +0 -27
  244. package/dist/testing-dashboards.module.js.map +1 -1
  245. package/package.json +48 -55
@@ -1,102 +1,985 @@
1
1
  /**
2
- * @fileoverview Content Autotagging Pipeline Monitor
2
+ * @fileoverview Content Autotagging Dashboard
3
3
  *
4
- * Operations dashboard for monitoring the content autotagging pipeline.
5
- * Displays KPI metrics, pipeline stage visualization, recent processing feed,
6
- * and source configuration status.
4
+ * Full dashboard for the content autotagging pipeline with left-nav and 5 tabs:
5
+ * Pipeline Monitor, Sources Management, Content Types, Tag Library, Run History.
6
+ * Supports CRUD on sources and content types via slide-in forms,
7
+ * pipeline triggering with real-time GraphQL subscription progress.
7
8
  */
8
9
  import { OnDestroy, AfterViewInit } from '@angular/core';
9
- import { ResourceData } from '@memberjunction/core-entities';
10
+ import { CompositeKey } from '@memberjunction/core';
11
+ import { TreeBranchConfig, TreeLeafConfig } from '@memberjunction/ng-trees';
12
+ import { ResourceData, MJContentSourceTypeEntity_IContentSourceTypeField } from '@memberjunction/core-entities';
10
13
  import { BaseResourceComponent } from '@memberjunction/ng-shared';
14
+ import { WordCloudItem } from '@memberjunction/ng-word-cloud';
11
15
  import * as i0 from "@angular/core";
12
- /** Represents a single pipeline stage with its current status */
13
- interface PipelineStage {
16
+ type TabName = 'pipeline' | 'sources' | 'types' | 'tags' | 'taxonomy' | 'history';
17
+ interface NavItem {
18
+ Tab: TabName;
19
+ Icon: string;
20
+ Label: string;
21
+ BadgeText: string;
22
+ BadgeClass: string;
23
+ }
24
+ interface KPIMetric {
25
+ Label: string;
26
+ Value: number;
27
+ Icon: string;
28
+ Trend: string;
29
+ TrendUp: boolean;
30
+ }
31
+ interface PipelineStageInfo {
14
32
  Name: string;
15
33
  Icon: string;
16
- ActiveCount: number;
17
- Status: 'idle' | 'active' | 'error';
34
+ Status: 'idle' | 'active' | 'complete';
35
+ Count: string;
18
36
  }
19
- /** Summary of a recently processed content item */
20
- interface ProcessedItem {
37
+ interface FeedItem {
21
38
  Name: string;
22
39
  SourceName: string;
23
- ProcessingTimeMs: number;
24
- Status: 'Complete' | 'Error' | 'Processing';
40
+ Tags: string[];
41
+ TimeAgo: string;
42
+ Status: 'complete' | 'processing' | 'error';
43
+ }
44
+ interface SourceMini {
45
+ ID: string;
46
+ Name: string;
47
+ Icon: string;
48
+ Meta: string;
49
+ StatusClass: 'active' | 'error' | 'inactive';
50
+ }
51
+ interface SourceCard {
52
+ ID: string;
53
+ Name: string;
54
+ SourceTypeName: string;
55
+ ContentTypeName: string;
56
+ FileTypeName: string;
57
+ Icon: string;
58
+ StatusClass: 'active' | 'error' | 'inactive';
59
+ StatusLabel: string;
60
+ URL: string;
61
+ ItemCount: number;
25
62
  TagCount: number;
26
- ProcessedAt: Date;
63
+ AvgTags: string;
64
+ LastRunAgo: string;
65
+ ContentSourceTypeID: string;
66
+ ContentTypeID: string;
67
+ ContentFileTypeID: string;
68
+ EmbeddingModelID: string;
69
+ VectorIndexID: string;
70
+ EntityID: string;
71
+ EntityDocumentID: string;
72
+ RequiresFileType: boolean;
73
+ /** FK to ScheduledAction entity, null if no schedule configured */
74
+ ScheduledActionID: string | null;
75
+ /** Denormalized name of the linked ScheduledAction */
76
+ ScheduledActionName: string | null;
77
+ /** Human-readable schedule description (parsed from cron) */
78
+ ScheduleDescription: string | null;
79
+ }
80
+ interface ContentTypeCard {
81
+ ID: string;
82
+ Name: string;
83
+ Description: string;
84
+ AIModelName: string;
85
+ AIModelID: string;
86
+ MinTags: number;
87
+ MaxTags: number;
88
+ SourcesUsing: number;
89
+ ItemsTagged: number;
90
+ RangeLeftPct: number;
91
+ RangeRightPct: number;
92
+ EmbeddingModelID: string;
93
+ VectorIndexID: string;
94
+ }
95
+ interface TagRow {
96
+ Tag: string;
97
+ UsageCount: number;
98
+ AvgWeight: number;
99
+ BarWidthPct: number;
100
+ TopSource: string;
101
+ FirstSeen: string;
102
+ }
103
+ interface TagCloudItem {
104
+ Tag: string;
105
+ AvgWeight: number;
106
+ SizeClass: 'large' | '' | 'small';
107
+ }
108
+ interface TagBySource {
109
+ SourceName: string;
110
+ Count: number;
111
+ }
112
+ interface RunHistoryRow {
113
+ ID: string;
114
+ Status: string;
115
+ StatusClass: string;
116
+ SourceName: string;
117
+ StartedDisplay: string;
118
+ Duration: string;
119
+ Items: string;
120
+ Tags: string;
121
+ Errors: string;
122
+ ErrorClass: string;
123
+ }
124
+ interface DropdownOption {
125
+ ID: string;
126
+ Name: string;
127
+ }
128
+ /** G3: Content item duplicate pair for review */
129
+ interface ContentDuplicateRow {
130
+ ID: string;
131
+ ItemAName: string;
132
+ ItemASource: string;
133
+ ItemBName: string;
134
+ ItemBSource: string;
135
+ SimilarityScore: number;
136
+ DetectionMethod: string;
137
+ Status: 'Pending' | 'Confirmed' | 'Dismissed' | 'Merged';
138
+ }
139
+ /** D2/D3/D8: Per-source detail row for a specific pipeline run */
140
+ interface RunDetailRow {
141
+ SourceName: string;
142
+ SourceType: string;
143
+ Status: string;
144
+ StatusClass: string;
145
+ ItemsProcessed: number;
146
+ ItemsTagged: number;
147
+ ItemsVectorized: number;
148
+ ErrorCount: number;
149
+ TotalTokens: number;
150
+ TotalCost: number;
151
+ Duration: string;
27
152
  }
28
- /** Summary of a configured content source */
29
- interface ContentSource {
153
+ type TaxonomySubTab = 'tree' | 'duplicates' | 'orphans' | 'treemap' | 'audit';
154
+ interface TaxTreeNode {
30
155
  ID: string;
31
156
  Name: string;
32
- TypeName: string;
33
- TypeIcon: string;
34
- Status: 'Active' | 'Paused' | 'Error';
35
- LastRunAt: Date | null;
157
+ DisplayName: string;
158
+ Description: string;
159
+ ParentID: string | null;
160
+ Depth: number;
161
+ Children: TaxTreeNode[];
36
162
  ItemCount: number;
163
+ AvgWeight: number;
164
+ HealthColor: 'green' | 'yellow' | 'red';
165
+ IsExpanded: boolean;
166
+ IsSelected: boolean;
167
+ FirstSeen: string;
37
168
  }
38
- /** KPI metric card data */
39
- interface KPIMetric {
40
- Label: string;
41
- Value: number;
42
- Icon: string;
169
+ interface TaxDuplicatePair {
170
+ TagA: string;
171
+ TagB: string;
172
+ TagAID: string;
173
+ TagBID: string;
174
+ Similarity: number;
175
+ SeverityClass: 'high' | 'moderate';
176
+ /** True when multiple Tag records share the same name (case-insensitive) */
177
+ IsExactDuplicate: boolean;
178
+ /** How many Tag records share this exact name (only set when IsExactDuplicate) */
179
+ ExactDuplicateCount: number;
180
+ /** All Tag IDs sharing the exact name (only set when IsExactDuplicate) */
181
+ AllIDs: string[];
182
+ }
183
+ interface TaxOrphanCard {
184
+ ID: string;
185
+ Name: string;
186
+ UsageCount: number;
187
+ AvgWeight: number;
188
+ FirstSeen: string;
189
+ LastSeen: string;
190
+ IsSelected: boolean;
191
+ }
192
+ interface TaxTreemapCell {
193
+ ID: string;
194
+ Name: string;
195
+ ItemCount: number;
43
196
  ColorClass: string;
197
+ RowSpan: number;
198
+ }
199
+ /** Supported audit action types — matches DB Action values (lowercased) */
200
+ type TaxAuditAction = 'created' | 'merged' | 'moved' | 'deleted' | 'renamed' | 'deprecated' | 'descriptionchanged' | 'reactivated' | 'split';
201
+ interface TaxAuditEvent {
202
+ Type: TaxAuditAction;
203
+ Description: string;
204
+ TagRef: string;
205
+ User: string;
206
+ Timestamp: string;
207
+ DayHeader: string;
208
+ }
209
+ interface TaxHealthStat {
210
+ Total: number;
211
+ Healthy: number;
212
+ NeedAttention: number;
213
+ Orphaned: number;
214
+ Duplicates: number;
215
+ }
216
+ interface WeightedTag {
217
+ Tag: string;
218
+ Weight: number;
219
+ }
220
+ /** Status value for embedding or tagging pipeline phases */
221
+ type ItemPipelineStatus = 'Complete' | 'Processing' | 'Failed' | 'Pending';
222
+ interface ContentItemDetail {
223
+ ID: string;
224
+ Name: string;
225
+ SourceName: string;
226
+ SourceTypeName: string;
227
+ ContentTypeName: string;
228
+ FileTypeName: string;
229
+ URL: string;
230
+ TextContent: string;
231
+ Checksum: string;
232
+ Tags: WeightedTag[];
233
+ CreatedAt: string;
234
+ UpdatedAt: string;
235
+ ContentSourceID: string;
236
+ ContentSourceTypeID: string;
237
+ StatusDot: 'complete' | 'processing' | 'error';
238
+ TagCount: number;
239
+ /** Whether this source type uses content/file type (false for Entity sources) */
240
+ RequiresContentType: boolean;
241
+ /** Entity record ID if source is entity type (for direct entity navigation) */
242
+ EntityRecordID: string | null;
243
+ /** Entity name if source is entity type */
244
+ EntityName: string | null;
245
+ /** Embedding pipeline status for this content item */
246
+ EmbeddingStatus: ItemPipelineStatus;
247
+ /** Tagging pipeline status for this content item */
248
+ TaggingStatus: ItemPipelineStatus;
44
249
  }
250
+ interface SourceDetailInfo {
251
+ ID: string;
252
+ Name: string;
253
+ SourceTypeName: string;
254
+ FileTypeName: string;
255
+ ContentTypeName: string;
256
+ RequiresFileType: boolean;
257
+ StatusClass: 'active' | 'error' | 'inactive';
258
+ StatusLabel: string;
259
+ Icon: string;
260
+ URL: string;
261
+ EmbeddingModelName: string;
262
+ VectorIndexName: string;
263
+ ItemCount: number;
264
+ TagCount: number;
265
+ AvgTags: string;
266
+ LastRunAgo: string;
267
+ ErrorCount: number;
268
+ ContentItems: ContentItemDetail[];
269
+ RunHistory: RunHistoryRow[];
270
+ }
271
+ type FormMode = 'none' | 'add-source' | 'edit-source' | 'add-type' | 'edit-type';
45
272
  export declare class AutotaggingPipelineResourceComponent extends BaseResourceComponent implements AfterViewInit, OnDestroy {
46
273
  private destroy$;
274
+ private cdr;
275
+ private navigationService;
47
276
  IsLoading: boolean;
48
- ErrorMessage: string;
277
+ ActiveTab: TabName;
278
+ private tabDataLoaded;
279
+ NavItems: NavItem[];
49
280
  KPIMetrics: KPIMetric[];
50
- PipelineStages: PipelineStage[];
51
- ProcessedItems: ProcessedItem[];
52
- ContentSources: ContentSource[];
53
- private contentItems;
54
- private contentRuns;
55
- private contentTags;
56
- private contentSourceTypes;
281
+ PipelineStages: PipelineStageInfo[];
282
+ FeedItems: FeedItem[];
283
+ SourceMinis: SourceMini[];
284
+ TrendingTags: TagCloudItem[];
285
+ FeedSearchQuery: string;
286
+ FeedPage: number;
287
+ readonly FeedPageSize = 20;
288
+ /** Sort order for the feed: 'newest' (default) or 'oldest' */
289
+ FeedSortOrder: 'newest' | 'oldest';
290
+ /** Feed items filtered by search query and sorted */
291
+ get FilteredFeedItems(): FeedItem[];
292
+ /** Toggle feed sort order */
293
+ ToggleFeedSort(): void;
294
+ /** Paginated feed items for the current page */
295
+ get PaginatedFeedItems(): FeedItem[];
296
+ /** Total pages for the feed */
297
+ get FeedTotalPages(): number;
298
+ /** Handle feed search input change */
299
+ OnFeedSearchChange(): void;
300
+ /** Navigate to previous feed page */
301
+ FeedPrevPage(): void;
302
+ /** Navigate to next feed page */
303
+ FeedNextPage(): void;
304
+ /** Get the index in the original FeedItems array for a paginated item */
305
+ GetFeedItemOriginalIndex(item: FeedItem): number;
306
+ IsRunning: boolean;
307
+ IsPaused: boolean;
308
+ RunProgress: number;
309
+ RunStage: string;
310
+ RunCurrentItem: string;
311
+ /** The current pipeline run ID (from GraphQL subscription) */
312
+ CurrentPipelineRunID: string | null;
313
+ /** The process run ID (server-side ContentProcessRun) for pause/cancel/resume */
314
+ CurrentProcessRunID: string | null;
315
+ ShowPipelineConfig: boolean;
316
+ PipelineConfig: {
317
+ Pipeline?: {
318
+ BatchSize?: number;
319
+ MaxConcurrentBatches?: number;
320
+ DelayBetweenBatchesMs?: number;
321
+ ResumeFromLastBatch?: boolean;
322
+ ErrorThresholdPercent?: number;
323
+ };
324
+ RateLimits?: {
325
+ LLM?: {
326
+ RequestsPerMinute?: number;
327
+ TokensPerMinute?: number;
328
+ };
329
+ Embedding?: {
330
+ RequestsPerMinute?: number;
331
+ TokensPerMinute?: number;
332
+ };
333
+ VectorDB?: {
334
+ RequestsPerMinute?: number;
335
+ };
336
+ };
337
+ };
338
+ TogglePipelineConfig(): void;
339
+ private persistClassifyPreferences;
340
+ private loadClassifyPreferences;
341
+ FormatTokenCount(tokens: number): string;
342
+ SourceCards: SourceCard[];
343
+ ContentDuplicates: ContentDuplicateRow[];
344
+ IsLoadingDuplicates: boolean;
345
+ ContentTypeCards: ContentTypeCard[];
346
+ TagRows: TagRow[];
347
+ TagCloud: TagCloudItem[];
348
+ TagCloudWordItems: WordCloudItem[];
349
+ TagsBySource: TagBySource[];
350
+ TagSearchQuery: string;
351
+ FilteredTagRows: TagRow[];
352
+ SelectedDrillDownTag: string | null;
353
+ TagDrillDownItems: {
354
+ ID: string;
355
+ Name: string;
356
+ SourceName: string;
357
+ Weight: number;
358
+ UpdatedAt: string;
359
+ FeedIndex: number;
360
+ }[];
361
+ RunHistoryRows: RunHistoryRow[];
362
+ HistorySourceFilter: string;
363
+ HistoryStatusFilter: string;
364
+ FilteredRunRows: RunHistoryRow[];
365
+ HistorySourceOptions: string[];
366
+ SelectedRunID: string | null;
367
+ RunDetailRows: RunDetailRow[];
368
+ IsLoadingRunDetail: boolean;
369
+ LiveRunDetailRows: RunDetailRow[];
370
+ IsLoadingLiveDetails: boolean;
371
+ TaxSubTab: TaxonomySubTab;
372
+ TaxTreeNodes: TaxTreeNode[];
373
+ TaxFlatNodes: TaxTreeNode[];
374
+ TaxFilteredNodes: TaxTreeNode[];
375
+ TaxSelectedNode: TaxTreeNode | null;
376
+ TaxTreeSearch: string;
377
+ TaxDuplicates: TaxDuplicatePair[];
378
+ TaxOrphans: TaxOrphanCard[];
379
+ TaxAllOrphansSelected: boolean;
380
+ TaxTreemapCells: TaxTreemapCell[];
381
+ TaxAuditEvents: TaxAuditEvent[];
382
+ TaxAuditFilterTypes: Set<string>;
383
+ TaxHealth: TaxHealthStat;
384
+ TaxRecentItems: {
385
+ Name: string;
386
+ Weight: number;
387
+ Date: string;
388
+ Icon: string;
389
+ }[];
390
+ TaxTreemapKPIs: {
391
+ Label: string;
392
+ Value: string;
393
+ }[];
394
+ TaxIsEditing: boolean;
395
+ ShowCreateTagDialog: boolean;
396
+ CreateTagName: string;
397
+ CreateTagDescription: string;
398
+ CreateTagParentID: string | null;
399
+ /** Label shown in the create dialog to indicate context (e.g., "under AI Agent") */
400
+ CreateTagParentLabel: string;
401
+ TaxMultiSelectMode: boolean;
402
+ TaxSelectedIDs: Set<string>;
403
+ /** The node currently being dragged over (drop target highlight) */
404
+ TaxDragOverNodeID: string | null;
405
+ /** True while a drag-reparent operation is saving */
406
+ TaxTreeSaving: boolean;
407
+ /** Count of high-confidence duplicate pairs (>85% similarity) */
408
+ get TaxHighConfidenceDupeCount(): number;
409
+ /** Count of moderate-confidence duplicate pairs (70-85% similarity) */
410
+ get TaxModerateDupeCount(): number;
411
+ TaxEditName: string;
412
+ TaxEditDescription: string;
413
+ private tagsRaw;
414
+ private taggedItemsRaw;
415
+ private tagAuditLogsRaw;
416
+ FormMode: FormMode;
417
+ FormSaving: boolean;
418
+ FormSourceName: string;
419
+ FormSourceTypeID: string;
420
+ FormContentTypeID: string;
421
+ FormFileTypeID: string;
422
+ FormSourceURL: string;
423
+ EditingSourceID: string;
424
+ FormTypeName: string;
425
+ FormTypeDescription: string;
426
+ FormTypeAIModelID: string;
427
+ FormTypeMinTags: number;
428
+ FormTypeMaxTags: number;
429
+ EditingTypeID: string;
430
+ FormTypeEmbeddingModelID: string;
431
+ FormTypeVectorIndexID: string;
432
+ FormSourceEntityID: string;
433
+ FormSourceEntityDocID: string;
434
+ FormSourceEmbeddingModelID: string;
435
+ FormSourceVectorIndexID: string;
436
+ /** Whether the schedule creation dialog is visible */
437
+ ShowScheduleDialog: boolean;
438
+ /** Whether a schedule save operation is in progress */
439
+ ScheduleSaving: boolean;
440
+ /** Source card currently being scheduled */
441
+ SchedulingSourceCard: SourceCard | null;
442
+ /** Cron expression for the schedule form */
443
+ ScheduleCron: string;
444
+ /** Whether the schedule should be active immediately */
445
+ ScheduleEnabled: boolean;
446
+ /** Whether a generic confirmation overlay is visible */
447
+ ShowConfirmDialog: boolean;
448
+ /** Title text for the confirmation dialog */
449
+ ConfirmDialogTitle: string;
450
+ /** Body message for the confirmation dialog */
451
+ ConfirmDialogMessage: string;
452
+ /** Callback invoked when user confirms */
453
+ private confirmDialogAction;
454
+ /** Whether the split-tag dialog is visible */
455
+ ShowSplitDialog: boolean;
456
+ /** Comma-separated new child tag names for the split operation */
457
+ SplitChildNames: string;
458
+ /** The node currently being split */
459
+ private splitTargetNode;
460
+ /** Whether the move-tag dialog is visible */
461
+ ShowMoveDialog: boolean;
462
+ /** Selected new parent tag ID for the move operation */
463
+ MoveNewParentID: string | null;
464
+ /** The node currently being moved */
465
+ private moveTargetNode;
466
+ /** Whether the treemap drill-in panel is visible */
467
+ ShowTreemapDrillIn: boolean;
468
+ /** Tag node currently displayed in treemap drill-in */
469
+ TreemapDrillInNode: TaxTreeNode | null;
470
+ /** Cached ScheduledAction entities, keyed by normalized ID */
471
+ private scheduledActionsCache;
472
+ /**
473
+ * Whether the currently selected source type is "Entity", which switches
474
+ * the URL field to Entity/EntityDocument pickers.
475
+ */
476
+ /** Whether the selected source type is the Entity type (name-based check) */
477
+ get IsEntitySourceTypeSelected(): boolean;
478
+ /** Whether the selected source type requires Content Type / File Type selection */
479
+ get SelectedSourceTypeRequiresContentType(): boolean;
480
+ /** Entities that have at least one EntityDocument configured */
481
+ get EntitiesWithDocuments(): {
482
+ ID: string;
483
+ Name: string;
484
+ }[];
485
+ /** Entity documents for the selected entity */
486
+ get EntityDocOptionsForSelectedEntity(): {
487
+ ID: string;
488
+ Name: string;
489
+ }[];
490
+ /** Stores source-type-specific config values keyed by RequiredFields[].Key */
491
+ FormSourceSpecificConfig: Record<string, string>;
492
+ /** Available MJ Storage provider keys for the storage-provider-picker widget */
493
+ StorageProviderOptions: string[];
494
+ /**
495
+ * The RequiredFields array from the selected source type's ConfigurationObject.
496
+ * Drives dynamic form rendering — each field becomes a widget.
497
+ */
498
+ get SelectedSourceTypeFields(): MJContentSourceTypeEntity_IContentSourceTypeField[];
499
+ /**
500
+ * Get dependent options for a field (e.g., entity-doc-picker depends on entity-picker).
501
+ * Returns entity documents for the entity selected in the dependent field.
502
+ */
503
+ GetDependentOptions(field: MJContentSourceTypeEntity_IContentSourceTypeField): {
504
+ ID: string;
505
+ Name: string;
506
+ }[];
507
+ /**
508
+ * Handle a source-specific field value change.
509
+ * For entity-picker: auto-select the first entity doc if only one exists.
510
+ */
511
+ OnSourceFieldChanged(fieldKey: string): void;
512
+ SelectedFeedItem: ContentItemDetail | null;
513
+ ShowItemDetail: boolean;
514
+ SelectedSource: SourceDetailInfo | null;
515
+ ShowSourceDetail: boolean;
516
+ SourceDetailLoading: boolean;
517
+ /** Filter content items in source detail by pipeline status */
518
+ SourceDetailStatusFilter: ItemPipelineStatus | 'All';
519
+ /** Available status options for the filter dropdown */
520
+ readonly SourceDetailStatusOptions: (ItemPipelineStatus | 'All')[];
521
+ /** Current page index (0-based) for source detail content list */
522
+ SourceDetailPage: number;
523
+ /** Number of content items per page in source detail */
524
+ readonly SourceDetailPageSize = 10;
525
+ /**
526
+ * Returns source detail content items filtered by SourceDetailStatusFilter,
527
+ * then sliced to the current page.
528
+ */
529
+ get FilteredSourceDetailItems(): ContentItemDetail[];
530
+ /** Total number of filtered items (before pagination) */
531
+ get FilteredSourceDetailTotal(): number;
532
+ /** Total pages for source detail pagination */
533
+ get SourceDetailTotalPages(): number;
534
+ /** Navigate to the previous page in source detail content list */
535
+ SourceDetailPrevPage(): void;
536
+ /** Navigate to the next page in source detail content list */
537
+ SourceDetailNextPage(): void;
538
+ /** Handle change of the source detail status filter dropdown */
539
+ OnSourceDetailStatusFilterChange(): void;
540
+ /**
541
+ * D4: Placeholder handler for retrying failed items in source detail.
542
+ * Re-runs the pipeline for the current source. In the future this could
543
+ * target only Failed items.
544
+ */
545
+ RetryFailedItems(): void;
546
+ /** Returns the CSS class for a pipeline status badge color */
547
+ GetStatusBadgeClass(status: ItemPipelineStatus): string;
548
+ SourceTypeOptions: DropdownOption[];
549
+ ContentTypeOptions: DropdownOption[];
550
+ FileTypeOptions: DropdownOption[];
551
+ AIModelOptions: DropdownOption[];
552
+ EmbeddingModelOptions: DropdownOption[];
553
+ VectorIndexOptions: DropdownOption[];
554
+ AIModelVendorBranch: TreeBranchConfig;
555
+ AllModelsLeaf: TreeLeafConfig;
556
+ EmbeddingModelsLeaf: TreeLeafConfig;
57
557
  private contentSourcesRaw;
58
- private cdr;
558
+ private contentItemsRaw;
559
+ private contentTagsRaw;
560
+ private contentRunsRaw;
561
+ private contentSourceTypesRaw;
562
+ private contentTypesRaw;
563
+ private contentFileTypesRaw;
564
+ private aiModelsRaw;
565
+ private static readonly PREFS_KEY;
59
566
  ngAfterViewInit(): Promise<void>;
567
+ /**
568
+ * D9: Read incoming configuration from ResourceData (e.g. from Analytics tag navigation).
569
+ * Sets the initial tab and tag search query if provided.
570
+ */
571
+ private applyIncomingConfiguration;
572
+ /**
573
+ * D9: If a tagSearch parameter was provided via configuration, switch to the tags tab
574
+ * and apply the search filter after tag data loads.
575
+ */
576
+ private handleInitialTagSearch;
60
577
  ngOnDestroy(): void;
578
+ /** Report current classify dashboard state to the agent */
579
+ private emitAgentContext;
580
+ /** Register client tools the agent can invoke on the Classify dashboard */
581
+ private registerAgentTools;
61
582
  GetResourceDisplayName(_data: ResourceData): Promise<string>;
62
583
  GetResourceIconClass(_data: ResourceData): Promise<string>;
63
- /** Load all pipeline data from MJ entities */
64
- LoadData(): Promise<void>;
65
- /** Refresh pipeline status data */
66
- RefreshData(): Promise<void>;
67
- /** Format milliseconds into a human-readable duration */
68
- FormatDuration(ms: number): string;
69
- /** Format a date as a relative time string */
70
- FormatRelativeTime(date: Date | null): string;
71
- /** Get CSS class for a processing status */
72
- GetStatusClass(status: string): string;
73
- /** Get icon for a source type */
74
- GetSourceTypeIcon(typeName: string): string;
75
- /** Build KPI metrics from loaded data */
584
+ SwitchTab(tab: TabName): Promise<void>;
585
+ private loadTabData;
586
+ LoadPipelineData(): Promise<void>;
587
+ private buildNavItems;
76
588
  private buildKPIMetrics;
77
- /** Build pipeline stage visualization data */
78
589
  private buildPipelineStages;
79
- /** Group content runs by their processing stage */
80
- private groupRunsByStage;
81
- /** Create a pipeline stage object from run data */
82
- private createStage;
83
- /** Build the recent processing feed from content items and tags */
84
- private buildProcessedItems;
85
- /** Count tags per content item */
590
+ private buildFeedItems;
591
+ private buildSourceMinis;
592
+ /**
593
+ * D6: Build trending tags weighted by recency (last 7 days).
594
+ * Counts tags from ContentItemTag records created in the last 7 days
595
+ * and weights by frequency. Falls back to all-time data if no recent tags.
596
+ */
597
+ private buildTrendingTags;
598
+ /**
599
+ * Compute scored trending tags from a given set of tag records.
600
+ * Returns top 12 tags sorted by score (frequency x avg weight).
601
+ */
602
+ private computeTrendingFromTags;
603
+ private loadSourcesData;
604
+ private buildSourceCards;
605
+ /** Resolve the entity record ID from the EntityRecordDocument for entity-sourced content items */
606
+ private resolveEntityRecordID;
607
+ /** Resolve the entity name for an entity-sourced content source */
608
+ private resolveEntityName;
609
+ /** Check if a source type's Configuration says RequiresFileType !== false */
610
+ private sourceTypeRequiresFileType;
611
+ private loadContentTypesData;
612
+ private buildContentTypeCards;
613
+ private loadTagLibraryData;
614
+ private buildTagRows;
615
+ private buildTagCloud;
616
+ private buildTagsBySource;
617
+ /** Convert a string ID to a CompositeKey for tree-dropdown binding */
618
+ ToCompositeKey(id: string | null | undefined): CompositeKey | null;
619
+ /** Extract the ID string from a CompositeKey (from tree-dropdown ValueChange) */
620
+ FromCompositeKey(key: CompositeKey | CompositeKey[] | null): string;
621
+ FilterTags(): void;
622
+ /** Drill down into content items matching a specific tag */
623
+ DrillDownTag(tagName: string): void;
624
+ CloseDrillDownTag(): void;
625
+ private loadRunHistoryData;
626
+ private buildRunHistoryRows;
627
+ private buildHistorySourceOptions;
628
+ FilterRunHistory(): void;
629
+ /**
630
+ * D3/D8: Open the detail view for a specific run, loading ContentProcessRunDetail records.
631
+ */
632
+ OpenRunDetail(runID: string): Promise<void>;
633
+ /** D3/D8: Close the run detail slide-in */
634
+ CloseRunDetail(): void;
635
+ /**
636
+ * D2/D3/D8: Load ContentProcessRunDetail records for a given run and map to RunDetailRow[].
637
+ */
638
+ private loadRunDetailRows;
639
+ /**
640
+ * D2: Load live per-source progress for the currently running pipeline.
641
+ * Called when the pipeline is actively running.
642
+ */
643
+ LoadLiveRunDetails(): Promise<void>;
644
+ /** Map raw ContentProcessRunDetail records to RunDetailRow[] */
645
+ private mapRunDetailRecords;
646
+ OpenAddSourceForm(): Promise<void>;
647
+ OpenEditSourceForm(card: SourceCard): Promise<void>;
648
+ SaveSource(): Promise<void>;
649
+ DeleteSource(card: SourceCard): Promise<void>;
650
+ /**
651
+ * Opens the schedule dialog pre-filled for the given source card.
652
+ * Defaults to a daily 2 AM cron expression.
653
+ * @param card The source card to create a schedule for
654
+ */
655
+ OpenScheduleDialog(card: SourceCard): void;
656
+ /** Closes the schedule dialog without saving */
657
+ CloseScheduleDialog(): void;
658
+ /**
659
+ * Saves a new ScheduledAction for the current source, links it
660
+ * via ContentSource.ScheduledActionID, and creates the default
661
+ * action params for the Autotag and Vectorize action.
662
+ */
663
+ SaveSchedule(): Promise<void>;
664
+ /**
665
+ * Removes the schedule from a source card by unlinking the ScheduledActionID.
666
+ * @param card The source card to remove the schedule from
667
+ */
668
+ RemoveSchedule(card: SourceCard): Promise<void>;
669
+ /**
670
+ * Returns the human-readable schedule description for a source card.
671
+ * Used in the template to display schedule indicators.
672
+ */
673
+ GetScheduleLabel(card: SourceCard): string;
674
+ /**
675
+ * Returns a human-readable preview of a cron expression for the schedule dialog.
676
+ * @param cron The cron expression to preview
677
+ */
678
+ GetCronPreview(cron: string): string;
679
+ /** Looks up the cron expression for a cached ScheduledAction by ID */
680
+ private getScheduledActionCron;
681
+ /**
682
+ * Loads ScheduledAction entities referenced by content sources into the local cache.
683
+ * Called during initial data load so cron descriptions are available for card rendering.
684
+ */
685
+ private loadScheduledActionsForSources;
686
+ /** Finds the Action ID for "Autotag and Vectorize Content" by querying actions */
687
+ private findAutotagActionID;
688
+ /**
689
+ * Creates a ScheduledActionParam that passes the source ID to the action.
690
+ * Looks up the "EntityNames" action param and sets the source ID as its value.
691
+ */
692
+ private createSourceIDParam;
693
+ /**
694
+ * Links (or unlinks) a ScheduledAction to a ContentSource by updating
695
+ * the ContentSource.ScheduledActionID field.
696
+ */
697
+ private linkScheduleToSource;
698
+ OpenAddTypeForm(): Promise<void>;
699
+ OpenEditTypeForm(card: ContentTypeCard): Promise<void>;
700
+ SaveContentType(): Promise<void>;
701
+ CloseForm(): void;
702
+ /**
703
+ * Run the pipeline for a specific content source only.
704
+ */
705
+ RunPipelineForSource(contentSourceID: string): Promise<void>;
706
+ RunPipeline(contentSourceIDs?: string[]): Promise<void>;
707
+ /**
708
+ * Pause a running classification pipeline. The server sets CancellationRequested
709
+ * on the process run so the engine pauses gracefully after the current batch.
710
+ */
711
+ PausePipeline(): Promise<void>;
712
+ /**
713
+ * Resume a paused classification pipeline from its last completed offset.
714
+ */
715
+ ResumePipeline(): Promise<void>;
716
+ /**
717
+ * Cancel a running or paused pipeline. Uses pause mechanism and resets UI state.
718
+ */
719
+ CancelPipeline(): Promise<void>;
720
+ private subscribeToPipelineProgress;
721
+ private updateStagesForActiveRun;
722
+ private formatStageName;
86
723
  private countTagsByItem;
87
- /** Map raw status values to display status */
88
- private mapItemStatus;
89
- /** Build content source summaries from raw data */
90
- private buildContentSources;
91
- /** Build a map of source type IDs to names */
92
- private buildTypeMap;
93
- /** Count content items per source */
724
+ private getTopTagsForItem;
94
725
  private countItemsBySource;
95
- /** Map raw source status to display status */
96
- private mapSourceStatus;
726
+ private countTagsBySource;
727
+ private getLastRunBySource;
728
+ private countAllTags;
729
+ /** Compute average weight per tag across all occurrences */
730
+ private computeAvgWeights;
731
+ private getTopSourcePerTag;
732
+ private getFirstSeenPerTag;
733
+ private countSourcesByContentType;
734
+ private countItemsByContentType;
735
+ private inferItemStatus;
736
+ formatRelativeTime(dateStr: string | null | undefined): string;
737
+ formatNumber(n: number): string;
738
+ /** Returns font size in rem for a tag based on its weight (0.0-1.0). Range: 0.7rem to 1.0rem */
739
+ TagFontSize(weight: number): string;
740
+ /** Format weight as percentage for display in tag chip */
741
+ FormatWeight(weight: number): string;
742
+ private formatShortDate;
743
+ private formatDate;
744
+ private computeDuration;
745
+ private displayStatus;
746
+ GetSourceTypeIcon(typeName: string): string;
747
+ private ensureBaseDataLoaded;
748
+ private ensureFormDropdownsLoaded;
749
+ private resetSourceForm;
750
+ private resetTypeForm;
751
+ private refreshSourcesTab;
752
+ private refreshContentTypesTab;
753
+ OpenFeedItemDetail(index: number): void;
754
+ OpenContentItemDetail(item: ContentItemDetail): void;
755
+ /** Open content item detail slide-in by content item ID (used from tag drill-down) */
756
+ OpenItemDetailByID(contentItemID: string): void;
757
+ CloseItemDetail(): void;
758
+ OpenRecordFromItem(item: ContentItemDetail): void;
759
+ /** Cache: EntityRecordDocument ID → RecordID */
760
+ private entityRecordDocCache;
761
+ /** Load ERD RecordIDs for entity-sourced content items */
762
+ private loadEntityRecordDocCache;
763
+ private getAllWeightedTagsForItem;
764
+ /**
765
+ * D4: Infer embedding and tagging pipeline statuses for a content item.
766
+ * Uses tag count and run history heuristics since dedicated status columns
767
+ * are not yet available on the ContentItem entity.
768
+ */
769
+ private inferPipelineStatuses;
770
+ /** Map a raw status string to the ItemPipelineStatus union */
771
+ private mapStatusString;
772
+ OpenSourceDetail(card: SourceCard): Promise<void>;
773
+ CloseSourceDetail(): void;
774
+ OpenRecordFromSource(source: SourceDetailInfo): void;
775
+ OpenEditSourceFromDetail(): void;
776
+ RunSourceFromDetail(): Promise<void>;
777
+ DeleteSourceFromDetail(): Promise<void>;
778
+ private loadContentItemsForSource;
779
+ private loadRunHistoryForSource;
780
+ private resolveEmbeddingModelName;
781
+ private resolveVectorIndexName;
782
+ SwitchTaxSubTab(sub: TaxonomySubTab): void;
783
+ /**
784
+ * Loads all data needed by the Taxonomy Governance sub-tabs:
785
+ * Tags, Tagged Items, Tag Audit Logs, and cross-references content item tags.
786
+ */
787
+ private loadTaxonomyData;
788
+ /**
789
+ * Builds the taxonomy tree from raw tag data, wiring up parent-child
790
+ * relationships and attaching item counts and average weights.
791
+ */
792
+ private buildTaxTree;
793
+ private computeTreeDepths;
794
+ private propagateItemCounts;
795
+ private sortTreeNodes;
796
+ private flattenTree;
797
+ private computeTagHealth;
798
+ /**
799
+ * Counts the number of items referencing each tag, combining both
800
+ * Tagged Items and Content Item Tags. Uses NormalizeUUID for
801
+ * cross-platform UUID case consistency.
802
+ */
803
+ private countItemsByTag;
804
+ /**
805
+ * Computes the average weight per tag from Content Item Tags.
806
+ * Uses NormalizeUUID for cross-platform UUID case consistency.
807
+ */
808
+ private computeTagAvgWeights;
809
+ ToggleTaxNode(node: TaxTreeNode): void;
810
+ SelectTaxNode(node: TaxTreeNode): void;
811
+ FilterTaxTree(): void;
812
+ private applyTaxTreeFilter;
813
+ GetTaxBreadcrumb(node: TaxTreeNode): {
814
+ ID: string;
815
+ Name: string;
816
+ }[];
817
+ NavigateToBreadcrumb(tagId: string): void;
818
+ private loadRecentItemsForTag;
819
+ StartEditTag(): void;
820
+ CancelEditTag(): void;
821
+ SaveEditTag(): Promise<void>;
822
+ MoveTag(node: TaxTreeNode, newParentId: string | null): Promise<void>;
823
+ DeleteTag(node: TaxTreeNode): void;
824
+ /** Open create tag dialog for a root-level tag */
825
+ OpenCreateRootTag(): void;
826
+ /** Open create tag dialog as child of the selected node */
827
+ OpenCreateChildTag(): void;
828
+ /** Open create tag dialog as child of a specific node */
829
+ OpenCreateChildTagFor(node: TaxTreeNode): void;
830
+ /** Close create tag dialog */
831
+ CloseCreateTagDialog(): void;
832
+ /** Save the new tag */
833
+ SaveNewTag(): Promise<void>;
834
+ /** Toggle multi-select mode on/off */
835
+ ToggleMultiSelectMode(): void;
836
+ /** Toggle a node's selection in multi-select mode */
837
+ ToggleNodeSelection(node: TaxTreeNode, event: Event): void;
838
+ /** Check if a node is selected in multi-select mode */
839
+ IsNodeMultiSelected(nodeID: string): boolean;
840
+ /** Handle drag start on a tree node */
841
+ OnTreeNodeDragStart(event: DragEvent, node: TaxTreeNode): void;
842
+ /** Handle drag over a tree node (drop target) */
843
+ OnTreeNodeDragOver(event: DragEvent, node: TaxTreeNode): void;
844
+ /** Handle drag leave */
845
+ OnTreeNodeDragLeave(): void;
846
+ /** Handle drop — reparent dragged node(s) under the drop target */
847
+ OnTreeNodeDrop(event: DragEvent, targetNode: TaxTreeNode): Promise<void>;
848
+ /** Handle drop on the "Root" drop zone (make root-level) */
849
+ OnDropToRoot(event: DragEvent): Promise<void>;
850
+ MergeTags(sourceTagId: string, targetTagId: string, sourceName: string, targetName: string): Promise<void>;
851
+ MakeChildTag(childTagId: string, parentTagId: string): Promise<void>;
852
+ DismissDuplicate(pair: TaxDuplicatePair): void;
853
+ private buildTaxDuplicates;
854
+ /** Group tags by case-insensitive name, returning only groups with 2+ members */
855
+ private groupExactNameDuplicates;
856
+ /**
857
+ * Enhanced string similarity: separator normalization, abbreviation,
858
+ * pluralization, token-overlap Jaccard, containment, and Levenshtein.
859
+ * Returns the highest score among all heuristics.
860
+ */
861
+ private computeStringSimilarity;
862
+ /** Scores simple English pluralization differences */
863
+ private computePluralizationScore;
864
+ /** Jaccard similarity on word tokens */
865
+ private computeTokenJaccardSimilarity;
866
+ private isAbbreviationOf;
867
+ private levenshteinDistance;
868
+ /**
869
+ * Finds orphan tags: no parent, no children, and zero usage.
870
+ * A tag with even 1 connection is not orphaned — it's just a leaf.
871
+ * Uses NormalizeUUID for consistent cross-platform UUID comparisons.
872
+ */
873
+ private buildTaxOrphans;
874
+ ToggleOrphanSelection(orphan: TaxOrphanCard): void;
875
+ ToggleAllOrphans(): void;
876
+ DeleteOrphan(orphan: TaxOrphanCard): void;
877
+ BulkDeleteOrphans(): void;
878
+ /** Delete all orphan tags at once with a styled confirmation dialog */
879
+ DeleteAllOrphans(): void;
880
+ private buildTaxTreemap;
881
+ /**
882
+ * Builds the audit timeline from the MJ: Tag Audit Logs entity.
883
+ * Falls back to synthesizing "created" events from tag creation dates
884
+ * if no real audit log records exist yet.
885
+ */
886
+ private buildTaxAuditLog;
887
+ /**
888
+ * Maps real Tag Audit Log records into TaxAuditEvent objects.
889
+ * Uses the view's denormalized Tag, PerformedByUser, and RelatedTag fields.
890
+ */
891
+ private buildAuditEventsFromLogs;
892
+ /**
893
+ * Synthesizes audit events from tag __mj_CreatedAt dates when no
894
+ * real audit log records exist. Used as a fallback only.
895
+ */
896
+ private synthesizeAuditEventsFromTags;
897
+ /**
898
+ * Maps a PascalCase DB Action value (e.g. "Renamed") to the lowercase
899
+ * TaxAuditAction type used in the UI. Returns null for unrecognized values.
900
+ */
901
+ private mapAuditActionToType;
902
+ /**
903
+ * Safely parses the JSON Details column from a Tag Audit Log record.
904
+ * Returns an empty object on parse failure.
905
+ */
906
+ private parseAuditDetails;
907
+ /**
908
+ * Builds a human-readable description for an audit event based on the
909
+ * action type and any additional context from the related tag or details JSON.
910
+ */
911
+ private buildAuditDescription;
912
+ /**
913
+ * Adds a local-only audit entry to the top of the timeline for
914
+ * immediate UI feedback after a user action (merge, delete, etc.).
915
+ */
916
+ private addTaxAuditEntry;
917
+ ToggleTaxAuditFilter(type: string): void;
918
+ GetFilteredAuditEvents(): TaxAuditEvent[];
919
+ private formatDayHeader;
920
+ private buildTaxHealth;
921
+ /** Returns the Font Awesome icon class for an audit event action type. */
922
+ GetTaxAuditIcon(type: string): string;
923
+ /** Opens a styled confirmation dialog, replacing browser `confirm()`. */
924
+ OpenConfirmDialog(title: string, message: string, action: () => Promise<void>): void;
925
+ /** User confirmed the dialog action */
926
+ ConfirmDialogAccept(): Promise<void>;
927
+ /** User cancelled the confirmation dialog */
928
+ ConfirmDialogCancel(): void;
929
+ /** Opens the split-tag dialog for a given tree node */
930
+ OpenSplitDialog(node: TaxTreeNode): void;
931
+ /** Closes the split-tag dialog without action */
932
+ CloseSplitDialog(): void;
933
+ /** Executes the split operation, creating child tags from comma-separated names */
934
+ ExecuteSplit(): Promise<void>;
935
+ /** Opens the move-tag dialog for a given tree node */
936
+ OpenMoveDialog(node: TaxTreeNode): void;
937
+ /** Closes the move-tag dialog without action */
938
+ CloseMoveDialog(): void;
939
+ /** Returns flat list of tags eligible as move targets (excludes the node being moved and its descendants) */
940
+ GetMoveTargetOptions(): {
941
+ ID: string;
942
+ Name: string;
943
+ Depth: number;
944
+ }[];
945
+ /** Collects IDs of all descendants of a node */
946
+ private collectDescendantIds;
947
+ /** Executes the move operation */
948
+ ExecuteMove(): Promise<void>;
949
+ /** Opens treemap drill-in panel for the given cell */
950
+ OpenTreemapDrillIn(cell: TaxTreemapCell): void;
951
+ /** Closes treemap drill-in panel */
952
+ CloseTreemapDrillIn(): void;
953
+ /** Navigate from treemap drill-in to the tag in the tree view */
954
+ DrillInToTreeView(node: TaxTreeNode): void;
955
+ RefreshTaxonomyData(): Promise<void>;
956
+ /** Load pending content item duplicates for review */
957
+ LoadContentDuplicates(): Promise<void>;
958
+ /** Resolve content source names for a list of content item IDs */
959
+ private resolveItemSourceNames;
960
+ /** Confirm a content duplicate pair */
961
+ ConfirmContentDuplicate(dupRow: ContentDuplicateRow): Promise<void>;
962
+ /** Dismiss a content duplicate pair */
963
+ DismissContentDuplicate(dupRow: ContentDuplicateRow): Promise<void>;
97
964
  static ɵfac: i0.ɵɵFactoryDeclaration<AutotaggingPipelineResourceComponent, never>;
98
965
  static ɵcmp: i0.ɵɵComponentDeclaration<AutotaggingPipelineResourceComponent, "app-autotagging-pipeline-resource", never, {}, {}, never, never, false, never>;
99
966
  }
100
967
  export declare function LoadAutotaggingPipelineResource(): void;
968
+ /**
969
+ * Converts a 5-part or 6-part cron expression to a human-readable English string.
970
+ *
971
+ * Handles common patterns:
972
+ * `0 * * * *` -> "Every hour"
973
+ * `0 2 * * *` -> "Daily at 2:00 AM"
974
+ * `0 2 * * 1` -> "Weekly on Monday at 2:00 AM"
975
+ * `star/15 * * * *` -> "Every 15 minutes" (where star = asterisk)
976
+ * `0 0 1 * *` -> "Monthly on day 1 at 12:00 AM"
977
+ *
978
+ * Falls back to returning the raw cron string for unrecognized patterns.
979
+ *
980
+ * @param cron A cron expression string (5 or 6 parts)
981
+ * @returns A human-readable description or the raw cron if unrecognized
982
+ */
983
+ export declare function CronToHumanReadable(cron: string): string;
101
984
  export {};
102
985
  //# sourceMappingURL=autotagging-pipeline-resource.component.d.ts.map