@e-llm-studio/federated-dashboard-components 2.2.9-rca-test-3 → 2.2.10

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 (176) hide show
  1. package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  2. package/dist/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
  3. package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  4. package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  5. package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  6. package/dist/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
  7. package/dist/ExecutiveDashboard/components/Table/TableCard.js +1 -1
  8. package/dist/ExecutiveDashboard/utils/sectionOrder.js +1 -1
  9. package/dist/HumanIntelligence/HumanChangesTableWrapper.js +1 -1
  10. package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +1 -1
  11. package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +1 -1
  12. package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +1 -1
  13. package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js +2 -0
  14. package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js.map +1 -0
  15. package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js +2 -0
  16. package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js.map +1 -0
  17. package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js +2 -0
  18. package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js.map +1 -0
  19. package/dist/HumanIntelligence/hooks/accessToken.js +2 -0
  20. package/dist/HumanIntelligence/hooks/accessToken.js.map +1 -0
  21. package/dist/HumanIntelligence/hooks/useHumanChangesData.js +1 -1
  22. package/dist/HumanIntelligence/utils/inlineMarkup.js +1 -1
  23. package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  24. package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
  25. package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  26. package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  27. package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  28. package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
  29. package/dist/cjs/ExecutiveDashboard/components/Table/TableCard.js +1 -1
  30. package/dist/cjs/ExecutiveDashboard/utils/sectionOrder.js +1 -1
  31. package/dist/cjs/HumanIntelligence/HumanChangesTableWrapper.js +1 -1
  32. package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +1 -1
  33. package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +1 -1
  34. package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +1 -1
  35. package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js +2 -0
  36. package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js.map +1 -0
  37. package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js +2 -0
  38. package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js.map +1 -0
  39. package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js +2 -0
  40. package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js.map +1 -0
  41. package/dist/cjs/HumanIntelligence/hooks/accessToken.js +2 -0
  42. package/dist/cjs/HumanIntelligence/hooks/accessToken.js.map +1 -0
  43. package/dist/cjs/HumanIntelligence/hooks/useHumanChangesData.js +1 -1
  44. package/dist/cjs/HumanIntelligence/utils/inlineMarkup.js +1 -1
  45. package/dist/cjs/index.js +1 -1
  46. package/dist/cjs/styles.css +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/styles.css +1 -1
  49. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
  50. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
  51. package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
  52. package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts +1 -12
  53. package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts.map +1 -1
  54. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +1 -12
  55. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
  56. package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
  57. package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
  58. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +0 -23
  59. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
  60. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts +2 -12
  61. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts.map +1 -1
  62. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts +1 -1
  63. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts.map +1 -1
  64. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts +2 -20
  65. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts.map +1 -1
  66. package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts +6 -1
  67. package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts.map +1 -1
  68. package/dist/types/ExecutiveDashboard/types/index.d.ts +0 -24
  69. package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
  70. package/dist/types/ExecutiveDashboard/utils/sectionOrder.d.ts.map +1 -1
  71. package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts.map +1 -1
  72. package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts +2 -0
  73. package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts.map +1 -1
  74. package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts +2 -0
  75. package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts.map +1 -1
  76. package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.d.ts +5 -0
  77. package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.d.ts.map +1 -0
  78. package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/parser.d.ts +20 -0
  79. package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/parser.d.ts.map +1 -0
  80. package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/types.d.ts +45 -0
  81. package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/types.d.ts.map +1 -0
  82. package/dist/types/HumanIntelligence/hooks/accessToken.d.ts +13 -0
  83. package/dist/types/HumanIntelligence/hooks/accessToken.d.ts.map +1 -0
  84. package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts +12 -4
  85. package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts.map +1 -1
  86. package/dist/types/HumanIntelligence/utils/inlineMarkup.d.ts +2 -0
  87. package/dist/types/HumanIntelligence/utils/inlineMarkup.d.ts.map +1 -1
  88. package/dist/types/index.d.ts +0 -10
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/package.json +3 -3
  91. package/dist/ExecutiveDashboard/api/insightsApi.js +0 -2
  92. package/dist/ExecutiveDashboard/api/insightsApi.js.map +0 -1
  93. package/dist/ExecutiveDashboard/components/Insights/AgCharts.js +0 -2
  94. package/dist/ExecutiveDashboard/components/Insights/AgCharts.js.map +0 -1
  95. package/dist/ExecutiveDashboard/components/Insights/AgReport.js +0 -2
  96. package/dist/ExecutiveDashboard/components/Insights/AgReport.js.map +0 -1
  97. package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js +0 -2
  98. package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js.map +0 -1
  99. package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +0 -2
  100. package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +0 -1
  101. package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js +0 -2
  102. package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js.map +0 -1
  103. package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js +0 -2
  104. package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js.map +0 -1
  105. package/dist/ExecutiveDashboard/components/Insights/L1Report.js +0 -2
  106. package/dist/ExecutiveDashboard/components/Insights/L1Report.js.map +0 -1
  107. package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js +0 -2
  108. package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +0 -1
  109. package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js +0 -2
  110. package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +0 -1
  111. package/dist/ExecutiveDashboard/components/Insights/RowDetail.js +0 -2
  112. package/dist/ExecutiveDashboard/components/Insights/RowDetail.js.map +0 -1
  113. package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js +0 -2
  114. package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js.map +0 -1
  115. package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js +0 -2
  116. package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +0 -1
  117. package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js +0 -2
  118. package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js.map +0 -1
  119. package/dist/cjs/ExecutiveDashboard/api/insightsApi.js +0 -2
  120. package/dist/cjs/ExecutiveDashboard/api/insightsApi.js.map +0 -1
  121. package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js +0 -2
  122. package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js.map +0 -1
  123. package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js +0 -2
  124. package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js.map +0 -1
  125. package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js +0 -2
  126. package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js.map +0 -1
  127. package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +0 -2
  128. package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +0 -1
  129. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js +0 -2
  130. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js.map +0 -1
  131. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js +0 -2
  132. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js.map +0 -1
  133. package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js +0 -2
  134. package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js.map +0 -1
  135. package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js +0 -2
  136. package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +0 -1
  137. package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js +0 -2
  138. package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +0 -1
  139. package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js +0 -2
  140. package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js.map +0 -1
  141. package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js +0 -2
  142. package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js.map +0 -1
  143. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js +0 -2
  144. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +0 -1
  145. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js +0 -2
  146. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js.map +0 -1
  147. package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts +0 -156
  148. package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts.map +0 -1
  149. package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts +0 -66
  150. package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts.map +0 -1
  151. package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts +0 -117
  152. package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts.map +0 -1
  153. package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts +0 -6
  154. package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts.map +0 -1
  155. package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts +0 -65
  156. package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts.map +0 -1
  157. package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts +0 -17
  158. package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts.map +0 -1
  159. package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts +0 -28
  160. package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts.map +0 -1
  161. package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts +0 -32
  162. package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts.map +0 -1
  163. package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts +0 -26
  164. package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts.map +0 -1
  165. package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts +0 -13
  166. package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts.map +0 -1
  167. package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts +0 -12
  168. package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts.map +0 -1
  169. package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts +0 -151
  170. package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts.map +0 -1
  171. package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts +0 -61
  172. package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts.map +0 -1
  173. package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts +0 -62
  174. package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts.map +0 -1
  175. package/dist/types/ExecutiveDashboard/types/insights.d.ts +0 -502
  176. package/dist/types/ExecutiveDashboard/types/insights.d.ts.map +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react"),t=require("../../api/insightsApi.js"),r=require("./agPrimitives.js"),i=require("./insightsContextCore.js");var o=function(e){var n=e.slice(0,10).split("-").map(Number),t=n[0],r=n[1],i=n[2];return new Date(t,(r||1)-1,i||1)};function a(e){if(!(null==e?void 0:e.start)||!(null==e?void 0:e.end))return"";var n=o(e.start),t=o(e.end),r=function(e){return e.getDate()},i=function(e){return e.toLocaleString("en-GB",{month:"short"})};return e.start===e.end?"".concat(r(t)," ").concat(i(t)," ").concat(t.getFullYear()):n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()?"".concat(r(n),"–").concat(r(t)," ").concat(i(t)," ").concat(t.getFullYear()):n.getFullYear()===t.getFullYear()?"".concat(r(n)," ").concat(i(n)," – ").concat(r(t)," ").concat(i(t)," ").concat(t.getFullYear()):"".concat(r(n)," ").concat(i(n)," ").concat(n.getFullYear()," – ").concat(r(t)," ").concat(i(t)," ").concat(t.getFullYear())}var l={spike:"Spike",drop:"Drop",fast_mover:"Fast mover",slow_mover:"Slow mover",new_entity:"New",dormant_entity:"Went quiet",recovered:"Recovered",stable:"Stable"};var s="insights:open-entity-report";var u=function(e,n){return Array.from(new Set(e.map(function(e){return(null!=e?e:"").trim()}).filter(Boolean))).slice(0,n)};exports.OPEN_INSIGHTS_ENTITY_REPORT=s,exports.formatPeriod=a,exports.formatReportDate=function(e){return(null==e?void 0:e.end)?a({start:e.end,end:e.end}):""},exports.formatValue=function(e){return null!=e&&Number.isFinite(e)?String(e):"—"},exports.insightTabItems=function(e){var n,t;return(null!==(t=null===(n=null==e?void 0:e.tabs)||void 0===n?void 0:n.items)&&void 0!==t?t:[]).filter(function(e){return e&&"string"==typeof e.entityKey&&e.entityKey})},exports.isInsightsOn=function(e){var n=null==e?void 0:e.enabled;return!0===n||"string"==typeof n&&["true","yes","y","1"].includes(n.trim().toLowerCase())},exports.movementLabel=function(e){var n;return e?null!==(n=l[e])&&void 0!==n?n:e.replace(/_/g," "):""},exports.previousDayLabel=function(e){var n=e?new Date("".concat(e.slice(0,10),"T00:00:00")).getDay():1;return 0===n||6===n?"vs previous weekend day":"vs previous working day"},exports.reportDecisioning=function(n,t){var r,i,o,a,l;if(!n||"generated"!==n.status)return null;var s=e.__spreadArray(e.__spreadArray([],null!==(r=n.rootCause)&&void 0!==r?r:[],!0),null!==(i=n.nextSteps)&&void 0!==i?i:[],!0).map(function(e){return e.decisioning}).filter(Boolean),c=u(s.flatMap(function(e){var n;return null!==(n=e.decisionMakingFactors)&&void 0!==n?n:[]}),3),d=u(s.flatMap(function(e){var n;return null!==(n=e.gapsInDecision)&&void 0!==n?n:[]}),4);return c.length||d.length||null!=n.score?{explanation:null!=t?t:(null===(o=n.summary)||void 0===o?void 0:o.body)||(null===(a=s[0])||void 0===a?void 0:a.explanation)||void 0,decisionMakingFactors:c,gapsInDecision:d,score:null!==(l=n.score)&&void 0!==l?l:void 0}:null},exports.sentimentColor=function(e,n){return void 0===n&&(n="up"),"up"!==e&&"down"!==e?"#d97706":e===n?"#16a34a":"#dc2626"},exports.shortDay=function(e){var n=String(e);return/^\d{4}-\d{2}-\d{2}/.test(n)?"".concat(n.slice(5,7),"/").concat(n.slice(8,10)):n},exports.summaryCardConfig=function(e){var n=null==e?void 0:e.summaryCard;return n&&!1!==n.enabled?n:null},exports.toRcaItems=function(e,t){return(null!=e?e:[]).map(function(e){var i,o,a,l,s,u,c,d,v,g;return{id:e.id,content:(null===(i=e.links)||void 0===i?void 0:i.length)&&t?n.createElement(r.VerdictSentence,{text:e.content,arrowsFollowVerdict:!0,renderText:r.linkedText(e.links,t)}):/^(Good|Bad) news\s*[-–—]|[↑↓]/.test(e.content)?n.createElement(r.VerdictSentence,{text:e.content,arrowsFollowVerdict:!0}):e.content,decisioning:e.decisioning?{explanation:null!==(o=e.decisioning.explanation)&&void 0!==o?o:void 0,decisionMakingFactors:(null!==(a=e.decisioning.decisionMakingFactors)&&void 0!==a?a:[]).slice(0,3),gapsInDecision:null!==(l=e.decisioning.gapsInDecision)&&void 0!==l?l:[],score:null!==(s=e.decisioning.score)&&void 0!==s?s:void 0,evidence:e.decisioning.evidence?{label:e.decisioning.evidence.label,title:null!==(u=e.decisioning.evidence.title)&&void 0!==u?u:void 0,description:null!==(c=e.decisioning.evidence.description)&&void 0!==c?c:void 0,items:null!==(d=e.decisioning.evidence.items)&&void 0!==d?d:[],highlight:null!==(v=e.decisioning.evidence.highlight)&&void 0!==v?v:void 0,footer:null!==(g=e.decisioning.evidence.footer)&&void 0!==g?g:void 0}:void 0}:void 0}})},exports.useInsightsFetch=function(t,r){var i=n.useState({loading:Boolean(t)}),o=i[0],a=i[1],l=n.useState(0),s=l[0],u=l[1],c=n.useRef(t);return c.current=t,n.useEffect(function(){var n=c.current;if(n){var t=new AbortController;return a(function(e){return{data:e.data,loading:!0}}),n(t.signal).then(function(e){t.signal.aborted||a({data:e,loading:!1})}).catch(function(e){t.signal.aborted||"AbortError"===(null==e?void 0:e.name)||a({error:e,loading:!1})}),function(){return t.abort()}}a(function(n){return e.__assign(e.__assign({},n),{loading:!1})})},e.__spreadArray(e.__spreadArray([],r,!0),[s],!1)),e.__assign(e.__assign({},o),{reload:function(){return u(function(e){return e+1})},updateData:function(n){return a(function(t){return e.__assign(e.__assign({},t),{data:n(t.data)})})}})},exports.useJob=function(r,i,o){var a=this,l=n.useState({status:null,error:null}),s=l[0],u=l[1],c=n.useRef(o);return c.current=o,n.useEffect(function(){if(r&&i){var n,o=!1,l=function(){return e.__awaiter(a,void 0,void 0,function(){var a,s,d;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t.fetchInsightsJob(i,r)];case 1:return a=e.sent(),o?[2]:(u({status:a.status,error:"failed"===a.status?a.error||"The job failed.":null}),"succeeded"===a.status?null===(d=c.current)||void 0===d||d.call(c,a.reportId):"failed"!==a.status&&(n=setTimeout(l,4e3)),[3,3]);case 2:return s=e.sent(),o||u({status:"failed",error:s.message||"The job couldn't be checked."}),[3,3];case 3:return[2]}})})};return l(),function(){o=!0,clearTimeout(n)}}u({status:null,error:null})},[r,i]),s},exports.useOpenRow=function(){var e=i.useInsights();return function(n){var t,r;if(e){var i=new CustomEvent(s,{detail:n,cancelable:!0});window.dispatchEvent(i),i.defaultPrevented||e.openReport({nodeKey:n.nodeKey,kpiId:null!==(t=e.headlineKpi)&&void 0!==t?t:void 0,dataDay:null!==(r=n.dataDay)&&void 0!==r?r:void 0,title:n.label})}}},exports.viewerFromToken=function(e){var n,t,r;try{var i=null==e?void 0:e.replace(/^bearer\s+/i,"").split(".")[1];if(!i)return{email:null,isAdmin:!1};var o=JSON.parse(decodeURIComponent(escape(atob(i.replace(/-/g,"+").replace(/_/g,"/"))))),a=[].concat(null!==(n=o.rolename)&&void 0!==n?n:[],null!==(t=o.role)&&void 0!==t?t:[],null!==(r=o.roles)&&void 0!==r?r:[]).map(String);return{email:o.email||o.sub||null,isAdmin:a.some(function(e){return"cw-admin"===e||/ Admin$/.test(e)})}}catch(e){return{email:null,isAdmin:!1}}};
2
- //# sourceMappingURL=insightsUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insightsUtils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,156 +0,0 @@
1
- import { DashboardApiError, type DashboardApiConfig } from "./dashboardApi";
2
- import type { InsightsActionInput, InsightsCommentList, InsightsCorrelationResponse, InsightsCorrelationTrendResponse, InsightsDriversResponse, InsightsGraphGroup, InsightsGenerateResult, InsightsHierarchyResponse, InsightsJobStatus, InsightsNeedsAttentionResponse, InsightsObservationResponse, InsightsObservationsResponse, InsightsReport, InsightsReportDetail, InsightsReportsResponse, InsightsRowDetail, InsightsRowsQuery, InsightsRowsResponse, InsightsSeriesResponse, InsightsSummaryResponse } from "../types/insights";
3
- /**
4
- * Client for the Decision Advantage routes under /federated/insights. Same
5
- * envelope and Bearer token as the dashboard API. Insights always cover all
6
- * data, so only the date range is sent — never sidebar filters.
7
- */
8
- /** A failed insights call, with the backend's `errorType` (e.g. `InsightsDisabled`, `RateLimited`). */
9
- export declare class InsightsApiError extends DashboardApiError {
10
- errorType?: string;
11
- data?: unknown;
12
- constructor(message: string, status?: number, errorType?: string, data?: unknown);
13
- }
14
- export interface InsightsRange {
15
- startDate: Date;
16
- endDate: Date;
17
- /** The dashboard's Working days switch. */
18
- workingDaysOnly?: boolean;
19
- /** Backend graph-group key. When present it replaces workingDaysOnly for /series. */
20
- group?: string;
21
- }
22
- /** YYYY-MM-DD in the viewer's own calendar, which is what the date picker shows. */
23
- export declare const toIsoDay: (date: Date) => string;
24
- /** GET /summary — the overall Decision Advantage card. */
25
- export declare const fetchInsightsSummary: (config: DashboardApiConfig, range: InsightsRange, signal?: AbortSignal) => Promise<InsightsSummaryResponse>;
26
- /** GET /levels/{entityKey}/summary — the card at the top of a tab. */
27
- export declare const fetchLevelSummary: (config: DashboardApiConfig, entityKey: string, range: InsightsRange, signal?: AbortSignal) => Promise<InsightsSummaryResponse>;
28
- /** GET /levels/{entityKey}/rows — one page of a tab's ranked list. */
29
- export declare const fetchLevelRows: (config: DashboardApiConfig, entityKey: string, range: InsightsRange, options?: InsightsRowsQuery, signal?: AbortSignal) => Promise<InsightsRowsResponse>;
30
- /**
31
- * GET /series — daily values, moving averages and change markers. Pass
32
- * `nodeKeys` for chosen rows, or `entityKey` + `topN` for a level's top rows;
33
- * neither charts the L1 total. At most 10 series (rows × numbers) per call.
34
- */
35
- export declare const fetchInsightsSeries: (config: DashboardApiConfig, range: InsightsRange, options: {
36
- kpiIds: string[];
37
- nodeKeys?: string[];
38
- entityKey?: string;
39
- topN?: number;
40
- }, signal?: AbortSignal) => Promise<InsightsSeriesResponse>;
41
- /** GET /reports/{reportId} — one stored report, with the full markdown. */
42
- export declare const fetchInsightsReport: (config: DashboardApiConfig, reportId: string, signal?: AbortSignal) => Promise<InsightsReportDetail>;
43
- /**
44
- * POST /reports/generate — asks for a report on one flagged change. Returns
45
- * the report when one already exists; otherwise the job writing it. A job
46
- * already writing the same report (409 InsightsBusy) is returned as that job.
47
- */
48
- export declare function generateInsightsReport(config: DashboardApiConfig, target: {
49
- nodeKey: string;
50
- kpiId: string;
51
- dataDay: string;
52
- force?: boolean;
53
- }, signal?: AbortSignal): Promise<InsightsGenerateResult>;
54
- /** GET /jobs/{jobId} — poll every 5 s until succeeded or failed. */
55
- export declare const fetchInsightsJob: (config: DashboardApiConfig, jobId: string, signal?: AbortSignal) => Promise<InsightsJobStatus>;
56
- export declare const fetchReportComments: (config: DashboardApiConfig, reportId: string, signal?: AbortSignal) => Promise<InsightsCommentList>;
57
- export declare const postReportComment: (config: DashboardApiConfig, reportId: string, commentText: string, parentCommentId?: string | null) => Promise<{
58
- id: string;
59
- }>;
60
- export declare const deleteReportComment: (config: DashboardApiConfig, commentId: string) => Promise<{
61
- id: string;
62
- deleted: boolean;
63
- }>;
64
- export declare const updateReportComment: (config: DashboardApiConfig, commentId: string, commentText: string) => Promise<{
65
- id: string;
66
- edited: boolean;
67
- }>;
68
- /** PUT /actions/{nodeKey} — dashboard admins only. `status: null` removes the action. */
69
- export declare const saveInsightsAction: (config: DashboardApiConfig, nodeKey: string, action: InsightsActionInput) => Promise<{
70
- actionId: string | null;
71
- status: string | null;
72
- updatedAt: string | null;
73
- }>;
74
- export declare const fetchInsightsDrivers: (config: DashboardApiConfig, params: {
75
- dataDay?: string;
76
- kpiId: string;
77
- entityKey?: string;
78
- parentNodeKey?: string;
79
- level?: number;
80
- tab?: string;
81
- limit?: number;
82
- offset?: number;
83
- }, signal?: AbortSignal) => Promise<InsightsDriversResponse>;
84
- export declare const fetchInsightsCorrelation: (config: DashboardApiConfig, nodeKey: string, params: {
85
- kpiId: string;
86
- dataDay: string;
87
- startDate?: string;
88
- endDate?: string;
89
- disregardBefore?: string;
90
- disregardDates?: string[];
91
- }, signal?: AbortSignal) => Promise<InsightsCorrelationResponse>;
92
- export declare const fetchInsightsCorrelationTrend: (config: DashboardApiConfig, nodeKey: string, params: {
93
- kpiId: string;
94
- startDate: string;
95
- endDate: string;
96
- disregardBefore?: string;
97
- disregardDates?: string[];
98
- }, signal?: AbortSignal) => Promise<InsightsCorrelationTrendResponse>;
99
- export declare const saveCorrelationWindow: (config: DashboardApiConfig, nodeKey: string, body: {
100
- kpiId: string;
101
- startDate: string | null;
102
- excludedDates: string[];
103
- dataDay: string;
104
- changeReason: string;
105
- regenerate?: boolean;
106
- }) => Promise<{
107
- jobId: string;
108
- }>;
109
- export declare const fetchGraphGroups: (config: DashboardApiConfig, signal?: AbortSignal) => Promise<{
110
- groups: InsightsGraphGroup[];
111
- }>;
112
- export declare const fetchNeedsAttention: (config: DashboardApiConfig, params?: {
113
- dataDay?: string;
114
- kpiId?: string;
115
- nodeKey?: string;
116
- }, signal?: AbortSignal) => Promise<InsightsNeedsAttentionResponse>;
117
- export declare const decideObservation: (config: DashboardApiConfig, observationId: string, decision: "accept" | "reject" | "undo", reason?: string) => Promise<InsightsObservationResponse>;
118
- /** GET /observations — data points under review, with filters; used for the ones already decided. */
119
- export declare const fetchObservations: (config: DashboardApiConfig, params?: {
120
- dataDay?: string;
121
- kpiId?: string;
122
- nodeKey?: string;
123
- state?: "pending" | "flagged" | "accepted" | "rejected";
124
- limit?: number;
125
- }, signal?: AbortSignal) => Promise<InsightsObservationsResponse>;
126
- export declare const fetchObservation: (config: DashboardApiConfig, observationId: string, signal?: AbortSignal) => Promise<InsightsObservationResponse>;
127
- export declare const fetchHierarchy: (config: DashboardApiConfig, signal?: AbortSignal) => Promise<InsightsHierarchyResponse>;
128
- export declare const fetchRowDetail: (config: DashboardApiConfig, nodeKey: string, params: {
129
- dataDay: string;
130
- kpiId: string;
131
- }, signal?: AbortSignal) => Promise<InsightsRowDetail>;
132
- export declare const fetchRowReport: (config: DashboardApiConfig, nodeKey: string, params: {
133
- dataDay: string;
134
- kpiId: string;
135
- }, signal?: AbortSignal) => Promise<InsightsReportDetail>;
136
- export declare const fetchInsightsReports: (config: DashboardApiConfig, params: {
137
- nodeKey: string;
138
- kpiId?: string;
139
- startDate: string;
140
- endDate: string;
141
- }, signal?: AbortSignal) => Promise<InsightsReportsResponse>;
142
- export declare const generateInsightsSummary: (config: DashboardApiConfig, body: {
143
- dataDay: string;
144
- window: "day" | "week" | "both";
145
- }) => Promise<{
146
- report?: InsightsReport | undefined;
147
- jobId?: string | undefined;
148
- }>;
149
- export declare const generateLevelSummary: (config: DashboardApiConfig, entityKey: string, body: {
150
- dataDay: string;
151
- window: "day" | "week" | "both";
152
- }) => Promise<{
153
- report?: InsightsReport | undefined;
154
- jobId?: string | undefined;
155
- }>;
156
- //# sourceMappingURL=insightsApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insightsApi.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard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eAAO,MAAM,oBAAoB,WACvB,kBAAkB,UAClB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,WACtE,WAAW,qCACsE,CAAC;AAY7F,eAAO,MAAM,uBAAuB,WAAY,kBAAkB,QAAQ;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE;;;EAC1E,CAAC;AAErD,eAAO,MAAM,oBAAoB,WAAY,kBAAkB,aAAa,MAAM,QAAQ;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE;;;EAC1D,CAAC"}
@@ -1,66 +0,0 @@
1
- /// <reference types="react" />
2
- import type { DataPoint } from "../Graph/types";
3
- import type { InsightsSeriesItem } from "../../types/insights";
4
- import { type GoodDirection } from "./agPrimitives";
5
- /** One day of the headline number, with its averages and how it moved. */
6
- export interface TrendPoint {
7
- day: string;
8
- value: number | null;
9
- previous: number | null;
10
- fast: number | null;
11
- slow: number | null;
12
- long: number | null;
13
- /** null: never classified (historic); "stable": classified, no significant change. */
14
- movementType: string | null;
15
- direction: string | null;
16
- /** The day's one-line summary, when a report was written for it. */
17
- headline: string | null;
18
- reportId: string | null;
19
- criticality: string | null;
20
- substituted: boolean;
21
- substitutionMessage: string | null;
22
- commentCount: number;
23
- excludedCount: number;
24
- pendingCount: number;
25
- flaggedCount: number;
26
- }
27
- /** Turns /series points for one row and number into trend points. Days with a value but no marker were steady. */
28
- export declare function toTrendPoints(item: InsightsSeriesItem | undefined): TrendPoint[];
29
- /**
30
- * The headline number's trend: the daily line coloured day by day by how it
31
- * moved, the 3/7/30-day averages as dashed lines (7-day on at first), other
32
- * Tier 1 numbers as plain lines, and a tooltip with the day's verdict.
33
- * Clicking a day opens its report.
34
- */
35
- export declare function TrendChart({ points, label, good, windows, extraLines, highlightDay, onOpenDay, onOpenAttention, syncId, }: {
36
- points: TrendPoint[];
37
- label: string;
38
- good: GoodDirection;
39
- windows: {
40
- fast: number;
41
- slow: number;
42
- long: number;
43
- };
44
- /** Other numbers drawn alongside, each one line. */
45
- extraLines?: {
46
- key: string;
47
- label: string;
48
- color: string;
49
- data: DataPoint[];
50
- }[];
51
- highlightDay?: string | null;
52
- onOpenDay?: (point: TrendPoint) => void;
53
- onOpenAttention?: (point: TrendPoint) => void;
54
- syncId?: string;
55
- }): import("react").JSX.Element;
56
- /**
57
- * User Activity: the Tier 2 numbers over the same days, three on at first,
58
- * with each number's change vs the day before in the tooltip.
59
- */
60
- export declare function ActivityChart({ items, labelOf, goodOf, syncId, }: {
61
- items: InsightsSeriesItem[];
62
- labelOf: (kpiId: string) => string;
63
- goodOf: (kpiId: string) => GoodDirection;
64
- syncId?: string;
65
- }): import("react").JSX.Element;
66
- //# sourceMappingURL=AgCharts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgCharts.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/AgCharts.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,SAAS,EAAU,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AAoBxB,0EAA0E;AAC1E,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,sFAAsF;IACtF,YAAY,EAAE,MAAM,GAA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AC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,+BA4KA;AAQD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,GACP,EAAE;IACD,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,aAAa,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,+BAmFA"}
@@ -1,117 +0,0 @@
1
- import { type ReactNode } from "react";
2
- import type { InsightsDriver, InsightsDriversTab, InsightsReadContext, InsightsReport, InsightsRow, InsightTabConfig } from "../../types/insights";
3
- import { type GoodDirection } from "./agPrimitives";
4
- import "./agPrimitives.css";
5
- import "./insights.css";
6
- export declare const MAX_SERIES = 10;
7
- export declare function RegenerateSummary({ entityKey }: {
8
- entityKey?: string;
9
- }): import("react").JSX.Element | null;
10
- export declare const titleCase: (s: string) => string;
11
- /**
12
- * The Summary card, as AI Governance's: the verdict ("Significant change",
13
- * "Trending down", …) in its colour, then the day's one-line summary with the
14
- * brain button that opens how the AI reached it.
15
- */
16
- export declare function SummaryCard({ report, movementType, direction, good, loading, error, }: {
17
- report?: InsightsReport;
18
- /** The headline number's movement on the report day, used when the report carries no verdict. */
19
- movementType?: string | null;
20
- direction?: string | null;
21
- good: GoodDirection;
22
- loading?: boolean;
23
- error?: Error;
24
- }): import("react").JSX.Element;
25
- /** Decision Advantage: Root Cause and Next Steps, the confidence score, and the report's reasoning behind the brain button. */
26
- export declare function DecisionCard({ report, error, loading }: {
27
- report?: InsightsReport;
28
- error?: Error;
29
- loading?: boolean;
30
- }): import("react").JSX.Element;
31
- export declare function AddToGraph({ on, onClick }: {
32
- on: boolean;
33
- onClick: () => void;
34
- }): import("react").JSX.Element;
35
- /** One ranked row, laid out as the AI Governance driver rows. */
36
- export declare function DriverRow({ rank, category, name, chips, action, lines, cell, onOpen, }: {
37
- rank: number;
38
- category?: string;
39
- name: string;
40
- chips?: ReactNode;
41
- action?: ReactNode;
42
- lines?: ReactNode;
43
- cell?: ReactNode;
44
- onOpen?: () => void;
45
- }): import("react").JSX.Element;
46
- export declare function DriverList({ label, rightLabel, children }: {
47
- label: string;
48
- rightLabel?: string;
49
- children: ReactNode;
50
- }): import("react").JSX.Element;
51
- /**
52
- * Top Drivers / Headwinds / Needs attention for the report day, across all
53
- * parts for the report day, read from the backend's /top-drivers route.
54
- */
55
- export declare function TopDriversSection({ dataDay, entityKey, parentNodeKey, kpiId: requestedKpiId, title, graphed, onToggleGraph, onOpenDriver, onDecisionSettled, initialTab, }: {
56
- dataDay: string;
57
- entityKey?: string;
58
- parentNodeKey?: string;
59
- kpiId?: string;
60
- title: string;
61
- graphed: string[];
62
- onToggleGraph?: (driver: InsightsDriver) => void;
63
- onOpenDriver?: (driver: InsightsDriver) => void;
64
- onDecisionSettled?: () => void;
65
- initialTab?: InsightsDriversTab;
66
- }): import("react").JSX.Element | null;
67
- /** Usage vs the headline number for one report row and day. */
68
- export declare function CorrelationSection({ dataDay, nodeKey, kpiId: requestedKpiId, dayGroup }: {
69
- dataDay?: string | null;
70
- nodeKey?: string;
71
- kpiId?: string;
72
- dayGroup?: Array<number | string> | null;
73
- }): import("react").JSX.Element | null;
74
- /** The day a report is for: the last day of the period it covers. */
75
- export declare const reportDayOf: (context?: InsightsReadContext) => string | null;
76
- /** One number at a time for a part's top rows, with the averages for one row, as the AI Governance L2 trend. */
77
- export declare function RowTrend({ entityKey, kpis, nodeKeys, workingDays, showMetrics, group, onOpenPoint, }: {
78
- entityKey: string;
79
- kpis: string[];
80
- nodeKeys: string[];
81
- workingDays: boolean;
82
- showMetrics: boolean;
83
- group?: string | null;
84
- onOpenPoint?: (point: {
85
- nodeKey: string;
86
- label: string;
87
- kpiId: string;
88
- dataDay: string;
89
- reportId: string | null;
90
- }) => void;
91
- }): import("react").JSX.Element | null;
92
- /** A part's rows ranked for the range, as the AI Governance "Top Drivers for …" list. */
93
- export declare function RowDrivers({ tab, partName, kpiIds, rankBy, search, graphed, onToggleGraph, onOpenRow, onFirstRow, }: {
94
- tab: InsightTabConfig;
95
- partName: string;
96
- kpiIds: string[];
97
- rankBy: string;
98
- search: string;
99
- graphed: string[];
100
- onToggleGraph: (nodeKey: string) => void;
101
- onOpenRow: (row: InsightsRow, kpiId: string, dataDay: string) => void;
102
- /** The top row's key, so a card beside the list can follow the row the list starts with. */
103
- onFirstRow?: (nodeKey: string | undefined) => void;
104
- }): import("react").JSX.Element | null;
105
- /**
106
- * One tab's L2 Report: the part's Summary, Decision Advantage and top rows on
107
- * the left; its Trend (Tier 1) and User Activity (Tier 2) on the right.
108
- */
109
- export declare function L2Report({ tab, title, partName, partKpis, search, onOpenRow, }: {
110
- tab: InsightTabConfig;
111
- title: string;
112
- partName: string;
113
- partKpis: string[];
114
- search: string;
115
- onOpenRow: (row: InsightsRow, kpiId: string, dataDay: string) => void;
116
- }): import("react").JSX.Element | null;
117
- //# sourceMappingURL=AgReport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgReport.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/AgReport.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAmBjG,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAmBL,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC;AAGxB,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,sCAqBt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ACH,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,GAAG,EAAE,gBAAgB,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACvE,sCA0EA"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- /** The comment thread under a report: list, add, reply and delete. */
3
- export default function CommentsThread({ reportId }: {
4
- reportId: string;
5
- }): import("react").JSX.Element | null;
6
- //# sourceMappingURL=CommentsThread.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommentsThread.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/CommentsThread.tsx"],"names":[],"mappings":";AAoEA,sEAAsE;AACtE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,sCAqGxE"}
@@ -1,65 +0,0 @@
1
- import React from "react";
2
- import type { InsightsReadContext, InsightsReport } from "../../types/insights";
3
- import "./insights.css";
4
- export interface DecisionAdvantageCardProps {
5
- /** The overall card, or one drill-down part's card. */
6
- entityKey?: string;
7
- title?: string;
8
- }
9
- /** What sits above the report: which days it covers and what it ignores. Null when there's nothing to say. */
10
- export declare function reportNotice(context?: InsightsReadContext, filtersActive?: boolean): string | null;
11
- /** A card in a state that has no report to draw yet. */
12
- export declare function InsightsStateCard({ title, icon, heading, text, action, }: {
13
- title: string;
14
- icon?: React.ReactNode;
15
- heading: string;
16
- text?: React.ReactNode;
17
- action?: React.ReactNode;
18
- }): React.JSX.Element;
19
- export declare function InsightsSkeleton({ title }: {
20
- title: string;
21
- }): React.JSX.Element;
22
- /** Draws a stored report, or says why there isn't one. */
23
- export declare function ReportView({ report, title, context, onComments, onRetry, }: {
24
- report: InsightsReport;
25
- title: string;
26
- context?: InsightsReadContext;
27
- onComments?: () => void;
28
- onRetry?: () => void;
29
- }): React.JSX.Element;
30
- /** The "Significant change" box above a Decision Advantage card. */
31
- export declare function SummaryBox({ summary, onOpen, }: {
32
- summary: NonNullable<InsightsReport["summary"]>;
33
- onOpen?: () => void;
34
- }): React.JSX.Element;
35
- export interface DecisionColumnProps {
36
- title?: string;
37
- report?: InsightsReport;
38
- context?: InsightsReadContext;
39
- loading?: boolean;
40
- error?: Error;
41
- onRetry?: () => void;
42
- /** More content inside the card's scrolling body, after Next Steps. */
43
- children?: React.ReactNode;
44
- }
45
- /**
46
- * Summary heading, the "Significant change" box and the Decision Advantage
47
- * card. The column fills whatever height it is given and scrolls as a whole,
48
- * so it sits beside a chart without stretching it.
49
- */
50
- export declare function DecisionColumn({ title, report, context, loading, error, onRetry, children }: DecisionColumnProps): React.JSX.Element;
51
- /**
52
- * Fills the height its row is given without adding any of its own, so the
53
- * chart beside it decides how tall the row is and the column scrolls inside.
54
- */
55
- export declare function FillHeight({ children, minHeight }: {
56
- children: React.ReactNode;
57
- minHeight?: number;
58
- }): React.JSX.Element;
59
- /**
60
- * The overall Decision Advantage column, beside the main graph. It reads what
61
- * the morning run stored for the dashboard's date range; it never writes a
62
- * report itself.
63
- */
64
- export default function DecisionAdvantageCard({ entityKey, title }: DecisionAdvantageCardProps): React.JSX.Element | null;
65
- //# sourceMappingURL=DecisionAdvantageCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DecisionAdvantageCard.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGhF,OA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EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAA4B,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,mBAAmB,qBAmDvI;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAe,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,qBAM1G;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAAE,SAAS,EAAE,KAA4B,EAAE,EAAE,0BAA0B,4BAqBpH"}
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import type { InsightTabConfig, InsightsUiConfig } from "../../types/insights";
3
- import "./agPrimitives.css";
4
- import "./insights.css";
5
- export interface InsightTabsProps {
6
- tabs: InsightTabConfig[];
7
- insightsConfig?: InsightsUiConfig | null;
8
- /** Kept for hosts that pass it; the AI Governance layout has no filter button here. */
9
- onOpenFilters?: () => void;
10
- activeFilterCount?: number;
11
- }
12
- /**
13
- * The insights tabs, as the AI Governance leaderboard tabs: a pill strip,
14
- * a one-line description and a search box, then the tab's L2 Report.
15
- */
16
- export default function InsightTabs({ tabs, insightsConfig }: InsightTabsProps): import("react").JSX.Element | null;
17
- //# sourceMappingURL=InsightTabs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InsightTabs.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/InsightTabs.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAiC,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAO9G,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC;AA4HxB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACzC,uFAAuF;IACvF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,gBAAgB,sCAuM7E"}
@@ -1,28 +0,0 @@
1
- import React from "react";
2
- import type { InsightsUiConfig } from "../../types/insights";
3
- import { type InsightsReportTarget } from "./insightsContextCore";
4
- export { useInsights } from "./insightsContextCore";
5
- export type { InsightsContextValue, InsightsReportTarget } from "./insightsContextCore";
6
- export interface InsightsProviderProps {
7
- baseUrl?: string;
8
- configId?: string;
9
- accessToken?: string;
10
- startDate: Date;
11
- endDate: Date;
12
- workingDaysOnly?: boolean;
13
- filtersActive?: boolean;
14
- insights?: InsightsUiConfig | null;
15
- /** Tier 1's primary graph line, so reports lead with it. */
16
- headlineKpiId?: string | null;
17
- /** The graph's day filter opens on working days. */
18
- defaultWorkingDays?: boolean;
19
- /** The report open in the drawer, or null. Held by the dashboard so its graph markers can open it too. */
20
- reportTarget: InsightsReportTarget | null;
21
- onReportTargetChange: (target: InsightsReportTarget | null) => void;
22
- /** Incremented by the dashboard refresh button so every insights query reloads. */
23
- refreshRevision?: number;
24
- children: React.ReactNode;
25
- }
26
- /** Shares the insights API settings with every Decision Advantage piece, and hosts the report drawer. */
27
- export declare function InsightsProvider({ baseUrl, configId, accessToken, startDate, endDate, workingDaysOnly, filtersActive, insights, headlineKpiId, defaultWorkingDays, reportTarget, onReportTargetChange, refreshRevision, children, }: InsightsProviderProps): React.JSX.Element;
28
- //# sourceMappingURL=InsightsContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InsightsContext.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/InsightsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAqB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGhF,OAAO,EAA8C,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG9G,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AASxF,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACnC,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,0GAA0G;IAC1G,YAAY,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC1C,oBAAoB,EAAE,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,KAAK,IAAI,CAAC;IACpE,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,yGAAyG;AACzG,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,OAAO,EACP,eAAe,EACf,aAAa,EACb,QAAQ,EACR,aAAa,EACb,kBAA0B,EAC1B,YAAY,EACZ,oBAAoB,EACpB,eAAmB,EACnB,QAAQ,GACT,EAAE,qBAAqB,qBAiEvB"}
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- import type { InsightsDriver } from "../../types/insights";
3
- import "./agPrimitives.css";
4
- /** The AI Governance entity-detail visual column used after opening a driver. */
5
- export declare function EntityDetailVisuals({ nodeKey, label, kpiId, dataDay, tier2Kpis }: {
6
- nodeKey: string;
7
- label: string;
8
- kpiId: string;
9
- dataDay: string;
10
- tier2Kpis?: string[];
11
- }): import("react").JSX.Element | null;
12
- /**
13
- * The full L1 Report for one day, opened from a point on the trend, laid out
14
- * as AI Governance's report popup: the analysis on the left, the trend and
15
- * activity on the right. Clicking another point moves the popup to that day.
16
- */
17
- export declare function L1ReportModal({ day: openedDay, workingDays: initialWorkingDays, initialAttention, initialDriver, onClose }: {
18
- day: string;
19
- workingDays: boolean;
20
- initialAttention?: boolean;
21
- initialDriver?: InsightsDriver | null;
22
- onClose: () => void;
23
- }): import("react").JSX.Element | null;
24
- /**
25
- * The L1 Report on the dashboard: the latest report's Summary, Decision
26
- * Advantage and Top Drivers on the left; the headline number's trend with its
27
- * averages, User Activity and Correlation on the right. Takes the place of
28
- * the executive graph while Decision Advantage is on. Clicking a day on the
29
- * trend opens that day's full report.
30
- */
31
- export default function L1Report(): import("react").JSX.Element | null;
32
- //# sourceMappingURL=L1Report.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"L1Report.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/L1Report.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,cAAc,EAA+D,MAAM,sBAAsB,CAAC;AAoBxH,OAAO,oBAAoB,CAAC;AA0S5B,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,sCAuC1K;AAeD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,gBAAwB,EAAE,aAAoB,EAAE,OAAO,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,sCAmHxQ;AAED;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,uCAsE/B"}
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import type { InsightsNeedsAttentionResponse } from "../../types/insights";
3
- /** The day's data points under review, shared by the tab badge and the list so they load once. */
4
- export declare function useNeedsAttention(dataDay: string, nodeKey?: string, kpiId?: string): {
5
- reload: () => void;
6
- updateData: (update: (data: InsightsNeedsAttentionResponse | undefined) => InsightsNeedsAttentionResponse | undefined) => void;
7
- data?: InsightsNeedsAttentionResponse | undefined;
8
- error?: Error | undefined;
9
- loading: boolean;
10
- };
11
- type AttentionFetch = ReturnType<typeof useNeedsAttention>;
12
- /**
13
- * Needs attention: the data points held back from the day's number, or
14
- * counted but flagged, grouped by who gave them, so an admin can accept or
15
- * reject them with a reason. Decided points stay listed with who decided and
16
- * why, and can be undone.
17
- */
18
- export default function NeedsAttention({ dataDay, nodeKey, kpiId, attention, onDecisionSettled, }: {
19
- dataDay: string;
20
- nodeKey?: string;
21
- kpiId?: string;
22
- attention: AttentionFetch;
23
- onDecisionSettled?: () => void;
24
- }): import("react").JSX.Element | null;
25
- export {};
26
- //# sourceMappingURL=NeedsAttention.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NeedsAttention.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/NeedsAttention.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAA8B,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAsCvG,kGAAkG;AAClG,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;EAOlF;AAED,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AA4B3D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,OAAO,EACP,KAAK,EACL,SAAS,EACT,iBAAiB,GAClB,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,cAAc,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC,sCAqXA"}
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { type InsightsReportTarget } from "./insightsContextCore";
3
- import "./insights.css";
4
- /**
5
- * Side panel for one report: the report itself, its full text and its
6
- * comments. Opened on a change that has no report yet, it offers to write
7
- * one, then polls the job every 5 seconds until the report is ready.
8
- */
9
- export default function ReportDrawer({ target, onClose }: {
10
- target: InsightsReportTarget;
11
- onClose: () => void;
12
- }): import("react").JSX.Element | null;
13
- //# sourceMappingURL=ReportDrawer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportDrawer.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/ReportDrawer.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAe,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,gBAAgB,CAAC;AAUxB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,sCAqK9G"}
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export default function RowDetail({ nodeKey, kpiId, dataDay, reportId, embedded, onReportDay, onBack, backLabel }: {
3
- nodeKey: string;
4
- kpiId: string;
5
- dataDay: string;
6
- reportId?: string | null;
7
- embedded?: boolean;
8
- onReportDay?: (day: string) => void;
9
- onBack?: () => void;
10
- backLabel?: string;
11
- }): import("react").JSX.Element | null;
12
- //# sourceMappingURL=RowDetail.d.ts.map