p-backlog 0.9.0 → 0.10.1
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 +130 -0
- package/README.md +3 -1
- package/README.ru.md +3 -1
- package/dist/cli.js +4840 -4183
- package/dist/web/assets/CodeTab-ClCaW8AS.js +1 -0
- package/dist/web/assets/CostTab-CtI3iFiW.js +1 -0
- package/dist/web/assets/EffectTab-DcvyEB2U.js +1 -0
- package/dist/web/assets/Figure-DkmKAO9C.css +1 -0
- package/dist/web/assets/Figure-DxKUx52i.js +1 -0
- package/dist/web/assets/OverviewTab-DE_6Z9ps.js +1 -0
- package/dist/web/assets/Page-buthlp0V.js +59 -0
- package/dist/web/assets/Page-r2s5SXpX.css +1 -0
- package/dist/web/assets/PanelRows-6zccccnE.css +1 -0
- package/dist/web/assets/PanelRows.module-ZonfBTD-.js +1 -0
- package/dist/web/assets/QualityTab-CkoKu4X0.js +1 -0
- package/dist/web/assets/ShareBar-B5phBvQk.css +1 -0
- package/dist/web/assets/ShareBar-BAS4lpze.js +1 -0
- package/dist/web/assets/StatsPage-B_pacptZ.css +1 -0
- package/dist/web/assets/StatsPage-Bmr75f8J.js +1 -0
- package/dist/web/assets/StatsTabState-BacJCCdC.css +1 -0
- package/dist/web/assets/StatsTabState-D93FkgT5.js +1 -0
- package/dist/web/assets/StatsTable-D-PylWl7.js +1 -0
- package/dist/web/assets/StatsTable-DPDsjAV6.css +1 -0
- package/dist/web/assets/UnavailableRepos-DyBVFVrQ.js +1 -0
- package/dist/web/assets/index-BFmeY_kk.js +2 -0
- package/dist/web/assets/start-CJ8zVmAB.js +38 -0
- package/dist/web/assets/start-CjkFx30s.css +1 -0
- package/dist/web/assets/summaries-D57lRSim.js +1 -0
- package/dist/web/assets/use-grain-panel-UcuXHAhT.js +55 -0
- package/dist/web/assets/use-grain-panel-nSBWtox9.css +1 -0
- package/dist/web/assets/web-paths--TbmQ8rA.js +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +9 -5
- package/skill/backlog/SKILL.md +3 -1
- package/skill/backlog-en/SKILL.md +3 -1
- package/dist/web/assets/CodeTab-DvFAuZ83.js +0 -1
- package/dist/web/assets/CostTab-1Rdp5nwz.js +0 -1
- package/dist/web/assets/EffectTab-8aARbrne.js +0 -1
- package/dist/web/assets/Figure-CCcsLfB5.js +0 -1
- package/dist/web/assets/OverviewTab-DvBBhF85.js +0 -1
- package/dist/web/assets/QualityTab-TBeOxc7b.js +0 -1
- package/dist/web/assets/ShareBar-C_mQiINj.js +0 -1
- package/dist/web/assets/StatsPage-B5K4_4Wb.css +0 -1
- package/dist/web/assets/StatsPage-DtpkiP-4.js +0 -1
- package/dist/web/assets/StatsPage.module-DrfzjXrP.js +0 -1
- package/dist/web/assets/StatsTabState-BmkJh8eP.js +0 -1
- package/dist/web/assets/StatsTabState-CUDEyUDu.css +0 -1
- package/dist/web/assets/StatsTable-B9Rm04sJ.css +0 -1
- package/dist/web/assets/StatsTable-C5qAHApf.js +0 -1
- package/dist/web/assets/UnavailableRepos-ctosBCJf.js +0 -1
- package/dist/web/assets/cx-DvgIdypj.js +0 -55
- package/dist/web/assets/index-NfqY6Vxd.js +0 -2
- package/dist/web/assets/start-BG-1CZwx.css +0 -1
- package/dist/web/assets/start-jnWYnN9h.js +0 -41
- package/dist/web/assets/use-grain-panel-DRZkQL7T.js +0 -55
- package/dist/web/assets/use-grain-panel-tQC8-pw2.css +0 -1
- package/dist/web/assets/value-dot-BJdkleLN.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._frame_1h4aw_1{gap:var(--space-2);flex-direction:column;min-width:0;margin:0;display:flex}._summary_1h4aw_9{font-size:var(--text-sm);margin:0}._plot_1h4aw_14{height:var(--plot-height);min-width:0}@media (width<=600px){._plot_1h4aw_14{height:var(--plot-height-compact)}}._plot_1h4aw_14 .recharts-cartesian-axis-tick-value{fill:var(--ink-subtle);font-size:var(--text-sm)}._plot_1h4aw_14 .recharts-cartesian-axis-line,._plot_1h4aw_14 .recharts-cartesian-grid line{stroke:var(--line)}._plot_1h4aw_14 .recharts-line-curve,._plot_1h4aw_14 .recharts-area-curve,._plot_1h4aw_14 .recharts-line-dots{filter:drop-shadow(0 0 1px var(--surface-raised)) drop-shadow(0 0 1px var(--surface-raised))}._plot_1h4aw_14 .recharts-surface:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}._plot_1h4aw_14 .recharts-tooltip-wrapper{outline:none}._legend_1h4aw_53{gap:var(--space-1) var(--space-3);color:var(--ink-subtle);font-size:var(--text-sm);flex-wrap:wrap;display:flex}._legendItem_1h4aw_61{align-items:center;gap:var(--space-1);display:inline-flex}._swatch_1h4aw_67{flex:none;display:inline-block}._bar_1h4aw_72{background:var(--swatch);border-radius:2px;width:10px;height:10px}._hatch_1h4aw_79{background:repeating-linear-gradient(45deg, var(--swatch) 0 2px, var(--surface-raised) 2px 5px);border-radius:2px;width:10px;height:10px}._line_1h4aw_86{border-top:2px solid var(--swatch);width:14px}._dashed_1h4aw_91{border-top:2px dashed var(--swatch);width:14px}._tooltip_1h4aw_96{gap:var(--space-1);padding:var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface-raised);box-shadow:var(--shadow-panel);color:var(--ink);font-size:var(--text-sm);flex-direction:column;display:flex}._tooltipTitle_1h4aw_109{margin:0;font-weight:600}._tooltipRows_1h4aw_114{gap:2px var(--space-3);grid-template-columns:auto auto;margin:0;display:grid}._tooltipRows_1h4aw_114 dt{align-items:center;gap:var(--space-1);color:var(--ink-muted);display:inline-flex}._tooltipRows_1h4aw_114 dd{text-align:end;font-variant-numeric:tabular-nums;margin:0}._tooltipRow_1h4aw_114{display:contents}._grain_tsnw3_1{gap:var(--space-1);display:inline-flex}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{At as t,Bt as n,Ct as r,Dt as i,Et as a,Ft as o,Gt as s,Ht as c,Lt as l,Mt as u,Nt as d,Ot as f,Pt as p,Rt as m,St as h,Tt as g,Ut as _,Vt as v,Wt as y,_t as b,at as x,bt as S,ct as C,et as w,gt as T,it as E,jt as D,kt as O,mt as k,nt as A,ot as j,pt as M,rt as ee,tt as N,un as P,ut as F,vt as I,wt as te,xt as ne,yt as re,zt as L}from"./Page-buthlp0V.js";import{t as ie}from"./index-BFmeY_kk.js";var ae={};function R(e,t){!e&&!ae[t]&&(ae[t]=!0,console.warn(t))}var z=e(P(),1),oe=[`HydrateFallback`,`hydrateFallbackElement`],se=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function ce({router:e,flushSync:t,onError:n,useTransitions:r}){r=g()||r;let[i,a]=z.useState(e.state),[o,s]=(0,z.useOptimistic)(i),[c,l]=z.useState(),[u,f]=z.useState({isTransitioning:!1}),[p,m]=z.useState(),[h,_]=z.useState(),[v,y]=z.useState(),x=z.useRef(new Map),C=z.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:d(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&x.current.set(t,e.data)}),o.forEach(e=>x.current.delete(e)),R(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let v=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(R(g==null||v,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!v){t&&u?t(()=>a(i)):r===!1?a(i):z.startTransition(()=>{r===!0&&s(e=>B(e,i)),a(i)});return}if(t&&u){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),_(void 0),l(void 0),f({isTransitioning:!1})})}),t(()=>_(n));return}h?(p?.resolve(),h.skipTransition(),y({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),f({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,h,p,r,s,n]);z.useLayoutEffect(()=>e.subscribe(C),[e,C]),z.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new se)},[u]),z.useEffect(()=>{if(p&&c&&e.window){let t=c,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):z.startTransition(()=>{r===!0&&s(e=>B(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),_(void 0),l(void 0),f({isTransitioning:!1})}),_(i)}},[c,p,e.window,r,s]),z.useEffect(()=>{p&&c&&o.location.key===c.location.key&&p.resolve()},[p,h,o.location,c]),z.useEffect(()=>{!u.isTransitioning&&v&&(l(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[u.isTransitioning,v]);let w=z.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),E=e.basename||`/`,D=z.useMemo(()=>({router:e,navigator:w,static:!1,basename:E,onError:n}),[e,w,E,n]),O=z.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),k=z.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),A=z.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),j=z.useMemo(()=>({fetchers:o.fetchers,fetcherData:x.current}),[o.fetchers]);return z.createElement(z.Fragment,null,z.createElement(T.Provider,{value:D},z.createElement(re.Provider,{value:O},z.createElement(I.Provider,{value:k},z.createElement(b.Provider,{value:A},z.createElement(S.Provider,{value:j},z.createElement(te.Provider,{value:u},z.createElement(pe,{basename:E,location:o.location,navigationType:o.historyAction,navigator:w,useTransitions:r},z.createElement(le,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function B(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var le=z.memo(ue);function ue({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=z.useContext(T);return c(a,`You must render this element inside a <DataRouterContext.Provider> element`),k(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function de({to:e,replace:t,state:n,relative:a}){c(x(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:o,navigator:s}=z.useContext(h);y(!o,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:l}=z.useContext(r),{pathname:d}=j(),p=C(),g=m(e,u(l),d,a===`path`);f(typeof e==`string`?e:v(e),s.createHref(g),i(s),`reject`);let _=JSON.stringify(g);return z.useEffect(()=>{p(JSON.parse(_),{replace:t,state:n,relative:a})},[p,_,a,t,n]),null}function fe(e){return F(e.context)}function pe({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){c(!x(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),l=z.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=_(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,mask:g}=n,v=z.useMemo(()=>{let e=L(u,s);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,mask:g},navigationType:r}},[s,u,d,f,p,m,r,g]);return y(v!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:z.createElement(h.Provider,{value:l},z.createElement(ne.Provider,{children:t,value:v}))}z.Component;var V=`application/x-www-form-urlencoded`;function H(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function me(e){return H(e)&&e.tagName.toLowerCase()===`button`}function he(e){return H(e)&&e.tagName.toLowerCase()===`form`}function ge(e){return H(e)&&e.tagName.toLowerCase()===`input`}function _e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ve(e,t){return e.button===0&&(!t||t===`_self`)&&!_e(e)}function U(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ye(e,t){let n=U(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var W=null;function be(){if(W===null)try{new FormData(document.createElement(`form`),0),W=!1}catch{W=!0}return W}var xe=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function G(e){return e!=null&&!xe.has(e)?(y(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${V}"`),null):e}function Se(e,t){let n,r,i,a,o;if(he(e)){let o=e.getAttribute(`action`);r=o?L(o,t):null,n=e.getAttribute(`method`)||`get`,i=G(e.getAttribute(`enctype`))||V,a=new FormData(e)}else if(me(e)||ge(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?L(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=G(e.getAttribute(`formenctype`))||G(o.getAttribute(`enctype`))||V,a=new FormData(o,e),!be()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(H(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=V,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Ce(e,t){if(e===!1||e==null)throw Error(t)}function we(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}async function Te(e,t){if(e.id in t)return t[e.id];try{let n=await ie(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ee(e){return e!=null&&typeof e.page==`string`}function De(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Oe(e,t,n){return Ne((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Te(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(De).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function ke(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ae(e,t,{includeHydrateFallback:n}={}){return je(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function je(e){return[...new Set(e)]}function Me(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ne(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ee(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Me(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var K=z.createContext(void 0);K.displayName=`FrameworkContext`;function q(){let e=z.useContext(K);return Ce(e,`You must render this element inside a <HydratedRouter> element`),e}function Pe(e,t){let n=z.useContext(K),[r,i]=z.useState(!1),[a,o]=z.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=z.useRef(null);z.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),z.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:J(s,p),onBlur:J(c,m),onMouseEnter:J(l,p),onMouseLeave:J(u,m),onTouchStart:J(d,p)}]:[a,f,{}]:[!1,f,{}]}function J(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Fe({page:e,...t}){let n=g(),{nonce:r}=q(),{router:i}=N(`PrefetchPageLinks`),a=z.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?z.createElement(Le,{page:e,matches:a,...t}):z.createElement(Re,{page:e,matches:a,...t})):null}function Ie(e){let{manifest:t,routeModules:n}=q(),[r,i]=z.useState([]);return z.useEffect(()=>{let r=!1;return Oe(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Le({page:e,matches:t,...n}){let r=j(),i=z.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=we(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return z.createElement(z.Fragment,null,i.map(e=>z.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Re({page:e,matches:t,...n}){let r=j(),{manifest:i,routeModules:a}=q(),{matches:o}=ee(`PrefetchPageLinks`),{loaderData:s}=A(`PrefetchPageLinks`),c=z.useMemo(()=>ke(e,t,o,i,r,`data`),[e,t,o,i,r]),l=z.useMemo(()=>ke(e,t,o,i,r,`assets`),[e,t,o,i,r]),u=z.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let l=we(e,`data`);return o&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[s,r,i,c,t,e,a]),d=z.useMemo(()=>Ae(l,i),[l,i]),f=Ie(l);return z.createElement(z.Fragment,null,u.map(e=>z.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>z.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>z.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function ze(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Be=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Be&&(window.__reactRouterVersion=`8`)}catch{}function Ve(e,t){return a({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:n({window:t?.window}),hydrationData:t?.hydrationData||He(),routes:e,mapRouteProperties:D,hydrationRouteProperties:oe,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function He(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Ue(e.errors)}),e}function Ue(e){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(i&&i.__type===`RouteErrorResponse`)r[e]=new O(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type===`Error`){if(typeof i.__subType==`string`&&t.includes(i.__subType)){let t=window[i.__subType];if(typeof t==`function`)try{let n=new t(i.message);n.stack=``,r[e]=n}catch{}}if(r[e]==null){let t=Error(i.message);t.stack=``,r[e]=t}}else r[e]=i;return r}var Y=z.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:c,target:u,to:d,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:_,...v},y){let{basename:b,navigator:x,useTransitions:S}=z.useContext(h),C=typeof d==`string`&&s.test(d),w=l(d,b);d=w.to;let T=E(d,{relative:r}),D=j(),O=null;if(o){let e=m(o,[],D.mask?D.mask.pathname:`/`,!0);b!==`/`&&(e.pathname=e.pathname===`/`?b:p([b,e.pathname])),O=x.createHref(e)}let[k,A,M]=Pe(n,v),ee=Ke(d,{replace:a,mask:o,state:c,target:u,preventScrollReset:f,relative:r,viewTransition:g,defaultShouldRevalidate:_,useTransitions:S});function N(t){e&&e(t),t.defaultPrevented||ee(t)}let P=!(w.isExternal||i),F=z.createElement(`a`,{...v,...M,href:(P?O:void 0)||w.absoluteURL||T,onClick:P?N:e,ref:ze(y,A),target:u,"data-discover":!C&&t===`render`?`true`:void 0});return k&&!C?z.createElement(z.Fragment,null,F,z.createElement(Fe,{page:T})):F});Y.displayName=`Link`;var We=z.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=M(a,{relative:c.relative}),d=j(),f=z.useContext(I),{navigator:p,basename:m}=z.useContext(h),g=f!=null&&$e(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f?.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&m&&(y=L(y,m)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(b)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return z.createElement(Y,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});We.displayName=`NavLink`;var Ge=z.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},g)=>{let{useTransitions:_}=z.useContext(h),v=Xe(),y=Ze(c,{relative:u}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof c==`string`&&s.test(c);return z.createElement(`form`,{ref:g,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,c=()=>v(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});_&&n!==!1?z.startTransition(()=>c()):c()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Ge.displayName=`Form`;function Ke(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=C(),d=j(),f=M(e,{relative:o});return z.useCallback(p=>{if(ve(p,t)){p.preventDefault();let t=n===void 0?v(d)===v(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?z.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function qe(e){y(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=z.useRef(U(e)),n=z.useRef(!1),r=j(),i=z.useMemo(()=>ye(r.search,n.current?null:t.current),[r.search]),a=C();return[i,z.useCallback((e,t)=>{let r=U(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Je=0,Ye=()=>`__${String(++Je)}__`;function Xe(){let{router:e}=N(`useSubmit`),{basename:t}=z.useContext(h),n=w(`useSubmit`),r=e.fetch,i=e.navigate;return z.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Se(e,t);a.navigate===!1?await r(a.fetcherKey||Ye(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ze(e,{relative:t}={}){let{basename:n}=z.useContext(h),i=z.useContext(r);c(i,`useFormAction must be used inside a RouteContext`);let[a]=i.matches.slice(-1),o={...M(e||`.`,{relative:t})},s=j();if(e==null){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(o.pathname=o.pathname===`/`?n:p([n,o.pathname])),v(o)}function Qe(e,t){let{capture:n}=t||{};z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function $e(e,{relative:t}={}){let n=z.useContext(te);c(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=N(`useViewTransitionState`),i=M(e,{relative:t});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return o(i.pathname,s)!=null||o(i.pathname,a)!=null}var X=`/p`,Z=`/t`,Q=`/stats`,et={task:`${Z}/:taskId`,projectList:`${X}/:projectId`,projectTask:`${X}/:projectId${Z}/:taskId`,stats:Q,projectStats:`${X}/:projectId${Q}`};function tt(e){return e===void 0?`/`:$(e)}function nt(e,t){return`${$(e)}${Z}/${t}`}function rt(e){return $(e)+Q}function $(e){return e===void 0?``:`${X}/${e}`}function it(e){return e===`overview`?null:e}function at(e,t){let n=it(t);return n===null?e:`${e}/${n}`}function ot(e,t){return at(rt(t),e)}export{at as a,Y as c,Qe as d,qe as f,ce as h,ot as i,We as l,fe as m,tt as n,it as o,de as p,rt as r,nt as s,et as t,Ve as u};
|
package/dist/web/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>Backlog</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BFmeY_kk.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "p-backlog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Keep pull requests clean and audit findings safe: a local, autonomous backlog for Claude Code. The agent files out-of-scope issues as Markdown tasks with context and re-checks them as code changes. Optional web UI with metrics.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
44
|
"test": "vitest run",
|
|
45
|
-
"lint": "eslint . && prettier --check . && knip && node scripts/check-cyrillic.mjs",
|
|
45
|
+
"lint": "eslint . && stylelint \"src/**/*.css\" && prettier --check . && knip && jscpd && node scripts/check-cyrillic.mjs && node scripts/check-css-contracts.mjs",
|
|
46
46
|
"typecheck": "tsc -p tsconfig.json",
|
|
47
47
|
"build": "vite build && node scripts/build-node.mjs",
|
|
48
48
|
"install-skill": "node dist/cli.js setup",
|
|
49
|
-
"start": "npm run build && node dist/
|
|
50
|
-
"dev": "concurrently -k -n server,web \"tsx watch src/
|
|
51
|
-
"test:e2e": "playwright test",
|
|
49
|
+
"start": "npm run build && node dist/cli.js serve",
|
|
50
|
+
"dev": "concurrently -k -n server,web \"tsx watch src/cli/main.ts serve\" \"vite\"",
|
|
51
|
+
"test:e2e": "playwright test --project=chromium",
|
|
52
52
|
"screenshots": "npm run build && tsx scripts/screenshots/make.ts",
|
|
53
53
|
"plugins": "tsx scripts/build-plugins.ts",
|
|
54
54
|
"test:package": "vitest run --config vitest.package.config.ts",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"eslint": "^10.11.0",
|
|
82
82
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
83
83
|
"globals": "^17.12.0",
|
|
84
|
+
"jscpd": "^5.4.0",
|
|
84
85
|
"jsdom": "^30.1.0",
|
|
85
86
|
"knip": "^6.37.0",
|
|
86
87
|
"prettier": "3.9.9",
|
|
@@ -92,6 +93,9 @@
|
|
|
92
93
|
"recharts": "^3.10.1",
|
|
93
94
|
"remark-gfm": "^4.0.1",
|
|
94
95
|
"sharp": "^0.35.4",
|
|
96
|
+
"stylelint": "^17.16.0",
|
|
97
|
+
"stylelint-config-standard": "^40.0.0",
|
|
98
|
+
"stylelint-declaration-strict-value": "^1.12.1",
|
|
95
99
|
"tsx": "^4.23.15",
|
|
96
100
|
"typescript": "~6.0.3",
|
|
97
101
|
"typescript-eslint": "^8.70.0",
|
package/skill/backlog/SKILL.md
CHANGED
|
@@ -159,7 +159,9 @@ description: Use when, while working on code, you notice a problem outside the c
|
|
|
159
159
|
4. `problems` — список `{ kind, … }`. `file-not-parsed`: файл `path` не разбирается, причины в `problems` —
|
|
160
160
|
поправь YAML руками, не меняя `id`. Остальное перечисли пользователю: `task-invalid` (ошибка `problem`
|
|
161
161
|
в задаче `taskId`), `fix-failed` (исправление не записалось, причина `cause`), `epics-wait-for-files`,
|
|
162
|
-
`project-without-repos`, `project-repos-missing`, `project-repo-not-git`, `project-
|
|
162
|
+
`project-without-repos`, `project-repos-missing`, `project-repo-not-git`, `project-repo-unsafe` (git не
|
|
163
|
+
доверяет каталогу `repo` другого владельца — `repos` в `project.md` править не надо, нужен
|
|
164
|
+
`git config --global --add safe.directory "<repo>"`, его запускает пользователь), `project-history-unreadable`,
|
|
163
165
|
`prefix-shared` (у проектов `projectIds` один префикс — ID задач пересекаются).
|
|
164
166
|
5. В конце ответа — блок, по которому пользователь найдёт закрытое:
|
|
165
167
|
```
|
|
@@ -172,7 +172,9 @@ message), a request to "check the backlog", or "clean up the backlog".
|
|
|
172
172
|
4. `problems` — a list of `{ kind, … }`. `file-not-parsed`: the file `path` doesn't parse, reasons in
|
|
173
173
|
`problems` — fix the YAML by hand without changing `id`. List the rest for the user: `task-invalid` (error
|
|
174
174
|
`problem` in task `taskId`), `fix-failed` (the fix wasn't written, reason `cause`), `epics-wait-for-files`,
|
|
175
|
-
`project-without-repos`, `project-repos-missing`, `project-repo-not-git`, `project-
|
|
175
|
+
`project-without-repos`, `project-repos-missing`, `project-repo-not-git`, `project-repo-unsafe` (git doesn't
|
|
176
|
+
trust the directory `repo` owned by another user — don't edit `repos` in `project.md`, the user needs to run
|
|
177
|
+
`git config --global --add safe.directory "<repo>"`), `project-history-unreadable`,
|
|
176
178
|
`prefix-shared` (projects `projectIds` share one prefix — their task IDs collide).
|
|
177
179
|
5. End your answer with a block the user can use to find what was closed:
|
|
178
180
|
```
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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)}}
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._panel_1n3ez_1{gap:var(--space-3);min-width:0;padding:var(--space-4);border-radius:var(--radius-control);background:var(--surface-raised);box-shadow:0 0 0 1px var(--line);border:none;flex-direction:column;display:flex;container-type:inline-size}._head_1n3ez_14{justify-content:space-between;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}._heading_1n3ez_22{gap:var(--space-1);flex-direction:column;min-width:0;display:flex}._period_1n3ez_29{color:var(--ink-subtle);font-size:var(--text-sm);margin:0}._title_1n3ez_35{font-size:var(--text-base);margin:0;font-weight:600}._muted_14ll2_1{color:var(--ink-subtle);font-size:var(--text-sm);margin:0}._subTitle_14ll2_7{margin:0 0 var(--space-2);color:var(--ink);font-size:var(--text-sm);font-weight:600}._rows_14ll2_14{gap:var(--space-1);margin:var(--space-2) 0 0;font-size:var(--text-sm);flex-direction:column;padding:0;list-style:none;display:flex}._subTitle_14ll2_7+._rows_14ll2_14{margin-top:0}._countRow_14ll2_28{align-items:center;gap:var(--space-2);grid-template-columns:minmax(0,1fr) auto minmax(48px,96px);display:grid}._row_14ll2_14{justify-content:space-between;gap:var(--space-2);display:flex}._rowLabel_14ll2_41{white-space:normal;overflow-wrap:anywhere;min-width:0}._rowLabel_14ll2_41 a{color:var(--ink);text-decoration:underline;-webkit-text-decoration-color:var(--ink-subtle);text-decoration-color:var(--ink-subtle);text-underline-offset:2px}._rowLabel_14ll2_41 a:hover{-webkit-text-decoration-color:var(--ink);text-decoration-color:var(--ink)}._rowValue_14ll2_58{color:var(--ink-muted);font-variant-numeric:tabular-nums;flex-shrink:0}._wide_14ll2_64{grid-column:1/-1}._track_14ll2_68{background:var(--line);border-radius:2px;height:4px;overflow:hidden}._fill_14ll2_75{background:var(--accent-ink);transform-origin:0;height:100%;display:block}._grain_14ll2_82{gap:var(--space-1);display:inline-flex}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|