@kb-labs/qa-entry 2.82.0 → 2.87.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 (41) hide show
  1. package/dist/widgets/117.js +1 -2
  2. package/dist/widgets/165.js +1 -2
  3. package/dist/widgets/326.js +1 -2
  4. package/dist/widgets/370.js +1 -2
  5. package/dist/widgets/405.js +1 -2
  6. package/dist/widgets/418.js +5 -6
  7. package/dist/widgets/451.js +1 -2
  8. package/dist/widgets/50.js +1 -2
  9. package/dist/widgets/546.js +1 -2
  10. package/dist/widgets/669.js +1 -2
  11. package/dist/widgets/694.js +1 -2
  12. package/dist/widgets/707.js +1 -2
  13. package/dist/widgets/775.js +1 -2
  14. package/dist/widgets/{162.js → 805.js} +10 -11
  15. package/dist/widgets/919.js +6 -7
  16. package/dist/widgets/945.js +1 -2
  17. package/dist/widgets/968.js +4 -5
  18. package/dist/widgets/__federation_expose_QADashboard.js +1 -2
  19. package/dist/widgets/mf-manifest.json +7 -7
  20. package/dist/widgets/mf-stats.json +25 -16
  21. package/dist/widgets/remoteEntry.js +4 -5
  22. package/package.json +7 -7
  23. package/dist/widgets/117.js.map +0 -1
  24. package/dist/widgets/162.js.map +0 -1
  25. package/dist/widgets/165.js.map +0 -1
  26. package/dist/widgets/326.js.map +0 -1
  27. package/dist/widgets/370.js.map +0 -1
  28. package/dist/widgets/405.js.map +0 -1
  29. package/dist/widgets/418.js.map +0 -1
  30. package/dist/widgets/451.js.map +0 -1
  31. package/dist/widgets/50.js.map +0 -1
  32. package/dist/widgets/546.js.map +0 -1
  33. package/dist/widgets/669.js.map +0 -1
  34. package/dist/widgets/694.js.map +0 -1
  35. package/dist/widgets/707.js.map +0 -1
  36. package/dist/widgets/775.js.map +0 -1
  37. package/dist/widgets/919.js.map +0 -1
  38. package/dist/widgets/945.js.map +0 -1
  39. package/dist/widgets/968.js.map +0 -1
  40. package/dist/widgets/__federation_expose_QADashboard.js.map +0 -1
  41. package/dist/widgets/remoteEntry.js.map +0 -1
@@ -1,2 +1 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["945"],{6026(e,r){var n=Symbol.for("react.transitional.element");function t(e,r,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),"key"in r)for(var s in t={},r)"key"!==s&&(t[s]=r[s]);else t=r;return{$$typeof:n,type:e,key:a,ref:void 0!==(r=t.ref)?r:null,props:t}}r.Fragment=Symbol.for("react.fragment"),r.jsx=t,r.jsxs=t},4552(e,r,n){e.exports=n(6026)}}]);
2
- //# sourceMappingURL=945.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[945],{6026(e,r){var n=Symbol.for("react.transitional.element");function s(e,r,s){var t=null;if(void 0!==s&&(t=""+s),void 0!==r.key&&(t=""+r.key),"key"in r)for(var a in s={},r)"key"!==a&&(s[a]=r[a]);else s=r;return{$$typeof:n,type:e,key:t,ref:void 0!==(r=s.ref)?r:null,props:s}}r.Fragment=Symbol.for("react.fragment"),r.jsx=s,r.jsxs=s},4552(e,r,n){e.exports=n(6026)}}]);
@@ -1,10 +1,9 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["968"],{3755(e,r,a){a.r(r),a.d(r,{colors:()=>t,darkSemanticColors:()=>m,darkTheme:()=>c,generateCSSVars:()=>p,generateThemeCSS:()=>d,lightSemanticColors:()=>b,lightTheme:()=>f,radius:()=>i,shadows:()=>o,spacing:()=>s,typography:()=>n});var t={primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a",700:"#15803d"},warning:{50:"#fffbeb",500:"#f59e0b",600:"#d97706",700:"#b45309"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626",700:"#b91c1c"},neutral:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d4d4d4",400:"#9ca3af",500:"#6b7280",600:"#525252",700:"#404040",800:"#27272a",900:"#1a1a1c",950:"#0d0d0f"},muted:{background:"#F3F4F6",foreground:"#6B7280"}},s={0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem"},n={fontFamily:{sans:["Inter","system-ui","-apple-system","sans-serif"],mono:["Fira Code","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}]},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"}},i={none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},o={sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},f={colors:t,spacing:s,typography:n,radius:i,shadows:o},c={colors:t,spacing:s,typography:n,radius:i,shadows:o},b={"bg-primary":"#F9FAFB","bg-secondary":"#FFFFFF","bg-tertiary":"#F3F4F6","text-primary":"#111827","text-secondary":"#6B7280","text-tertiary":"#6B7280","text-inverse":"#FFFFFF","border-primary":"#E5E7EB","border-secondary":"#D4D4D4",link:"#2563EB","link-hover":"#1E40AF","accent-subtle":"#DBEAFE",success:"#16A34A",warning:"#F59E0B",error:"#DC2626",info:"#0EA5E9",disabled:"#9CA3AF",shadow:"rgba(0, 0, 0, 0.05)"},m={"bg-primary":"#0D0D0F","bg-secondary":"#1A1A1C","bg-tertiary":"#27272A","text-primary":"#F5F5F7","text-secondary":"#A1A1AA","text-tertiary":"#A1A1AA","text-inverse":"#1A1A1C","border-primary":"#3F3F46","border-secondary":"#52525B",link:"#3B82F6","link-hover":"#60A5FA","accent-subtle":"#1E3A8A",success:"#22C55E",warning:"#EAB308",error:"#EF4444",info:"#38BDF8",disabled:"#52525B",shadow:"rgba(0, 0, 0, 0.4)"};function p(e,r){let{colors:a,spacing:t,typography:s,radius:n,shadows:i}=e,o=[];return Object.entries(r).forEach(([e,r])=>{o.push(` --${e}: ${r};`)}),Object.entries(a).forEach(([e,r])=>{"object"==typeof r&&null!==r&&Object.entries(r).forEach(([r,a])=>{o.push(` --color-${e}-${r}: ${a};`)})}),Object.entries(t).forEach(([e,r])=>{o.push(` --spacing-${e}: ${r};`)}),Object.entries(s).forEach(([e,r])=>{"object"==typeof r?Object.entries(r).forEach(([r,a])=>{o.push(` --typography-${e}-${r}: ${a};`)}):o.push(` --typography-${e}: ${r};`)}),Object.entries(n).forEach(([e,r])=>{o.push(` --radius-${e}: ${r};`)}),Object.entries(i).forEach(([e,r])=>{o.push(` --shadow-${e}: ${r};`)}),o.join("\n")}function d(e,r){return`
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[968],{3755(e,r,a){a.r(r),a.d(r,{colors:()=>t,darkSemanticColors:()=>b,darkTheme:()=>c,generateCSSVars:()=>p,generateThemeCSS:()=>d,lightSemanticColors:()=>m,lightTheme:()=>f,radius:()=>i,shadows:()=>o,spacing:()=>s,typography:()=>n});var t={primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a",700:"#15803d"},warning:{50:"#fffbeb",500:"#f59e0b",600:"#d97706",700:"#b45309"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626",700:"#b91c1c"},neutral:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d4d4d4",400:"#9ca3af",500:"#6b7280",600:"#525252",700:"#404040",800:"#27272a",900:"#1a1a1c",950:"#0d0d0f"},muted:{background:"#F3F4F6",foreground:"#6B7280"}},s={0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem"},n={fontFamily:{sans:["Inter","system-ui","-apple-system","sans-serif"],mono:["Fira Code","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}]},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"}},i={none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},o={sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},f={colors:t,spacing:s,typography:n,radius:i,shadows:o},c={colors:t,spacing:s,typography:n,radius:i,shadows:o},m={"bg-primary":"#F9FAFB","bg-secondary":"#FFFFFF","bg-tertiary":"#F3F4F6","text-primary":"#111827","text-secondary":"#6B7280","text-tertiary":"#6B7280","text-inverse":"#FFFFFF","border-primary":"#E5E7EB","border-secondary":"#D4D4D4",link:"#2563EB","link-hover":"#1E40AF","accent-subtle":"#DBEAFE",success:"#16A34A",warning:"#F59E0B",error:"#DC2626",info:"#0EA5E9",disabled:"#9CA3AF",shadow:"rgba(0, 0, 0, 0.05)"},b={"bg-primary":"#0D0D0F","bg-secondary":"#1A1A1C","bg-tertiary":"#27272A","text-primary":"#F5F5F7","text-secondary":"#A1A1AA","text-tertiary":"#A1A1AA","text-inverse":"#1A1A1C","border-primary":"#3F3F46","border-secondary":"#52525B",link:"#3B82F6","link-hover":"#60A5FA","accent-subtle":"#1E3A8A",success:"#22C55E",warning:"#EAB308",error:"#EF4444",info:"#38BDF8",disabled:"#52525B",shadow:"rgba(0, 0, 0, 0.4)"};function p(e,r){let{colors:a,spacing:t,typography:s,radius:n,shadows:i}=e,o=[];return Object.entries(r).forEach(([e,r])=>{o.push(` --${e}: ${r};`)}),Object.entries(a).forEach(([e,r])=>{"object"==typeof r&&null!==r&&Object.entries(r).forEach(([r,a])=>{o.push(` --color-${e}-${r}: ${a};`)})}),Object.entries(t).forEach(([e,r])=>{o.push(` --spacing-${e}: ${r};`)}),Object.entries(s).forEach(([e,r])=>{"object"==typeof r?Object.entries(r).forEach(([r,a])=>{o.push(` --typography-${e}-${r}: ${a};`)}):o.push(` --typography-${e}: ${r};`)}),Object.entries(n).forEach(([e,r])=>{o.push(` --radius-${e}: ${r};`)}),Object.entries(i).forEach(([e,r])=>{o.push(` --shadow-${e}: ${r};`)}),o.join("\n")}function d(e,r){return`
2
2
  :root {
3
- ${p(e,b)}
3
+ ${p(e,m)}
4
4
  }
5
5
 
6
6
  .dark {
7
- ${p(r,m)}
7
+ ${p(r,b)}
8
8
  }
9
- `.trim()}}}]);
10
- //# sourceMappingURL=968.js.map
9
+ `.trim()}}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["23"],{6026(e,r){var t=Symbol.for("react.transitional.element");function n(e,r,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==r.key&&(i=""+r.key),"key"in r)for(var a in n={},r)"key"!==a&&(n[a]=r[a]);else n=r;return{$$typeof:t,type:e,key:i,ref:void 0!==(r=n.ref)?r:null,props:n}}r.Fragment=Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4552(e,r,t){e.exports=t(6026)},1772(e,r,t){t.r(r),t.d(r,{default:()=>D});var n=t(4552),i=t(1349),a=t(2913),o=t(2383);function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function s(e,r,t,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){t(e);return}l.done?r(s):Promise.resolve(s).then(n,i)}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function u(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}function d(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,r){if(e){if("string"==typeof e)return l(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,r)}}var p={passed:{color:"success",iconName:"CheckCircleOutlined"},failed:{color:"error",iconName:"CloseCircleOutlined"},skipped:{color:"default",iconName:"MinusCircleOutlined"}};function h(e){var r,t,l,h,y,g=e.open,m=e.checkType,x=e.checkLabel,v=e.onClose,j=(0,o.useTheme)().antdToken,S=(0,o.useData)("/v1/plugins/qa/details"),b=S.data,I=S.isLoading,U=(0,o.useMutateData)("/v1/plugins/qa/run/check","POST"),w=U.mutateAsync,k=U.isLoading,T=function(e){if(Array.isArray(e))return e}(r=a.useState(""))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(r)||f(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),A=T[0],C=T[1];if(!m)return null;var O=null==b?void 0:b.checks[m],z=d((null!=(t=null==O?void 0:O.failed)?t:[]).map(function(e){return u(c({},e),{status:"failed"})})).concat(d((null!=(l=null==O?void 0:O.passed)?l:[]).map(function(e){return u(c({},e),{status:"passed"})})),d((null!=(h=null==O?void 0:O.skipped)?h:[]).map(function(e){return u(c({},e),{status:"skipped"})}))).filter(function(e){return!A||e.name.toLowerCase().includes(A.toLowerCase())||e.repo.toLowerCase().includes(A.toLowerCase())}),M=function(){var e;return(e=function(){var e,r;return function(e,r){var t,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var c=[l,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(e,a)}catch(e){c=[6,e],n=0}finally{t=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:i.UIMessage.loading("Running ".concat(x,"..."),0),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,w({checkType:m})];case 2:return e=t.sent(),i.UIMessage.destroy(),"passed"===e.status?i.UIMessage.success("".concat(x," passed in ").concat((e.durationMs/1e3).toFixed(1),"s")):i.UIMessage.warning("".concat(x,": ").concat(e.result.failed.length," failures in ").concat((e.durationMs/1e3).toFixed(1),"s")),[3,4];case 3:var n;return r=t.sent(),i.UIMessage.destroy(),i.UIMessage.error("".concat(x," failed: ").concat((null!=(n=Error)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](r):r instanceof n)?r.message:"Unknown error")),[3,4];case 4:return[2]}})},function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})})()},F=[{title:"Status",dataIndex:"status",key:"status",width:80,filters:[{text:"Failed",value:"failed"},{text:"Passed",value:"passed"},{text:"Skipped",value:"skipped"}],onFilter:function(e,r){return r.status===e},render:function(e){var r=p[e];return(0,n.jsx)(i.UITag,{color:null==r?void 0:r.color,icon:r?(0,n.jsx)(i.UIIcon,{name:r.iconName}):void 0,children:e})}},{title:"Package",dataIndex:"name",key:"name",sorter:function(e,r){return e.name.localeCompare(r.name)},render:function(e){return(0,n.jsx)(i.UITypographyText,{code:!0,style:{fontSize:j.fontSizeSM},children:e})}},{title:"Repo",dataIndex:"repo",key:"repo",width:180,filters:d(new Set(z.map(function(e){return e.repo}))).map(function(e){return{text:e,value:e}}),onFilter:function(e,r){return r.repo===e},render:function(e){return(0,n.jsx)(i.UITag,{children:e})}}];return(0,n.jsxs)(i.UIDrawer,{title:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsxs)("span",{children:[x," Details"]}),(0,n.jsxs)(i.UITag,{color:(null==O?void 0:O.failed.length)?"error":"success",children:[null!=(y=null==O?void 0:O.failed.length)?y:0," failed"]})]}),placement:"right",width:720,open:g,onClose:v,extra:"build"!==m&&(0,n.jsxs)(i.UIButton,{variant:"primary",icon:(0,n.jsx)(i.UIIcon,{name:"PlayCircleOutlined"}),onClick:function(){M()},loading:k,size:"small",children:["Re-run ",x]}),children:[(0,n.jsx)(i.UIInput,{placeholder:"Filter by package or repo...",prefix:(0,n.jsx)(i.UIIcon,{name:"SearchOutlined"}),value:A,onChange:function(e){return C(e)},style:{marginBottom:j.marginMD},allowClear:!0}),(0,n.jsx)(i.UITable,{dataSource:z,columns:F,rowKey:"name",size:"small",loading:I,pagination:{pageSize:50},expandable:{expandedRowRender:function(e){return e.error?(0,n.jsx)(i.UIAccordion,{ghost:!0,items:[{key:"1",label:"Error output",children:(0,n.jsx)("pre",{style:{background:j.colorFillTertiary,color:j.colorText,padding:j.paddingSM,borderRadius:j.borderRadius,fontSize:j.fontSizeSM,maxHeight:300,overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:e.error})}]}):null},rowExpandable:function(e){return!!e.error}}})]})}var y={build:"BuildOutlined",lint:"FileSearchOutlined",typeCheck:"FileTextOutlined",test:"ExperimentOutlined"};function g(e){var r;return(0,n.jsx)(i.UIIcon,{name:null!=(r=y[e])?r:"CheckCircleOutlined"})}function m(e){return e.charAt(0).toUpperCase()+e.slice(1).replace(/([A-Z])/g," $1")}function x(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function v(e,r,t,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){t(e);return}l.done?r(s):Promise.resolve(s).then(n,i)}function j(){var e=(0,o.useTheme)().antdToken,r=(0,o.useData)("/v1/plugins/qa/baseline/diff"),t=r.data,a=r.isLoading,l=(0,o.useMutateData)("/v1/plugins/qa/baseline/update","POST"),s=l.mutateAsync,c=l.isLoading,u=function(){var e;return(e=function(){var e;return function(e,r){var t,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var c=[l,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(e,a)}catch(e){c=[6,e],n=0}finally{t=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:i.UIMessage.loading("Updating baseline...",0),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s(void 0)];case 2:return r.sent(),i.UIMessage.destroy(),i.UIMessage.success("Baseline updated successfully"),[3,4];case 3:var t;return e=r.sent(),i.UIMessage.destroy(),i.UIMessage.error("Failed to update baseline: ".concat((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)?e.message:"Unknown error")),[3,4];case 4:return[2]}})},function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(e){v(a,n,i,o,l,"next",e)}function l(e){v(a,n,i,o,l,"throw",e)}o(void 0)})})()};if(a)return null;if(!(null==t?void 0:t.baseline))return(0,n.jsx)(i.UIAlert,{variant:"warning",showIcon:!0,message:"No baseline set",description:"Run QA first, then update baseline to enable diff tracking.",action:(0,n.jsx)(i.UIButton,{variant:"primary",size:"small",icon:(0,n.jsx)(i.UIIcon,{name:"SaveOutlined"}),onClick:function(){u()},loading:c,children:"Create Baseline"})});if(!t.hasDiff)return(0,n.jsx)(i.UIAlert,{variant:"success",showIcon:!0,icon:(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}),message:"No changes since baseline",description:"Baseline from ".concat(new Date(t.baseline.timestamp).toLocaleString()),action:(0,n.jsx)(i.UIPopconfirm,{title:"Update baseline?",description:"This will set the current QA state as the new baseline.",onConfirm:function(){u()},children:(0,n.jsx)(i.UIButton,{size:"small",icon:(0,n.jsx)(i.UIIcon,{name:"SaveOutlined"}),loading:c,children:"Update"})})});var d=0,f=0,p=!0,h=!1,y=void 0;try{for(var g,j=Object.values(t.diff)[Symbol.iterator]();!(p=(g=j.next()).done);p=!0){var S=g.value;d+=S.newFailures.length,f+=S.fixed.length}}catch(e){h=!0,y=e}finally{try{p||null==j.return||j.return()}finally{if(h)throw y}}return(0,n.jsx)(i.UICard,{title:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)(i.UIIcon,{name:"WarningOutlined",style:{color:d>0?e.colorError:e.colorSuccess}}),(0,n.jsx)("span",{children:"Baseline Diff"}),d>0&&(0,n.jsxs)(i.UITag,{color:"error",children:["+",d," new failures"]}),f>0&&(0,n.jsxs)(i.UITag,{color:"success",children:[f," fixed"]})]}),extra:(0,n.jsx)(i.UIPopconfirm,{title:"Update baseline?",description:"This will set the current QA state as the new baseline.",onConfirm:function(){u()},children:(0,n.jsx)(i.UIButton,{variant:"primary",icon:(0,n.jsx)(i.UIIcon,{name:"SaveOutlined"}),loading:c,size:"small",children:"Update Baseline"})}),children:(0,n.jsx)(i.UIRow,{gutter:[16,16],children:Object.entries(t.diff).map(function(r){var t=function(e){if(Array.isArray(e))return e}(r)||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(r)||function(e){if(e){if("string"==typeof e)return x(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=t[0],o=t[1];return(0,n.jsx)(i.UICol,{xs:24,sm:12,lg:6,children:(0,n.jsxs)(i.UICard,{size:"small",style:{textAlign:"center"},children:[(0,n.jsx)(i.UITypographyText,{strong:!0,children:m(a)}),(0,n.jsx)("div",{style:{marginTop:e.marginXS},children:(0,n.jsx)(i.UIStatistic,{value:Math.abs(o.delta),prefix:o.delta>0?(0,n.jsx)(i.UIIcon,{name:"ArrowUpOutlined"}):o.delta<0?(0,n.jsx)(i.UIIcon,{name:"ArrowDownOutlined"}):null,valueStyle:{color:o.delta>0?e.colorError:o.delta<0?e.colorSuccess:e.colorTextSecondary,fontSize:e.fontSizeHeading3},suffix:o.delta>0?"more failures":o.delta<0?"fewer failures":"no change"})}),o.newFailures.length>0&&(0,n.jsxs)("div",{style:{marginTop:e.marginXS,textAlign:"left"},children:[(0,n.jsx)(i.UITypographyText,{type:"danger",style:{fontSize:e.fontSizeSM},children:"New failures:"}),o.newFailures.slice(0,3).map(function(r){return(0,n.jsx)("div",{children:(0,n.jsx)(i.UITag,{color:"error",style:{fontSize:e.fontSizeSM},children:r})},r)}),o.newFailures.length>3&&(0,n.jsxs)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:["+",o.newFailures.length-3," more"]})]}),o.fixed.length>0&&(0,n.jsxs)("div",{style:{marginTop:e.marginXS,textAlign:"left"},children:[(0,n.jsx)(i.UITypographyText,{type:"success",style:{fontSize:e.fontSizeSM},children:"Fixed:"}),o.fixed.slice(0,3).map(function(r){return(0,n.jsx)("div",{children:(0,n.jsx)(i.UITag,{color:"success",style:{fontSize:e.fontSizeSM},children:r})},r)}),o.fixed.length>3&&(0,n.jsxs)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:["+",o.fixed.length-3," more"]})]})]})},a)})})})}function S(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var b={build:{color:"red",iconName:"BugOutlined",label:"Build"},lint:{color:"orange",iconName:"FileSearchOutlined",label:"Lint"},typeCheck:{color:"blue",iconName:"FileTextOutlined",label:"Types"},test:{color:"purple",iconName:"ExperimentOutlined",label:"Tests"}};function I(){var e=(0,o.useTheme)().antdToken,r=(0,o.useData)("/v1/plugins/qa/errors/groups"),t=r.data;if(r.isLoading)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!t||0===t.groups.length&&0===t.ungrouped)return null;var a=[{title:"Pattern",dataIndex:"pattern",key:"pattern",render:function(r){return(0,n.jsx)(i.UITypographyText,{code:!0,style:{fontSize:e.fontSizeSM},children:r})}},{title:"Type",dataIndex:"checkType",key:"checkType",width:100,filters:Object.entries(b).map(function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(e)||function(e){if(e){if("string"==typeof e)return S(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),t=r[0];return{text:r[1].label,value:t}}),onFilter:function(e,r){return r.checkType===e},render:function(e){var r=b[e];return r?(0,n.jsx)(i.UITag,{color:r.color,icon:(0,n.jsx)(i.UIIcon,{name:r.iconName}),children:r.label}):(0,n.jsx)(i.UITag,{children:e})}},{title:"Affected",dataIndex:"count",key:"count",width:100,sorter:function(e,r){return e.count-r.count},defaultSortOrder:"descend",render:function(r){return(0,n.jsx)(i.UIBadge,{count:r,style:{backgroundColor:r>5?e.colorError:r>2?e.colorWarning:e.colorSuccess}})}},{title:"Packages",dataIndex:"packages",key:"packages",render:function(r){return(0,n.jsxs)(i.UISpace,{wrap:!0,size:[4,4],children:[r.slice(0,3).map(function(r){return(0,n.jsx)(i.UITag,{style:{fontSize:e.fontSizeSM},children:r},r)}),r.length>3&&(0,n.jsxs)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:["+",r.length-3," more"]})]})}}];return(0,n.jsx)(i.UICard,{title:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)(i.UIIcon,{name:"BugOutlined"}),(0,n.jsx)("span",{children:"Error Groups"}),(0,n.jsxs)(i.UITag,{children:[t.groups.length," patterns"]}),t.ungrouped>0&&(0,n.jsxs)(i.UITag,{color:"default",children:[t.ungrouped," unique errors"]})]}),children:(0,n.jsx)(i.UITable,{dataSource:t.groups,columns:a,rowKey:"pattern",size:"small",pagination:{pageSize:10},expandable:{expandedRowRender:function(r){return(0,n.jsxs)("div",{children:[(0,n.jsx)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:"Example:"}),(0,n.jsx)("pre",{style:{background:e.colorFillTertiary,color:e.colorText,padding:e.paddingXS,borderRadius:e.borderRadiusSM,fontSize:e.fontSizeSM,maxHeight:150,overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-all",marginTop:e.marginXXS},children:r.example}),r.packages.length>3&&(0,n.jsxs)("div",{style:{marginTop:e.marginXS},children:[(0,n.jsx)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:"All affected packages:"}),(0,n.jsx)("div",{style:{marginTop:e.marginXXS},children:(0,n.jsx)(i.UISpace,{wrap:!0,size:[4,4],children:r.packages.map(function(r){return(0,n.jsx)(i.UITag,{style:{fontSize:e.fontSizeSM},children:r},r)})})})]})]})},rowExpandable:function(){return!0}}})})}function U(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function w(e,r,t,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){t(e);return}l.done?r(s):Promise.resolve(s).then(n,i)}function k(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(t=i.next()).done)&&(a.push(t.value),!r||a.length!==r);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,r)||T(e,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,r){if(e){if("string"==typeof e)return U(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return U(e,r)}}function A(){var e,r,t,l=(0,o.useTheme)().antdToken,s=(0,o.useData)("/v1/plugins/qa/summary"),c=s.data,u=s.isLoading,d=(0,o.useMutateData)("/v1/plugins/qa/run"),f=d.mutateAsync,p=d.isLoading,y=k(a.useState(!1),2),m=y[0],x=y[1],v=k(a.useState(null),2),S=v[0],b=v[1],A=k(a.useState(new Set),2),C=A[0],O=A[1],z=function(e,r){O(function(t){var n=new Set(t);return r?n.delete(e):n.add(e),n})},M=function(e,r){b({type:e,label:r}),x(!0)},F=function(){var e;return(e=function(){var e,r,t;return function(e,r){var t,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var c=[l,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(e,a)}catch(e){c=[6,e],n=0}finally{t=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(n){var a;switch(n.label){case 0:i.UIMessage.loading("Running QA checks...",0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f({skipChecks:C.size>0?function(e){if(Array.isArray(e))return U(e)}(C)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(C)||T(C)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():void 0})];case 2:return e=n.sent(),i.UIMessage.destroy(),"passed"===e.status?i.UIMessage.success("QA passed in ".concat((e.durationMs/1e3).toFixed(1),"s")):(r=Object.values(e.results).reduce(function(e,r){return e+r.failed.length},0),i.UIMessage.warning("QA finished with ".concat(r," failures in ").concat((e.durationMs/1e3).toFixed(1),"s"))),[3,4];case 3:return t=n.sent(),i.UIMessage.destroy(),i.UIMessage.error("QA run failed: ".concat((null!=(a=Error)&&"u">typeof Symbol&&a[Symbol.hasInstance]?!!a[Symbol.hasInstance](t):t instanceof a)?t.message:"Unknown error")),[3,4];case 4:return[2]}})},function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(e){w(a,n,i,o,l,"next",e)}function l(e){w(a,n,i,o,l,"throw",e)}o(void 0)})})()};if(u)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!c)return(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"No QA data",description:"Run 'pnpm qa:save' to generate QA history.",style:{marginBottom:l.marginLG}});var P="passed"===c.status;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{style:{marginBottom:l.marginMD},children:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)(i.UIButton,{variant:"primary",icon:(0,n.jsx)(i.UIIcon,{name:"PlayCircleOutlined"}),onClick:function(){F()},loading:p,disabled:p,children:p?"Running QA Checks...":"Run QA"}),(0,n.jsx)(i.UIPopover,{trigger:"click",title:"Checks to run",content:(0,n.jsx)(i.UISpace,{direction:"vertical",children:(null!=(e=null==c?void 0:c.checks)?e:[]).map(function(e){return(0,n.jsxs)(i.UICheckbox,{checked:!C.has(e.checkType),onChange:function(r){return z(e.checkType,r)},children:[g(e.checkType)," ",e.label]},e.checkType)})}),children:(0,n.jsx)(i.UIButton,{icon:(0,n.jsx)(i.UIIcon,{name:"SettingOutlined"}),disabled:p})})]})}),(0,n.jsx)(i.UIAlert,{variant:P?"success":"error",showIcon:!0,icon:P?(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}):(0,n.jsx)(i.UIIcon,{name:"CloseCircleOutlined"}),message:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsxs)("span",{style:{fontWeight:600},children:["QA Status: ",P?"All Checks Passing":"Checks Failing"]}),(0,n.jsx)(i.UITag,{color:P?"success":"error",children:c.status.toUpperCase()})]}),description:c.lastRunAt?(0,n.jsxs)(i.UISpace,{split:(0,n.jsx)("span",{style:{color:l.colorBorderSecondary},children:"|"}),children:[(0,n.jsxs)("span",{children:[(0,n.jsx)(i.UIIcon,{name:"ClockCircleOutlined"})," ",new Date(c.lastRunAt).toLocaleString()]}),c.git&&(0,n.jsxs)("span",{children:[(0,n.jsx)(i.UIIcon,{name:"BranchesOutlined"})," ",c.git.branch," (",c.git.commit.slice(0,7),")"]}),(0,n.jsxs)("span",{children:[c.historyCount," runs in history"]})]}):void 0,style:{marginBottom:l.marginLG}}),(0,n.jsx)(i.UIRow,{gutter:[16,16],style:{marginBottom:l.marginLG},children:c.checks.map(function(e){var r=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return 0===r?100:Math.round((e+t)/r*100)}(e.passed,e.total,e.skipped);return(0,n.jsx)(i.UICol,{xs:24,sm:12,lg:6,children:(0,n.jsxs)(i.UICard,{hoverable:!0,onClick:function(){return M(e.checkType,e.label)},style:{cursor:"pointer"},children:[(0,n.jsx)("div",{style:{textAlign:"center",marginBottom:l.marginMD},children:(0,n.jsx)(i.UIProgress,{type:"circle",percent:r,size:120,status:r>=100?"success":r<50?"exception":"normal",strokeColor:r>=100||r>=80?l.colorSuccess:r>=60?l.colorWarning:l.colorError,format:function(){return"".concat(r,"%")}})}),(0,n.jsx)("div",{style:{textAlign:"center",marginBottom:l.marginXS},children:(0,n.jsxs)(i.UISpace,{children:[g(e.checkType),(0,n.jsx)("span",{style:{fontWeight:600,fontSize:l.fontSizeLG},children:e.label})]})}),(0,n.jsxs)(i.UIRow,{gutter:8,justify:"center",children:[(0,n.jsx)(i.UICol,{children:(0,n.jsx)(i.UIStatistic,{title:"Passed",value:e.passed,valueStyle:{color:l.colorSuccess,fontSize:l.fontSize}})}),(0,n.jsx)(i.UICol,{children:(0,n.jsx)(i.UIStatistic,{title:"Failed",value:e.failed,valueStyle:{color:e.failed>0?l.colorError:l.colorSuccess,fontSize:l.fontSize}})}),e.skipped>0&&(0,n.jsx)(i.UICol,{children:(0,n.jsx)(i.UIStatistic,{title:"Skipped",value:e.skipped,valueStyle:{color:l.colorTextSecondary,fontSize:l.fontSize}})})]})]})},e.checkType)})}),(0,n.jsx)("div",{style:{marginBottom:l.marginLG},children:(0,n.jsx)(j,{})}),(0,n.jsx)("div",{style:{marginBottom:l.marginLG},children:(0,n.jsx)(I,{})}),(0,n.jsx)(h,{open:m,checkType:null!=(r=null==S?void 0:S.type)?r:null,checkLabel:null!=(t=null==S?void 0:S.label)?t:"",onClose:function(){return x(!1)}})]})}function C(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function O(){var e,r=(0,o.useTheme)().antdToken,t=(0,o.useData)("/v1/plugins/qa/history"),a=t.data;if(t.isLoading)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!a||0===a.entries.length)return(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"No QA history",description:"Run 'pnpm qa:save' to record QA results to history."});var l=[{title:"Date",dataIndex:"timestamp",key:"timestamp",width:180,render:function(e){return new Date(e).toLocaleString()},sorter:function(e,r){return new Date(e.timestamp).getTime()-new Date(r.timestamp).getTime()},defaultSortOrder:"descend"},{title:"Status",dataIndex:"status",key:"status",width:100,render:function(e){return(0,n.jsx)(i.UITag,{color:"passed"===e?"success":"error",icon:"passed"===e?(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}):(0,n.jsx)(i.UIIcon,{name:"CloseCircleOutlined"}),children:e.toUpperCase()})},filters:[{text:"Passed",value:"passed"},{text:"Failed",value:"failed"}],onFilter:function(e,r){return r.status===e}},{title:"Git",key:"git",width:220,render:function(e,t){return(0,n.jsxs)(i.UISpace,{direction:"vertical",size:0,children:[(0,n.jsxs)("span",{children:[(0,n.jsx)(i.UIIcon,{name:"BranchesOutlined"})," ",t.git.branch]}),(0,n.jsxs)("span",{style:{color:r.colorTextSecondary,fontSize:r.fontSizeSM},children:[t.git.commit.slice(0,7)," - ",t.git.message.slice(0,40),t.git.message.length>40?"...":""]})]})}}].concat(function(e){if(Array.isArray(e))return C(e)}(e=(a.entries[0]?Object.keys(a.entries[0].summary):[]).map(function(e){return{title:m(e),key:e,width:90,align:"center",render:function(r,t){var a=t.summary[e];if(!a)return"-";var o=a.failed>0;return(0,n.jsxs)(i.UITag,{color:o?"error":"success",style:{fontVariantNumeric:"tabular-nums"},children:[a.passed,"/",a.passed+a.failed]})}}}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return C(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return(0,n.jsx)(i.UITable,{columns:l,dataSource:a.entries,rowKey:"timestamp",pagination:{pageSize:15},size:"middle",expandable:{expandedRowRender:function(e){return(0,n.jsx)("div",{style:{padding:"".concat(r.paddingXS,"px ").concat(r.paddingMD,"px")},children:Object.keys(e.failedPackages).map(function(t){var a=e.failedPackages[t];return a&&0!==a.length?(0,n.jsxs)("div",{style:{marginBottom:r.marginSM},children:[(0,n.jsxs)("strong",{children:[m(t)," failures (",a.length,"):"]}),(0,n.jsx)(i.UIFlex,{wrap:"wrap",gap:1,style:{marginTop:r.marginXXS},children:a.map(function(e){return(0,n.jsx)(i.UITag,{color:"error",style:{fontSize:r.fontSizeSM},children:e},e)})})]},t):null})})},rowExpandable:function(e){return Object.values(e.failedPackages).some(function(e){return e.length>0})}}})}function z(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function M(e,r){if(e){if("string"==typeof e)return z(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,r)}}function F(){var e,r=(0,o.useTheme)().antdToken,t=function(e){if(Array.isArray(e))return e}(e=a.useState(void 0))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(e)||M(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=t[0],s=t[1],c=(0,o.useData)(l?"/v1/plugins/qa/trends?window=".concat(l,"&enriched=true"):"/v1/plugins/qa/trends?enriched=true"),u=c.data;if(c.isLoading)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!u||0===u.trends.length)return(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"Not enough data for trend analysis",description:"Need at least 2 history entries. Run 'pnpm qa:save' multiple times."});var d=function(e){var r=[],t=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var l=a.value,s=null!=(f=l.label)?f:m(l.checkType),c=!0,u=!1,d=void 0;try{for(var f,p,h=l.timeSeries[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var y=p.value;r.push({date:function(e){var r=new Date(e),t=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0"),i=String(r.getHours()).padStart(2,"0"),a=String(r.getMinutes()).padStart(2,"0");return"".concat(t,"-").concat(n," ").concat(i,":").concat(a)}(y.timestamp),value:y.failed,category:s})}}catch(e){u=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(u)throw d}}}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return r}(u.trends),f=function(e){var r,t=new Map,n=!0,i=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value,c=!0,u=!1,d=void 0;try{for(var f,p=s.changelog[Symbol.iterator]();!(c=(f=p.next()).done);c=!0){var h=f.value,y=t.get(h.gitCommit);y||(y={timestamp:h.timestamp,gitCommit:h.gitCommit,gitMessage:h.gitMessage,changes:[]},t.set(h.gitCommit,y)),y.changes.push({checkType:s.checkType,entry:h})}}catch(e){u=!0,d=e}finally{try{c||null==p.return||p.return()}finally{if(u)throw d}}}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return((function(e){if(Array.isArray(e))return z(e)})(r=t.values())||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||M(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,r){return r.timestamp.localeCompare(e.timestamp)})}(u.trends);return(0,n.jsxs)("div",{children:[(0,n.jsxs)(i.UIFlex,{justify:"between",align:"center",style:{marginBottom:r.marginMD},children:[(0,n.jsxs)("span",{style:{color:r.colorTextSecondary},children:["Analyzing ",u.historyCount," history entries (window: ",u.window,")"]}),(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)("span",{children:"Window size:"}),(0,n.jsx)(i.UISelect,{value:null!=l?l:u.window,onChange:function(e){return s(e)},style:{width:80},options:[{label:"5",value:5},{label:"10",value:10},{label:"20",value:20},{label:"50",value:50}]})]})]}),(0,n.jsx)(i.UIStatisticsChart,{title:"Failure Count Over Time",data:d,loading:!1,xField:"date",yField:"value",colorField:"category",height:300,showLegend:!1,chartProps:{legend:{position:"top"}}}),(0,n.jsx)(i.UIRow,{gutter:[16,16],style:{marginTop:r.marginMD},children:u.trends.map(function(e){var t;return(0,n.jsx)(i.UICol,{xs:24,sm:12,children:(0,n.jsxs)(i.UICard,{size:"small",children:[(0,n.jsx)(i.UIRow,{align:"middle",gutter:16,children:(0,n.jsx)(i.UICol,{flex:"auto",children:(0,n.jsxs)(i.UISpace,{children:[g(e.checkType),(0,n.jsx)("span",{style:{fontWeight:600,fontSize:r.fontSizeLG},children:null!=(t=e.label)?t:m(e.checkType)}),function(e){switch(e){case"regression":return(0,n.jsx)(i.UITag,{color:"error",children:"Regression"});case"improvement":return(0,n.jsx)(i.UITag,{color:"success",children:"Improvement"});default:return(0,n.jsx)(i.UITag,{children:"No Change"})}}(e.trend)]})})}),(0,n.jsxs)(i.UIRow,{gutter:16,style:{marginTop:r.marginSM},children:[(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Previous",value:e.previous,valueStyle:{fontSize:r.fontSizeHeading4}})}),(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Current",value:e.current,valueStyle:{fontSize:r.fontSizeHeading4}})}),(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Delta",value:Math.abs(e.delta),prefix:function(e){switch(e){case"regression":return(0,n.jsx)(i.UIIcon,{name:"ArrowUpOutlined"});case"improvement":return(0,n.jsx)(i.UIIcon,{name:"ArrowDownOutlined"});default:return(0,n.jsx)(i.UIIcon,{name:"MinusOutlined"})}}(e.trend),valueStyle:{color:function(e,r){switch(e){case"regression":return r.colorError;case"improvement":return r.colorSuccess;default:return r.colorTextSecondary}}(e.trend,r),fontSize:r.fontSizeHeading4}})}),(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Velocity",value:Math.abs(e.velocity),precision:1,prefix:e.velocity>0?(0,n.jsx)(i.UIIcon,{name:"ArrowUpOutlined"}):e.velocity<0?(0,n.jsx)(i.UIIcon,{name:"ArrowDownOutlined"}):(0,n.jsx)(i.UIIcon,{name:"MinusOutlined"}),suffix:"/run",valueStyle:{color:e.velocity>0?r.colorError:e.velocity<0?r.colorSuccess:r.colorTextSecondary,fontSize:r.fontSizeHeading4}})})]})]})},e.checkType)})}),(0,n.jsx)(i.UICard,{title:"Changelog — What Changed",style:{marginTop:r.marginMD},children:0===f.length?(0,n.jsx)(i.UIEmptyState,{description:"No changes detected between entries"}):(0,n.jsx)(i.UITimeline,{children:f.map(function(e){var t=e.changes.reduce(function(e,r){return e+r.entry.newFailures.length},0)>e.changes.reduce(function(e,r){return e+r.entry.fixed.length},0)?r.colorError:r.colorSuccess;return(0,n.jsxs)(i.UITimelineItem,{color:t,children:[(0,n.jsxs)("div",{style:{marginBottom:r.marginXXS},children:[(0,n.jsx)(i.UITag,{style:{fontFamily:"monospace"},children:e.gitCommit.slice(0,7)}),(0,n.jsx)("span",{style:{color:r.colorTextSecondary,fontSize:r.fontSizeSM},children:new Date(e.timestamp).toLocaleString()})]}),(0,n.jsx)("div",{style:{fontSize:r.fontSize,color:r.colorTextSecondary,marginBottom:r.marginXS},children:e.gitMessage}),e.changes.map(function(e){var t=e.checkType,a=e.entry;return(0,n.jsxs)("div",{style:{marginBottom:r.marginXXS},children:[(0,n.jsxs)("span",{style:{fontWeight:500},children:[m(t),":"]}),a.newFailures.length>0&&(0,n.jsxs)("span",{style:{marginLeft:8},children:[(0,n.jsxs)(i.UITag,{color:"error",style:{fontSize:r.fontSizeSM},children:["+",a.newFailures.length," new"]}),a.newFailures.map(function(e){return(0,n.jsx)(i.UITag,{color:"red",style:{fontSize:r.fontSizeSM},children:e},e)})]}),a.fixed.length>0&&(0,n.jsxs)("span",{style:{marginLeft:8},children:[(0,n.jsxs)(i.UITag,{color:"success",style:{fontSize:r.fontSizeSM},children:["-",a.fixed.length," fixed"]}),a.fixed.map(function(e){return(0,n.jsx)(i.UITag,{color:"green",style:{fontSize:r.fontSizeSM},children:e},e)})]})]},t)})]},e.gitCommit)})})})]})}function P(){var e=(0,o.useTheme)().antdToken,r=(0,o.useData)("/v1/plugins/qa/regressions"),t=r.data;return r.isLoading?(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}}):t?t.hasRegressions?(0,n.jsxs)("div",{children:[(0,n.jsx)(i.UIAlert,{variant:"error",showIcon:!0,icon:(0,n.jsx)(i.UIIcon,{name:"WarningOutlined"}),message:"".concat(t.regressions.length," regression").concat(t.regressions.length>1?"s":""," detected"),description:"The following check types have new failures compared to the previous QA run.",style:{marginBottom:e.marginLG}}),t.regressions.map(function(r,t){return(0,n.jsx)(i.UICard,{title:(0,n.jsxs)(i.UISpace,{children:[g(r.checkType),(0,n.jsx)("span",{children:m(r.checkType)}),(0,n.jsxs)(i.UITag,{color:"error",children:["+",r.delta," new failure",r.delta>1?"s":""]})]}),style:{marginBottom:e.marginMD},children:(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:"New failures:"}),(0,n.jsx)(i.UIFlex,{wrap:"wrap",gap:1,style:{marginTop:e.marginXS},children:r.newFailures.map(function(e){return(0,n.jsx)(i.UITag,{color:"error",children:e},e)})})]})},t)}),(0,n.jsx)(i.UIAlert,{variant:"warning",showIcon:!0,message:"Action required",description:(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"Fix the regressions above before merging. Recommendations:"}),(0,n.jsxs)("ol",{style:{margin:0,paddingLeft:20},children:[(0,n.jsxs)("li",{children:["Run ",(0,n.jsx)("code",{children:"pnpm qa --json"})," to see detailed error messages"]}),(0,n.jsx)("li",{children:"Fix the failing packages"}),(0,n.jsxs)("li",{children:["Re-run ",(0,n.jsx)("code",{children:"pnpm qa:save"})," to verify fixes"]}),(0,n.jsxs)("li",{children:["Update baseline if needed: ",(0,n.jsx)("code",{children:"pnpm kb baseline:update"})]})]})]}),style:{marginTop:e.marginMD}})]}):(0,n.jsxs)("div",{children:[(0,n.jsx)(i.UIAlert,{variant:"success",showIcon:!0,icon:(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}),message:"No regressions detected",description:"All check types show the same or fewer failures compared to the previous QA run.",style:{marginBottom:e.marginLG}}),(0,n.jsx)(i.UIEmptyState,{description:"No regressions to display"})]}):(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"Not enough data for regression detection",description:"Need at least 2 history entries. Run 'pnpm qa:save' multiple times."})}function D(){var e=(0,n.jsx)(i.UITabs,{syncUrl:"search",items:[{key:"overview",label:"Overview",children:(0,n.jsx)(A,{})},{key:"history",label:"History",children:(0,n.jsx)(O,{})},{key:"trends",label:"Trends",children:(0,n.jsx)(F,{})},{key:"regressions",label:"Regressions",children:(0,n.jsx)(P,{})}]});return(0,n.jsx)(i.UIPage,{children:(0,n.jsx)(i.UIPageHeader,{title:"QA",description:"Build, lint, type check, and test results with baseline tracking and regression detection",tabs:e})})}}}]);
2
- //# sourceMappingURL=__federation_expose_QADashboard.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[23],{6026(e,r){var t=Symbol.for("react.transitional.element");function n(e,r,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==r.key&&(i=""+r.key),"key"in r)for(var a in n={},r)"key"!==a&&(n[a]=r[a]);else n=r;return{$$typeof:t,type:e,key:i,ref:void 0!==(r=n.ref)?r:null,props:n}}r.Fragment=Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4552(e,r,t){e.exports=t(6026)},1772(e,r,t){t.r(r),t.d(r,{default:()=>D});var n=t(4552),i=t(1349),a=t(2913),o=t(2383);function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function s(e,r,t,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){t(e);return}l.done?r(s):Promise.resolve(s).then(n,i)}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function u(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}function d(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,r){if(e){if("string"==typeof e)return l(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,r)}}var p={passed:{color:"success",iconName:"CheckCircleOutlined"},failed:{color:"error",iconName:"CloseCircleOutlined"},skipped:{color:"default",iconName:"MinusCircleOutlined"}};function h(e){var r,t,l,h,y,g=e.open,m=e.checkType,x=e.checkLabel,v=e.onClose,j=(0,o.useTheme)().antdToken,S=(0,o.useData)("/v1/plugins/qa/details"),b=S.data,I=S.isLoading,U=(0,o.useMutateData)("/v1/plugins/qa/run/check","POST"),w=U.mutateAsync,k=U.isLoading,T=function(e){if(Array.isArray(e))return e}(r=a.useState(""))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(r)||f(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),A=T[0],C=T[1];if(!m)return null;var O=null==b?void 0:b.checks[m],z=d((null!=(t=null==O?void 0:O.failed)?t:[]).map(function(e){return u(c({},e),{status:"failed"})})).concat(d((null!=(l=null==O?void 0:O.passed)?l:[]).map(function(e){return u(c({},e),{status:"passed"})})),d((null!=(h=null==O?void 0:O.skipped)?h:[]).map(function(e){return u(c({},e),{status:"skipped"})}))).filter(function(e){return!A||e.name.toLowerCase().includes(A.toLowerCase())||e.repo.toLowerCase().includes(A.toLowerCase())}),M=function(){var e;return(e=function(){var e,r;return function(e,r){var t,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var c=[l,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(e,a)}catch(e){c=[6,e],n=0}finally{t=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:i.UIMessage.loading("Running ".concat(x,"..."),0),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,w({checkType:m})];case 2:return e=t.sent(),i.UIMessage.destroy(),"passed"===e.status?i.UIMessage.success("".concat(x," passed in ").concat((e.durationMs/1e3).toFixed(1),"s")):i.UIMessage.warning("".concat(x,": ").concat(e.result.failed.length," failures in ").concat((e.durationMs/1e3).toFixed(1),"s")),[3,4];case 3:var n;return r=t.sent(),i.UIMessage.destroy(),i.UIMessage.error("".concat(x," failed: ").concat((null!=(n=Error)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](r):r instanceof n)?r.message:"Unknown error")),[3,4];case 4:return[2]}})},function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})})()},F=[{title:"Status",dataIndex:"status",key:"status",width:80,filters:[{text:"Failed",value:"failed"},{text:"Passed",value:"passed"},{text:"Skipped",value:"skipped"}],onFilter:function(e,r){return r.status===e},render:function(e){var r=p[e];return(0,n.jsx)(i.UITag,{color:null==r?void 0:r.color,icon:r?(0,n.jsx)(i.UIIcon,{name:r.iconName}):void 0,children:e})}},{title:"Package",dataIndex:"name",key:"name",sorter:function(e,r){return e.name.localeCompare(r.name)},render:function(e){return(0,n.jsx)(i.UITypographyText,{code:!0,style:{fontSize:j.fontSizeSM},children:e})}},{title:"Repo",dataIndex:"repo",key:"repo",width:180,filters:d(new Set(z.map(function(e){return e.repo}))).map(function(e){return{text:e,value:e}}),onFilter:function(e,r){return r.repo===e},render:function(e){return(0,n.jsx)(i.UITag,{children:e})}}];return(0,n.jsxs)(i.UIDrawer,{title:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsxs)("span",{children:[x," Details"]}),(0,n.jsxs)(i.UITag,{color:(null==O?void 0:O.failed.length)?"error":"success",children:[null!=(y=null==O?void 0:O.failed.length)?y:0," failed"]})]}),placement:"right",width:720,open:g,onClose:v,extra:"build"!==m&&(0,n.jsxs)(i.UIButton,{variant:"primary",icon:(0,n.jsx)(i.UIIcon,{name:"PlayCircleOutlined"}),onClick:function(){M()},loading:k,size:"small",children:["Re-run ",x]}),children:[(0,n.jsx)(i.UIInput,{placeholder:"Filter by package or repo...",prefix:(0,n.jsx)(i.UIIcon,{name:"SearchOutlined"}),value:A,onChange:function(e){return C(e)},style:{marginBottom:j.marginMD},allowClear:!0}),(0,n.jsx)(i.UITable,{dataSource:z,columns:F,rowKey:"name",size:"small",loading:I,pagination:{pageSize:50},expandable:{expandedRowRender:function(e){return e.error?(0,n.jsx)(i.UIAccordion,{ghost:!0,items:[{key:"1",label:"Error output",children:(0,n.jsx)("pre",{style:{background:j.colorFillTertiary,color:j.colorText,padding:j.paddingSM,borderRadius:j.borderRadius,fontSize:j.fontSizeSM,maxHeight:300,overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:e.error})}]}):null},rowExpandable:function(e){return!!e.error}}})]})}var y={build:"BuildOutlined",lint:"FileSearchOutlined",typeCheck:"FileTextOutlined",test:"ExperimentOutlined"};function g(e){var r;return(0,n.jsx)(i.UIIcon,{name:null!=(r=y[e])?r:"CheckCircleOutlined"})}function m(e){return e.charAt(0).toUpperCase()+e.slice(1).replace(/([A-Z])/g," $1")}function x(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function v(e,r,t,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){t(e);return}l.done?r(s):Promise.resolve(s).then(n,i)}function j(){var e=(0,o.useTheme)().antdToken,r=(0,o.useData)("/v1/plugins/qa/baseline/diff"),t=r.data,a=r.isLoading,l=(0,o.useMutateData)("/v1/plugins/qa/baseline/update","POST"),s=l.mutateAsync,c=l.isLoading,u=function(){var e;return(e=function(){var e;return function(e,r){var t,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var c=[l,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(e,a)}catch(e){c=[6,e],n=0}finally{t=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:i.UIMessage.loading("Updating baseline...",0),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s(void 0)];case 2:return r.sent(),i.UIMessage.destroy(),i.UIMessage.success("Baseline updated successfully"),[3,4];case 3:var t;return e=r.sent(),i.UIMessage.destroy(),i.UIMessage.error("Failed to update baseline: ".concat((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)?e.message:"Unknown error")),[3,4];case 4:return[2]}})},function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(e){v(a,n,i,o,l,"next",e)}function l(e){v(a,n,i,o,l,"throw",e)}o(void 0)})})()};if(a)return null;if(!(null==t?void 0:t.baseline))return(0,n.jsx)(i.UIAlert,{variant:"warning",showIcon:!0,message:"No baseline set",description:"Run QA first, then update baseline to enable diff tracking.",action:(0,n.jsx)(i.UIButton,{variant:"primary",size:"small",icon:(0,n.jsx)(i.UIIcon,{name:"SaveOutlined"}),onClick:function(){u()},loading:c,children:"Create Baseline"})});if(!t.hasDiff)return(0,n.jsx)(i.UIAlert,{variant:"success",showIcon:!0,icon:(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}),message:"No changes since baseline",description:"Baseline from ".concat(new Date(t.baseline.timestamp).toLocaleString()),action:(0,n.jsx)(i.UIPopconfirm,{title:"Update baseline?",description:"This will set the current QA state as the new baseline.",onConfirm:function(){u()},children:(0,n.jsx)(i.UIButton,{size:"small",icon:(0,n.jsx)(i.UIIcon,{name:"SaveOutlined"}),loading:c,children:"Update"})})});var d=0,f=0,p=!0,h=!1,y=void 0;try{for(var g,j=Object.values(t.diff)[Symbol.iterator]();!(p=(g=j.next()).done);p=!0){var S=g.value;d+=S.newFailures.length,f+=S.fixed.length}}catch(e){h=!0,y=e}finally{try{p||null==j.return||j.return()}finally{if(h)throw y}}return(0,n.jsx)(i.UICard,{title:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)(i.UIIcon,{name:"WarningOutlined",style:{color:d>0?e.colorError:e.colorSuccess}}),(0,n.jsx)("span",{children:"Baseline Diff"}),d>0&&(0,n.jsxs)(i.UITag,{color:"error",children:["+",d," new failures"]}),f>0&&(0,n.jsxs)(i.UITag,{color:"success",children:[f," fixed"]})]}),extra:(0,n.jsx)(i.UIPopconfirm,{title:"Update baseline?",description:"This will set the current QA state as the new baseline.",onConfirm:function(){u()},children:(0,n.jsx)(i.UIButton,{variant:"primary",icon:(0,n.jsx)(i.UIIcon,{name:"SaveOutlined"}),loading:c,size:"small",children:"Update Baseline"})}),children:(0,n.jsx)(i.UIRow,{gutter:[16,16],children:Object.entries(t.diff).map(function(r){var t=function(e){if(Array.isArray(e))return e}(r)||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(r)||function(e){if(e){if("string"==typeof e)return x(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=t[0],o=t[1];return(0,n.jsx)(i.UICol,{xs:24,sm:12,lg:6,children:(0,n.jsxs)(i.UICard,{size:"small",style:{textAlign:"center"},children:[(0,n.jsx)(i.UITypographyText,{strong:!0,children:m(a)}),(0,n.jsx)("div",{style:{marginTop:e.marginXS},children:(0,n.jsx)(i.UIStatistic,{value:Math.abs(o.delta),prefix:o.delta>0?(0,n.jsx)(i.UIIcon,{name:"ArrowUpOutlined"}):o.delta<0?(0,n.jsx)(i.UIIcon,{name:"ArrowDownOutlined"}):null,valueStyle:{color:o.delta>0?e.colorError:o.delta<0?e.colorSuccess:e.colorTextSecondary,fontSize:e.fontSizeHeading3},suffix:o.delta>0?"more failures":o.delta<0?"fewer failures":"no change"})}),o.newFailures.length>0&&(0,n.jsxs)("div",{style:{marginTop:e.marginXS,textAlign:"left"},children:[(0,n.jsx)(i.UITypographyText,{type:"danger",style:{fontSize:e.fontSizeSM},children:"New failures:"}),o.newFailures.slice(0,3).map(function(r){return(0,n.jsx)("div",{children:(0,n.jsx)(i.UITag,{color:"error",style:{fontSize:e.fontSizeSM},children:r})},r)}),o.newFailures.length>3&&(0,n.jsxs)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:["+",o.newFailures.length-3," more"]})]}),o.fixed.length>0&&(0,n.jsxs)("div",{style:{marginTop:e.marginXS,textAlign:"left"},children:[(0,n.jsx)(i.UITypographyText,{type:"success",style:{fontSize:e.fontSizeSM},children:"Fixed:"}),o.fixed.slice(0,3).map(function(r){return(0,n.jsx)("div",{children:(0,n.jsx)(i.UITag,{color:"success",style:{fontSize:e.fontSizeSM},children:r})},r)}),o.fixed.length>3&&(0,n.jsxs)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:["+",o.fixed.length-3," more"]})]})]})},a)})})})}function S(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var b={build:{color:"red",iconName:"BugOutlined",label:"Build"},lint:{color:"orange",iconName:"FileSearchOutlined",label:"Lint"},typeCheck:{color:"blue",iconName:"FileTextOutlined",label:"Types"},test:{color:"purple",iconName:"ExperimentOutlined",label:"Tests"}};function I(){var e=(0,o.useTheme)().antdToken,r=(0,o.useData)("/v1/plugins/qa/errors/groups"),t=r.data;if(r.isLoading)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!t||0===t.groups.length&&0===t.ungrouped)return null;var a=[{title:"Pattern",dataIndex:"pattern",key:"pattern",render:function(r){return(0,n.jsx)(i.UITypographyText,{code:!0,style:{fontSize:e.fontSizeSM},children:r})}},{title:"Type",dataIndex:"checkType",key:"checkType",width:100,filters:Object.entries(b).map(function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(e)||function(e){if(e){if("string"==typeof e)return S(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),t=r[0];return{text:r[1].label,value:t}}),onFilter:function(e,r){return r.checkType===e},render:function(e){var r=b[e];return r?(0,n.jsx)(i.UITag,{color:r.color,icon:(0,n.jsx)(i.UIIcon,{name:r.iconName}),children:r.label}):(0,n.jsx)(i.UITag,{children:e})}},{title:"Affected",dataIndex:"count",key:"count",width:100,sorter:function(e,r){return e.count-r.count},defaultSortOrder:"descend",render:function(r){return(0,n.jsx)(i.UIBadge,{count:r,style:{backgroundColor:r>5?e.colorError:r>2?e.colorWarning:e.colorSuccess}})}},{title:"Packages",dataIndex:"packages",key:"packages",render:function(r){return(0,n.jsxs)(i.UISpace,{wrap:!0,size:[4,4],children:[r.slice(0,3).map(function(r){return(0,n.jsx)(i.UITag,{style:{fontSize:e.fontSizeSM},children:r},r)}),r.length>3&&(0,n.jsxs)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:["+",r.length-3," more"]})]})}}];return(0,n.jsx)(i.UICard,{title:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)(i.UIIcon,{name:"BugOutlined"}),(0,n.jsx)("span",{children:"Error Groups"}),(0,n.jsxs)(i.UITag,{children:[t.groups.length," patterns"]}),t.ungrouped>0&&(0,n.jsxs)(i.UITag,{color:"default",children:[t.ungrouped," unique errors"]})]}),children:(0,n.jsx)(i.UITable,{dataSource:t.groups,columns:a,rowKey:"pattern",size:"small",pagination:{pageSize:10},expandable:{expandedRowRender:function(r){return(0,n.jsxs)("div",{children:[(0,n.jsx)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:"Example:"}),(0,n.jsx)("pre",{style:{background:e.colorFillTertiary,color:e.colorText,padding:e.paddingXS,borderRadius:e.borderRadiusSM,fontSize:e.fontSizeSM,maxHeight:150,overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-all",marginTop:e.marginXXS},children:r.example}),r.packages.length>3&&(0,n.jsxs)("div",{style:{marginTop:e.marginXS},children:[(0,n.jsx)(i.UITypographyText,{type:"secondary",style:{fontSize:e.fontSizeSM},children:"All affected packages:"}),(0,n.jsx)("div",{style:{marginTop:e.marginXXS},children:(0,n.jsx)(i.UISpace,{wrap:!0,size:[4,4],children:r.packages.map(function(r){return(0,n.jsx)(i.UITag,{style:{fontSize:e.fontSizeSM},children:r},r)})})})]})]})},rowExpandable:function(){return!0}}})})}function U(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function w(e,r,t,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){t(e);return}l.done?r(s):Promise.resolve(s).then(n,i)}function k(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(t=i.next()).done)&&(a.push(t.value),!r||a.length!==r);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,r)||T(e,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,r){if(e){if("string"==typeof e)return U(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return U(e,r)}}function A(){var e,r,t,l=(0,o.useTheme)().antdToken,s=(0,o.useData)("/v1/plugins/qa/summary"),c=s.data,u=s.isLoading,d=(0,o.useMutateData)("/v1/plugins/qa/run"),f=d.mutateAsync,p=d.isLoading,y=k(a.useState(!1),2),m=y[0],x=y[1],v=k(a.useState(null),2),S=v[0],b=v[1],A=k(a.useState(new Set),2),C=A[0],O=A[1],z=function(e,r){O(function(t){var n=new Set(t);return r?n.delete(e):n.add(e),n})},M=function(e,r){b({type:e,label:r}),x(!0)},F=function(){var e;return(e=function(){var e,r,t;return function(e,r){var t,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var c=[l,s];if(t)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(e,a)}catch(e){c=[6,e],n=0}finally{t=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(n){var a;switch(n.label){case 0:i.UIMessage.loading("Running QA checks...",0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f({skipChecks:C.size>0?function(e){if(Array.isArray(e))return U(e)}(C)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(C)||T(C)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():void 0})];case 2:return e=n.sent(),i.UIMessage.destroy(),"passed"===e.status?i.UIMessage.success("QA passed in ".concat((e.durationMs/1e3).toFixed(1),"s")):(r=Object.values(e.results).reduce(function(e,r){return e+r.failed.length},0),i.UIMessage.warning("QA finished with ".concat(r," failures in ").concat((e.durationMs/1e3).toFixed(1),"s"))),[3,4];case 3:return t=n.sent(),i.UIMessage.destroy(),i.UIMessage.error("QA run failed: ".concat((null!=(a=Error)&&"u">typeof Symbol&&a[Symbol.hasInstance]?!!a[Symbol.hasInstance](t):t instanceof a)?t.message:"Unknown error")),[3,4];case 4:return[2]}})},function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(e){w(a,n,i,o,l,"next",e)}function l(e){w(a,n,i,o,l,"throw",e)}o(void 0)})})()};if(u)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!c)return(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"No QA data",description:"Run 'pnpm qa:save' to generate QA history.",style:{marginBottom:l.marginLG}});var P="passed"===c.status;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{style:{marginBottom:l.marginMD},children:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)(i.UIButton,{variant:"primary",icon:(0,n.jsx)(i.UIIcon,{name:"PlayCircleOutlined"}),onClick:function(){F()},loading:p,disabled:p,children:p?"Running QA Checks...":"Run QA"}),(0,n.jsx)(i.UIPopover,{trigger:"click",title:"Checks to run",content:(0,n.jsx)(i.UISpace,{direction:"vertical",children:(null!=(e=null==c?void 0:c.checks)?e:[]).map(function(e){return(0,n.jsxs)(i.UICheckbox,{checked:!C.has(e.checkType),onChange:function(r){return z(e.checkType,r)},children:[g(e.checkType)," ",e.label]},e.checkType)})}),children:(0,n.jsx)(i.UIButton,{icon:(0,n.jsx)(i.UIIcon,{name:"SettingOutlined"}),disabled:p})})]})}),(0,n.jsx)(i.UIAlert,{variant:P?"success":"error",showIcon:!0,icon:P?(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}):(0,n.jsx)(i.UIIcon,{name:"CloseCircleOutlined"}),message:(0,n.jsxs)(i.UISpace,{children:[(0,n.jsxs)("span",{style:{fontWeight:600},children:["QA Status: ",P?"All Checks Passing":"Checks Failing"]}),(0,n.jsx)(i.UITag,{color:P?"success":"error",children:c.status.toUpperCase()})]}),description:c.lastRunAt?(0,n.jsxs)(i.UISpace,{split:(0,n.jsx)("span",{style:{color:l.colorBorderSecondary},children:"|"}),children:[(0,n.jsxs)("span",{children:[(0,n.jsx)(i.UIIcon,{name:"ClockCircleOutlined"})," ",new Date(c.lastRunAt).toLocaleString()]}),c.git&&(0,n.jsxs)("span",{children:[(0,n.jsx)(i.UIIcon,{name:"BranchesOutlined"})," ",c.git.branch," (",c.git.commit.slice(0,7),")"]}),(0,n.jsxs)("span",{children:[c.historyCount," runs in history"]})]}):void 0,style:{marginBottom:l.marginLG}}),(0,n.jsx)(i.UIRow,{gutter:[16,16],style:{marginBottom:l.marginLG},children:c.checks.map(function(e){var r=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return 0===r?100:Math.round((e+t)/r*100)}(e.passed,e.total,e.skipped);return(0,n.jsx)(i.UICol,{xs:24,sm:12,lg:6,children:(0,n.jsxs)(i.UICard,{hoverable:!0,onClick:function(){return M(e.checkType,e.label)},style:{cursor:"pointer"},children:[(0,n.jsx)("div",{style:{textAlign:"center",marginBottom:l.marginMD},children:(0,n.jsx)(i.UIProgress,{type:"circle",percent:r,size:120,status:r>=100?"success":r<50?"exception":"normal",strokeColor:r>=100||r>=80?l.colorSuccess:r>=60?l.colorWarning:l.colorError,format:function(){return"".concat(r,"%")}})}),(0,n.jsx)("div",{style:{textAlign:"center",marginBottom:l.marginXS},children:(0,n.jsxs)(i.UISpace,{children:[g(e.checkType),(0,n.jsx)("span",{style:{fontWeight:600,fontSize:l.fontSizeLG},children:e.label})]})}),(0,n.jsxs)(i.UIRow,{gutter:8,justify:"center",children:[(0,n.jsx)(i.UICol,{children:(0,n.jsx)(i.UIStatistic,{title:"Passed",value:e.passed,valueStyle:{color:l.colorSuccess,fontSize:l.fontSize}})}),(0,n.jsx)(i.UICol,{children:(0,n.jsx)(i.UIStatistic,{title:"Failed",value:e.failed,valueStyle:{color:e.failed>0?l.colorError:l.colorSuccess,fontSize:l.fontSize}})}),e.skipped>0&&(0,n.jsx)(i.UICol,{children:(0,n.jsx)(i.UIStatistic,{title:"Skipped",value:e.skipped,valueStyle:{color:l.colorTextSecondary,fontSize:l.fontSize}})})]})]})},e.checkType)})}),(0,n.jsx)("div",{style:{marginBottom:l.marginLG},children:(0,n.jsx)(j,{})}),(0,n.jsx)("div",{style:{marginBottom:l.marginLG},children:(0,n.jsx)(I,{})}),(0,n.jsx)(h,{open:m,checkType:null!=(r=null==S?void 0:S.type)?r:null,checkLabel:null!=(t=null==S?void 0:S.label)?t:"",onClose:function(){return x(!1)}})]})}function C(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function O(){var e,r=(0,o.useTheme)().antdToken,t=(0,o.useData)("/v1/plugins/qa/history"),a=t.data;if(t.isLoading)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!a||0===a.entries.length)return(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"No QA history",description:"Run 'pnpm qa:save' to record QA results to history."});var l=[{title:"Date",dataIndex:"timestamp",key:"timestamp",width:180,render:function(e){return new Date(e).toLocaleString()},sorter:function(e,r){return new Date(e.timestamp).getTime()-new Date(r.timestamp).getTime()},defaultSortOrder:"descend"},{title:"Status",dataIndex:"status",key:"status",width:100,render:function(e){return(0,n.jsx)(i.UITag,{color:"passed"===e?"success":"error",icon:"passed"===e?(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}):(0,n.jsx)(i.UIIcon,{name:"CloseCircleOutlined"}),children:e.toUpperCase()})},filters:[{text:"Passed",value:"passed"},{text:"Failed",value:"failed"}],onFilter:function(e,r){return r.status===e}},{title:"Git",key:"git",width:220,render:function(e,t){return(0,n.jsxs)(i.UISpace,{direction:"vertical",size:0,children:[(0,n.jsxs)("span",{children:[(0,n.jsx)(i.UIIcon,{name:"BranchesOutlined"})," ",t.git.branch]}),(0,n.jsxs)("span",{style:{color:r.colorTextSecondary,fontSize:r.fontSizeSM},children:[t.git.commit.slice(0,7)," - ",t.git.message.slice(0,40),t.git.message.length>40?"...":""]})]})}}].concat(function(e){if(Array.isArray(e))return C(e)}(e=(a.entries[0]?Object.keys(a.entries[0].summary):[]).map(function(e){return{title:m(e),key:e,width:90,align:"center",render:function(r,t){var a=t.summary[e];if(!a)return"-";var o=a.failed>0;return(0,n.jsxs)(i.UITag,{color:o?"error":"success",style:{fontVariantNumeric:"tabular-nums"},children:[a.passed,"/",a.passed+a.failed]})}}}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return C(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return(0,n.jsx)(i.UITable,{columns:l,dataSource:a.entries,rowKey:"timestamp",pagination:{pageSize:15},size:"middle",expandable:{expandedRowRender:function(e){return(0,n.jsx)("div",{style:{padding:"".concat(r.paddingXS,"px ").concat(r.paddingMD,"px")},children:Object.keys(e.failedPackages).map(function(t){var a=e.failedPackages[t];return a&&0!==a.length?(0,n.jsxs)("div",{style:{marginBottom:r.marginSM},children:[(0,n.jsxs)("strong",{children:[m(t)," failures (",a.length,"):"]}),(0,n.jsx)(i.UIFlex,{wrap:"wrap",gap:1,style:{marginTop:r.marginXXS},children:a.map(function(e){return(0,n.jsx)(i.UITag,{color:"error",style:{fontSize:r.fontSizeSM},children:e},e)})})]},t):null})})},rowExpandable:function(e){return Object.values(e.failedPackages).some(function(e){return e.length>0})}}})}function z(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function M(e,r){if(e){if("string"==typeof e)return z(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,r)}}function F(){var e,r=(0,o.useTheme)().antdToken,t=function(e){if(Array.isArray(e))return e}(e=a.useState(void 0))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){o=!0,t=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw t}}return i}}(e)||M(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=t[0],s=t[1],c=(0,o.useData)(l?"/v1/plugins/qa/trends?window=".concat(l,"&enriched=true"):"/v1/plugins/qa/trends?enriched=true"),u=c.data;if(c.isLoading)return(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});if(!u||0===u.trends.length)return(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"Not enough data for trend analysis",description:"Need at least 2 history entries. Run 'pnpm qa:save' multiple times."});var d=function(e){var r=[],t=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var l=a.value,s=null!=(f=l.label)?f:m(l.checkType),c=!0,u=!1,d=void 0;try{for(var f,p,h=l.timeSeries[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var y=p.value;r.push({date:function(e){var r=new Date(e),t=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0"),i=String(r.getHours()).padStart(2,"0"),a=String(r.getMinutes()).padStart(2,"0");return"".concat(t,"-").concat(n," ").concat(i,":").concat(a)}(y.timestamp),value:y.failed,category:s})}}catch(e){u=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(u)throw d}}}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return r}(u.trends),f=function(e){var r,t=new Map,n=!0,i=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value,c=!0,u=!1,d=void 0;try{for(var f,p=s.changelog[Symbol.iterator]();!(c=(f=p.next()).done);c=!0){var h=f.value,y=t.get(h.gitCommit);y||(y={timestamp:h.timestamp,gitCommit:h.gitCommit,gitMessage:h.gitMessage,changes:[]},t.set(h.gitCommit,y)),y.changes.push({checkType:s.checkType,entry:h})}}catch(e){u=!0,d=e}finally{try{c||null==p.return||p.return()}finally{if(u)throw d}}}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return((function(e){if(Array.isArray(e))return z(e)})(r=t.values())||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||M(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,r){return r.timestamp.localeCompare(e.timestamp)})}(u.trends);return(0,n.jsxs)("div",{children:[(0,n.jsxs)(i.UIFlex,{justify:"between",align:"center",style:{marginBottom:r.marginMD},children:[(0,n.jsxs)("span",{style:{color:r.colorTextSecondary},children:["Analyzing ",u.historyCount," history entries (window: ",u.window,")"]}),(0,n.jsxs)(i.UISpace,{children:[(0,n.jsx)("span",{children:"Window size:"}),(0,n.jsx)(i.UISelect,{value:null!=l?l:u.window,onChange:function(e){return s(e)},style:{width:80},options:[{label:"5",value:5},{label:"10",value:10},{label:"20",value:20},{label:"50",value:50}]})]})]}),(0,n.jsx)(i.UIStatisticsChart,{title:"Failure Count Over Time",data:d,loading:!1,xField:"date",yField:"value",colorField:"category",height:300,showLegend:!1,chartProps:{legend:{position:"top"}}}),(0,n.jsx)(i.UIRow,{gutter:[16,16],style:{marginTop:r.marginMD},children:u.trends.map(function(e){var t;return(0,n.jsx)(i.UICol,{xs:24,sm:12,children:(0,n.jsxs)(i.UICard,{size:"small",children:[(0,n.jsx)(i.UIRow,{align:"middle",gutter:16,children:(0,n.jsx)(i.UICol,{flex:"auto",children:(0,n.jsxs)(i.UISpace,{children:[g(e.checkType),(0,n.jsx)("span",{style:{fontWeight:600,fontSize:r.fontSizeLG},children:null!=(t=e.label)?t:m(e.checkType)}),function(e){switch(e){case"regression":return(0,n.jsx)(i.UITag,{color:"error",children:"Regression"});case"improvement":return(0,n.jsx)(i.UITag,{color:"success",children:"Improvement"});default:return(0,n.jsx)(i.UITag,{children:"No Change"})}}(e.trend)]})})}),(0,n.jsxs)(i.UIRow,{gutter:16,style:{marginTop:r.marginSM},children:[(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Previous",value:e.previous,valueStyle:{fontSize:r.fontSizeHeading4}})}),(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Current",value:e.current,valueStyle:{fontSize:r.fontSizeHeading4}})}),(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Delta",value:Math.abs(e.delta),prefix:function(e){switch(e){case"regression":return(0,n.jsx)(i.UIIcon,{name:"ArrowUpOutlined"});case"improvement":return(0,n.jsx)(i.UIIcon,{name:"ArrowDownOutlined"});default:return(0,n.jsx)(i.UIIcon,{name:"MinusOutlined"})}}(e.trend),valueStyle:{color:function(e,r){switch(e){case"regression":return r.colorError;case"improvement":return r.colorSuccess;default:return r.colorTextSecondary}}(e.trend,r),fontSize:r.fontSizeHeading4}})}),(0,n.jsx)(i.UICol,{span:6,children:(0,n.jsx)(i.UIStatistic,{title:"Velocity",value:Math.abs(e.velocity),precision:1,prefix:e.velocity>0?(0,n.jsx)(i.UIIcon,{name:"ArrowUpOutlined"}):e.velocity<0?(0,n.jsx)(i.UIIcon,{name:"ArrowDownOutlined"}):(0,n.jsx)(i.UIIcon,{name:"MinusOutlined"}),suffix:"/run",valueStyle:{color:e.velocity>0?r.colorError:e.velocity<0?r.colorSuccess:r.colorTextSecondary,fontSize:r.fontSizeHeading4}})})]})]})},e.checkType)})}),(0,n.jsx)(i.UICard,{title:"Changelog — What Changed",style:{marginTop:r.marginMD},children:0===f.length?(0,n.jsx)(i.UIEmptyState,{description:"No changes detected between entries"}):(0,n.jsx)(i.UITimeline,{children:f.map(function(e){var t=e.changes.reduce(function(e,r){return e+r.entry.newFailures.length},0)>e.changes.reduce(function(e,r){return e+r.entry.fixed.length},0)?r.colorError:r.colorSuccess;return(0,n.jsxs)(i.UITimelineItem,{color:t,children:[(0,n.jsxs)("div",{style:{marginBottom:r.marginXXS},children:[(0,n.jsx)(i.UITag,{style:{fontFamily:"monospace"},children:e.gitCommit.slice(0,7)}),(0,n.jsx)("span",{style:{color:r.colorTextSecondary,fontSize:r.fontSizeSM},children:new Date(e.timestamp).toLocaleString()})]}),(0,n.jsx)("div",{style:{fontSize:r.fontSize,color:r.colorTextSecondary,marginBottom:r.marginXS},children:e.gitMessage}),e.changes.map(function(e){var t=e.checkType,a=e.entry;return(0,n.jsxs)("div",{style:{marginBottom:r.marginXXS},children:[(0,n.jsxs)("span",{style:{fontWeight:500},children:[m(t),":"]}),a.newFailures.length>0&&(0,n.jsxs)("span",{style:{marginLeft:8},children:[(0,n.jsxs)(i.UITag,{color:"error",style:{fontSize:r.fontSizeSM},children:["+",a.newFailures.length," new"]}),a.newFailures.map(function(e){return(0,n.jsx)(i.UITag,{color:"red",style:{fontSize:r.fontSizeSM},children:e},e)})]}),a.fixed.length>0&&(0,n.jsxs)("span",{style:{marginLeft:8},children:[(0,n.jsxs)(i.UITag,{color:"success",style:{fontSize:r.fontSizeSM},children:["-",a.fixed.length," fixed"]}),a.fixed.map(function(e){return(0,n.jsx)(i.UITag,{color:"green",style:{fontSize:r.fontSizeSM},children:e},e)})]})]},t)})]},e.gitCommit)})})})]})}function P(){var e=(0,o.useTheme)().antdToken,r=(0,o.useData)("/v1/plugins/qa/regressions"),t=r.data;return r.isLoading?(0,n.jsx)(i.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}}):t?t.hasRegressions?(0,n.jsxs)("div",{children:[(0,n.jsx)(i.UIAlert,{variant:"error",showIcon:!0,icon:(0,n.jsx)(i.UIIcon,{name:"WarningOutlined"}),message:"".concat(t.regressions.length," regression").concat(t.regressions.length>1?"s":""," detected"),description:"The following check types have new failures compared to the previous QA run.",style:{marginBottom:e.marginLG}}),t.regressions.map(function(r,t){return(0,n.jsx)(i.UICard,{title:(0,n.jsxs)(i.UISpace,{children:[g(r.checkType),(0,n.jsx)("span",{children:m(r.checkType)}),(0,n.jsxs)(i.UITag,{color:"error",children:["+",r.delta," new failure",r.delta>1?"s":""]})]}),style:{marginBottom:e.marginMD},children:(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:"New failures:"}),(0,n.jsx)(i.UIFlex,{wrap:"wrap",gap:1,style:{marginTop:e.marginXS},children:r.newFailures.map(function(e){return(0,n.jsx)(i.UITag,{color:"error",children:e},e)})})]})},t)}),(0,n.jsx)(i.UIAlert,{variant:"warning",showIcon:!0,message:"Action required",description:(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"Fix the regressions above before merging. Recommendations:"}),(0,n.jsxs)("ol",{style:{margin:0,paddingLeft:20},children:[(0,n.jsxs)("li",{children:["Run ",(0,n.jsx)("code",{children:"pnpm qa --json"})," to see detailed error messages"]}),(0,n.jsx)("li",{children:"Fix the failing packages"}),(0,n.jsxs)("li",{children:["Re-run ",(0,n.jsx)("code",{children:"pnpm qa:save"})," to verify fixes"]}),(0,n.jsxs)("li",{children:["Update baseline if needed: ",(0,n.jsx)("code",{children:"pnpm kb baseline:update"})]})]})]}),style:{marginTop:e.marginMD}})]}):(0,n.jsxs)("div",{children:[(0,n.jsx)(i.UIAlert,{variant:"success",showIcon:!0,icon:(0,n.jsx)(i.UIIcon,{name:"CheckCircleOutlined"}),message:"No regressions detected",description:"All check types show the same or fewer failures compared to the previous QA run.",style:{marginBottom:e.marginLG}}),(0,n.jsx)(i.UIEmptyState,{description:"No regressions to display"})]}):(0,n.jsx)(i.UIAlert,{variant:"info",showIcon:!0,message:"Not enough data for regression detection",description:"Need at least 2 history entries. Run 'pnpm qa:save' multiple times."})}function D(){var e=(0,n.jsx)(i.UITabs,{syncUrl:"search",items:[{key:"overview",label:"Overview",children:(0,n.jsx)(A,{})},{key:"history",label:"History",children:(0,n.jsx)(O,{})},{key:"trends",label:"Trends",children:(0,n.jsx)(F,{})},{key:"regressions",label:"Regressions",children:(0,n.jsx)(P,{})}]});return(0,n.jsx)(i.UIPage,{children:(0,n.jsx)(i.UIPageHeader,{title:"QA",description:"Build, lint, type check, and test results with baseline tracking and regression detection",tabs:e})})}}}]);
@@ -5,7 +5,7 @@
5
5
  "name": "qaPlugin",
6
6
  "globalName": "qaPlugin",
7
7
  "buildInfo": {
8
- "buildVersion": "2.81.0",
8
+ "buildVersion": "2.86.0",
9
9
  "buildName": "@kb-labs/qa-entry"
10
10
  },
11
11
  "publicPath": "auto",
@@ -27,7 +27,7 @@
27
27
  {
28
28
  "id": "qaPlugin:@kb-labs/studio-event-bus",
29
29
  "name": "@kb-labs/studio-event-bus",
30
- "version": "2.81.0",
30
+ "version": "2.86.0",
31
31
  "singleton": true,
32
32
  "requiredVersion": "^0.1.0",
33
33
  "assets": {
@@ -47,7 +47,7 @@
47
47
  {
48
48
  "id": "qaPlugin:@kb-labs/studio-ui-core",
49
49
  "name": "@kb-labs/studio-ui-core",
50
- "version": "2.81.0",
50
+ "version": "2.86.0",
51
51
  "singleton": true,
52
52
  "requiredVersion": "^0.1.0",
53
53
  "assets": {
@@ -72,8 +72,8 @@
72
72
  "assets": {
73
73
  "js": {
74
74
  "sync": [
75
- "162.js",
76
- "451.js"
75
+ "451.js",
76
+ "805.js"
77
77
  ],
78
78
  "async": []
79
79
  },
@@ -86,7 +86,7 @@
86
86
  {
87
87
  "id": "qaPlugin:@kb-labs/studio-hooks",
88
88
  "name": "@kb-labs/studio-hooks",
89
- "version": "2.81.0",
89
+ "version": "2.86.0",
90
90
  "singleton": true,
91
91
  "requiredVersion": "^0.1.0",
92
92
  "assets": {
@@ -106,7 +106,7 @@
106
106
  {
107
107
  "id": "qaPlugin:@kb-labs/studio-ui-kit",
108
108
  "name": "@kb-labs/studio-ui-kit",
109
- "version": "2.81.0",
109
+ "version": "2.86.0",
110
110
  "singleton": true,
111
111
  "requiredVersion": "^0.1.0",
112
112
  "assets": {
@@ -5,7 +5,7 @@
5
5
  "name": "qaPlugin",
6
6
  "globalName": "qaPlugin",
7
7
  "buildInfo": {
8
- "buildVersion": "2.81.0",
8
+ "buildVersion": "2.86.0",
9
9
  "buildName": "@kb-labs/qa-entry"
10
10
  },
11
11
  "publicPath": "auto",
@@ -27,7 +27,7 @@
27
27
  {
28
28
  "id": "qaPlugin:@kb-labs/studio-event-bus",
29
29
  "name": "@kb-labs/studio-event-bus",
30
- "version": "2.81.0",
30
+ "version": "2.86.0",
31
31
  "requiredVersion": "^0.1.0",
32
32
  "singleton": true,
33
33
  "assets": {
@@ -43,12 +43,13 @@
43
43
  "async": []
44
44
  }
45
45
  },
46
- "usedIn": []
46
+ "usedIn": [],
47
+ "usedExports": []
47
48
  },
48
49
  {
49
50
  "id": "qaPlugin:@kb-labs/studio-ui-core",
50
51
  "name": "@kb-labs/studio-ui-core",
51
- "version": "2.81.0",
52
+ "version": "2.86.0",
52
53
  "requiredVersion": "^0.1.0",
53
54
  "singleton": true,
54
55
  "assets": {
@@ -63,7 +64,8 @@
63
64
  "async": []
64
65
  }
65
66
  },
66
- "usedIn": []
67
+ "usedIn": [],
68
+ "usedExports": []
67
69
  },
68
70
  {
69
71
  "id": "qaPlugin:antd",
@@ -74,8 +76,8 @@
74
76
  "assets": {
75
77
  "js": {
76
78
  "sync": [
77
- "162.js",
78
- "451.js"
79
+ "451.js",
80
+ "805.js"
79
81
  ],
80
82
  "async": []
81
83
  },
@@ -84,12 +86,13 @@
84
86
  "async": []
85
87
  }
86
88
  },
87
- "usedIn": []
89
+ "usedIn": [],
90
+ "usedExports": []
88
91
  },
89
92
  {
90
93
  "id": "qaPlugin:@kb-labs/studio-hooks",
91
94
  "name": "@kb-labs/studio-hooks",
92
- "version": "2.81.0",
95
+ "version": "2.86.0",
93
96
  "requiredVersion": "^0.1.0",
94
97
  "singleton": true,
95
98
  "assets": {
@@ -105,12 +108,13 @@
105
108
  "async": []
106
109
  }
107
110
  },
108
- "usedIn": []
111
+ "usedIn": [],
112
+ "usedExports": []
109
113
  },
110
114
  {
111
115
  "id": "qaPlugin:@kb-labs/studio-ui-kit",
112
116
  "name": "@kb-labs/studio-ui-kit",
113
- "version": "2.81.0",
117
+ "version": "2.86.0",
114
118
  "requiredVersion": "^0.1.0",
115
119
  "singleton": true,
116
120
  "assets": {
@@ -128,7 +132,8 @@
128
132
  "async": []
129
133
  }
130
134
  },
131
- "usedIn": []
135
+ "usedIn": [],
136
+ "usedExports": []
132
137
  },
133
138
  {
134
139
  "id": "qaPlugin:react",
@@ -148,7 +153,8 @@
148
153
  "async": []
149
154
  }
150
155
  },
151
- "usedIn": []
156
+ "usedIn": [],
157
+ "usedExports": []
152
158
  },
153
159
  {
154
160
  "id": "qaPlugin:react-dom",
@@ -169,7 +175,8 @@
169
175
  "async": []
170
176
  }
171
177
  },
172
- "usedIn": []
178
+ "usedIn": [],
179
+ "usedExports": []
173
180
  },
174
181
  {
175
182
  "id": "qaPlugin:@tanstack/react-query",
@@ -190,7 +197,8 @@
190
197
  "async": []
191
198
  }
192
199
  },
193
- "usedIn": []
200
+ "usedIn": [],
201
+ "usedExports": []
194
202
  },
195
203
  {
196
204
  "id": "qaPlugin:react-router-dom",
@@ -210,7 +218,8 @@
210
218
  "async": []
211
219
  }
212
220
  },
213
- "usedIn": []
221
+ "usedIn": [],
222
+ "usedExports": []
214
223
  }
215
224
  ],
216
225
  "remotes": [],