UNPKG

pulse-dashboard

Version:

A Next.js Dashboard application for real-time monitoring and historical analysis of Playwright test executions, based on playwright-pulse-report. This component provides the UI for visualizing Playwright test results and can be run as a standalone CLI too

1 lines 10.1 kB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[729],{2448:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},3235:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},3638:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},12543:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},13768:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},15300:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},17569:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},35695:(e,t,a)=>{var r=a(18999);a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}})},48155:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},52333:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]])},58527:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},60704:(e,t,a)=>{a.d(t,{B8:()=>I,UC:()=>L,bL:()=>C,l9:()=>D});var r=a(12115),n=a(85185),o=a(46081),i=a(89196),l=a(28905),d=a(63655),s=a(94315),u=a(5845),h=a(61285),c=a(95155),p="Tabs",[f,y]=(0,o.A)(p,[i.RG]),v=(0,i.RG)(),[k,m]=f(p),b=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:n,defaultValue:o,orientation:i="horizontal",dir:l,activationMode:p="automatic",...f}=e,y=(0,s.jH)(l),[v,m]=(0,u.i)({prop:r,onChange:n,defaultProp:o});return(0,c.jsx)(k,{scope:a,baseId:(0,h.B)(),value:v,onValueChange:m,orientation:i,dir:y,activationMode:p,children:(0,c.jsx)(d.sG.div,{dir:y,"data-orientation":i,...f,ref:t})})});b.displayName=p;var A="TabsList",g=r.forwardRef((e,t)=>{let{__scopeTabs:a,loop:r=!0,...n}=e,o=m(A,a),l=v(a);return(0,c.jsx)(i.bL,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:r,children:(0,c.jsx)(d.sG.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:t})})});g.displayName=A;var M="TabsTrigger",w=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,disabled:o=!1,...l}=e,s=m(M,a),u=v(a),h=F(s.baseId,r),p=j(s.baseId,r),f=r===s.value;return(0,c.jsx)(i.q7,{asChild:!0,...u,focusable:!o,active:f,children:(0,c.jsx)(d.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":p,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...l,ref:t,onMouseDown:(0,n.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,n.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,n.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;f||o||!e||s.onValueChange(r)})})})});w.displayName=M;var x="TabsContent",R=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:n,forceMount:o,children:i,...s}=e,u=m(x,a),h=F(u.baseId,n),p=j(u.baseId,n),f=n===u.value,y=r.useRef(f);return r.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(l.C,{present:o||f,children:a=>{let{present:r}=a;return(0,c.jsx)(d.sG.div,{"data-state":f?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":h,hidden:!r,id:p,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:y.current?"0s":void 0},children:r&&i})}})});function F(e,t){return"".concat(e,"-trigger-").concat(t)}function j(e,t){return"".concat(e,"-content-").concat(t)}R.displayName=x;var C=b,I=g,D=w,L=R},65064:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},68718:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},74601:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},79311:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},89196:(e,t,a)=>{a.d(t,{RG:()=>g,bL:()=>D,q7:()=>L});var r=a(12115),n=a(85185),o=a(82284),i=a(6101),l=a(46081),d=a(61285),s=a(63655),u=a(39033),h=a(5845),c=a(94315),p=a(95155),f="rovingFocusGroup.onEntryFocus",y={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[k,m,b]=(0,o.N)(v),[A,g]=(0,l.A)(v,[b]),[M,w]=A(v),x=r.forwardRef((e,t)=>(0,p.jsx)(k.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(k.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(R,{...e,ref:t})})}));x.displayName=v;var R=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:l=!1,dir:d,currentTabStopId:v,defaultCurrentTabStopId:k,onCurrentTabStopIdChange:b,onEntryFocus:A,preventScrollOnEntryFocus:g=!1,...w}=e,x=r.useRef(null),R=(0,i.s)(t,x),F=(0,c.jH)(d),[j=null,C]=(0,h.i)({prop:v,defaultProp:k,onChange:b}),[D,L]=r.useState(!1),T=(0,u.c)(A),q=m(a),z=r.useRef(!1),[E,G]=r.useState(0);return r.useEffect(()=>{let e=x.current;if(e)return e.addEventListener(f,T),()=>e.removeEventListener(f,T)},[T]),(0,p.jsx)(M,{scope:a,orientation:o,dir:F,loop:l,currentTabStopId:j,onItemFocus:r.useCallback(e=>C(e),[C]),onItemShiftTab:r.useCallback(()=>L(!0),[]),onFocusableItemAdd:r.useCallback(()=>G(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>G(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:D||0===E?-1:0,"data-orientation":o,...w,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,n.m)(e.onMouseDown,()=>{z.current=!0}),onFocus:(0,n.m)(e.onFocus,e=>{let t=!z.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(f,y);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=q().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),g)}}z.current=!1}),onBlur:(0,n.m)(e.onBlur,()=>L(!1))})})}),F="RovingFocusGroupItem",j=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:i=!1,tabStopId:l,...u}=e,h=(0,d.B)(),c=l||h,f=w(F,a),y=f.currentTabStopId===c,v=m(a),{onFocusableItemAdd:b,onFocusableItemRemove:A}=f;return r.useEffect(()=>{if(o)return b(),()=>A()},[o,b,A]),(0,p.jsx)(k.ItemSlot,{scope:a,id:c,focusable:o,active:i,children:(0,p.jsx)(s.sG.span,{tabIndex:y?0:-1,"data-orientation":f.orientation,...u,ref:t,onMouseDown:(0,n.m)(e.onMouseDown,e=>{o?f.onItemFocus(c):e.preventDefault()}),onFocus:(0,n.m)(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:(0,n.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,a){var r;let n=(r=e.key,"rtl"!==a?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return C[n]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();let r=a.indexOf(e.currentTarget);a=f.loop?function(e,t){return e.map((a,r)=>e[(t+r)%e.length])}(a,r+1):a.slice(r+1)}setTimeout(()=>I(a))}})})})});j.displayName=F;var C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}var D=x,L=j},97990:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])}}]);