@debugkit/dashboard 0.0.0-stage → 0.3.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/.env.example +30 -0
- package/dist/client/assets/_authed-BDx4Txp7.js +7 -0
- package/dist/client/assets/_authed-D6P9RBN1.js +1 -0
- package/dist/client/assets/charts-Covhtva2.js +55 -0
- package/dist/client/assets/index-BKQXehfa.js +12 -0
- package/dist/client/assets/issues._fingerprint-DtAqk0rC.js +1 -0
- package/dist/client/assets/login-Da8b3hjR.js +1 -0
- package/dist/client/assets/styles-CZZRuG1z.css +2 -0
- package/dist/client/assets/ui-DnKidKVi.js +1 -0
- package/dist/server/assets/_authed-BjmBAX3l.js +482 -0
- package/dist/server/assets/_authed-x9Ku8dyL.js +40 -0
- package/dist/server/assets/_tanstack-start-manifest_v-CY7PP5UB.js +40 -0
- package/dist/server/assets/charts-CNlV7Pga.js +221 -0
- package/dist/server/assets/demo-DTdlXNgj.js +333 -0
- package/dist/server/assets/dynamodb-DejcakaF.js +187 -0
- package/dist/server/assets/empty-plugin-adapters-BsRz-CQL.js +4 -0
- package/dist/server/assets/firestore-BH-gx9no.js +112 -0
- package/dist/server/assets/fns-CgB12FUN.js +31 -0
- package/dist/server/assets/fns-Yg8sT1Cb.js +87 -0
- package/dist/server/assets/issues._fingerprint-C2EdByPH.js +255 -0
- package/dist/server/assets/login-BMGNYcxB.js +107 -0
- package/dist/server/assets/memory-4DwW5cTO.js +59 -0
- package/dist/server/assets/queries-DIVV-5j6.js +4274 -0
- package/dist/server/assets/rollups-JXbazRNh.js +22 -0
- package/dist/server/assets/router-D2L7-BwF.js +222 -0
- package/dist/server/assets/src-D5jyi_C4.js +235 -0
- package/dist/server/assets/start-t09PGpZL.js +3 -0
- package/dist/server/assets/ui-Lv-KcOoP.js +131 -0
- package/dist/server/server.js +7825 -0
- package/package.json +52 -3
- package/scripts/hash-password.mjs +17 -0
- package/server.mjs +50 -0
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,f as t,t as n}from"./index-BKQXehfa.js";import{n as r}from"./charts-Covhtva2.js";import{a as i,i as a,n as o,o as s,s as c,t as l}from"./ui-DnKidKVi.js";var u=t();function d(){let t=n.useLoaderData(),{issue:d,sample:f}=t,p=f?.event.type===`error`?f.event:null,m=p?.error.frames??[];return(0,u.jsxs)(`main`,{className:`mx-auto max-w-7xl space-y-5 px-4 py-6 sm:px-6`,children:[(0,u.jsx)(e,{to:`/`,search:{app:t.app},className:`text-sm text-muted hover:text-ink`,children:`← Overview`}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs text-muted`,children:[(0,u.jsx)(a,{severity:d.severity}),d.flow&&(0,u.jsx)(`span`,{className:`rounded bg-panel-2 px-1.5 py-0.5 font-mono`,children:d.flow}),(0,u.jsxs)(`span`,{children:[`First seen `,c(d.firstSeen),` · last seen `,c(d.lastSeen)]})]}),(0,u.jsx)(`h1`,{className:`mt-2 break-words text-xl font-semibold tracking-tight sm:text-2xl`,children:d.title}),d.culprit&&(0,u.jsx)(`p`,{className:`mt-1 font-mono text-sm text-muted`,children:d.culprit})]}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 lg:grid-cols-4`,children:[(0,u.jsx)(s,{label:`Occurrences (24h)`,value:d.count24h,tone:d.severity}),(0,u.jsx)(s,{label:`Total occurrences`,value:d.countTotal.toLocaleString()}),(0,u.jsx)(s,{label:`Users affected`,value:t.affectedUsers,hint:`in the last 200 events`}),(0,u.jsx)(s,{label:`Top app version`,value:t.breakdowns.appVersion[0]?.key??`—`,hint:t.breakdowns.appVersion[0]?`${Math.round(t.breakdowns.appVersion[0].share*100)}% of occurrences`:void 0})]}),(0,u.jsx)(l,{title:`What to look at`,subtitle:`Generated from the error, its breadcrumbs and where it happens.`,children:(0,u.jsx)(`ol`,{className:`space-y-3`,children:t.hints.map((e,t)=>(0,u.jsxs)(`li`,{className:`flex gap-3`,children:[(0,u.jsx)(`span`,{className:`mt-0.5 grid h-5 w-5 shrink-0 place-items-center rounded-full bg-accent-soft text-[11px] font-semibold text-accent`,children:t+1}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`div`,{className:`text-sm font-medium`,children:e.title}),(0,u.jsx)(`div`,{className:`text-sm text-muted`,children:e.detail})]})]},t))})}),(0,u.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-3`,children:[(0,u.jsx)(`div`,{className:`lg:col-span-2`,children:(0,u.jsxs)(l,{title:`Occurrences per hour`,subtitle:`Last 48 hours`,children:[(0,u.jsx)(r,{data:t.hourly}),(0,u.jsx)(o,{columns:[`Hour (UTC)`,`Count`],rows:t.hourly.map(e=>[e.hour,e.count])})]})}),(0,u.jsx)(l,{title:`Where it happens`,subtitle:`Share of recent occurrences`,children:(0,u.jsx)(`div`,{className:`space-y-4`,children:[`os`,`appVersion`,`deviceModel`,`network`].map(e=>(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`div`,{className:`mb-1.5 text-xs font-medium text-muted`,children:{os:`OS`,appVersion:`App version`,deviceModel:`Device`,network:`Network`}[e]}),(0,u.jsx)(i,{rows:t.breakdowns[e].map(e=>({key:e.key,value:e.count}))})]},e))})})]}),(0,u.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-2`,children:[(0,u.jsx)(l,{title:`Stack trace`,subtitle:`Most recent occurrence. In-app frames highlighted.`,children:m.length?(0,u.jsx)(`ol`,{className:`space-y-1 font-mono text-xs`,children:m.map((e,t)=>(0,u.jsxs)(`li`,{className:`rounded px-2 py-1 ${e.inApp?`bg-accent-soft text-ink`:`text-muted`}`,children:[(0,u.jsx)(`span`,{className:`font-semibold`,children:e.fn??`<anonymous>`}),` `,(0,u.jsxs)(`span`,{className:`break-all`,children:[e.file,`:`,e.line,`:`,e.col]})]},t))}):(0,u.jsx)(`pre`,{className:`overflow-auto whitespace-pre-wrap text-xs text-muted`,children:p?.error.stack??`No stack trace captured.`})}),(0,u.jsx)(l,{title:`Breadcrumbs`,subtitle:`What the user did right before the error`,children:p?.breadcrumbs?.length?(0,u.jsxs)(`ol`,{className:`relative space-y-3 border-l border-line pl-4`,children:[p.breadcrumbs.map((e,t)=>(0,u.jsxs)(`li`,{className:`text-sm`,children:[(0,u.jsx)(`span`,{className:`absolute -left-[5px] mt-1.5 h-2.5 w-2.5 rounded-full ${e.level===`error`?`bg-sev-critical`:`bg-line`}`}),(0,u.jsx)(`span`,{className:`mr-2 rounded bg-panel-2 px-1.5 py-0.5 text-[11px] uppercase tracking-wide text-muted`,children:e.category}),(0,u.jsx)(`span`,{className:`break-words`,children:e.message})]},t)),(0,u.jsxs)(`li`,{className:`text-sm font-medium text-sev-critical`,children:[(0,u.jsx)(`span`,{className:`absolute -left-[5px] mt-1.5 h-2.5 w-2.5 rounded-full bg-sev-critical`}),d.title]})]}):(0,u.jsxs)(`p`,{className:`text-sm text-muted`,children:[`No breadcrumbs. Call `,(0,u.jsx)(`code`,{children:`deBug.breadcrumb()`}),` on navigation and network calls to see the path to the error.`]})})]}),(0,u.jsx)(l,{title:`Recent occurrences`,children:(0,u.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,u.jsxs)(`table`,{className:`tabular w-full min-w-[600px] text-left text-sm`,children:[(0,u.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,u.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`When`}),(0,u.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`OS`}),(0,u.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`Version`}),(0,u.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`Device`}),(0,u.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`User`})]})}),(0,u.jsx)(`tbody`,{children:t.recent.map((e,t)=>(0,u.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,u.jsx)(`td`,{className:`px-4 py-2 text-xs text-muted sm:px-2`,children:c(e.ts)}),(0,u.jsx)(`td`,{className:`px-2 py-2`,children:e.os}),(0,u.jsx)(`td`,{className:`px-2 py-2`,children:e.appVersion??`—`}),(0,u.jsx)(`td`,{className:`px-2 py-2`,children:e.device??`—`}),(0,u.jsx)(`td`,{className:`px-2 py-2 font-mono text-xs text-muted`,children:e.userId??`anonymous`})]},t))})]})})})]})}export{d as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,a as t,d as n,f as r,m as i,r as a}from"./index-BKQXehfa.js";import{r as o}from"./ui-DnKidKVi.js";var s=e(i()),c=r();function l(){let e=a.useLoaderData(),r=n(),[i,l]=(0,s.useState)(e.demo?.email??``),[u,d]=(0,s.useState)(e.demo?.password??``),[f,p]=(0,s.useState)(null),[m,h]=(0,s.useState)(!1);async function g(e){e.preventDefault(),h(!0),p(null);try{let e=await t({data:{email:i,password:u}});if(!e.ok)return p(e.error);await r.invalidate(),await r.navigate({to:`/`})}catch{p(`Could not reach the dashboard server.`)}finally{h(!1)}}return(0,c.jsx)(`main`,{className:`flex min-h-screen items-center justify-center px-4`,children:(0,c.jsxs)(`form`,{onSubmit:g,className:`w-full max-w-sm rounded-xl border border-line bg-panel p-6 shadow-sm`,children:[(0,c.jsx)(o,{}),(0,c.jsx)(`h1`,{className:`mt-6 text-xl font-semibold`,children:`Sign in`}),(0,c.jsxs)(`p`,{className:`mt-1 text-sm text-muted`,children:[`This dashboard runs on your infrastructure and reads from your`,` `,e.store===`demo`?`demo dataset`:e.store===`memory`?`in-memory store on this machine`:e.store===`firestore`?`Firestore`:`DynamoDB`,`.`]}),e.demo&&(0,c.jsxs)(`p`,{className:`mt-4 rounded-md bg-accent-soft px-3 py-2 text-xs text-ink`,children:[`Demo mode: sign in with `,(0,c.jsx)(`b`,{children:e.demo.email}),` / `,(0,c.jsx)(`b`,{children:e.demo.password}),`. Set `,(0,c.jsx)(`code`,{children:`DEBUG_DASHBOARD_USERS`}),` to require real accounts.`]}),(0,c.jsx)(`label`,{className:`mt-5 block text-sm font-medium`,htmlFor:`email`,children:`Email`}),(0,c.jsx)(`input`,{id:`email`,type:`email`,autoComplete:`username`,required:!0,value:i,onChange:e=>l(e.target.value),className:`mt-1 w-full rounded-md border border-line bg-bg px-3 py-2 text-sm outline-none focus:border-accent`}),(0,c.jsx)(`label`,{className:`mt-4 block text-sm font-medium`,htmlFor:`password`,children:`Password`}),(0,c.jsx)(`input`,{id:`password`,type:`password`,autoComplete:`current-password`,required:!0,value:u,onChange:e=>d(e.target.value),className:`mt-1 w-full rounded-md border border-line bg-bg px-3 py-2 text-sm outline-none focus:border-accent`}),f&&(0,c.jsx)(`p`,{role:`alert`,className:`mt-3 text-sm text-sev-critical`,children:f}),(0,c.jsx)(`button`,{disabled:m,className:`mt-5 w-full rounded-md bg-ink px-3 py-2 text-sm font-medium text-bg disabled:opacity-60`,children:m?`Signing in…`:`Sign in`})]})})}export{l as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-xl:36rem;--container-2xl:42rem;--container-4xl:56rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--default-font-family:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--default-mono-font-family:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.-left-\[5px\]{left:-5px}.z-10{z-index:10}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.max-h-64{max-height:calc(var(--spacing) * 64)}.min-h-screen{min-height:100vh}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[420px\]{max-width:420px}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\[420px\]{min-width:420px}.min-w-\[600px\]{min-width:600px}.min-w-\[640px\]{min-width:640px}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-line{border-color:var(--border)}.bg-\[var\(--chart-errors\)\]{background-color:var(--chart-errors)}.bg-accent-soft{background-color:var(--accent-soft)}.bg-bg,.bg-bg\/90{background-color:var(--bg)}@supports (color:color-mix(in lab, red, red)){.bg-bg\/90{background-color:color-mix(in oklab, var(--bg) 90%, transparent)}}.bg-ink{background-color:var(--text)}.bg-line{background-color:var(--border)}.bg-panel{background-color:var(--panel)}.bg-panel-2{background-color:var(--panel-2)}.bg-sev-critical{background-color:var(--sev-critical)}.bg-sev-high{background-color:var(--sev-high)}.bg-sev-medium{background-color:var(--sev-medium)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-10{padding-block:calc(var(--spacing) * 10)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,monospace}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[11px\]{font-size:11px}.text-\[15px\]{font-size:15px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent{color:var(--accent)}.text-bg{color:var(--bg)}.text-black{color:var(--color-black)}.text-ink,.text-ink\/80{color:var(--text)}@supports (color:color-mix(in lab, red, red)){.text-ink\/80{color:color-mix(in oklab, var(--text) 80%, transparent)}}.text-ink\/90{color:var(--text)}@supports (color:color-mix(in lab, red, red)){.text-ink\/90{color:color-mix(in oklab, var(--text) 90%, transparent)}}.text-muted{color:var(--muted)}.text-sev-critical{color:var(--sev-critical)}.text-sev-high{color:var(--sev-high)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.outline-none{--tw-outline-style:none;outline-style:none}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media (hover:hover){.hover\:bg-panel-2:hover{background-color:var(--panel-2)}.hover\:text-accent:hover{color:var(--accent)}.hover\:text-ink:hover{color:var(--text)}}.focus\:border-accent:focus{border-color:var(--accent)}.disabled\:opacity-60:disabled{opacity:.6}@media (width>=40rem){.sm\:mx-0{margin-inline:0}.sm\:inline{display:inline}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:px-2{padding-inline:calc(var(--spacing) * 2)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media (width>=48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}}:root{--bg:#f7f7f5;--panel:#fff;--panel-2:#f1f1ee;--border:#e4e3de;--text:#1c1c1a;--muted:#6b6a64;--accent:#2f5cf2;--accent-soft:#e8edff;--sev-critical:#d1242f;--sev-high:#e2701b;--sev-medium:#c99a06;--sev-low:#8a8a84;--chart-errors:#d1242f;--chart-events:#9aa4bf;--chart-grid:#ebeae6;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#111110;--panel:#1a1a19;--panel-2:#222220;--border:#2e2e2b;--text:#ededea;--muted:#9b9a93;--accent:#7d9bff;--accent-soft:#1f2a4d;--sev-critical:#ff6b6b;--sev-high:#ff9d4d;--sev-medium:#f0c540;--sev-low:#8a8a84;--chart-errors:#ff6b6b;--chart-events:#5d6680;--chart-grid:#2a2a27;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}html,body{background:var(--bg);color:var(--text)}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased}.tabular{font-variant-numeric:tabular-nums}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e}from"./index-BKQXehfa.js";var t=e();function n(){return(0,t.jsxs)(`span`,{className:`inline-flex items-center gap-2 font-semibold tracking-tight`,children:[(0,t.jsx)(`span`,{className:`grid h-7 w-7 place-items-center rounded-md bg-sev-critical text-[11px] font-bold text-white`,children:`dB`}),(0,t.jsxs)(`span`,{children:[`de`,(0,t.jsx)(`span`,{className:`text-sev-critical`,children:`Bug`})]})]})}var r={critical:`bg-sev-critical text-white`,high:`bg-sev-high text-white`,medium:`bg-sev-medium text-black`,low:`bg-panel-2 text-muted border border-line`};function i({severity:e}){return(0,t.jsx)(`span`,{className:`inline-flex items-center rounded px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide ${r[e]}`,children:e})}function a({title:e,subtitle:n,children:r,right:i}){return(0,t.jsxs)(`section`,{className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:[(0,t.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,t.jsxs)(`div`,{children:[(0,t.jsx)(`h2`,{className:`text-sm font-semibold`,children:e}),n&&(0,t.jsx)(`p`,{className:`mt-0.5 text-xs text-muted`,children:n})]}),i]}),r]})}function o({label:e,value:n,hint:r,tone:i}){return(0,t.jsxs)(`div`,{className:`rounded-xl border border-line bg-panel p-4`,children:[(0,t.jsx)(`div`,{className:`text-xs text-muted`,children:e}),(0,t.jsx)(`div`,{className:`tabular mt-1 text-2xl font-semibold ${i===`critical`?`text-sev-critical`:i===`high`?`text-sev-high`:`text-ink`}`,children:n}),r&&(0,t.jsx)(`div`,{className:`mt-1 text-xs text-muted`,children:r})]})}function s({columns:e,rows:n}){return(0,t.jsxs)(`details`,{className:`mt-3 text-xs`,children:[(0,t.jsx)(`summary`,{className:`cursor-pointer text-muted hover:text-ink`,children:`View data`}),(0,t.jsx)(`div`,{className:`mt-2 max-h-64 overflow-auto rounded-md border border-line`,children:(0,t.jsxs)(`table`,{className:`tabular w-full text-left`,children:[(0,t.jsx)(`thead`,{className:`sticky top-0 bg-panel-2`,children:(0,t.jsx)(`tr`,{children:e.map(e=>(0,t.jsx)(`th`,{className:`px-2 py-1 font-medium`,children:e},e))})}),(0,t.jsx)(`tbody`,{children:n.map((e,n)=>(0,t.jsx)(`tr`,{className:`border-t border-line`,children:e.map((e,n)=>(0,t.jsx)(`td`,{className:`px-2 py-1`,children:e},n))},n))})]})})]})}function c({rows:e,total:n}){let r=n??e.reduce((e,t)=>e+t.value,0);return e.length?(0,t.jsx)(`ul`,{className:`space-y-2`,children:e.map(e=>{let n=r?e.value/r:0;return(0,t.jsxs)(`li`,{children:[(0,t.jsxs)(`div`,{className:`flex justify-between gap-2 text-xs`,children:[(0,t.jsx)(`span`,{className:`truncate`,children:e.key}),(0,t.jsxs)(`span`,{className:`tabular shrink-0 text-muted`,children:[e.value.toLocaleString(),` · `,Math.round(n*100),`%`]})]}),(0,t.jsx)(`div`,{className:`mt-1 h-1.5 rounded-full bg-panel-2`,children:(0,t.jsx)(`div`,{className:`h-1.5 rounded-full bg-[var(--chart-errors)]`,style:{width:`${Math.max(2,n*100)}%`}})})]},e.key)})}):(0,t.jsx)(`p`,{className:`text-xs text-muted`,children:`No data.`})}function l(e,t=Date.now()){let n=Math.max(0,Math.round((t-Date.parse(e))/1e3));return n<60?`${n}s ago`:n<3600?`${Math.round(n/60)}m ago`:n<86400?`${Math.round(n/3600)}h ago`:`${Math.round(n/86400)}d ago`}export{c as a,i,s as n,o,n as r,l as s,a as t};
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { r as TrendChart, t as FlowChart } from "./charts-CNlV7Pga.js";
|
|
2
|
+
import { a as ShareBars, i as SeverityBadge, n as DataTable, o as Stat, s as timeAgo, t as Card } from "./ui-Lv-KcOoP.js";
|
|
3
|
+
import { r as Route } from "./router-D2L7-BwF.js";
|
|
4
|
+
import { useEffect } from "react";
|
|
5
|
+
import { Link, useNavigate, useRouter } from "@tanstack/react-router";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
// src/routes/_authed/index.tsx?tsr-split=component
|
|
8
|
+
function Overview() {
|
|
9
|
+
const summary = Route.useLoaderData();
|
|
10
|
+
const { flow } = Route.useSearch();
|
|
11
|
+
const navigate = useNavigate({ from: Route.fullPath });
|
|
12
|
+
if (!summary) return /* @__PURE__ */ jsx(EmptyState, {});
|
|
13
|
+
const { totals } = summary;
|
|
14
|
+
const issues = flow ? summary.issues.filter((i) => (i.flow ?? "untagged") === flow) : summary.issues;
|
|
15
|
+
const change = totals.changePct;
|
|
16
|
+
return /* @__PURE__ */ jsxs("main", {
|
|
17
|
+
className: "mx-auto max-w-7xl space-y-5 px-4 py-6 sm:px-6",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsxs("div", {
|
|
20
|
+
className: "flex flex-wrap items-end justify-between gap-3",
|
|
21
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
22
|
+
className: "text-xs uppercase tracking-wide text-muted",
|
|
23
|
+
children: "Overview · last 24h"
|
|
24
|
+
}), /* @__PURE__ */ jsxs("h1", {
|
|
25
|
+
className: "text-2xl font-semibold tracking-tight",
|
|
26
|
+
children: ["What's going wrong in ", summary.app]
|
|
27
|
+
})] }), summary.apps.length > 1 && /* @__PURE__ */ jsx("select", {
|
|
28
|
+
"aria-label": "App",
|
|
29
|
+
value: summary.app,
|
|
30
|
+
onChange: (e) => navigate({ search: { app: e.target.value } }),
|
|
31
|
+
className: "rounded-md border border-line bg-panel px-2 py-1.5 text-sm",
|
|
32
|
+
children: summary.apps.map((a) => /* @__PURE__ */ jsx("option", { children: a }, a))
|
|
33
|
+
})]
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ jsx("section", {
|
|
36
|
+
"aria-label": "Summary",
|
|
37
|
+
className: "rounded-xl border border-line bg-panel p-4 sm:p-5",
|
|
38
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
39
|
+
className: "space-y-1.5 text-[15px] leading-relaxed",
|
|
40
|
+
children: summary.narrative.map((line, i) => /* @__PURE__ */ jsx("li", {
|
|
41
|
+
className: i === 0 ? "font-medium" : "text-ink/90",
|
|
42
|
+
children: line
|
|
43
|
+
}, i))
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ jsxs("div", {
|
|
47
|
+
className: "grid grid-cols-2 gap-3 lg:grid-cols-4",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Stat, {
|
|
50
|
+
label: "Errors (24h)",
|
|
51
|
+
value: totals.errors24h.toLocaleString(),
|
|
52
|
+
tone: totals.criticalIssues ? "critical" : void 0,
|
|
53
|
+
hint: change === null ? "no prior data" : `${change > 0 ? "▲" : change < 0 ? "▼" : "•"} ${Math.abs(change)}% vs previous 24h`
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsx(Stat, {
|
|
56
|
+
label: "Critical issues",
|
|
57
|
+
value: totals.criticalIssues,
|
|
58
|
+
tone: totals.criticalIssues ? "critical" : void 0,
|
|
59
|
+
hint: "≥ threshold occurrences in 24h"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ jsx(Stat, {
|
|
62
|
+
label: "Failing flows",
|
|
63
|
+
value: totals.failingFlows,
|
|
64
|
+
hint: "parts of the app with errors in 24h"
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsx(Stat, {
|
|
67
|
+
label: "Crash-free sessions (14d)",
|
|
68
|
+
value: asPct(summary.health.crashFreeRate),
|
|
69
|
+
tone: summary.health.crashFreeRate !== null && summary.health.crashFreeRate < .99 ? "high" : void 0,
|
|
70
|
+
hint: `${summary.health.sessions14d.toLocaleString()} sessions · ${totals.activeIssues} active issues`
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "grid gap-5 lg:grid-cols-5",
|
|
76
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
77
|
+
className: "lg:col-span-3",
|
|
78
|
+
children: /* @__PURE__ */ jsxs(Card, {
|
|
79
|
+
title: "Where the app is failing",
|
|
80
|
+
subtitle: "Errors in the last 24h by flow, coloured by worst severity. Click a bar to filter issues.",
|
|
81
|
+
children: [/* @__PURE__ */ jsx(FlowChart, {
|
|
82
|
+
data: summary.flows,
|
|
83
|
+
onSelect: (f) => navigate({ search: (s) => ({
|
|
84
|
+
...s,
|
|
85
|
+
flow: s.flow === f ? void 0 : f
|
|
86
|
+
}) })
|
|
87
|
+
}), /* @__PURE__ */ jsx(DataTable, {
|
|
88
|
+
columns: [
|
|
89
|
+
"Flow",
|
|
90
|
+
"Severity",
|
|
91
|
+
"Errors 24h",
|
|
92
|
+
"Errors 14d",
|
|
93
|
+
"Issues",
|
|
94
|
+
"Failure rate 14d"
|
|
95
|
+
],
|
|
96
|
+
rows: summary.flows.map((f) => [
|
|
97
|
+
f.flow,
|
|
98
|
+
f.severity,
|
|
99
|
+
f.errors24h,
|
|
100
|
+
f.errors14d,
|
|
101
|
+
f.issues,
|
|
102
|
+
f.failureRate === null ? "—" : `${Math.round(f.failureRate * 100)}%`
|
|
103
|
+
])
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
107
|
+
className: "lg:col-span-2",
|
|
108
|
+
children: /* @__PURE__ */ jsxs(Card, {
|
|
109
|
+
title: "Error trend",
|
|
110
|
+
subtitle: "Errors per day, last 14 days (UTC)",
|
|
111
|
+
children: [/* @__PURE__ */ jsx(TrendChart, { data: summary.trend }), /* @__PURE__ */ jsx(DataTable, {
|
|
112
|
+
columns: [
|
|
113
|
+
"Day",
|
|
114
|
+
"Errors",
|
|
115
|
+
"Events"
|
|
116
|
+
],
|
|
117
|
+
rows: summary.trend.map((d) => [
|
|
118
|
+
d.day,
|
|
119
|
+
d.errors,
|
|
120
|
+
d.events
|
|
121
|
+
])
|
|
122
|
+
})]
|
|
123
|
+
})
|
|
124
|
+
})]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ jsxs("div", {
|
|
127
|
+
className: "grid gap-5 lg:grid-cols-2",
|
|
128
|
+
children: [/* @__PURE__ */ jsx(Card, {
|
|
129
|
+
title: "Release health",
|
|
130
|
+
subtitle: "Share of sessions without a crash or unhandled error, per app version (14d). Recorded automatically by the SDK.",
|
|
131
|
+
children: summary.health.releases.length ? /* @__PURE__ */ jsx("div", {
|
|
132
|
+
className: "-mx-4 overflow-x-auto sm:mx-0",
|
|
133
|
+
children: /* @__PURE__ */ jsxs("table", {
|
|
134
|
+
className: "tabular w-full min-w-[420px] text-left text-sm",
|
|
135
|
+
children: [/* @__PURE__ */ jsx("thead", {
|
|
136
|
+
className: "text-xs text-muted",
|
|
137
|
+
children: /* @__PURE__ */ jsxs("tr", {
|
|
138
|
+
className: "border-b border-line",
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ jsx("th", {
|
|
141
|
+
className: "px-4 py-2 font-medium sm:px-2",
|
|
142
|
+
children: "Version"
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ jsx("th", {
|
|
145
|
+
className: "px-2 py-2 text-right font-medium",
|
|
146
|
+
children: "Sessions"
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ jsx("th", {
|
|
149
|
+
className: "px-2 py-2 text-right font-medium",
|
|
150
|
+
children: "Crash-free"
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ jsx("th", {
|
|
153
|
+
className: "px-2 py-2 text-right font-medium",
|
|
154
|
+
children: "Error-free"
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
})
|
|
158
|
+
}), /* @__PURE__ */ jsx("tbody", { children: summary.health.releases.map((r) => /* @__PURE__ */ jsxs("tr", {
|
|
159
|
+
className: "border-b border-line last:border-0",
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ jsx("td", {
|
|
162
|
+
className: "px-4 py-2 font-medium sm:px-2",
|
|
163
|
+
children: r.version
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ jsx("td", {
|
|
166
|
+
className: "px-2 py-2 text-right text-muted",
|
|
167
|
+
children: r.sessions.toLocaleString()
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ jsx("td", {
|
|
170
|
+
className: `px-2 py-2 text-right font-semibold ${healthTone(r.crashFreeRate)}`,
|
|
171
|
+
children: asPct(r.crashFreeRate)
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ jsx("td", {
|
|
174
|
+
className: "px-2 py-2 text-right",
|
|
175
|
+
children: asPct(r.errorFreeRate)
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
}, r.version)) })]
|
|
179
|
+
})
|
|
180
|
+
}) : /* @__PURE__ */ jsx("p", {
|
|
181
|
+
className: "text-sm text-muted",
|
|
182
|
+
children: "No sessions yet. They're recorded automatically from SDK 0.2."
|
|
183
|
+
})
|
|
184
|
+
}), /* @__PURE__ */ jsx(Card, {
|
|
185
|
+
title: "Failing endpoints",
|
|
186
|
+
subtitle: "Requests that returned 5xx, timed out or failed, 14d. Captured automatically from fetch and XHR.",
|
|
187
|
+
children: summary.health.endpoints.length ? /* @__PURE__ */ jsx(ShareBars, { rows: summary.health.endpoints.map((e) => ({
|
|
188
|
+
key: e.endpoint,
|
|
189
|
+
value: e.failures14d
|
|
190
|
+
})) }) : /* @__PURE__ */ jsx("p", {
|
|
191
|
+
className: "text-sm text-muted",
|
|
192
|
+
children: "No failed requests."
|
|
193
|
+
})
|
|
194
|
+
})]
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ jsx(Card, {
|
|
197
|
+
title: flow ? `Issues in ${flow}` : "Issues by severity",
|
|
198
|
+
subtitle: "Grouped errors. Severity is set by occurrences in the last 24 hours.",
|
|
199
|
+
right: flow ? /* @__PURE__ */ jsx("button", {
|
|
200
|
+
className: "text-xs text-accent",
|
|
201
|
+
onClick: () => navigate({ search: (s) => ({
|
|
202
|
+
...s,
|
|
203
|
+
flow: void 0
|
|
204
|
+
}) }),
|
|
205
|
+
children: "Clear filter ×"
|
|
206
|
+
}) : null,
|
|
207
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
208
|
+
className: "-mx-4 overflow-x-auto sm:mx-0",
|
|
209
|
+
children: /* @__PURE__ */ jsxs("table", {
|
|
210
|
+
className: "tabular w-full min-w-[640px] text-left text-sm",
|
|
211
|
+
children: [/* @__PURE__ */ jsx("thead", {
|
|
212
|
+
className: "text-xs text-muted",
|
|
213
|
+
children: /* @__PURE__ */ jsxs("tr", {
|
|
214
|
+
className: "border-b border-line",
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ jsx("th", {
|
|
217
|
+
className: "px-4 py-2 font-medium sm:px-2",
|
|
218
|
+
children: "Severity"
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ jsx("th", {
|
|
221
|
+
className: "px-2 py-2 font-medium",
|
|
222
|
+
children: "Issue"
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ jsx("th", {
|
|
225
|
+
className: "px-2 py-2 font-medium",
|
|
226
|
+
children: "Flow"
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ jsx("th", {
|
|
229
|
+
className: "px-2 py-2 text-right font-medium",
|
|
230
|
+
children: "24h"
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ jsx("th", {
|
|
233
|
+
className: "px-2 py-2 text-right font-medium",
|
|
234
|
+
children: "Total"
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ jsx("th", {
|
|
237
|
+
className: "px-2 py-2 text-right font-medium",
|
|
238
|
+
children: "Last seen"
|
|
239
|
+
})
|
|
240
|
+
]
|
|
241
|
+
})
|
|
242
|
+
}), /* @__PURE__ */ jsxs("tbody", { children: [issues.map((i) => /* @__PURE__ */ jsxs("tr", {
|
|
243
|
+
className: "border-b border-line last:border-0 hover:bg-panel-2",
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ jsx("td", {
|
|
246
|
+
className: "px-4 py-2.5 sm:px-2",
|
|
247
|
+
children: /* @__PURE__ */ jsx(SeverityBadge, { severity: i.severity })
|
|
248
|
+
}),
|
|
249
|
+
/* @__PURE__ */ jsxs("td", {
|
|
250
|
+
className: "max-w-[420px] px-2 py-2.5",
|
|
251
|
+
children: [/* @__PURE__ */ jsx(Link, {
|
|
252
|
+
to: "/issues/$fingerprint",
|
|
253
|
+
params: { fingerprint: i.fingerprint },
|
|
254
|
+
search: { app: summary.app },
|
|
255
|
+
className: "block truncate font-medium hover:text-accent",
|
|
256
|
+
children: i.title
|
|
257
|
+
}), i.culprit && /* @__PURE__ */ jsx("div", {
|
|
258
|
+
className: "truncate font-mono text-xs text-muted",
|
|
259
|
+
children: i.culprit
|
|
260
|
+
})]
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ jsx("td", {
|
|
263
|
+
className: "px-2 py-2.5 text-xs",
|
|
264
|
+
children: i.flow ?? /* @__PURE__ */ jsx("span", {
|
|
265
|
+
className: "text-muted",
|
|
266
|
+
children: "untagged"
|
|
267
|
+
})
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ jsx("td", {
|
|
270
|
+
className: "px-2 py-2.5 text-right font-semibold",
|
|
271
|
+
children: i.count24h
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ jsx("td", {
|
|
274
|
+
className: "px-2 py-2.5 text-right text-muted",
|
|
275
|
+
children: i.countTotal
|
|
276
|
+
}),
|
|
277
|
+
/* @__PURE__ */ jsx("td", {
|
|
278
|
+
className: "px-2 py-2.5 text-right text-xs text-muted",
|
|
279
|
+
children: timeAgo(i.lastSeen)
|
|
280
|
+
})
|
|
281
|
+
]
|
|
282
|
+
}, i.fingerprint)), !issues.length && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
|
|
283
|
+
colSpan: 6,
|
|
284
|
+
className: "px-2 py-6 text-center text-muted",
|
|
285
|
+
children: "No issues."
|
|
286
|
+
}) })] })]
|
|
287
|
+
})
|
|
288
|
+
})
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ jsxs("div", {
|
|
291
|
+
className: "grid gap-5 md:grid-cols-3",
|
|
292
|
+
children: [
|
|
293
|
+
/* @__PURE__ */ jsx(Card, {
|
|
294
|
+
title: "By OS",
|
|
295
|
+
subtitle: "Errors, 14d",
|
|
296
|
+
children: /* @__PURE__ */ jsx(ShareBars, { rows: summary.breakdowns.os.map((r) => ({
|
|
297
|
+
key: r.key,
|
|
298
|
+
value: r.errors
|
|
299
|
+
})) })
|
|
300
|
+
}),
|
|
301
|
+
/* @__PURE__ */ jsx(Card, {
|
|
302
|
+
title: "By app version",
|
|
303
|
+
subtitle: "Errors, 14d",
|
|
304
|
+
children: /* @__PURE__ */ jsx(ShareBars, { rows: summary.breakdowns.appVersion.map((r) => ({
|
|
305
|
+
key: r.key,
|
|
306
|
+
value: r.errors
|
|
307
|
+
})) })
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ jsx(Card, {
|
|
310
|
+
title: "By device",
|
|
311
|
+
subtitle: "Errors, 14d",
|
|
312
|
+
children: /* @__PURE__ */ jsx(ShareBars, { rows: summary.breakdowns.deviceModel.map((r) => ({
|
|
313
|
+
key: r.key,
|
|
314
|
+
value: r.errors
|
|
315
|
+
})) })
|
|
316
|
+
})
|
|
317
|
+
]
|
|
318
|
+
}),
|
|
319
|
+
/* @__PURE__ */ jsxs("p", {
|
|
320
|
+
className: "pb-6 text-xs text-muted",
|
|
321
|
+
children: [
|
|
322
|
+
"Machine-readable: ",
|
|
323
|
+
/* @__PURE__ */ jsxs("code", { children: ["GET /api/summary?app=", summary.app] }),
|
|
324
|
+
" returns this page as JSON with field descriptions."
|
|
325
|
+
]
|
|
326
|
+
})
|
|
327
|
+
]
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
function asPct(rate) {
|
|
331
|
+
return rate === null ? "—" : `${(Math.floor(rate * 1e3) / 10).toFixed(1)}%`;
|
|
332
|
+
}
|
|
333
|
+
function healthTone(rate) {
|
|
334
|
+
if (rate === null) return "";
|
|
335
|
+
return rate < .98 ? "text-sev-critical" : rate < .995 ? "text-sev-high" : "";
|
|
336
|
+
}
|
|
337
|
+
var WHAT_YOU_WILL_SEE = [
|
|
338
|
+
{
|
|
339
|
+
title: "A written summary",
|
|
340
|
+
when: "after the first error",
|
|
341
|
+
detail: "How many errors in the last 24 hours, the worst part of the app, the top issue and the release that's struggling, in plain sentences."
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
title: "Issues by severity",
|
|
345
|
+
when: "after the first error",
|
|
346
|
+
detail: "Errors grouped by cause. Severity comes from how often each happened in the last 24 hours. Open one for the stack trace and the steps that led to it."
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
title: "Release health",
|
|
350
|
+
when: "as soon as the app starts",
|
|
351
|
+
detail: "Every app launch is a session. You'll see the share of sessions per version that ran without a crash or an unhandled error."
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
title: "Failing endpoints",
|
|
355
|
+
when: "after the first failed request",
|
|
356
|
+
detail: "Requests that timed out, failed or returned 5xx, captured from fetch and XHR without any code from you."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
title: "Where the app is failing",
|
|
360
|
+
when: "once you tag flows",
|
|
361
|
+
detail: "Errors by flow, like auth.login or checkout.payment. Wrap a step in deBug.track() and each flow also gets a failure rate."
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
title: "Breakdowns",
|
|
365
|
+
when: "after the first error",
|
|
366
|
+
detail: "Errors split by OS, app version and device model, so you can see who is affected."
|
|
367
|
+
}
|
|
368
|
+
];
|
|
369
|
+
function EmptyState() {
|
|
370
|
+
const router = useRouter();
|
|
371
|
+
useEffect(() => {
|
|
372
|
+
const t = setInterval(() => void router.invalidate(), 5e3);
|
|
373
|
+
return () => clearInterval(t);
|
|
374
|
+
}, [router]);
|
|
375
|
+
return /* @__PURE__ */ jsxs("main", {
|
|
376
|
+
className: "mx-auto max-w-4xl space-y-6 px-4 py-10 sm:px-6",
|
|
377
|
+
children: [
|
|
378
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
379
|
+
/* @__PURE__ */ jsx("p", {
|
|
380
|
+
className: "text-xs uppercase tracking-wide text-muted",
|
|
381
|
+
children: "Connected · waiting for the first event"
|
|
382
|
+
}),
|
|
383
|
+
/* @__PURE__ */ jsx("h1", {
|
|
384
|
+
className: "mt-1 text-2xl font-semibold tracking-tight",
|
|
385
|
+
children: "Your dashboard is ready, and empty for now."
|
|
386
|
+
}),
|
|
387
|
+
/* @__PURE__ */ jsxs("p", {
|
|
388
|
+
className: "mt-2 max-w-2xl text-sm text-muted",
|
|
389
|
+
children: [
|
|
390
|
+
"Nothing has arrived yet. Run your app with the SDK initialised, or send a test event with ",
|
|
391
|
+
/* @__PURE__ */ jsx("code", { children: "npx debugkit test" }),
|
|
392
|
+
". This page fills in on its own."
|
|
393
|
+
]
|
|
394
|
+
})
|
|
395
|
+
] }),
|
|
396
|
+
/* @__PURE__ */ jsxs("section", {
|
|
397
|
+
"aria-labelledby": "see-h",
|
|
398
|
+
className: "rounded-xl border border-line bg-panel p-4 sm:p-5",
|
|
399
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
400
|
+
id: "see-h",
|
|
401
|
+
className: "text-sm font-semibold",
|
|
402
|
+
children: "What you'll see here"
|
|
403
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
404
|
+
className: "mt-3 grid gap-3 sm:grid-cols-2",
|
|
405
|
+
children: WHAT_YOU_WILL_SEE.map((w) => /* @__PURE__ */ jsxs("li", {
|
|
406
|
+
className: "rounded-lg border border-line p-3",
|
|
407
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
408
|
+
className: "flex flex-wrap items-baseline justify-between gap-2",
|
|
409
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
410
|
+
className: "font-medium",
|
|
411
|
+
children: w.title
|
|
412
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
413
|
+
className: "text-[11px] uppercase tracking-wide text-muted",
|
|
414
|
+
children: w.when
|
|
415
|
+
})]
|
|
416
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
417
|
+
className: "mt-1 text-sm text-ink/80",
|
|
418
|
+
children: w.detail
|
|
419
|
+
})]
|
|
420
|
+
}, w.title))
|
|
421
|
+
})]
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ jsxs("div", {
|
|
424
|
+
className: "grid gap-4 md:grid-cols-2",
|
|
425
|
+
children: [/* @__PURE__ */ jsxs("section", {
|
|
426
|
+
"aria-labelledby": "auto-h",
|
|
427
|
+
className: "rounded-xl border border-line bg-panel p-4 sm:p-5",
|
|
428
|
+
children: [
|
|
429
|
+
/* @__PURE__ */ jsx("h2", {
|
|
430
|
+
id: "auto-h",
|
|
431
|
+
className: "text-sm font-semibold",
|
|
432
|
+
children: "Recorded automatically"
|
|
433
|
+
}),
|
|
434
|
+
/* @__PURE__ */ jsxs("p", {
|
|
435
|
+
className: "mt-1 text-xs text-muted",
|
|
436
|
+
children: [
|
|
437
|
+
"Once ",
|
|
438
|
+
/* @__PURE__ */ jsx("code", { children: "init()" }),
|
|
439
|
+
" runs, with no other code."
|
|
440
|
+
]
|
|
441
|
+
}),
|
|
442
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
443
|
+
className: "mt-3 list-disc space-y-1 pl-5 text-sm",
|
|
444
|
+
children: [
|
|
445
|
+
/* @__PURE__ */ jsx("li", { children: "Crashes and unhandled promise rejections" }),
|
|
446
|
+
/* @__PURE__ */ jsx("li", { children: "Failed, timed-out and 5xx requests, with the code that made them" }),
|
|
447
|
+
/* @__PURE__ */ jsx("li", { children: "Sessions, for crash-free rates per release" }),
|
|
448
|
+
/* @__PURE__ */ jsx("li", { children: "Screens visited, buttons clicked, console warnings, app backgrounded or offline" }),
|
|
449
|
+
/* @__PURE__ */ jsx("li", { children: "Device, OS, app version and network on every event" })
|
|
450
|
+
]
|
|
451
|
+
})
|
|
452
|
+
]
|
|
453
|
+
}), /* @__PURE__ */ jsxs("section", {
|
|
454
|
+
"aria-labelledby": "manual-h",
|
|
455
|
+
className: "rounded-xl border border-line bg-panel p-4 sm:p-5",
|
|
456
|
+
children: [
|
|
457
|
+
/* @__PURE__ */ jsx("h2", {
|
|
458
|
+
id: "manual-h",
|
|
459
|
+
className: "text-sm font-semibold",
|
|
460
|
+
children: "What you add"
|
|
461
|
+
}),
|
|
462
|
+
/* @__PURE__ */ jsx("p", {
|
|
463
|
+
className: "mt-1 text-xs text-muted",
|
|
464
|
+
children: "Only what the app can't know on its own."
|
|
465
|
+
}),
|
|
466
|
+
/* @__PURE__ */ jsx("pre", {
|
|
467
|
+
className: "mt-3 overflow-x-auto rounded-md bg-panel-2 p-3 text-xs leading-relaxed",
|
|
468
|
+
children: `// in a try/catch you already have
|
|
469
|
+
catch (err) {
|
|
470
|
+
deBug.error(err, { flow: "checkout.payment", step: "charge" });
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// success or failure of a step, plus the error
|
|
474
|
+
await deBug.track("auth.login", "submit_otp", () => verifyOtp(code));`
|
|
475
|
+
})
|
|
476
|
+
]
|
|
477
|
+
})]
|
|
478
|
+
})
|
|
479
|
+
]
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
export { Overview as component };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { r as Logo } from "./ui-Lv-KcOoP.js";
|
|
2
|
+
import { o as logout } from "./fns-CgB12FUN.js";
|
|
3
|
+
import { a as Route } from "./router-D2L7-BwF.js";
|
|
4
|
+
import { Link, Outlet, useRouter } from "@tanstack/react-router";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
// src/routes/_authed.tsx?tsr-split=component
|
|
7
|
+
function Layout() {
|
|
8
|
+
const { user } = Route.useRouteContext();
|
|
9
|
+
const router = useRouter();
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
+
className: "min-h-screen",
|
|
12
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
13
|
+
className: "sticky top-0 z-10 border-b border-line bg-bg/90 backdrop-blur",
|
|
14
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
15
|
+
className: "mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-3 sm:px-6",
|
|
16
|
+
children: [/* @__PURE__ */ jsx(Link, {
|
|
17
|
+
to: "/",
|
|
18
|
+
search: {},
|
|
19
|
+
className: "shrink-0",
|
|
20
|
+
children: /* @__PURE__ */ jsx(Logo, {})
|
|
21
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
22
|
+
className: "flex items-center gap-3 text-sm",
|
|
23
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
24
|
+
className: "hidden text-muted sm:inline",
|
|
25
|
+
children: user.email
|
|
26
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
27
|
+
className: "rounded-md border border-line px-2.5 py-1 hover:bg-panel-2",
|
|
28
|
+
onClick: async () => {
|
|
29
|
+
await logout();
|
|
30
|
+
await router.invalidate();
|
|
31
|
+
await router.navigate({ to: "/login" });
|
|
32
|
+
},
|
|
33
|
+
children: "Sign out"
|
|
34
|
+
})]
|
|
35
|
+
})]
|
|
36
|
+
})
|
|
37
|
+
}), /* @__PURE__ */ jsx(Outlet, {})]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export { Layout as component };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// \0tanstack-start-manifest:v
|
|
2
|
+
var tsrStartManifest = () => ({ routes: {
|
|
3
|
+
__root__: {
|
|
4
|
+
filePath: "/Users/sivemwanda/Work/Tanstack/deBug/apps/dashboard/src/routes/__root.tsx",
|
|
5
|
+
children: [
|
|
6
|
+
"/_authed",
|
|
7
|
+
"/login",
|
|
8
|
+
"/api/ingest",
|
|
9
|
+
"/api/summary",
|
|
10
|
+
"/api/issues/$fingerprint"
|
|
11
|
+
],
|
|
12
|
+
preloads: ["/assets/index-BKQXehfa.js"],
|
|
13
|
+
scripts: [{ attrs: {
|
|
14
|
+
type: "module",
|
|
15
|
+
async: !0,
|
|
16
|
+
src: "/assets/index-BKQXehfa.js"
|
|
17
|
+
} }]
|
|
18
|
+
},
|
|
19
|
+
"/_authed": {
|
|
20
|
+
filePath: "/Users/sivemwanda/Work/Tanstack/deBug/apps/dashboard/src/routes/_authed.tsx",
|
|
21
|
+
children: ["/_authed/", "/_authed/issues/$fingerprint"],
|
|
22
|
+
preloads: ["/assets/_authed-D6P9RBN1.js", "/assets/ui-DnKidKVi.js"]
|
|
23
|
+
},
|
|
24
|
+
"/login": {
|
|
25
|
+
filePath: "/Users/sivemwanda/Work/Tanstack/deBug/apps/dashboard/src/routes/login.tsx",
|
|
26
|
+
children: void 0,
|
|
27
|
+
preloads: ["/assets/login-Da8b3hjR.js", "/assets/ui-DnKidKVi.js"]
|
|
28
|
+
},
|
|
29
|
+
"/_authed/": {
|
|
30
|
+
filePath: "/Users/sivemwanda/Work/Tanstack/deBug/apps/dashboard/src/routes/_authed/index.tsx",
|
|
31
|
+
children: void 0,
|
|
32
|
+
preloads: ["/assets/_authed-BDx4Txp7.js", "/assets/charts-Covhtva2.js"]
|
|
33
|
+
},
|
|
34
|
+
"/_authed/issues/$fingerprint": {
|
|
35
|
+
filePath: "/Users/sivemwanda/Work/Tanstack/deBug/apps/dashboard/src/routes/_authed/issues.$fingerprint.tsx",
|
|
36
|
+
children: void 0,
|
|
37
|
+
preloads: ["/assets/issues._fingerprint-DtAqk0rC.js", "/assets/charts-Covhtva2.js"]
|
|
38
|
+
}
|
|
39
|
+
} });
|
|
40
|
+
export { tsrStartManifest };
|