p-backlog 0.8.0 → 0.9.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.
- package/CHANGELOG.md +55 -0
- package/README.md +13 -7
- package/README.ru.md +13 -6
- package/dist/cli.js +1887 -1634
- package/dist/web/assets/CodeTab-DvFAuZ83.js +1 -0
- package/dist/web/assets/CostTab-1Rdp5nwz.js +1 -0
- package/dist/web/assets/EffectTab-8aARbrne.js +1 -0
- package/dist/web/assets/Figure-CCcsLfB5.js +1 -0
- package/dist/web/assets/OverviewTab-DvBBhF85.js +1 -0
- package/dist/web/assets/QualityTab-TBeOxc7b.js +1 -0
- package/dist/web/assets/ShareBar-C_mQiINj.js +1 -0
- package/dist/web/assets/StatsPage-B5K4_4Wb.css +1 -0
- package/dist/web/assets/StatsPage-DtpkiP-4.js +1 -0
- package/dist/web/assets/StatsPage.module-DrfzjXrP.js +1 -0
- package/dist/web/assets/StatsTabState-BmkJh8eP.js +1 -0
- package/dist/web/assets/StatsTable-B9Rm04sJ.css +1 -0
- package/dist/web/assets/{StatsTable-Cgps5a7q.js → StatsTable-C5qAHApf.js} +1 -1
- package/dist/web/assets/UnavailableRepos-ctosBCJf.js +1 -0
- package/dist/web/assets/cx-DvgIdypj.js +55 -0
- package/dist/web/assets/index-NfqY6Vxd.js +2 -0
- package/dist/web/assets/start-BG-1CZwx.css +1 -0
- package/dist/web/assets/start-jnWYnN9h.js +41 -0
- package/dist/web/assets/{use-grain-panel-BGlDN-LS.js → use-grain-panel-DRZkQL7T.js} +3 -3
- package/dist/web/assets/{value-dot-CtJcBhqS.js → value-dot-BJdkleLN.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +5 -3
- package/skill/backlog/SKILL.md +20 -14
- package/skill/backlog-en/SKILL.md +22 -15
- package/dist/web/assets/CodeTab-Bxau23jK.js +0 -1
- package/dist/web/assets/CostTab-DAg9JKi5.js +0 -1
- package/dist/web/assets/EffectTab-DOyEtT1Y.js +0 -1
- package/dist/web/assets/Figure-C7wdv_hC.js +0 -1
- package/dist/web/assets/OverviewTab-O4vRhy4D.js +0 -1
- package/dist/web/assets/QualityTab-BwxhR0Ug.js +0 -1
- package/dist/web/assets/ShareBar-r80rkujo.js +0 -1
- package/dist/web/assets/StatsPage-CHUVlZXv.css +0 -1
- package/dist/web/assets/StatsPage-DxV4wLv5.js +0 -1
- package/dist/web/assets/StatsPage.module-DxtnhZOJ.js +0 -1
- package/dist/web/assets/StatsTabState-UUAoUbji.js +0 -1
- package/dist/web/assets/StatsTable-Z9x-Xaha.css +0 -1
- package/dist/web/assets/UnavailableRepos-Dzu7etxJ.js +0 -1
- package/dist/web/assets/cx-D_DWAtWj.js +0 -55
- package/dist/web/assets/index-B94Cizd8.js +0 -2
- package/dist/web/assets/start-B1ddmC3G.js +0 -41
- package/dist/web/assets/start-C3ACBbJw.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as e,d as t,on as n,ut as r}from"./cx-DvgIdypj.js";import{a as i,i as a,n as o,r as s}from"./StatsTabState-BmkJh8eP.js";import{t as c}from"./ShareBar-C_mQiINj.js";import{t as l}from"./StatsPage.module-DrfzjXrP.js";import{t as u}from"./UnavailableRepos-ctosBCJf.js";var d={churnRow:`_churnRow_ledt8_1`,densityRow:`_densityRow_ledt8_8`},f=n();function p({churn:t,period:n}){let{stats:r}=e(),o=a(),l=t[0]?.score??1;return(0,f.jsxs)(i,{title:r.churnTitle,period:o.of(`churn`,n),children:[(0,f.jsx)(`p`,{className:s.muted,children:r.churnHint}),t.length===0?(0,f.jsx)(`p`,{className:s.muted,children:r.churnEmpty}):(0,f.jsx)(`ul`,{className:s.rows,children:t.map(e=>(0,f.jsxs)(`li`,{className:d.churnRow,children:[(0,f.jsx)(`code`,{className:s.rowLabel,children:e.label}),(0,f.jsx)(`span`,{className:s.rowValue,children:r.commits(e.commits)}),(0,f.jsx)(`span`,{className:s.rowValue,children:r.churnTasks(e.tasks,e.weight)}),(0,f.jsx)(c,{share:e.score/l})]},e.label))})]})}function m({density:t}){let{stats:n}=e();return(0,f.jsx)(i,{title:n.densityTitle,period:n.periodNow,children:t.projects.length===0?(0,f.jsx)(`p`,{className:s.muted,children:n.noCodeData}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(h,{rows:t.projects.map(e=>({key:e.projectId,label:e.name,row:e}))}),t.folders.length>0&&(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`h3`,{className:s.subTitle,children:n.folders}),(0,f.jsx)(h,{rows:t.folders.map(e=>({key:e.label,label:(0,f.jsx)(`code`,{children:e.label}),row:e}))})]})]})})}function h({rows:t}){let{stats:n,core:r}=e();return(0,f.jsx)(`ul`,{className:s.rows,children:t.map(({key:e,label:t,row:i})=>(0,f.jsxs)(`li`,{className:d.densityRow,children:[(0,f.jsx)(`span`,{className:s.rowLabel,children:t}),(0,f.jsx)(`span`,{className:s.rowValue,children:r.count(i.lines,`line`)}),(0,f.jsx)(`span`,{className:s.rowValue,children:r.count(i.open,`task`)}),(0,f.jsx)(`span`,{className:s.rowValue,children:i.perKloc===null?`—`:n.perKloc(i.perKloc)})]},e))})}function g(){let{projectId:e}=r(),n=t(`code`,e);return(0,f.jsx)(o,{query:n,children:e=>(0,f.jsx)(_,{report:e})})}function _({report:t}){let{stats:n}=e();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u,{repos:t.unavailableRepos}),(0,f.jsxs)(`div`,{className:l.blocks,children:[(0,f.jsx)(`div`,{className:s.wide,children:(0,f.jsx)(p,{churn:t.churn,period:t.periods.churn})}),(0,f.jsx)(m,{density:t.density})]}),(0,f.jsx)(`p`,{className:l.note,children:n.codeNote})]})}export{g as CodeTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{D as t,M as n,N as r,O as i,i as a,o,on as s,sn as c,ut as l}from"./cx-DvgIdypj.js";import{_ as u,d,h as f,x as p}from"./index-NfqY6Vxd.js";import{a as m,i as h,r as g,t as _}from"./StatsTabState-BmkJh8eP.js";import{t as v}from"./StatsPage.module-DrfzjXrP.js";import{n as y,t as b}from"./Figure-CCcsLfB5.js";import{t as x}from"./StatsTable-C5qAHApf.js";import{A as S,B as C,C as w,D as ee,Dt as T,E as te,F as ne,G as re,H as ie,I as ae,J as oe,K as se,L as ce,M as le,N as ue,O as de,P as fe,Q as pe,R as me,St as he,T as ge,Tt as _e,U as ve,V as ye,X as be,Y as xe,Z as Se,_ as Ce,_t as E,a as we,at as D,b as Te,bt as Ee,c as De,ct as Oe,d as ke,dt as Ae,et as O,f as je,ft as k,g as Me,h as A,ht as Ne,i as j,it as Pe,j as Fe,k as Ie,kt as Le,l as Re,lt as ze,m as Be,mt as Ve,n as He,nt as M,o as Ue,ot as We,p as Ge,pt as N,q as Ke,r as qe,rt as Je,s as Ye,st as P,t as Xe,tt as Ze,u as Qe,ut as F,v as I,vt as $e,wt as L,x as et,xt as R,y as z,yt as tt,z as nt}from"./use-grain-panel-DRZkQL7T.js";import{a as rt,i as it,o as at,r as ot,s as st,t as ct}from"./value-dot-BJdkleLN.js";var B=s();function lt({totals:e,period:a}){let{stats:o}=i(),s=t(),c=h(),l=e=>r(s,e);return(0,B.jsxs)(y,{period:c.of(`lastWeek`,a),children:[(0,B.jsx)(b,{label:o.backlogTokens,value:l(e.tokens),note:o.backlogTokensNote(l(e.hookTokens),l(e.cliTokens))}),(0,B.jsx)(b,{label:o.apiPrice,value:n(s,e.cost),note:e.hasUnpricedTokens?o.unpricedNote:void 0}),(0,B.jsx)(b,{label:o.hookTurns,value:l(e.hookTurns),note:o.hookRunsNote(l(e.hookRuns))}),(0,B.jsx)(b,{label:o.cliCalls,value:l(e.cliRuns)})]})}function ut({models:e,period:n}){let{stats:a}=i(),o=t(),s=h();return(0,B.jsx)(m,{title:a.byModel,period:s.of(`costDays`,n),children:e.length===0?(0,B.jsx)(`p`,{className:g.muted,children:a.noModels}):(0,B.jsx)(x,{label:a.byModel,head:a.modelsHead,rows:e.map(e=>({key:`${e.model}:${e.fast}`,cells:[e.fast?a.fastModel(e.model):e.model,r(o,e.tokens),f(o,e.cost)]}))})})}function dt({commands:e,period:n}){let{stats:a}=i(),o=t(),s=h();return(0,B.jsx)(m,{title:a.commandsTitle,period:s.of(`costDays`,n),children:e.length===0?(0,B.jsx)(`p`,{className:g.muted,children:a.noCommands}):(0,B.jsx)(x,{label:a.commandsTitle,head:a.commandsHead,rows:e.map(e=>({key:e.command,cells:[e.command,r(o,e.runs),a.milliseconds(e.avgMs),a.megabytes(e.avgRssMb),a.megabytes(e.maxRssMb)]}))})})}var ft=(e,t,n)=>re(e,`xAxis`,I(e,t),n),pt=(e,t,n)=>Ke(e,`xAxis`,I(e,t),n),mt=(e,t,n)=>re(e,`yAxis`,z(e,t),n),ht=(e,t,n)=>Ke(e,`yAxis`,z(e,t),n),gt=N([M,ft,mt,pt,ht],(e,t,n,r,i)=>Ae(e,`xAxis`)?We(t,r,!1):We(n,i,!1)),V=N([oe,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),_t=e=>{var t=M(e);return Ae(t,`xAxis`)?`yAxis`:`xAxis`},vt=(e,t)=>_t(e)===`yAxis`?z(e,t):I(e,t),yt=(e,t,n)=>se(e,_t(e),vt(e,t),n),bt=N([V,yt],(e,t)=>{if(e!=null&&t!=null){var n=e.stackId,r=xe(e);if(n!=null&&r!=null){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),xt=N([V,yt],(e,t)=>{if(e!=null&&e.stackId!=null&&t!=null){var n=t[e.stackId];if(n!=null)return n.graphicalItems.map(e=>e.dataKey).filter(tt)}}),St=N([M,ft,mt,pt,ht,bt,pe,gt,V,Se,xt],(e,t,n,r,i,a,o,s,c,l,u)=>{var d=o.chartData,f=o.dataStartIndex,p=o.dataEndIndex;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var m=c.data,h=m&&m.length>0?m:d?.slice(f,p+1);if(h!=null)return Zt({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:f,areaSettings:c,stackedData:a,displayedData:h,chartBaseValue:l,bandSize:s,stackDataKeys:u})}}),H=e(c()),Ct=[`animationElapsedTime`,`isAnimating`,`isEntrance`,`layout`,`isRange`,`stroke`,`connectNulls`],wt=[`id`,`baseLine`];function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(null,arguments)}function Tt(e,t){if(e==null)return{};var n,r,i=Et(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Et(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Dt(e){var t=e.alpha,n=e.baseLine,r=e.points,i=e.strokeWidth,a=r[0]?.x,o=r[r.length-1]?.x;if(!k(a)||!k(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.y||0));return R(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),R(c)?H.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}function Ot(e){var t=e.alpha,n=e.baseLine,r=e.points,i=e.strokeWidth,a=r[0]?.y,o=r[r.length-1]?.y;if(!k(a)||!k(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.x||0));return R(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),R(c)?H.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}function kt(e){var t=e.alpha,n=e.layout,r=e.points,i=e.baseLine,a=e.strokeWidth;return n===`vertical`?H.createElement(Ot,{alpha:t,points:r,baseLine:i,strokeWidth:a}):H.createElement(Dt,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function At(e){var t=e.animationElapsedTime,n=t===void 0?1:t,r=e.isAnimating,i=r!==void 0&&r,a=e.isEntrance,o=a!==void 0&&a,s=e.layout,c=e.isRange,l=e.stroke,u=e.connectNulls,d=Tt(e,Ct),f=s===`vertical`?`vertical`:`horizontal`,p=u??!1,m=de(),h=d.id,g=d.baseLine,_=Tt(d,wt),v=T(_),y=H.createElement(O,U({},d,{id:h,baseLine:g,connectNulls:p,stroke:`none`,className:`recharts-area-area`,layout:f})),b=l!==`none`&&H.createElement(O,U({},v,{className:`recharts-area-curve`,layout:f,type:d.type,connectNulls:p,fill:`none`,stroke:l,points:d.points})),x=l!==`none`&&c&&Array.isArray(g)&&H.createElement(O,U({},v,{className:`recharts-area-curve`,layout:f,type:d.type,connectNulls:p,fill:`none`,stroke:l,points:g}));return o&&(i||n<1)?H.createElement(L,null,H.createElement(`defs`,null,H.createElement(`clipPath`,{id:m},H.createElement(kt,{alpha:n,points:d.points??[],baseLine:g,layout:f,strokeWidth:d.strokeWidth}))),H.createElement(L,{clipPath:`url(#${m})`},y,b,x)):H.createElement(H.Fragment,null,y,b,x)}var jt=[`id`],Mt=[`activeDot`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`fill`,`fillOpacity`,`hide`,`isAnimationActive`,`legendType`,`stroke`,`xAxisId`,`yAxisId`];function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}function Nt(e,t){if(e==null)return{};var n,r,i=Pt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ft(Object(n),!0).forEach(function(t){It(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function It(e,t,n){return(t=Lt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(e){var t=Rt(e,`string`);return typeof t==`symbol`?t:t+``}function Rt(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var zt={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,animationMatchBy:ue,animationInterpolateFn:(e,t)=>e==null?[]:t===1?e.flatMap(e=>e.status===`removed`?[]:[e.next]):e.flatMap(e=>e.status===`matched`?[G(G({},e.next),{},{x:E(e.prev.x,e.next.x,t),y:E(e.prev.y,e.next.y,t)})]:e.status===`added`?[e.next]:[]),connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,shape:At,xAxisId:0,yAxisId:0,zIndex:be.area};function K(e,t){return e&&e!==`none`?e:t}var Bt=e=>{var t=e.dataKey,n=e.name,r=e.stroke,i=e.fill,a=e.legendType;return[{inactive:e.hide,dataKey:t,type:a,color:K(r,i),value:ze(n,t),payload:e}]},Vt=H.memo(e=>{var t=e.dataKey,n=e.data,r=e.stroke,i=e.strokeWidth,a=e.fill,o=e.name,s=e.hide,c=e.unit,l=e.formatter,u=e.tooltipType,d=e.id,f={dataDefinedOnItem:n,getPosition:he,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:ze(o,t),hide:s,type:u,color:K(r,a),unit:c,formatter:l,graphicalItemId:d}};return H.createElement(ne,{tooltipEntrySettings:f})});function Ht(e){var t=e.clipPathId,n=e.points,r=e.props,i=r.needClip,a=r.dot,o=r.dataKey,s=T(r);return H.createElement(st,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function Ut(e){var t=e.showLabels,n=e.children,r=e.points.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return G(G({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return H.createElement(me,{value:t?r:void 0},n)}function Wt(e){var t=e.points,n=e.baseLine,r=e.needClip,i=e.clipPathId,a=e.props,o=e.animationElapsedTime,s=e.isAnimating,c=e.isEntrance,l=a.layout,u=a.type,d=a.stroke,f=a.connectNulls,p=a.isRange,m=a.shape,h=a.id,g=Nt(a,jt),_=G(G({},_e(g)),{},{id:h,points:t,connectNulls:f,type:u,baseLine:n,layout:l,stroke:d,isRange:p,animationElapsedTime:o,isAnimating:s,isEntrance:c});return H.createElement(H.Fragment,null,t?.length>1&&H.createElement(L,{clipPath:r?`url(#clipPath-${i})`:void 0},H.createElement(ae,{option:m,DefaultShape:zt.shape,shapeProps:_})),H.createElement(Ht,{points:t,props:g,clipPathId:i}))}function Gt(e,t,n){if(R(e)){var r=R(t)?t:void 0;return E(r,e,n)}if(Ee(e)||$e(e)){var i=R(t)?t:void 0;return E(i,0,n)}return e}function Kt(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=e.previousPointsRef,a=e.previousBaselineRef,o=r.points,s=r.baseLine,c=r.isAnimationActive,l=r.animationBegin,u=r.animationDuration,d=r.animationEasing,f=r.animationMatchBy,p=r.animationInterpolateFn,m=(0,H.useMemo)(()=>({points:o,baseLine:s}),[o,s]),h=Fe(m,a),g=Je(),_=S(r.onAnimationStart,r.onAnimationEnd),v=_.isAnimating,y=_.handleAnimationStart,b=_.handleAnimationEnd,x=h.startValue;if(g==null)return null;var C=Array.isArray(s)&&Array.isArray(x)?le(x,s,f):Array.isArray(s)?le(null,s,f):null;return H.createElement(Ie,{animationInput:m,animationIdPrefix:`recharts-area-`,items:o,previousItemsRef:i,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,onAnimationStart:y,onAnimationEnd:b,animationInterpolateFn:p,animationMatchBy:f,layout:g},(e,i,a)=>{var c=i===1?s:Array.isArray(s)?p(C,i,g):a?s:Gt(s,x,i);return h.syncStepValue(c,i),H.createElement(Ut,{showLabels:!v,points:o},r.children,H.createElement(Wt,{points:e,baseLine:c,needClip:t,clipPathId:n,props:r,animationElapsedTime:i,isAnimating:v||i<1,isEntrance:a}),H.createElement(nt,{label:r.label}))})}function qt(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=(0,H.useRef)(null),a=(0,H.useRef)();return H.createElement(Kt,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}var Jt=class extends H.PureComponent{render(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,o=e.left,s=e.needClip,c=e.xAxisId,l=e.yAxisId,u=e.width,d=e.height,f=e.id,p=e.baseLine,m=e.zIndex;if(t)return null;var h=Le(`recharts-area`,i),g=f,_=rt(n),v=_.r,y=_.strokeWidth,b=ce(n),x=v*2+y,S=s?`url(#clipPath-${b?``:`dots-`}${g})`:void 0;return H.createElement(ie,{zIndex:m},H.createElement(L,{className:h},s&&H.createElement(`defs`,null,H.createElement(Te,{clipPathId:g,xAxisId:c,yAxisId:l}),!b&&H.createElement(`clipPath`,{id:`clipPath-dots-${g}`},H.createElement(`rect`,{x:o-x/2,y:a-x/2,width:u+x,height:d+x}))),H.createElement(qt,{needClip:s,clipPathId:g,props:this.props})),H.createElement(at,{points:r,mainColor:K(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}),this.props.isRange&&Array.isArray(p)&&H.createElement(at,{points:p,mainColor:K(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}))}};function Yt(e){var t=e.activeDot,n=e.animationBegin,r=e.animationDuration,i=e.animationEasing,a=e.connectNulls,o=e.dot,s=e.fill,c=e.fillOpacity,l=e.hide,u=e.isAnimationActive,d=e.legendType,f=e.stroke,p=e.xAxisId,m=e.yAxisId,h=Nt(e,Mt),g=Pe(),_=ve(),v=et(p,m).needClip,y=D(),b=Ve(t=>St(t,e.id,y))??{},x=b.points,S=b.isRange,C=b.baseLine,w=ge();if(g!==`horizontal`&&g!==`vertical`||w==null||_!==`AreaChart`&&_!==`ComposedChart`)return null;var ee=w.height,T=w.width,te=w.x,ne=w.y;return!x||!x.length?null:H.createElement(Jt,W({},h,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:C,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:ee,hide:l,layout:g,isAnimationActive:u,isRange:S,legendType:d,needClip:v,points:x,stroke:f,width:T,left:te,top:ne,xAxisId:p,yAxisId:m}))}var Xt=(e,t,n,r,i)=>{var a=n??t;if(R(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]};function Zt(e){var t=e.areaSettings,n=t.connectNulls,r=t.baseValue,i=t.dataKey,a=e.stackedData,o=e.layout,s=e.chartBaseValue,c=e.xAxis,l=e.yAxis,u=e.displayedData,d=e.dataStartIndex,f=e.xAxisTicks,p=e.yAxisTicks,m=e.bandSize,h=e.stackDataKeys,g=a&&a.length,_=Xt(o,s,r,c,l),v=o===`horizontal`,y=!1,b=u.map((e,t)=>{var r;if(g)r=a[d+t];else{var o=F(e,i);Array.isArray(o)?(r=o,y=!0):r=[_,o]}var s=r?.[1]??null,u=F(e,i),b=g&&u==null&&h!=null&&h.length>0&&h.every(t=>F(e,t)==null),x=s==null||g&&!n&&u==null||b;return v?{x:P({axis:c,ticks:f,bandSize:m,entry:e,index:t}),y:x?null:l.scale.map(s)??null,value:r,payload:e}:{x:x?null:c.scale.map(s)??null,y:P({axis:l,ticks:p,bandSize:m,entry:e,index:t}),value:r,payload:e}});return{points:b,baseLine:(g||y?b.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:t!=null&&e.y!=null?l.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:c.scale.map(t)??null,y:e.y,payload:e.payload}}):v?l.scale.map(_):c.scale.map(_))??0,isRange:y}}function Qt(e){var t=Ne(e,zt),n=D();return H.createElement(ee,{id:t.id,type:`area`},e=>H.createElement(H.Fragment,null,H.createElement(fe,{legendPayload:Bt(t)}),H.createElement(Vt,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:e}),H.createElement(te,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Oe(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),H.createElement(Yt,W({},t,{id:e}))))}var q=H.memo(Qt,Ze);q.displayName=`Area`;var $t=[`axis`],en=(0,H.forwardRef)((e,t)=>H.createElement(Be,{chartName:`AreaChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:$t,tooltipPayloadSearcher:ye,categoricalChartProps:e,ref:t})),J=`var(--chart-line-bright)`,Y=`var(--chart-line-blue)`;function tn(e,t){return He(n=>({title:je(t,n.at),rows:[{label:e.processMemory,value:e.megabytes(n.rssMb),shape:`line`,color:J},{label:e.jsHeap,value:e.megabytes(n.heapUsedMb),shape:`dashed`,color:Y}]}))}function nn(){let{stats:e}=i(),n=t(),r=(0,H.useMemo)(()=>tn(e,n),[e,n]),a=[{label:e.processMemory,shape:`line`,color:J},{label:e.jsHeap,shape:`dashed`,color:Y}],s=o().data?.samples??[],c=s.at(-1)?.rssMb??null,l=s.length===0?null:Math.max(...s.map(e=>e.rssMb));return(0,B.jsxs)(m,{title:e.serverMemory,children:[(0,B.jsx)(`p`,{className:g.muted,children:e.memoryRestartNote}),(0,B.jsx)(Ge,{summary:e.memorySummary(e.megabytes(c),e.megabytes(l)),legend:a,children:(0,B.jsxs)(en,{data:s,margin:Ue,"aria-label":e.chartLabel(e.serverMemory,`sample`),children:[(0,B.jsx)(w,{vertical:!1}),(0,B.jsx)(Me,{dataKey:`at`,tickFormatter:e=>Qe(n,e),...Ye}),(0,B.jsx)(A,{tickFormatter:t=>e.megabytes(t),width:60,...j}),(0,B.jsx)(C,{content:r,...De,cursor:{stroke:`var(--line-strong)`}}),(0,B.jsx)(q,{dataKey:`rssMb`,stroke:J,strokeWidth:3,fill:J,fillOpacity:qe,dot:!1,isAnimationActive:!1}),(0,B.jsx)(q,{dataKey:`heapUsedMb`,stroke:Y,strokeWidth:2,strokeDasharray:`5 4`,fill:`none`,dot:!1,isAnimationActive:!1})]})})]})}var X=`var(--chart-bar-warm)`,Z=`var(--chart-bar-neutral)`,Q=`var(--chart-line-green)`,$=`var(--chart-line-yellow)`;function rn(e,t,i){return He(a=>({title:e.periodOf(i,d(t,a.start)),rows:[{label:e.hookTurnsTooltip,value:e.tokens(a.hookTokens),shape:`bar`,color:X},{label:e.cliOutput,value:e.tokens(a.cliTokens),shape:`bar`,color:Z},{label:e.apiPriceTooltip,value:a.hasUnpricedTokens&&a.cost!==null?`${n(t,a.cost)} (${e.unpricedNote})`:n(t,a.cost)},{label:e.hookRuns,value:r(t,a.hookRuns),shape:`line`,color:Q},{label:e.otherCommands,value:r(t,a.cliRuns),shape:`dashed`,color:$}]}))}function an({day:e,...t}){return{start:e,...t}}function on({weeks:e,days:n,windows:r}){let{stats:a}=i(),o=t(),s=(0,H.useMemo)(()=>n.map(an),[n]),{grain:c,periods:l,period:u,toggle:d}=Xe(`spend`,`day`,{weeks:e,days:s},r),f=(0,H.useMemo)(()=>rn(a,o,c),[a,o,c]),p=a.spendBy[c],h=[{label:a.hookTurnTokens,shape:`bar`,color:X},{label:a.cliOutputTokens,shape:`bar`,color:Z},{label:a.hookRuns,shape:`line`,color:Q},{label:a.otherCommands,shape:`dashed`,color:$}],g=e=>ke(o,e);return(0,B.jsx)(m,{title:p,period:u,aside:d,children:(0,B.jsx)(Ge,{summary:sn(a,o,c,l),legend:h,children:(0,B.jsxs)(ot,{data:l,margin:Ue,"aria-label":a.chartLabel(p,c),children:[(0,B.jsx)(w,{vertical:!1}),(0,B.jsx)(Me,{dataKey:`start`,tickFormatter:e=>Re(o,e),...Ye}),(0,B.jsx)(A,{yAxisId:`tokens`,tickFormatter:g,width:60,...j}),(0,B.jsx)(A,{yAxisId:`runs`,orientation:`right`,allowDecimals:!1,tickFormatter:g,width:60,...j}),(0,B.jsx)(C,{content:f,...De}),(0,B.jsx)(Ce,{yAxisId:`tokens`,dataKey:`hookTokens`,stackId:`tokens`,fill:X,isAnimationActive:!1}),(0,B.jsx)(Ce,{yAxisId:`tokens`,dataKey:`cliTokens`,stackId:`tokens`,fill:Z,radius:we,isAnimationActive:!1}),(0,B.jsx)(it,{yAxisId:`runs`,dataKey:`hookRuns`,stroke:Q,strokeWidth:3,dot:ct(Q),isAnimationActive:!1}),(0,B.jsx)(it,{yAxisId:`runs`,dataKey:`cliRuns`,stroke:$,strokeWidth:2,strokeDasharray:`5 4`,dot:ct($),isAnimationActive:!1})]})})})}function sn(e,t,n,i){let a=e=>p(i.map(e)),o=e=>r(t,e);return e.spendSummary({grain:n,periodCount:i.length,hookTokens:a(e=>e.hookTokens),cliTokens:o(a(e=>e.cliTokens)),money:f(t,cn(i)),hookRuns:o(a(e=>e.hookRuns)),cliRuns:o(a(e=>e.cliRuns))})}function cn(e){return e.every(e=>e.cost===null)?null:p(e.map(e=>e.cost??0))}function ln(){let{projectId:e}=l(),t=a(e),{stats:n}=i();return(0,B.jsx)(_,{query:t,children:e=>(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(un,{scan:e.scan}),(0,B.jsx)(fn,{report:e}),(0,B.jsx)(`p`,{className:v.note,children:n.costNote})]})})}function un({scan:e}){let{stats:t}=i(),n=dn(t,e);return(0,B.jsx)(`p`,{className:n===null?`visually-hidden`:v.warning,role:`status`,children:n})}function dn(e,t){return t.listed?t.filesTotal===0?e.noTranscripts:t.bytesLeft>0?e.scanProgress(t.filesDone,t.filesTotal):null:e.scanStarting}function fn({report:e}){let{stats:n}=i(),r=t(),a=pn(e);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(lt,{totals:e.totals,period:e.periods.totals}),a!==null&&(0,B.jsx)(`p`,{className:v.note,children:n.costSince(d(r,a))}),(0,B.jsxs)(`div`,{className:v.blocks,children:[(0,B.jsx)(`div`,{className:g.wide,children:(0,B.jsx)(on,{weeks:e.weeks,days:e.days,windows:e.periods})}),(0,B.jsx)(ut,{models:e.models,period:e.periods.days}),(0,B.jsx)(nn,{}),(0,B.jsx)(`div`,{className:g.wide,children:(0,B.jsx)(dt,{commands:e.commands,period:e.periods.days})})]})]})}function pn({since:e,periods:t}){return e!==null&&u(e)>u(t.weeks.from)?e:null}export{ln as CostTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{A as t,D as n,N as r,O as i,d as a,j as o,k as s,on as c,sn as l,ut as u}from"./cx-DvgIdypj.js";import{d,x as f}from"./index-NfqY6Vxd.js";import{a as p,i as m,n as h,r as g}from"./StatsTabState-BmkJh8eP.js";import{t as _}from"./StatsPage.module-DrfzjXrP.js";import{t as v}from"./UnavailableRepos-ctosBCJf.js";import{n as y,t as b}from"./Figure-CCcsLfB5.js";import{t as x}from"./StatsTable-C5qAHApf.js";import{B as S,C,V as w,_ as T,a as E,c as D,d as O,g as k,h as A,i as j,l as M,m as N,n as P,o as F,p as I,s as L,t as R}from"./use-grain-panel-DRZkQL7T.js";var z=e(l()),B=[`axis`,`item`],ee=(0,z.forwardRef)((e,t)=>z.createElement(N,{chartName:`BarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:B,tooltipPayloadSearcher:w,categoricalChartProps:e,ref:t})),V={steps:`_steps_advmo_1`,now:`_now_advmo_13`},H=c();function U({totals:e}){let{stats:t}=i(),r=n();return(0,H.jsx)(p,{title:t.explainerTitle,children:(0,H.jsxs)(`ol`,{className:V.steps,children:[(0,H.jsx)(`li`,{children:t.explainerTask}),(0,H.jsxs)(`li`,{children:[t.explainerFixed,(0,H.jsx)(W,{children:t.fixedNow(e.fixedTasks,e.fixedLines)})]}),(0,H.jsxs)(`li`,{children:[t.explainerPending,(0,H.jsx)(W,{children:G(t,e)})]}),(0,H.jsxs)(`li`,{children:[t.explainerTests,(0,H.jsx)(W,{children:t.codeAndTests(e)})]}),(0,H.jsxs)(`li`,{children:[t.explainerNoise,(0,H.jsx)(W,{children:K(t,r,e)})]})]})})}function W({children:e}){let{stats:t}=i();return(0,H.jsxs)(`span`,{className:V.now,children:[t.now,` `,e]})}function G(e,t){return t.openTasks===0?e.noPending:t.estimatedLines===null?e.pendingWithoutEstimate(t.openTasks):e.pendingEstimated(t.openTasks,t.estimatedLines,t.estimatedLines/t.openTasks)}function K(e,n,i){if(i.estimatedLines===null&&i.openTasks>0)return e.estimateLater;if(i.noiseShare===null)return e.noCommitsSinceAdoption;let a=e=>t(n,e,i.estimatedLines);return e.noiseFormula(a(i.deferredLines),r(n,i.realLines),a(i.estimatedLines??0),o(i.noiseShare,i.estimatedLines))}var q=`var(--chart-bar-neutral)`,J=`var(--accent-ink)`,Y=6,X=3;function Z(e,n,i,a){return P(o=>{let c=e=>t(i,e,o.estimatedLines);return{title:e.periodOf(a,d(i,o.start)),rows:[{label:e.onTopicSeries,value:n.count(Math.round(o.onTopicLines),`line`),shape:`bar`,color:q},{label:e.deferredSeries,value:c(o.deferredLines),shape:`hatch`,color:J},{label:e.codeLines,value:c(s(o))},{label:e.testLines,value:c(o.deferredTestLines)},{label:e.deferredTasks,value:r(i,o.deferredTasks)}]}})}function Q({periods:e,totals:t,grain:r}){let{stats:a,core:o}=i(),s=n(),c=(0,z.useMemo)(()=>Z(a,o,s,r),[a,o,s,r]),l=(0,z.useId)(),u=[{label:a.onTopicSeries,shape:`bar`,color:q},{label:a.deferredSeries,shape:`hatch`,color:J}];return(0,H.jsx)(I,{summary:$(a,r,e,t),legend:u,children:(0,H.jsxs)(ee,{data:e,margin:F,"aria-label":a.chartLabel(a.effectTitle,r),children:[(0,H.jsx)(`defs`,{children:(0,H.jsxs)(`pattern`,{id:l,width:Y,height:Y,patternUnits:`userSpaceOnUse`,patternTransform:`rotate(45)`,children:[(0,H.jsx)(`rect`,{width:Y,height:Y,fill:`var(--surface-raised)`}),(0,H.jsx)(`line`,{x1:0,y1:0,x2:0,y2:Y,stroke:J,strokeWidth:X})]})}),(0,H.jsx)(C,{vertical:!1}),(0,H.jsx)(k,{dataKey:`start`,tickFormatter:e=>M(s,e),...L}),(0,H.jsx)(A,{tickFormatter:e=>O(s,e),width:60,...j}),(0,H.jsx)(S,{content:c,...D}),(0,H.jsx)(T,{dataKey:`onTopicLines`,stackId:`lines`,fill:q,isAnimationActive:!1}),(0,H.jsx)(T,{dataKey:`deferredLines`,stackId:`lines`,fill:`url(#${l})`,radius:E,isAnimationActive:!1})]})})}function $(e,t,n,r){if(t===`week`)return e.effectSummary(r.realLines,e.linesText(r.deferredLines,r.estimatedLines),o(r.noiseShare,r.estimatedLines));let i=e=>f(n.map(e)),a=e.linesText(i(e=>e.deferredLines),i(e=>e.estimatedLines??0));return e.effectDaysSummary(n.length,Math.round(i(e=>e.onTopicLines)),a)}function te({totals:e,period:t}){let{stats:a}=i(),s=n(),c=m();return(0,H.jsxs)(y,{period:c.labelled(a.effectWindow,t),children:[(0,H.jsx)(b,{label:a.keptOut,value:a.linesText(e.deferredLines,e.estimatedLines),note:`${ne(a,s,e)} · ${a.codeAndTests(e)}`}),(0,H.jsx)(b,{label:a.noiseWithoutBacklog,value:o(e.noiseShare,e.estimatedLines),note:a.noiseNote}),(0,H.jsx)(b,{label:a.deferredToBacklog,value:r(s,e.deferredTasks),note:a.deferredNote(e.fixedTasks,e.openTasks)}),(0,H.jsx)(b,{label:a.pullRequestLines,value:r(s,e.realLines)})]})}function ne(e,n,i){let a=r(n,i.fixedLines);return i.estimatedLines===null?e.keptOutPending(a):e.keptOutEstimated(a,t(n,i.estimatedLines,i.estimatedLines))}function re({weeks:e,days:t,windows:n,totals:r}){let{stats:a}=i(),{grain:o,periods:s,period:c,toggle:l}=R(`effect`,`week`,{weeks:e,days:t},n);return(0,H.jsx)(p,{title:a.effectTitle,period:c,aside:l,children:(0,H.jsx)(Q,{periods:s,totals:r,grain:o})})}function ie({projects:e,period:a}){let{stats:s}=i(),c=n(),l=m();return(0,H.jsx)(p,{title:s.byProject,period:l.labelled(s.effectWindow,a),children:e.length===0?(0,H.jsx)(`p`,{className:g.muted,children:s.noCodeData}):(0,H.jsx)(x,{label:s.byProject,head:s.projectsHead,rows:e.map(e=>({key:e.projectId,cells:[e.name,e.deferredTasks,r(c,e.fixedLines),e.estimatedLines===null?`—`:t(c,e.estimatedLines,e.estimatedLines),r(c,e.realLines),o(e.noiseShare,e.estimatedLines)]}))})})}function ae(){let{projectId:e}=u(),t=a(`effect`,e);return(0,H.jsx)(h,{query:t,children:e=>(0,H.jsx)(oe,{report:e})})}function oe({report:e}){let{stats:t}=i(),n=e.totals.deferredTasks===0;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(v,{repos:e.unavailableRepos}),n&&(0,H.jsx)(`p`,{className:_.note,children:t.noDeferredTasks}),(0,H.jsx)(te,{totals:e.totals,period:e.periods.weeks}),(0,H.jsxs)(`div`,{className:_.blocks,children:[(0,H.jsx)(`div`,{className:g.wide,children:(0,H.jsx)(re,{weeks:e.weeks,days:e.days,windows:e.periods,totals:e.totals})}),(0,H.jsx)(`div`,{className:g.wide,children:(0,H.jsx)(ie,{projects:e.projects,period:e.periods.weeks})}),(0,H.jsx)(`div`,{className:g.wide,children:(0,H.jsx)(U,{totals:e.totals})})]})]})}export{ae as EffectTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{on as t,sn as n,t as r}from"./cx-DvgIdypj.js";import{t as i}from"./StatsPage.module-DrfzjXrP.js";var a=e(n(),1),o=t(),s={growth:i.growth,decline:i.decline};function c({label:e,value:t,note:n,tone:c,trend:l}){let u=(0,a.useId)();return(0,o.jsxs)(`div`,{className:i.figure,role:`group`,"aria-labelledby":u,children:[(0,o.jsx)(`span`,{id:u,className:i.figureLabel,children:e}),(0,o.jsx)(`span`,{className:r(i.figureValue,c!==void 0&&s[c]),children:t}),l!==void 0&&(0,o.jsxs)(`span`,{className:r(i.figureTrend,s[l.tone]),children:[(0,o.jsx)(`span`,{"aria-hidden":`true`,children:l.text}),(0,o.jsx)(`span`,{className:`visually-hidden`,children:l.speech})]}),n!==void 0&&(0,o.jsx)(`span`,{className:i.figureNote,children:n})]})}function l({period:e,children:t}){let n=(0,a.useId)();return(0,o.jsxs)(`div`,{role:`group`,"aria-labelledby":n,className:i.figureGroup,children:[(0,o.jsx)(`p`,{id:n,className:i.note,children:e}),(0,o.jsx)(`div`,{className:i.totals,children:t})]})}export{l as n,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{D as t,I as n,L as r,N as i,O as a,R as o,d as s,on as c,sn as l,t as u,ut as d}from"./cx-DvgIdypj.js";import{d as f,x as p}from"./index-NfqY6Vxd.js";import{c as m,u as h}from"./start-jnWYnN9h.js";import{a as g,i as _,n as v,r as y}from"./StatsTabState-BmkJh8eP.js";import{t as b}from"./ShareBar-C_mQiINj.js";import{t as x}from"./StatsPage.module-DrfzjXrP.js";import{t as S}from"./Figure-CCcsLfB5.js";import{B as C,C as w,_ as T,a as E,c as D,d as O,g as k,h as A,i as j,l as M,n as N,o as P,p as F,s as I,t as L}from"./use-grain-panel-DRZkQL7T.js";import{i as R,r as z,t as B}from"./value-dot-BJdkleLN.js";var V={columns:`_columns_1m2da_1`,countList:`_countList_1m2da_7`,ageRows:`_ageRows_1m2da_11`,ageRow:`_ageRow_1m2da_11`,ageLabel:`_ageLabel_1m2da_25`,ageTrack:`_ageTrack_1m2da_29`,ageSegment:`_ageSegment_1m2da_37`,legend:`_legend_1m2da_41`,legendItem:`_legendItem_1m2da_50`,share:`_share_1m2da_61`,critical:`_critical_1m2da_65`,high:`_high_1m2da_69`,medium:`_medium_1m2da_73`,low:`_low_1m2da_77`,done:`_done_1m2da_81`,fixed:`_fixed_1m2da_85`,obsolete:`_obsolete_1m2da_89`,duplicate:`_duplicate_1m2da_93`,cancelled:`_cancelled_1m2da_97`,unknown:`_unknown_1m2da_101`,shareBar:`_shareBar_1m2da_105`,alarm:`_alarm_1m2da_117`,alarmOn:`_alarmOn_1m2da_123`},H=c();function U(e,t){let n=[...o].reverse().filter(e=>t[e]>0).map(n=>`${e.priorityCounts[n]} ${t[n]}`);return n.length===0?``:` (${n.join(`, `)})`}function ee({age:e}){let{stats:t,core:n}=a(),r=e.buckets.map(({bucket:e,byPriority:t})=>({bucket:e,total:p(o.map(e=>t[e])),byPriority:t})),i=Math.max(1,...r.map(({total:e})=>e)),s=r.map(({bucket:e,total:n,byPriority:r})=>`${t.ageBuckets[e]}: ${n}${U(t,r)}`).join(`; `);return(0,H.jsxs)(g,{title:t.openAge,period:t.periodNow,children:[(0,H.jsx)(`div`,{role:`img`,"aria-label":s,className:V.ageRows,children:r.map(({bucket:e,total:n,byPriority:r})=>(0,H.jsxs)(`div`,{className:V.ageRow,"aria-hidden":`true`,children:[(0,H.jsx)(`span`,{className:V.ageLabel,children:t.ageBuckets[e]}),(0,H.jsx)(`span`,{className:V.ageTrack,children:o.map(e=>(0,H.jsx)(`span`,{className:u(V.ageSegment,V[e]),style:{width:`${r[e]/i*100}%`}},e))}),(0,H.jsx)(`span`,{className:y.rowValue,children:n})]},e))}),(0,H.jsx)(`p`,{className:V.legend,children:[...o].reverse().map(e=>(0,H.jsx)(`span`,{className:u(V.legendItem,V[e]),children:n.priorityLabel(e)},e))}),(0,H.jsx)(`p`,{className:u(V.alarm,e.urgentStale>0&&V.alarmOn),children:t.urgentStale(e.urgentStale)})]})}var W={done:({stats:e})=>e.closingReasons.done,fixed:({core:e})=>e.resolutionLabel(`fixed`),obsolete:({core:e})=>e.resolutionLabel(`obsolete`),duplicate:({core:e})=>e.resolutionLabel(`duplicate`),cancelled:({stats:e})=>e.closingReasons.cancelled,unknown:({stats:e})=>e.closingReasons.unknown},G=Object.keys(W);function te({closing:e,period:t}){let r=a(),i=_(),{stats:o}=r,s=p(G.map(t=>e.byReason[t])),c=G.map(t=>`${W[t](r)}: ${e.byReason[t]}`).join(`; `);return(0,H.jsxs)(g,{title:o.closing,period:i.of(`weeks`,t),children:[(0,H.jsx)(`div`,{role:`img`,"aria-label":c,className:V.shareBar,children:G.map(t=>(0,H.jsx)(`span`,{className:u(V.share,V[t]),style:{width:s===0?0:`${e.byReason[t]/s*100}%`}},t))}),(0,H.jsx)(`ul`,{className:y.rows,children:G.map(t=>(0,H.jsxs)(`li`,{className:y.row,children:[(0,H.jsx)(`span`,{className:u(V.legendItem,V[t]),children:W[t](r)}),(0,H.jsx)(`span`,{className:y.rowValue,children:e.byReason[t]})]},t))}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:y.subTitle,children:o.noiseAndReopens}),(0,H.jsxs)(`ul`,{className:y.rows,children:[(0,H.jsx)(K,{label:o.duplicatesAmongClosed,value:n(e.duplicateShare)}),(0,H.jsx)(K,{label:o.noSourceAmongCreated,value:n(e.withoutSourceShare)}),(0,H.jsx)(K,{label:o.reopened,value:e.reopened})]})]})]})}function K({label:e,value:t}){return(0,H.jsxs)(`li`,{className:y.row,children:[(0,H.jsx)(`span`,{className:y.rowLabel,children:e}),(0,H.jsx)(`span`,{className:y.rowValue,children:t})]})}function ne({hotspots:e,listPath:t}){let{stats:n}=a();return(0,H.jsx)(g,{title:n.hotspots,period:n.periodNow,children:(0,H.jsxs)(`div`,{className:V.columns,children:[(0,H.jsx)(q,{title:n.folders,empty:n.noSourceFolders,items:e.folders.map(({label:e,count:t})=>({key:e,label:(0,H.jsx)(`code`,{children:e}),count:t}))}),(0,H.jsx)(q,{title:n.tags,empty:n.noTags,items:e.tags.map(({tag:e,count:n})=>({key:e,label:(0,H.jsxs)(h,{to:{pathname:t,search:`tag=${encodeURIComponent(e)}`},children:[`#`,e]}),count:n}))})]})})}function q({title:e,empty:t,items:n}){let r=Math.max(1,...n.map(e=>e.count));return(0,H.jsxs)(`div`,{className:V.countList,children:[(0,H.jsx)(`h3`,{className:y.subTitle,children:e}),n.length===0?(0,H.jsx)(`p`,{className:y.muted,children:t}):(0,H.jsx)(`ul`,{className:y.rows,children:n.map(e=>(0,H.jsxs)(`li`,{className:y.countRow,children:[(0,H.jsx)(`span`,{className:y.rowLabel,children:e.label}),(0,H.jsx)(`span`,{className:y.rowValue,children:e.count}),(0,H.jsx)(b,{share:e.count/r})]},e.key))})]})}var J=e(l(),1),Y=`var(--chart-bar-neutral)`,X=`var(--chart-bar-green)`,Z=`var(--chart-line-bright)`;function re(e,t,n){return N(r=>({title:e.periodOf(n,f(t,r.start)),rows:[{label:e.flowCreated,value:i(t,r.created),shape:`bar`,color:Y},{label:e.flowClosed,value:i(t,r.closed),shape:`bar`,color:X},{label:e.flowOpen,value:i(t,r.openAtEnd),shape:`line`,color:Z}]}))}function ie({weeks:e,days:n,windows:r}){let{stats:i}=a(),o=t(),{grain:s,periods:c,period:l,toggle:u}=L(`flow`,`week`,{weeks:e,days:n},r),d=(0,J.useMemo)(()=>re(i,o,s),[i,o,s]),f=[{label:i.flowCreated,shape:`bar`,color:Y},{label:i.flowClosed,shape:`bar`,color:X},{label:i.flowOpenAtEnd[s],shape:`line`,color:Z}],m=i.debtBy[s],h=i.flowSummary({grain:s,periodCount:c.length,created:p(c.map(e=>e.created)),closed:p(c.map(e=>e.closed)),openNow:c.at(-1)?.openAtEnd??0}),_=e=>O(o,e);return(0,H.jsx)(g,{title:m,period:l,aside:u,children:(0,H.jsx)(F,{summary:h,legend:f,children:(0,H.jsxs)(z,{data:c,margin:P,"aria-label":i.chartLabel(m,s),children:[(0,H.jsx)(w,{vertical:!1}),(0,H.jsx)(k,{dataKey:`start`,tickFormatter:e=>M(o,e),...I}),(0,H.jsx)(A,{yAxisId:`flow`,allowDecimals:!1,tickFormatter:_,width:60,...j}),(0,H.jsx)(A,{yAxisId:`open`,orientation:`right`,allowDecimals:!1,tickFormatter:_,width:60,...j}),(0,H.jsx)(C,{content:d,...D}),(0,H.jsx)(T,{yAxisId:`flow`,dataKey:`created`,fill:Y,radius:E,isAnimationActive:!1}),(0,H.jsx)(T,{yAxisId:`flow`,dataKey:`closed`,fill:X,radius:E,isAnimationActive:!1}),(0,H.jsx)(R,{yAxisId:`open`,dataKey:`openAtEnd`,stroke:Z,strokeWidth:3,dot:B(Z),isAnimationActive:!1})]})})})}var Q=`var(--chart-bar-warm)`;function ae(e,t,n,r){return N(i=>({title:e.periodOf(r,f(n,i.start)),rows:[{label:e.flowCreated,value:t.count(i.created,`task`),shape:`bar`,color:Q}]}))}function oe({weeks:e,days:n,windows:r}){let{stats:i,core:o}=a(),s=t(),{grain:c,periods:l,period:u,toggle:d}=L(`intake`,`day`,{weeks:e,days:n},r),f=(0,J.useMemo)(()=>ae(i,o,s,c),[i,o,s,c]),m=[{label:i.createdTasks,shape:`bar`,color:Q}],h=i.createdBy[c];return(0,H.jsx)(g,{title:h,period:u,aside:d,children:(0,H.jsx)(F,{summary:i.intakeSummary(c,l.length,p(l.map(e=>e.created))),legend:m,children:(0,H.jsxs)(z,{data:l,margin:P,"aria-label":i.chartLabel(h,c),children:[(0,H.jsx)(w,{vertical:!1}),(0,H.jsx)(k,{dataKey:`start`,tickFormatter:e=>M(s,e),...I}),(0,H.jsx)(A,{allowDecimals:!1,tickFormatter:e=>O(s,e),width:60,...j}),(0,H.jsx)(C,{content:f,...D}),(0,H.jsx)(T,{dataKey:`created`,fill:Q,radius:E,isAnimationActive:!1})]})})})}var se={decline:`↓`,growth:`↑`};function ce(){let{projectId:e}=d(),t=s(`overview`,e);return(0,H.jsx)(v,{query:t,children:t=>(0,H.jsx)(le,{report:t,taskListPath:m(e)})})}function le({report:e,taskListPath:t}){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ue,{totals:e.totals}),(0,H.jsxs)(`div`,{className:x.blocks,children:[(0,H.jsx)(ie,{weeks:e.weeks,days:e.days,windows:e.periods}),(0,H.jsx)(oe,{weeks:e.weeks,days:e.days,windows:e.periods}),(0,H.jsx)(ne,{hotspots:e.hotspots,listPath:t}),(0,H.jsx)(ee,{age:e.age}),(0,H.jsx)(te,{closing:e.closing,period:e.periods.weeks})]})]})}function ue({totals:e}){let{stats:n}=a(),i=t(),o=e.createdLastWeek-e.closedLastWeek;return(0,H.jsxs)(`div`,{className:u(x.totals,x.totalsPair),children:[(0,H.jsx)(S,{label:n.tasksToday,value:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`span`,{className:e.createdToday>0?x.growth:void 0,children:[`+`,e.createdToday]}),` `,(0,H.jsxs)(`span`,{className:e.closedToday>0?x.decline:void 0,children:[`−`,e.closedToday]})]}),note:n.createdAndClosed}),(0,H.jsx)(S,{label:n.thisWeek,value:r(o),tone:$(o),note:n.weekNote(e.createdLastWeek,e.closedLastWeek),trend:de(n,i,o,e.previous?.net)})]})}function $(e){if(e>0)return`growth`;if(e<0)return`decline`}function de(e,t,n,r){if(r===void 0)return;let a=n-r,o=$(a);if(o===void 0)return;let s=i(t,Math.abs(a));return{text:e.weekTrend(se[o],s),speech:e.weekTrendSpeech[o](s),tone:o}}export{ce as OverviewTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{D as t,I as n,N as r,O as i,d as a,on as o,sn as s,ut as c}from"./cx-DvgIdypj.js";import{d as l,x as u}from"./index-NfqY6Vxd.js";import{a as d,i as f,n as p,r as m}from"./StatsTabState-BmkJh8eP.js";import{t as h}from"./StatsPage.module-DrfzjXrP.js";import{t as g}from"./StatsTable-C5qAHApf.js";import{B as _,C as v,_ as y,a as b,c as x,g as S,h as C,i as w,l as T,n as E,o as D,p as O,s as k,t as A}from"./use-grain-panel-DRZkQL7T.js";import{i as j,n as M,r as N}from"./value-dot-BJdkleLN.js";var P=e(s(),1),F=o(),I=`var(--chart-bar-neutral)`,L=`var(--chart-line-green)`;function R(e,t,i){return E(a=>({title:e.periodOf(i,l(t,a.start)),rows:[{label:e.decidedCandidates,value:r(t,a.decided),shape:`bar`,color:I},{label:e.precision,value:n(a.precision),shape:`line`,color:L}]}))}function z({periods:e,grain:r}){let{stats:a}=i(),o=t(),s=(0,P.useMemo)(()=>R(a,o,r),[a,o,r]),c=[{label:a.decidedCandidates,shape:`bar`,color:I},{label:a.precision,shape:`line`,color:L}],l=u(e.map(e=>e.decided)),d=e.filter(e=>e.precision!==null).at(-1),f=a.accuracySummary({grain:r,periodCount:e.length,decided:l,latestPrecision:d===void 0?null:n(d.precision)});return(0,F.jsx)(O,{summary:f,legend:c,children:(0,F.jsxs)(N,{data:e,margin:D,"aria-label":a.chartLabel(a.accuracyTitle,r),children:[(0,F.jsx)(v,{vertical:!1}),(0,F.jsx)(S,{dataKey:`start`,tickFormatter:e=>T(o,e),...k}),(0,F.jsx)(C,{yAxisId:`decided`,allowDecimals:!1,width:60,...w}),(0,F.jsx)(C,{yAxisId:`precision`,orientation:`right`,domain:[0,1],tickFormatter:n,width:60,...w}),(0,F.jsx)(_,{content:s,...x}),(0,F.jsx)(y,{yAxisId:`decided`,dataKey:`decided`,fill:I,radius:b,isAnimationActive:!1}),(0,F.jsx)(j,{yAxisId:`precision`,type:`monotone`,dataKey:`precision`,stroke:L,strokeWidth:3,connectNulls:!0,dot:M(L),isAnimationActive:!1})]})})}function B({rows:e,weeks:t,days:r,windows:a,methodRows:o,matchRows:s}){let{stats:c,core:l}=i(),u=f(),{grain:p,periods:h,period:_,toggle:v}=A(`accuracy`,`week`,{weeks:t,days:r},a),y=u.of(`weeks`,a.weeks),b=e=>e===`source-changed`?o.map(e=>V(c,e,e.by===`unknown`?c.beforeMethodRecorded:c.checkedBy(l.checkMethodLabel(e.by)))):e===`duplicate`?s.map(e=>V(c,e,e.by===`unknown`?c.beforeMatchRecorded:c.matchedBy(l.duplicateMatchLabel(e.by)))):[];return(0,F.jsx)(d,{title:c.accuracyTitle,period:_,aside:e.length===0?void 0:v,children:e.length===0?(0,F.jsx)(`p`,{className:m.muted,children:c.noCandidates}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{className:m.muted,children:c.accuracyHint}),(0,F.jsx)(z,{periods:h,grain:p}),(0,F.jsx)(`p`,{className:m.muted,children:y}),(0,F.jsx)(g,{label:c.accuracyTable(y),head:c.accuracyHead,rows:e.flatMap(e=>[{key:e.evidence,tone:e.evidence===`total`?`total`:void 0,cells:[l.evidenceLabel(e.evidence),e.candidates,e.closed,e.verified,e.open,n(e.precision)]},...b(e.evidence).map(t=>({...t,key:`${e.evidence}-${t.key}`}))])})]})})}function V(e,t,r){return{key:t.by,tone:`child`,cells:[e.splitRow(r),t.candidates,t.closed,t.verified,t.open,n(t.precision)]}}function H({graph:e,period:t}){let{stats:n,core:r}=i(),a=f(),{projects:o,filter:s}=e;return s.filtered===0&&o.every(e=>e.state===`none`)?(0,F.jsx)(d,{title:n.graphTitle,children:(0,F.jsx)(`p`,{className:m.muted,children:n.graphMissing(e=>(0,F.jsx)(`code`,{children:e},e))})}):(0,F.jsxs)(d,{title:n.graphTitle,children:[(0,F.jsx)(`p`,{className:m.muted,children:n.graphHint}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{className:m.subTitle,children:a.labelled(n.filteredTitle,t)}),s.filtered===0?(0,F.jsx)(`p`,{className:m.muted,children:n.nothingFiltered}):(0,F.jsx)(g,{label:n.filteredTable,head:n.filteredHead,rows:[{key:`filtered`,cells:[n.filteredByGraph,s.filtered]},{key:`caught`,cells:[n.filteredCaught,s.caught]},{key:`missed`,cells:[n.filteredMissed,s.missed]},{key:`quiet`,cells:[n.filteredQuiet,s.quiet]}]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{className:m.subTitle,children:n.periodCaption(n.projects,n.periodNow)}),(0,F.jsx)(g,{label:n.graphByProject,head:n.graphHead,rows:o.map(e=>({key:e.projectId,cells:[e.name,r.graphStateLabel(e.state),e.pinned,U(e)]}))})]})]})}function U({state:e,pinned:t,resolved:r}){return e===`none`||e===`unreadable`?`—`:`${r} (${n(t===0?null:r/t)})`}function W({rows:e,period:t}){let{stats:n,core:r}=i(),a=f(),o=e=>e.category===`unknown`?n.categoryUnknown:r.categoryLabel(e.category??void 0);return(0,F.jsx)(d,{title:n.categoriesTitle,period:a.of(`weeks`,t),children:e.length===0?(0,F.jsx)(`p`,{className:m.muted,children:n.categoriesEmpty}):(0,F.jsx)(g,{label:n.categoriesTitle,head:n.categoriesHead,rows:e.map(e=>({key:e.category??`none`,cells:[o(e),e.open,e.weight,e.created,e.closed]}))})})}function G({found:e,branches:t,period:n}){let{stats:r}=i(),a=f(),o=e=>e.found===null?r.foundNotRecorded:e.found===`unknown`?r.foundUnknown:r.foundLabels[e.found];return(0,F.jsxs)(d,{title:r.originTitle,period:a.of(`weeks`,n),children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{className:m.subTitle,children:r.foundTitle}),(0,F.jsx)(g,{label:r.foundTitle,head:r.foundHead,rows:e.map(e=>({key:e.found??`not-recorded`,cells:[o(e),e.created,e.open,e.fixed]}))})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{className:m.subTitle,children:r.branchesTitle}),t.length===0?(0,F.jsx)(`p`,{className:m.muted,children:r.branchesEmpty}):(0,F.jsx)(g,{label:r.branchesTitle,head:r.branchesHead,rows:t.map(e=>({key:e.label,cells:[(0,F.jsx)(`code`,{children:e.label}),e.created,e.open]}))})]})]})}function K(){let{projectId:e}=c(),t=a(`quality`,e);return(0,F.jsx)(p,{query:t,children:e=>(0,F.jsx)(q,{report:e})})}function q({report:e}){return(0,F.jsxs)(`div`,{className:h.blocks,children:[(0,F.jsx)(`div`,{className:m.wide,children:(0,F.jsx)(B,{rows:e.accuracy,weeks:e.accuracyWeeks,days:e.accuracyDays,windows:e.periods,methodRows:e.methodAccuracy,matchRows:e.matchAccuracy})}),(0,F.jsx)(`div`,{className:m.wide,children:(0,F.jsx)(H,{graph:e.graph,period:e.periods.weeks})}),(0,F.jsx)(`div`,{className:m.wide,children:(0,F.jsx)(W,{rows:e.categories,period:e.periods.weeks})}),(0,F.jsx)(`div`,{className:m.wide,children:(0,F.jsx)(G,{found:e.found,branches:e.branches,period:e.periods.weeks})})]})}export{K as QualityTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{on as e}from"./cx-DvgIdypj.js";import{r as t}from"./StatsTabState-BmkJh8eP.js";var n=e();function r({share:e}){return(0,n.jsx)(`span`,{className:t.track,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:t.fill,style:{transform:`scaleX(${e})`}})})}export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._page_17qi6_1{min-width:0;overflow-y:var(--main-overflow,auto);container-type:inline-size}._heading_17qi6_7{padding:var(--space-4) var(--space-5) 0;font-size:var(--text-lg);text-wrap:balance;margin:0;font-weight:600}._scopeNote_17qi6_15{margin:var(--space-1) var(--space-5) 0;color:var(--ink-subtle);font-size:var(--text-sm)}._signals_17qi6_21{margin:var(--space-3) var(--space-5) 0;padding:var(--space-2) var(--space-4);border:1px solid var(--warn);border-radius:var(--radius-control);background:var(--warn-soft);color:var(--ink)}._signalsTitle_17qi6_30{margin-bottom:var(--space-1);display:block}._signals_17qi6_21 ul{margin:0;padding-inline-start:var(--space-4)}._tabs_17qi6_40{gap:var(--space-1);padding:var(--space-3) var(--space-5) 0;border-bottom:1px solid var(--line);flex-wrap:wrap;display:flex}._tab_17qi6_40{padding:var(--space-2) var(--space-3);color:var(--ink-muted);white-space:nowrap;transition:color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);border-bottom:2px solid #0000;text-decoration:none}._tab_17qi6_40:hover{color:var(--ink)}._tabActive_17qi6_63{border-bottom-color:var(--ink);color:var(--ink)}._tabPending_17qi6_68{border-bottom-color:var(--line-strong);cursor:progress}._content_17qi6_73{gap:var(--space-4);padding:var(--space-4) var(--space-5) var(--space-6);flex-direction:column;display:flex}._hint_17qi6_80{max-width:60ch;margin:var(--space-6) var(--space-5);color:var(--ink-muted)}._hintLoading_17qi6_86{color:var(--ink-subtle)}._hint_17qi6_80 p{margin:0 0 var(--space-3);text-wrap:pretty}._warning_17qi6_95{padding:var(--space-3) var(--space-4);border:1px solid var(--warn);border-radius:var(--radius-control);background:var(--warn-soft);color:var(--ink);text-wrap:pretty;margin:0}._totals_17qi6_105{gap:var(--space-3);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}._totalsPair_17qi6_111{grid-template-columns:repeat(2,minmax(0,1fr))}._figureGroup_17qi6_115{gap:var(--space-2);flex-direction:column;display:flex}._figure_17qi6_115{gap:var(--space-1);padding:var(--space-3);border-radius:var(--radius-control);background:var(--surface-raised);box-shadow:0 0 0 1px var(--line);border:none;flex-direction:column;display:flex}._figureLabel_17qi6_132,._figureNote_17qi6_133{color:var(--ink-subtle);font-size:var(--text-sm)}._figureTrend_17qi6_138{font-size:var(--text-sm);font-variant-numeric:tabular-nums}._figureValue_17qi6_143{font-size:var(--text-xl);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-weight:600}._growth_17qi6_150{color:var(--accent-ink)}._decline_17qi6_154{color:var(--ok)}._blocks_17qi6_158{gap:var(--space-3);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}._note_17qi6_164{max-width:70ch;color:var(--ink-subtle);font-size:var(--text-sm);text-wrap:pretty;margin:0}@container (width<=900px){._totals_17qi6_105{grid-template-columns:repeat(2,minmax(0,1fr))}._blocks_17qi6_158{grid-template-columns:minmax(0,1fr)}}@container (width<=480px){._totals_17qi6_105{grid-template-columns:minmax(0,1fr)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Nt as t,O as n,d as r,it as i,on as a,s as o,sn as s,st as c,t as l,ut as u}from"./cx-DvgIdypj.js";import{a as d,d as f,i as p,l as m,o as h,t as g,u as _}from"./start-jnWYnN9h.js";import{t as v}from"./StatsPage.module-DrfzjXrP.js";var y=e(s(),1),b=a();function x(){let{projectId:e}=u(),{pathname:a}=i(),s=o(),x=r(`signals`,e),{app:S,core:C,stats:w}=n(),T=e===void 0?w.projects:d(s.data,e),E=w.heading(T),D=t=>m(t,e),O=(e,n)=>t({path:D(e),end:!0},n)!==null,k=g.find(e=>e.segment!==``&&O(e.segment,a))??g[0],A=c().location?.pathname,j=(0,y.useRef)(null),M=A===void 0?void 0:g.find(e=>O(e.segment,A)),N=w.docTitle(k.segment===``?E:`${w.tabs[k.key]} · ${E}`);return p(N),(0,b.jsxs)(`main`,{id:`content`,tabIndex:-1,className:v.page,"aria-busy":M!==void 0||void 0,children:[(0,b.jsx)(`h1`,{ref:j,tabIndex:-1,className:v.heading,children:E}),e===void 0&&s.data!==void 0&&(0,b.jsx)(`p`,{className:v.scopeNote,children:h(s.data,S)}),(x.data?.signals.length??0)>0&&(0,b.jsxs)(`div`,{className:v.signals,role:`status`,"aria-labelledby":`stats-signals-heading`,children:[(0,b.jsx)(`strong`,{id:`stats-signals-heading`,className:v.signalsTitle,children:w.alerts}),(0,b.jsx)(`ul`,{children:x.data?.signals.map(e=>(0,b.jsx)(`li`,{children:C.signal(e)},e.kind))})]}),(0,b.jsx)(`nav`,{className:v.tabs,"aria-label":w.tabsLabel,children:g.map(e=>(0,b.jsx)(_,{to:D(e.segment),className:l(v.tab,e===k&&v.tabActive,e===M&&v.tabPending),"aria-current":e===k?`page`:void 0,children:w.tabs[e.key]},e.key))}),(0,b.jsx)(f,{context:{heading:j}})]})}export{x as StatsPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={page:`_page_17qi6_1`,heading:`_heading_17qi6_7`,scopeNote:`_scopeNote_17qi6_15`,signals:`_signals_17qi6_21`,signalsTitle:`_signalsTitle_17qi6_30`,tabs:`_tabs_17qi6_40`,tab:`_tab_17qi6_40`,tabActive:`_tabActive_17qi6_63`,tabPending:`_tabPending_17qi6_68`,content:`_content_17qi6_73`,hint:`_hint_17qi6_80`,hintLoading:`_hintLoading_17qi6_86`,warning:`_warning_17qi6_95`,totals:`_totals_17qi6_105`,totalsPair:`_totalsPair_17qi6_111`,figureGroup:`_figureGroup_17qi6_115`,figure:`_figure_17qi6_115`,figureLabel:`_figureLabel_17qi6_132`,figureNote:`_figureNote_17qi6_133`,figureTrend:`_figureTrend_17qi6_138`,figureValue:`_figureValue_17qi6_143`,growth:`_growth_17qi6_150`,decline:`_decline_17qi6_154`,blocks:`_blocks_17qi6_158`,note:`_note_17qi6_164`};export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{C as t,D as n,O as r,lt as i,on as a,sn as o,t as s}from"./cx-DvgIdypj.js";import{l as c,p as l}from"./index-NfqY6Vxd.js";import{r as u,s as d}from"./start-jnWYnN9h.js";import{t as f}from"./StatsPage.module-DrfzjXrP.js";var p=e(o(),1),m={panel:`_panel_1n3ez_1`,head:`_head_1n3ez_14`,heading:`_heading_1n3ez_22`,period:`_period_1n3ez_29`,title:`_title_1n3ez_35`},h=a();function g({title:e,period:t,aside:n,children:r}){let i=(0,p.useId)(),a=(0,p.useId)();return(0,h.jsxs)(`section`,{className:m.panel,"aria-labelledby":i,"aria-describedby":t===void 0?void 0:a,children:[(0,h.jsxs)(`div`,{className:m.head,children:[(0,h.jsxs)(`div`,{className:m.heading,children:[(0,h.jsx)(`h2`,{id:i,className:m.title,children:e}),t!==void 0&&(0,h.jsx)(`p`,{id:a,className:m.period,children:t})]}),n]}),r]})}function _(){let{stats:e}=r(),t=n(),i=(n,r)=>e.periodCaption(n,l(t,r.from,r.to));return{of:(t,n)=>i(e.periodWindows[t],n),labelled:i}}var v={muted:`_muted_14ll2_1`,subTitle:`_subTitle_14ll2_7`,rows:`_rows_14ll2_14`,countRow:`_countRow_14ll2_28`,row:`_row_14ll2_14`,rowLabel:`_rowLabel_14ll2_41`,rowValue:`_rowValue_14ll2_58`,wide:`_wide_14ll2_64`,track:`_track_14ll2_68`,fill:`_fill_14ll2_75`,grain:`_grain_14ll2_82`};function y({query:e,empty:t,children:n}){let{stats:a}=r(),o=x(e,t),c=S(a,o),l=o.kind===`failed`?o.error:null,p=o.kind===`ready`||o.kind===`failed`?o.report:void 0,m=o.kind===`ready`,{status:g,keepFocus:_}=u(m,i()?.heading);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(`div`,{ref:g,tabIndex:-1,role:`status`,"aria-live":`polite`,className:m?`visually-hidden`:s(f.hint,o.kind===`loading`&&f.hintLoading),children:[c!==null&&(0,h.jsx)(`p`,{children:c}),l!==null&&(0,h.jsx)(d,{error:l,fetching:e.isFetching,onRetry:()=>{_(),e.refetch()}})]}),p!==void 0&&(0,h.jsx)(`div`,{className:f.content,children:n(p)})]})}function b({query:e,children:t}){let{stats:i}=r(),a=n(),o=e.data?.invalidJournalLines??0,s=e.data?.unknownJournalLines??0,c=e.data?.unparsedTasks??0,l=[o>0?i.invalidJournalLines(o):null,s>0?i.unknownJournalLines(s):null,c>0?i.unparsedTasks(c):null].filter(e=>e!==null);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`p`,{className:l.length>0?f.warning:`visually-hidden`,role:`status`,children:l.join(` `)}),(0,h.jsx)(y,{query:e,empty:{isEmpty:e=>e.taskCount===0,message:i.noTasks},children:e=>(0,h.jsxs)(h.Fragment,{children:[t(e),(0,h.jsx)(`p`,{className:f.note,children:C(i,a,e.journalSince)})]})})]})}function x({error:e,data:n},r){if(t(e))return{kind:`notFound`};let i=n!==void 0&&r?.isEmpty(n)!==!0?n:void 0;return e===null?n===void 0?{kind:`loading`}:i===void 0&&r!==void 0?{kind:`empty`,message:r.message}:{kind:`ready`,report:n}:{kind:`failed`,error:e,report:i}}function S(e,t){switch(t.kind){case`notFound`:return e.projectNotFound;case`loading`:return e.loading;case`empty`:return t.message;case`failed`:case`ready`:return null}}function C(e,t,n){return n===null?e.journalEmpty:e.journalSince(c(t,n))}export{g as a,_ as i,b as n,v as r,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._scroll_fngm8_1{background:linear-gradient(to right, var(--surface-raised) 30%, transparent) left / 24px 100% no-repeat local, linear-gradient(to left, var(--surface-raised) 30%, transparent) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, color-mix(in oklch, var(--ink) 35%, transparent), transparent) left / 10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, color-mix(in oklch, var(--ink) 35%, transparent), transparent) right / 10px 100% no-repeat scroll;overflow-x:auto}._scroll_fngm8_1:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}._table_fngm8_15{border-collapse:collapse;width:100%;font-size:var(--text-sm);font-variant-numeric:tabular-nums}._table_fngm8_15 th,._table_fngm8_15 td{padding:var(--space-1) var(--space-2);border-bottom:1px solid var(--line);text-align:end;white-space:nowrap}._table_fngm8_15 th:first-child,._table_fngm8_15 td:first-child{text-align:start;padding-inline-start:0}._table_fngm8_15 thead th{color:var(--ink-subtle);font-weight:500}._table_fngm8_15 tbody th{color:var(--ink);font-weight:400}._table_fngm8_15 tbody ._child_fngm8_46>*{color:var(--ink-subtle)}._table_fngm8_15 tbody ._total_fngm8_50>*{font-weight:600}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{D as e,O as t,on as n}from"./cx-DvgIdypj.js";import{g as r}from"./index-NfqY6Vxd.js";var i={scroll:`_scroll_fngm8_1`,table:`_table_fngm8_15`,child:`_child_fngm8_46`,total:`_total_fngm8_50`},a=n();function o({label:n,head:o,rows:s}){let{stats:c}=t(),l=e(),u=e=>typeof e==`number`?r(l,e):e;return(0,a.jsx)(`div`,{className:i.scroll,tabIndex:0,role:`region`,"aria-label":c.tableLabel(n),children:(0,a.jsxs)(`table`,{className:i.table,children:[(0,a.jsx)(`thead`,{children:(0,a.jsx)(`tr`,{children:o.map(e=>(0,a.jsx)(`th`,{scope:`col`,children:e},e))})}),(0,a.jsx)(`tbody`,{children:s.map(e=>(0,a.jsx)(`tr`,{className:e.tone&&i[e.tone],children:e.cells.map((e,t)=>t===0?(0,a.jsx)(`th`,{scope:`row`,children:u(e)},o[t]):(0,a.jsx)(`td`,{children:u(e)},o[t]))},e.key))})]})})}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as e,on as t}from"./cx-DvgIdypj.js";import{t as n}from"./StatsPage.module-DrfzjXrP.js";var r=t();function i({repos:t}){let{stats:i}=e();return t.map(e=>(0,r.jsx)(`p`,{className:n.warning,role:`status`,children:i.unavailableRepo(e)},e))}export{i as t};
|