@karan171996/metricflow 0.11.1 → 0.12.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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/next-server.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +4 -4
- package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/health/route.js.nft.json +1 -1
- package/.next/server/app/connect/page.js.nft.json +1 -1
- package/.next/server/app/connect/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connect.html +2 -2
- package/.next/server/app/connect.rsc +4 -4
- package/.next/server/app/connect.segments/_full.segment.rsc +4 -4
- package/.next/server/app/connect.segments/_index.segment.rsc +3 -3
- package/.next/server/app/connect.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/connect.segments/connect/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +6 -6
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +6 -6
- package/.next/server/app/index.segments/_index.segment.rsc +3 -3
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance/[slug]/page.js.nft.json +1 -1
- package/.next/server/app/performance/[slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance/page.js.nft.json +1 -1
- package/.next/server/app/performance/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance.html +2 -2
- package/.next/server/app/performance.rsc +10 -10
- package/.next/server/app/performance.segments/_full.segment.rsc +10 -10
- package/.next/server/app/performance.segments/_index.segment.rsc +7 -7
- package/.next/server/app/performance.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/performance.segments/performance/__PAGE__.segment.rsc +6 -6
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup.html +2 -2
- package/.next/server/app/setup.rsc +4 -4
- package/.next/server/app/setup.segments/_full.segment.rsc +4 -4
- package/.next/server/app/setup.segments/_index.segment.rsc +3 -3
- package/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tools/[tool]/page.js.nft.json +1 -1
- package/.next/server/app/tools/[tool]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0fkj1-q._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__02c3m72._.js +1 -1
- package/.next/server/chunks/ssr/_0-u65it._.js +3 -0
- package/.next/server/chunks/ssr/{_03vzzge._.js → _09p8bi4._.js} +1 -1
- package/.next/server/chunks/ssr/_0r3gp17._.js +3 -0
- package/.next/server/chunks/ssr/_0zneont._.js +3 -0
- package/.next/server/chunks/ssr/_13m9nev._.js +1 -1
- package/.next/server/chunks/ssr/_19n6wbo._.js +3 -0
- package/.next/server/chunks/ssr/_1b8x2qw._.js +3 -0
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/0hi47ko7gli7r.js +1 -0
- package/.next/static/chunks/2l2wznd_1jeh0.css +1 -0
- package/.next/static/chunks/32-2bttdrtgys.js +1 -0
- package/.next/static/chunks/3pxx39yay0ace.js +1 -0
- package/.next/static/chunks/{0qyqgoivxmfa9.js → 44njmafj9n_57.js} +1 -1
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/package.json +1 -1
- package/.next/server/chunks/ssr/_0_8ffmk._.js +0 -3
- package/.next/server/chunks/ssr/_0ovnhv_._.js +0 -3
- package/.next/server/chunks/ssr/_0r3_nx1._.js +0 -3
- package/.next/server/chunks/ssr/_1m21xmc._.js +0 -3
- package/.next/server/chunks/ssr/_1u-atbb._.js +0 -3
- package/.next/static/chunks/08mon8yjj189v.js +0 -1
- package/.next/static/chunks/1-e3y5w9yuttx.js +0 -1
- package/.next/static/chunks/2-_lp05t5zcjb.js +0 -1
- package/.next/static/chunks/24b86benpq6o_.css +0 -1
- /package/.next/static/{Yv5DeofpLN8HP7dgDqauX → NHQ4g32LW3240YTsmm7Mz}/_buildManifest.js +0 -0
- /package/.next/static/{Yv5DeofpLN8HP7dgDqauX → NHQ4g32LW3240YTsmm7Mz}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{Yv5DeofpLN8HP7dgDqauX → NHQ4g32LW3240YTsmm7Mz}/_ssgManifest.js +0 -0
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":269,"timestamp":368255386623,"id":4,"parentId":1,"tags":{},"startTime":1791631294451,"traceId":"357490f7cc394642"},{"name":"load-custom-routes","duration":379,"timestamp":368255386997,"id":5,"parentId":1,"tags":{},"startTime":1791631294452,"traceId":"357490f7cc394642"},{"name":"create-dist-dir","duration":198,"timestamp":368255387404,"id":6,"parentId":1,"tags":{},"startTime":1791631294452,"traceId":"357490f7cc394642"},{"name":"clean","duration":83391,"timestamp":368255388477,"id":7,"parentId":1,"tags":{},"startTime":1791631294453,"traceId":"357490f7cc394642"},{"name":"discover-routes","duration":8097,"timestamp":368255482434,"id":8,"parentId":1,"tags":{},"startTime":1791631294547,"traceId":"357490f7cc394642"},{"name":"create-root-mapping","duration":88,"timestamp":368255490564,"id":9,"parentId":1,"tags":{},"startTime":1791631294555,"traceId":"357490f7cc394642"},{"name":"generate-route-types","duration":17719,"timestamp":368255492123,"id":10,"parentId":1,"tags":{},"startTime":1791631294557,"traceId":"357490f7cc394642"},{"name":"public-dir-conflict-check","duration":80,"timestamp":368255509903,"id":11,"parentId":1,"tags":{},"startTime":1791631294574,"traceId":"357490f7cc394642"},{"name":"generate-routes-manifest","duration":2328,"timestamp":368255510076,"id":12,"parentId":1,"tags":{},"startTime":1791631294575,"traceId":"357490f7cc394642"},{"name":"run-turbopack","duration":3070512,"timestamp":368255520482,"id":14,"parentId":1,"tags":{},"startTime":1791631294585,"traceId":"357490f7cc394642"},{"name":"turbopack-build-events","duration":80,"timestamp":368255921947,"id":15,"parentId":1,"tags":{},"startTime":1791631294986,"traceId":"357490f7cc394642"},{"name":"turbopack-persistence","duration":149000,"timestamp":368258050925,"id":16,"parentId":15,"tags":{"reason":"stop","snapshot_duration_ms":3.022491,"persist_duration_ms":145.80657,"task_count":3389,"bytes_written":2489569,"bytes_deleted":0},"startTime":1791631297266,"traceId":"357490f7cc394642"},{"name":"run-typescript","duration":2884769,"timestamp":368258594175,"id":18,"parentId":1,"tags":{},"startTime":1791631297659,"traceId":"357490f7cc394642"},{"name":"generate-required-server-files","duration":666,"timestamp":368261479434,"id":20,"parentId":1,"tags":{},"startTime":1791631300544,"traceId":"357490f7cc394642"},{"name":"check-static-error-page","duration":6643,"timestamp":368261494706,"id":22,"parentId":21,"tags":{},"startTime":1791631300559,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":904837,"timestamp":368261502564,"id":42,"parentId":24,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":911096,"timestamp":368261496487,"id":24,"parentId":21,"tags":{"page":"/_global-error"},"startTime":1791631300561,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1159918,"timestamp":368261504176,"id":50,"parentId":32,"tags":{},"startTime":1791631300569,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1166718,"timestamp":368261497417,"id":32,"parentId":21,"tags":{"page":"/api/timings"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1241804,"timestamp":368261502336,"id":41,"parentId":23,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1248814,"timestamp":368261495371,"id":23,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1791631300560,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1245960,"timestamp":368261502622,"id":43,"parentId":25,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1251895,"timestamp":368261496728,"id":25,"parentId":21,"tags":{"page":"/api/analyze"},"startTime":1791631300561,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1253096,"timestamp":368261502799,"id":47,"parentId":29,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1258810,"timestamp":368261497128,"id":29,"parentId":21,"tags":{"page":"/api/settings"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1258615,"timestamp":368261502711,"id":45,"parentId":27,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1264434,"timestamp":368261496937,"id":27,"parentId":21,"tags":{"page":"/api/health"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1251306,"timestamp":368261511695,"id":54,"parentId":37,"tags":{},"startTime":1791631300576,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1262157,"timestamp":368261500882,"id":37,"parentId":21,"tags":{"page":"/performance"},"startTime":1791631300566,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1259497,"timestamp":368261511664,"id":52,"parentId":33,"tags":{},"startTime":1791631300576,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1273700,"timestamp":368261497506,"id":33,"parentId":21,"tags":{"page":"/connect"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1274940,"timestamp":368261502666,"id":44,"parentId":26,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1280816,"timestamp":368261496841,"id":26,"parentId":21,"tags":{"page":"/api/connect"},"startTime":1791631300561,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1274997,"timestamp":368261502751,"id":46,"parentId":28,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1280739,"timestamp":368261497041,"id":28,"parentId":21,"tags":{"page":"/api/metrics"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1292191,"timestamp":368261504240,"id":51,"parentId":34,"tags":{},"startTime":1791631300569,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1298868,"timestamp":368261497606,"id":34,"parentId":21,"tags":{"page":"/icon.svg"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1287715,"timestamp":368261511685,"id":53,"parentId":35,"tags":{},"startTime":1791631300576,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1301755,"timestamp":368261497682,"id":35,"parentId":21,"tags":{"page":"/"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1305438,"timestamp":368261502854,"id":48,"parentId":30,"tags":{},"startTime":1791631300567,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1311115,"timestamp":368261497209,"id":30,"parentId":21,"tags":{"page":"/api/setup/ai"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1308763,"timestamp":368261511708,"id":56,"parentId":39,"tags":{},"startTime":1791631300576,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1319389,"timestamp":368261501106,"id":39,"parentId":21,"tags":{"page":"/setup"},"startTime":1791631300566,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1309799,"timestamp":368261511702,"id":55,"parentId":38,"tags":{},"startTime":1791631300576,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1320517,"timestamp":368261500998,"id":38,"parentId":21,"tags":{"page":"/settings"},"startTime":1791631300566,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1319790,"timestamp":368261502915,"id":49,"parentId":31,"tags":{},"startTime":1791631300568,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1325426,"timestamp":368261497307,"id":31,"parentId":21,"tags":{"page":"/api/setup"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1309751,"timestamp":368261513071,"id":58,"parentId":36,"tags":{},"startTime":1791631300578,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1325013,"timestamp":368261497826,"id":36,"parentId":21,"tags":{"page":"/performance/[slug]"},"startTime":1791631300562,"traceId":"357490f7cc394642"},{"name":"is-page-static","duration":1316566,"timestamp":368261512612,"id":57,"parentId":40,"tags":{},"startTime":1791631300577,"traceId":"357490f7cc394642"},{"name":"check-page","duration":1328016,"timestamp":368261501185,"id":40,"parentId":21,"tags":{"page":"/tools/[tool]"},"startTime":1791631300566,"traceId":"357490f7cc394642"},{"name":"static-check","duration":1334937,"timestamp":368261494286,"id":21,"parentId":1,"tags":{},"startTime":1791631300559,"traceId":"357490f7cc394642"},{"name":"write-routes-manifest","duration":663,"timestamp":368262834041,"id":60,"parentId":1,"tags":{},"startTime":1791631301899,"traceId":"357490f7cc394642"},{"name":"load-dotenv","duration":40,"timestamp":368262844338,"id":63,"parentId":62,"tags":{},"startTime":1791631301909,"traceId":"357490f7cc394642"},{"name":"run-export-path-map","duration":469,"timestamp":368262848583,"id":64,"parentId":62,"tags":{},"startTime":1791631301913,"traceId":"357490f7cc394642"},{"name":"next-export","duration":508935,"timestamp":368262843297,"id":62,"parentId":1,"tags":{},"startTime":1791631301908,"traceId":"357490f7cc394642"},{"name":"move-exported-app-not-found-","duration":859,"timestamp":368263354381,"id":65,"parentId":61,"tags":{},"startTime":1791631302419,"traceId":"357490f7cc394642"},{"name":"move-exported-app-global-error-","duration":602,"timestamp":368263355312,"id":66,"parentId":61,"tags":{},"startTime":1791631302420,"traceId":"357490f7cc394642"},{"name":"static-generation","duration":519836,"timestamp":368262837081,"id":61,"parentId":1,"tags":{},"startTime":1791631301902,"traceId":"357490f7cc394642"},{"name":"write-routes-manifest","duration":418,"timestamp":368263357149,"id":67,"parentId":1,"tags":{},"startTime":1791631302422,"traceId":"357490f7cc394642"},{"name":"print-tree-view","duration":3932,"timestamp":368263414870,"id":68,"parentId":1,"tags":{},"startTime":1791631302480,"traceId":"357490f7cc394642"},{"name":"write-route-bundle-stats","duration":14060,"timestamp":368263418862,"id":69,"parentId":1,"tags":{},"startTime":1791631302484,"traceId":"357490f7cc394642"},{"name":"telemetry-flush","duration":451916,"timestamp":368263432938,"id":70,"parentId":1,"tags":{},"startTime":1791631302498,"traceId":"357490f7cc394642"},{"name":"next-build","duration":8625252,"timestamp":368255259626,"id":1,"tags":{"buildMode":"default","version":"16.3.8","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1791631294324,"traceId":"357490f7cc394642"}]
|
|
1
|
+
[{"name":"generate-buildid","duration":316,"timestamp":376429871805,"id":4,"parentId":1,"tags":{},"startTime":1791639469285,"traceId":"bd4c01237ee3f822"},{"name":"load-custom-routes","duration":578,"timestamp":376429872303,"id":5,"parentId":1,"tags":{},"startTime":1791639469286,"traceId":"bd4c01237ee3f822"},{"name":"create-dist-dir","duration":276,"timestamp":376429872916,"id":6,"parentId":1,"tags":{},"startTime":1791639469287,"traceId":"bd4c01237ee3f822"},{"name":"clean","duration":403573,"timestamp":376429874206,"id":7,"parentId":1,"tags":{},"startTime":1791639469288,"traceId":"bd4c01237ee3f822"},{"name":"discover-routes","duration":15787,"timestamp":376430308134,"id":8,"parentId":1,"tags":{},"startTime":1791639469722,"traceId":"bd4c01237ee3f822"},{"name":"create-root-mapping","duration":141,"timestamp":376430323972,"id":9,"parentId":1,"tags":{},"startTime":1791639469738,"traceId":"bd4c01237ee3f822"},{"name":"generate-route-types","duration":222207,"timestamp":376430326394,"id":10,"parentId":1,"tags":{},"startTime":1791639469740,"traceId":"bd4c01237ee3f822"},{"name":"public-dir-conflict-check","duration":132,"timestamp":376430548721,"id":11,"parentId":1,"tags":{},"startTime":1791639469962,"traceId":"bd4c01237ee3f822"},{"name":"generate-routes-manifest","duration":5272,"timestamp":376430548989,"id":12,"parentId":1,"tags":{},"startTime":1791639469963,"traceId":"bd4c01237ee3f822"},{"name":"run-turbopack","duration":10979701,"timestamp":376430561474,"id":14,"parentId":1,"tags":{},"startTime":1791639469975,"traceId":"bd4c01237ee3f822"},{"name":"turbopack-build-events","duration":116,"timestamp":376431824801,"id":15,"parentId":1,"tags":{},"startTime":1791639471238,"traceId":"bd4c01237ee3f822"},{"name":"turbopack-persistence","duration":535000,"timestamp":376440934265,"id":16,"parentId":15,"tags":{"reason":"stop","snapshot_duration_ms":21.480061000000003,"persist_duration_ms":513.5721159999999,"task_count":4096,"bytes_written":23823124,"bytes_deleted":0},"startTime":1791639480887,"traceId":"bd4c01237ee3f822"},{"name":"run-typescript","duration":18850216,"timestamp":376441557724,"id":18,"parentId":1,"tags":{},"startTime":1791639480972,"traceId":"bd4c01237ee3f822"},{"name":"generate-required-server-files","duration":20591,"timestamp":376460418472,"id":20,"parentId":1,"tags":{},"startTime":1791639499833,"traceId":"bd4c01237ee3f822"},{"name":"check-static-error-page","duration":40998,"timestamp":376460595138,"id":22,"parentId":21,"tags":{},"startTime":1791639500010,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":2407159,"timestamp":376460640018,"id":42,"parentId":24,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":2433604,"timestamp":376460613834,"id":24,"parentId":21,"tags":{"page":"/_global-error"},"startTime":1791639500028,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3126056,"timestamp":376460646409,"id":52,"parentId":33,"tags":{},"startTime":1791639500061,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3150222,"timestamp":376460622312,"id":33,"parentId":21,"tags":{"page":"/connect"},"startTime":1791639500037,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3135102,"timestamp":376460646446,"id":53,"parentId":35,"tags":{},"startTime":1791639500061,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3158384,"timestamp":376460623248,"id":35,"parentId":21,"tags":{"page":"/"},"startTime":1791639500038,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3148164,"timestamp":376460639340,"id":41,"parentId":23,"tags":{},"startTime":1791639500054,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3182260,"timestamp":376460605333,"id":23,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1791639500020,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3146925,"timestamp":376460646479,"id":54,"parentId":37,"tags":{},"startTime":1791639500061,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3159269,"timestamp":376460634205,"id":37,"parentId":21,"tags":{"page":"/performance"},"startTime":1791639500049,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3156735,"timestamp":376460646508,"id":56,"parentId":39,"tags":{},"startTime":1791639500061,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3168610,"timestamp":376460634707,"id":39,"parentId":21,"tags":{"page":"/setup"},"startTime":1791639500049,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3182831,"timestamp":376460646495,"id":55,"parentId":38,"tags":{},"startTime":1791639500061,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3194908,"timestamp":376460634495,"id":38,"parentId":21,"tags":{"page":"/settings"},"startTime":1791639500049,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3261477,"timestamp":376460640340,"id":45,"parentId":27,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3283369,"timestamp":376460618519,"id":27,"parentId":21,"tags":{"page":"/api/health"},"startTime":1791639500033,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3309875,"timestamp":376460640532,"id":47,"parentId":29,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3330669,"timestamp":376460619829,"id":29,"parentId":21,"tags":{"page":"/api/settings"},"startTime":1791639500034,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3310118,"timestamp":376460649960,"id":58,"parentId":40,"tags":{},"startTime":1791639500065,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3325267,"timestamp":376460634904,"id":40,"parentId":21,"tags":{"page":"/tools/[tool]"},"startTime":1791639500049,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3370687,"timestamp":376460640144,"id":43,"parentId":25,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3393735,"timestamp":376460617197,"id":25,"parentId":21,"tags":{"page":"/api/analyze"},"startTime":1791639500032,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3382428,"timestamp":376460640245,"id":44,"parentId":26,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3404900,"timestamp":376460617815,"id":26,"parentId":21,"tags":{"page":"/api/connect"},"startTime":1791639500032,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3415200,"timestamp":376460640910,"id":50,"parentId":32,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3434500,"timestamp":376460621665,"id":32,"parentId":21,"tags":{"page":"/api/timings"},"startTime":1791639500036,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3415913,"timestamp":376460648711,"id":57,"parentId":36,"tags":{},"startTime":1791639500063,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3440135,"timestamp":376460624565,"id":36,"parentId":21,"tags":{"page":"/performance/[slug]"},"startTime":1791639500039,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3425551,"timestamp":376460641025,"id":51,"parentId":34,"tags":{},"startTime":1791639500056,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3444051,"timestamp":376460622577,"id":34,"parentId":21,"tags":{"page":"/icon.svg"},"startTime":1791639500037,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3456475,"timestamp":376460640809,"id":49,"parentId":31,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3476299,"timestamp":376460621032,"id":31,"parentId":21,"tags":{"page":"/api/setup"},"startTime":1791639500036,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3462406,"timestamp":376460640678,"id":48,"parentId":30,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3482693,"timestamp":376460620445,"id":30,"parentId":21,"tags":{"page":"/api/setup/ai"},"startTime":1791639500035,"traceId":"bd4c01237ee3f822"},{"name":"is-page-static","duration":3465858,"timestamp":376460640427,"id":46,"parentId":28,"tags":{},"startTime":1791639500055,"traceId":"bd4c01237ee3f822"},{"name":"check-page","duration":3487176,"timestamp":376460619155,"id":28,"parentId":21,"tags":{"page":"/api/metrics"},"startTime":1791639500034,"traceId":"bd4c01237ee3f822"},{"name":"static-check","duration":3513005,"timestamp":376460593361,"id":21,"parentId":1,"tags":{},"startTime":1791639500008,"traceId":"bd4c01237ee3f822"},{"name":"write-routes-manifest","duration":1274,"timestamp":376464117067,"id":60,"parentId":1,"tags":{},"startTime":1791639503532,"traceId":"bd4c01237ee3f822"},{"name":"load-dotenv","duration":150,"timestamp":376464143572,"id":63,"parentId":62,"tags":{},"startTime":1791639503558,"traceId":"bd4c01237ee3f822"},{"name":"run-export-path-map","duration":1043,"timestamp":376464164675,"id":64,"parentId":62,"tags":{},"startTime":1791639503579,"traceId":"bd4c01237ee3f822"},{"name":"next-export","duration":1328163,"timestamp":376464140554,"id":62,"parentId":1,"tags":{},"startTime":1791639503555,"traceId":"bd4c01237ee3f822"},{"name":"move-exported-app-not-found-","duration":2833,"timestamp":376465474392,"id":65,"parentId":61,"tags":{},"startTime":1791639504889,"traceId":"bd4c01237ee3f822"},{"name":"move-exported-app-global-error-","duration":1601,"timestamp":376465477426,"id":66,"parentId":61,"tags":{},"startTime":1791639504892,"traceId":"bd4c01237ee3f822"},{"name":"static-generation","duration":1355940,"timestamp":376464123939,"id":61,"parentId":1,"tags":{},"startTime":1791639503539,"traceId":"bd4c01237ee3f822"},{"name":"write-routes-manifest","duration":896,"timestamp":376465480399,"id":67,"parentId":1,"tags":{},"startTime":1791639504895,"traceId":"bd4c01237ee3f822"},{"name":"print-tree-view","duration":5292,"timestamp":376465597696,"id":68,"parentId":1,"tags":{},"startTime":1791639505012,"traceId":"bd4c01237ee3f822"},{"name":"write-route-bundle-stats","duration":14525,"timestamp":376465603014,"id":69,"parentId":1,"tags":{},"startTime":1791639505018,"traceId":"bd4c01237ee3f822"},{"name":"telemetry-flush","duration":430881,"timestamp":376465617592,"id":70,"parentId":1,"tags":{},"startTime":1791639505032,"traceId":"bd4c01237ee3f822"},{"name":"next-build","duration":36489978,"timestamp":376429558520,"id":1,"tags":{"buildMode":"default","version":"16.3.8","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1791639468972,"traceId":"bd4c01237ee3f822"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":10979701,"timestamp":376430561474,"id":14,"parentId":1,"tags":{},"startTime":1791639469975,"traceId":"bd4c01237ee3f822"},{"name":"turbopack-build-events","duration":116,"timestamp":376431824801,"id":15,"parentId":1,"tags":{},"startTime":1791639471238,"traceId":"bd4c01237ee3f822"},{"name":"turbopack-persistence","duration":535000,"timestamp":376440934265,"id":16,"parentId":15,"tags":{"reason":"stop","snapshot_duration_ms":21.480061000000003,"persist_duration_ms":513.5721159999999,"task_count":4096,"bytes_written":23823124,"bytes_deleted":0},"startTime":1791639480887,"traceId":"bd4c01237ee3f822"},{"name":"run-typescript","duration":18850216,"timestamp":376441557724,"id":18,"parentId":1,"tags":{},"startTime":1791639480972,"traceId":"bd4c01237ee3f822"},{"name":"static-check","duration":3513005,"timestamp":376460593361,"id":21,"parentId":1,"tags":{},"startTime":1791639500008,"traceId":"bd4c01237ee3f822"},{"name":"static-generation","duration":1355940,"timestamp":376464123939,"id":61,"parentId":1,"tags":{},"startTime":1791639503539,"traceId":"bd4c01237ee3f822"},{"name":"telemetry-flush","duration":430881,"timestamp":376465617592,"id":70,"parentId":1,"tags":{},"startTime":1791639505032,"traceId":"bd4c01237ee3f822"},{"name":"next-build","duration":36489978,"timestamp":376429558520,"id":1,"tags":{"buildMode":"default","version":"16.3.8","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1791639468972,"traceId":"bd4c01237ee3f822"}]
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[77083,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(85134),e=a.i(66958),f=a.i(31956);a.i(12351);var g=a.i(43368),h=a.i(77790);a.s(["HubMetrics",0,function({pages:a,has:i}){let j=a.filter(g.hasData),k=j.length?j.reduce((a,b)=>a+(b.metrics.loadTime??0),0)/j.length:null,l=a.reduce((a,b)=>a+(b.metrics.errors?.count??0),0),m=[{needs:"pages",label:"Pages Reporting",value:`${j.length} of ${a.length}`,icon:(0,b.jsx)(d.Globe,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"loadTime",label:"Avg Load Time",value:null===k?"No data yet":(0,h.formatDuration)(k),icon:(0,b.jsx)(e.Clock,{className:"h-4 w-4 text-[#06b6d4]"})},{needs:"errors",label:"Open Errors",value:j.length||l?String(l):"No data yet",icon:(0,b.jsx)(f.AlertTriangle,{className:"h-4 w-4 text-[#ef4444]"})}].filter(a=>i(a.needs));return(0,b.jsx)("div",{className:`grid gap-6 mb-8 mt-4 ${3===m.length?"md:grid-cols-3":"md:grid-cols-2"}`,children:m.map((a,d)=>(0,b.jsx)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(c.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:a.icon})]}),(0,b.jsx)("div",{className:"flex items-baseline gap-3",children:(0,b.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:a.value})})]})},d))})}])},28185,65261,7157,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(53840),e=a.i(60663);let f={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};f.node;let g=(0,e.default)(f),h={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};h.node;let i=(0,e.default)(h),j={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};j.node;let k=(0,e.default)(j);a.s(["OctagonAlert",0,k],65261);var l=a.i(35342);a.s(["TriangleAlert",()=>l.default],7157);var l=l,m=a.i(88237),n=a.i(3130),o=a.i(54161),p=a.i(85608),q=a.i(93673),r=a.i(77790),s=a.i(43368);let t="pages-table-title",u=a=>"Warning"===a||"Critical"===a,v={Critical:{Icon:k,icon:"text-dash-danger",badge:"border-dash-danger/40 bg-dash-danger/10"},Warning:{Icon:l.default,icon:"text-dash-warning",badge:"border-dash-warning/40 bg-dash-warning/10"},Healthy:{Icon:g,icon:"text-dash-success",badge:"border-dash-success/40 bg-dash-success/10"}},w={Icon:i,icon:"text-dash-muted",badge:"border-dash-border-light"},x="rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50",y=`font-medium text-dash-foreground underline underline-offset-4 hover:text-dash-muted-light ${x}`,z="hidden px-3 text-right tabular-nums lg:table-cell";function A({page:a}){let c=a.status??((0,s.hasData)(a)?"No performance data":"No data yet"),{Icon:d,icon:e,badge:f}=a.status?v[a.status]:w;return(0,b.jsxs)(o.Badge,{variant:"outline","data-status":c,className:`text-dash-foreground ${f}`,children:[(0,b.jsx)(d,{"aria-hidden":"true",className:e}),c]})}function B({label:a,caption:c}){return(0,b.jsxs)(m.TableHead,{scope:"col",className:`${z} h-12 text-dash-muted`,children:[a,c&&(0,b.jsx)("span",{className:"block text-body-sm",children:c})]})}function C({status:a,children:c}){let d="Critical"===a?k:l.default;return(0,b.jsxs)(m.TableCell,{"data-over-limit":u(a)||void 0,className:`${z} ${u(a)?"font-semibold text-dash-foreground":"text-dash-muted"}`,children:[u(a)&&(0,b.jsx)(d,{"aria-hidden":"true",className:`mr-1 inline size-3.5 align-[-2px] ${"Critical"===a?"text-dash-danger":"text-dash-warning"}`}),c,u(a)&&(0,b.jsx)("span",{className:"sr-only",children:" over limit"})]})}function D({rows:a,has:d,failed:e}){let f=a.length,h=a.filter(a=>u(a.status)).length,i=a.filter(a=>a.status).length,j=a.filter(a=>!(0,s.hasData)(a)).length,k=e.filter(q.isToolId).map(a=>q.TOOLS[a].label),l=null,m=0===j?"":1===j?"1 has no data yet.":`${j} have no data yet.`;if(h)l=1===f?"This page is over a limit.":1===h?`1 of ${f} pages is over a limit.`:`${h} of ${f} pages are over a limit. Worst first.`;else if(i){let a=1===f?"This page is within your limits.":i===f?`All ${f} pages are within your limits. Closest to a limit first.`:1===i?`1 of ${f} pages is within your limits.`:`${i} of ${f} pages are within your limits. Closest to a limit first.`;l=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g,{"aria-hidden":"true",className:"mr-1 inline size-3.5 align-[-2px] text-dash-success"}),a]})}else k.length?(l=`Could not load ${k.join(" and ")} data, so pages are not checked against your limits.`,m=""):d("loadTime")||(l=(0,b.jsxs)(b.Fragment,{children:["Ranked by Sentry errors in the last 24h. ",(0,b.jsx)(c.default,{href:"/setup",className:y,children:"Connect New Relic"})," to check load time and error rate against your limits."]}));return(i&&k.length&&(m=[m,`Could not load ${k.join(" and ")} data.`].filter(Boolean).join(" ")),l||m)?(0,b.jsxs)("p",{"data-slot":"table-summary",className:"text-body text-dash-muted",children:[l,l&&m&&" ",m]}):null}a.s(["HUB_TABLE_TITLE_ID",0,t,"HubTable",0,function({title:a,pages:e,has:f,thresholds:g,failed:h=[],limit:i}){let j=(0,d.useRouter)(),k=(0,s.rankPages)(e,g),l=k.some(a=>a.status);return(0,b.jsxs)(n.Card,{className:"bg-dash-card text-dash-foreground",children:[(0,b.jsxs)(n.CardHeader,{children:[(0,b.jsx)("h2",{id:t,tabIndex:-1,className:`title-enter w-fit text-h3 text-dash-foreground ${x}`,children:a}),(0,b.jsx)(D,{rows:k,has:f,failed:h})]}),(0,b.jsxs)(n.CardContent,{children:[(0,b.jsxs)(m.Table,{children:[(0,b.jsx)("caption",{className:"sr-only",children:"Pages ranked worst first"}),(0,b.jsx)(m.TableHeader,{children:(0,b.jsxs)(m.TableRow,{className:"border-dash-border hover:bg-transparent",children:[(0,b.jsx)(m.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Page"}),l&&(0,b.jsx)(m.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Status"}),f("loadTime")&&(0,b.jsx)(B,{label:"Load time",caption:(0,s.limitLabel)("loadTime",g)}),f("errorRate")&&(0,b.jsx)(B,{label:"Error rate",caption:(0,s.limitLabel)("errorRate",g)}),f("apdex")&&(0,b.jsx)(B,{label:"Apdex",caption:(0,s.limitLabel)("apdex",g)}),f("errors")&&(0,b.jsx)(B,{label:"Sentry errors",caption:"last 24h, no limit"}),f("traffic")&&(0,b.jsx)(B,{label:(0,p.isSampled)(e)?"Page loads (sampled)":"Views (24h)"})]})}),(0,b.jsx)(m.TableBody,{children:k.slice(0,i).map(a=>{let d=(0,s.hasData)(a),e=(0,s.hasPerformance)(a),h=a.metrics,i=`/performance/${a.slug}`,k=function(a,b,c){if(!(0,s.hasData)(a))return"";if(u(a.status)){let b=(0,s.breachReasons)(a,c).join(", ");return b.charAt(0).toUpperCase()+b.slice(1)}let d=a.metrics,e=(0,s.hasPerformance)(a);return[e&&b("loadTime")&&void 0!==d.loadTime&&`Load ${(0,r.formatDuration)(d.loadTime)}`,e&&b("errorRate")&&void 0!==d.errorRate&&`Errors ${d.errorRate.toFixed(2)}%`,e&&b("apdex")&&void 0!==d.apdex&&`Apdex ${d.apdex.toFixed(2)}`,b("errors")&&d.errors&&`${d.errors.count} Sentry ${1===d.errors.count?"error":"errors"}`].filter(Boolean).join(" · ")}(a,f,g);return(0,b.jsxs)(m.TableRow,{"data-slug":a.slug,className:"h-14 cursor-pointer border-dash-border hover:bg-white/5 focus-within:bg-white/5 lg:h-12",onClick:a=>{a.target.closest("a")||j.push(i)},children:[(0,b.jsxs)("th",{scope:"row","data-slot":"table-cell",className:"w-full max-w-0 px-3 py-2 text-left align-middle font-normal",children:[(0,b.jsxs)(c.default,{href:i,title:a.name,className:`block truncate text-body font-medium text-dash-foreground ${x}`,children:[a.name,(0,b.jsx)("span",{className:"sr-only",children:", view page details"})]}),(0,b.jsx)("span",{title:a.url,className:"block truncate font-mono text-body-sm text-dash-muted",children:a.url}),k&&(0,b.jsx)("span",{"data-slot":"row-summary",className:"mt-0.5 block text-body-sm text-dash-muted lg:hidden",children:k})]}),l&&(0,b.jsx)(m.TableCell,{className:"px-3",children:(0,b.jsx)(A,{page:a})}),f("loadTime")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("loadTime",h.loadTime,g):void 0,children:e&&void 0!==h.loadTime?(0,r.formatDuration)(h.loadTime):"—"}),f("errorRate")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("errorRate",h.errorRate,g):void 0,children:e&&void 0!==h.errorRate?`${h.errorRate.toFixed(2)}%`:"—"}),f("apdex")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("apdex",h.apdex,g):void 0,children:e&&void 0!==h.apdex?h.apdex.toFixed(2):"—"}),f("errors")&&(0,b.jsx)(C,{children:d&&h.errors?h.errors.count:"—"}),f("traffic")&&(0,b.jsx)(C,{children:d&&h.traffic?a.visitors:"—"})]},a.slug)})})]}),void 0!==i&&k.length>i&&(0,b.jsxs)(c.default,{href:"/performance",className:`mt-2 inline-flex min-h-11 items-center px-3 text-body md:min-h-8 ${y}`,children:["View all ",k.length," pages"]})]})]})}],28185)},48097,a=>{"use strict";var b=a.i(47350),c=a.i(92994),d=a.i(50463),e=a.i(12351),f=a.i(43368),g=a.i(66219),h=a.i(77083),i=a.i(28185);a.s(["PerformanceHub",0,function(){let{state:a,retry:j}=(0,e.useMetrics)(),k=(0,g.useThresholds)();if("loading"===a.status)return(0,b.jsx)(d.Skeleton,{className:"mt-6 h-64 w-full bg-[#2d3748]"});if("error"===a.status)return(0,b.jsx)(c.EmptyState,{title:"Could not load metrics",reason:a.message,onRetry:j});if(!a.configured)return(0,b.jsx)(c.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(!a.pages.length||!a.pages.some(f.hasData))return(0,b.jsx)(c.EmptyState,{});let l=b=>(0,e.provides)(a,b);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.HubMetrics,{pages:a.pages,has:l}),(0,b.jsx)(i.HubTable,{title:"All pages",pages:a.pages,has:l,thresholds:k,failed:a.failed})]})}])},85134,a=>{"use strict";var b=a.i(60663);let c={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};c.node;let d=(0,b.default)(c);a.s(["Globe",0,d],85134)},35342,a=>{"use strict";var b=a.i(60663);let c={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};c.node;let d=(0,b.default)(c);a.s(["default",0,d])},31956,a=>{"use strict";var b=a.i(35342);a.s(["AlertTriangle",()=>b.default])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0_8ffmk._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[92994,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(3130),e=a.i(40695);a.s(["EmptyState",0,function({title:a="No data yet",reason:f="Keys work, but no page events have arrived.",href:g="/connect",cta:h="Send your first events",onRetry:i}){return(0,b.jsx)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(d.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold text-white",children:a}),(0,b.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:f}),(0,b.jsxs)("div",{className:"flex gap-3",children:[g&&(0,b.jsx)(c.default,{href:g,className:(0,e.buttonVariants)(),children:h}),i&&(0,b.jsx)(e.Button,{variant:"outline",onClick:i,children:"Retry"})]})]})})}])},54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},66958,a=>{"use strict";var b=a.i(60663);let c={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};c.node;let d=(0,b.default)(c);a.s(["Clock",0,d],66958)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0ovnhv_._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[92994,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(3130),e=a.i(40695);a.s(["EmptyState",0,function({title:a="No data yet",reason:f="Keys work, but no page events have arrived.",href:g="/connect",cta:h="Send your first events",onRetry:i}){return(0,b.jsx)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(d.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold text-white",children:a}),(0,b.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:f}),(0,b.jsxs)("div",{className:"flex gap-3",children:[g&&(0,b.jsx)(c.default,{href:g,className:(0,e.buttonVariants)(),children:h}),i&&(0,b.jsx)(e.Button,{variant:"outline",onClick:i,children:"Retry"})]})]})})}])},54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},70834,a=>{"use strict";var b=a.i(75086);let c={alert:!0},d="notification-prefs",e=new Set,f=null;function g(){if(f)return f;let a={...c};try{let b=JSON.parse(localStorage.getItem(d)??"{}");for(let c of Object.keys(a))"boolean"==typeof b[c]&&(a[c]=b[c])}catch{}return f=a}function h(a){a.key===d&&(f=null,e.forEach(a=>a()))}function i(a){return e.add(a),window.addEventListener("storage",h),()=>{e.delete(a),window.removeEventListener("storage",h)}}a.s(["setNotificationPrefs",0,function(a){f={...g(),...a};try{localStorage.setItem(d,JSON.stringify(f))}catch{}e.forEach(a=>a())},"useNotificationPrefs",0,function(){return(0,b.useSyncExternalStore)(i,g,()=>c)}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},66958,a=>{"use strict";var b=a.i(60663);let c={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};c.node;let d=(0,b.default)(c);a.s(["Clock",0,d],66958)},67436,a=>{"use strict";var b=a.i(60663);let c={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};c.node;let d=(0,b.default)(c);a.s(["Zap",0,d],67436)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0r3_nx1._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[56672,a=>{"use strict";var b=a.i(47350),c=a.i(3927),d=a.i(77896),e=a.i(75540),f=a.i(60663);let g={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};g.node;let h=(0,f.default)(g),i={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};function j({className:a,...c}){return(0,b.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:(0,e.cn)(a),...c})}function k({className:a,...c}){return(0,b.jsx)("ol",{"data-slot":"breadcrumb-list",className:(0,e.cn)("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground",a),...c})}function l({className:a,...c}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-item",className:(0,e.cn)("inline-flex items-center gap-1",a),...c})}function m({className:a,render:b,...f}){return(0,d.useRender)({defaultTagName:"a",props:(0,c.mergeProps)({className:(0,e.cn)("transition-colors hover:text-foreground",a)},f),render:b,state:{slot:"breadcrumb-link"}})}function n({className:a,...c}){return(0,b.jsx)("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:(0,e.cn)("font-normal text-foreground",a),...c})}function o({children:a,className:c,...d}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:(0,e.cn)("[&>svg]:size-3.5",c),...d,children:a??(0,b.jsx)(h,{})})}i.node,(0,f.default)(i),a.s(["PerformanceBreadcrumb",0,function({pageName:a="Homepage"}){return(0,b.jsx)(j,{className:"mb-6",children:(0,b.jsxs)(k,{children:[(0,b.jsx)(l,{children:(0,b.jsx)(m,{href:"/performance",className:"text-gray-400 hover:text-white",children:"Performance"})}),(0,b.jsx)(o,{}),(0,b.jsx)(l,{children:(0,b.jsx)(n,{className:"text-white font-medium",children:a})})]})})}],56672)},45890,a=>{"use strict";var b=a.i(47350),c=a.i(53840),d=a.i(92994),e=a.i(50463),f=a.i(12351),g=a.i(43368),h=a.i(56672),i=a.i(5800),j=a.i(75339);a.s(["PerformanceDetail",0,function({slug:a}){let{state:k,retry:l}=(0,f.useMetrics)();if("loading"===k.status)return(0,b.jsx)(e.Skeleton,{className:"h-64 w-full bg-[#2d3748]"});if("error"===k.status)return(0,b.jsx)(d.EmptyState,{title:"Could not load metrics",reason:k.message,onRetry:l});if(!k.configured)return(0,b.jsx)(d.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(0===k.pages.length)return(0,b.jsx)(d.EmptyState,{});let m=k.pages.find(b=>b.slug===a);return m||(0,c.notFound)(),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.PerformanceBreadcrumb,{pageName:m.name}),(0,g.hasData)(m)?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.PerformanceKPIs,{page:m,has:a=>(0,f.provides)(k,a)}),m.metrics.errors&&(0,b.jsx)(j.RelatedErrorsList,{errors:m.metrics.errors.latest})]}):(0,b.jsx)(d.EmptyState,{reason:`${m.name} (${m.url}): keys work, but no page events have arrived.`})]})}])},5800,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(84903),e=a.i(66958),f=a.i(67436),g=a.i(77790),h=a.i(85608);a.s(["PerformanceKPIs",0,function({page:a,has:i}){let j=a.metrics,k=[{needs:"loadTime",label:"Average Load Time",value:void 0===j.loadTime?"—":(0,g.formatDuration)(j.loadTime),icon:(0,b.jsx)(e.Clock,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"errorRate",label:"Error Rate",value:void 0===j.errorRate?"—":`${j.errorRate.toFixed(2)}%`,icon:(0,b.jsx)(d.Activity,{className:"h-4 w-4 text-[#ef4444]"})},{needs:"traffic",label:(0,h.isSampled)([a])?"Page loads (sampled)":"Traffic Volume",value:j.traffic?a.visitors:"—",icon:(0,b.jsx)(f.Zap,{className:"h-4 w-4 text-[#06b6d4]"})}].filter(a=>i(a.needs));return(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-3 mb-8",children:k.map(a=>(0,b.jsx)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(c.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:a.icon})]}),(0,b.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:a.value})]})},a.label))})}])},75339,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(60663);let e={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};e.node;let f=(0,d.default)(e);var g=a.i(66958);a.s(["RelatedErrorsList",0,function({errors:a}){return(0,b.jsxs)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md w-full lg:w-[400px]",children:[(0,b.jsx)(c.CardHeader,{children:(0,b.jsxs)(c.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-5 w-5 text-[#ef4444]"}),"Related Errors"]})}),(0,b.jsx)(c.CardContent,{children:0===a.length?(0,b.jsx)("p",{className:"text-sm text-gray-400",children:"No errors reported for this page."}):(0,b.jsx)("div",{className:"flex flex-col gap-3",children:a.map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-[#2d3748] bg-[#0f1419] p-4",children:[(0,b.jsx)("div",{className:"flex items-center justify-between",children:(0,b.jsxs)("span",{className:"text-xs font-mono text-gray-500",children:[a.count," events"]})}),(0,b.jsx)("p",{className:"text-sm font-medium text-gray-200 line-clamp-2",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-1 mt-1 text-xs text-gray-500",children:[(0,b.jsx)(g.Clock,{className:"h-3 w-3"}),(0,b.jsx)("span",{children:new Date(a.lastSeen).toLocaleString()})]})]},a.title))})})]})}],75339)},92994,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(3130),e=a.i(40695);a.s(["EmptyState",0,function({title:a="No data yet",reason:f="Keys work, but no page events have arrived.",href:g="/connect",cta:h="Send your first events",onRetry:i}){return(0,b.jsx)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(d.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold text-white",children:a}),(0,b.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:f}),(0,b.jsxs)("div",{className:"flex gap-3",children:[g&&(0,b.jsx)(c.default,{href:g,className:(0,e.buttonVariants)(),children:h}),i&&(0,b.jsx)(e.Button,{variant:"outline",onClick:i,children:"Retry"})]})]})})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},66958,a=>{"use strict";var b=a.i(60663);let c={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};c.node;let d=(0,b.default)(c);a.s(["Clock",0,d],66958)},67436,a=>{"use strict";var b=a.i(60663);let c={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};c.node;let d=(0,b.default)(c);a.s(["Zap",0,d],67436)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_1m21xmc._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[77083,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(85134),e=a.i(66958),f=a.i(31956);a.i(12351);var g=a.i(43368),h=a.i(77790);a.s(["HubMetrics",0,function({pages:a,has:i}){let j=a.filter(g.hasData),k=j.length?j.reduce((a,b)=>a+(b.metrics.loadTime??0),0)/j.length:null,l=a.reduce((a,b)=>a+(b.metrics.errors?.count??0),0),m=[{needs:"pages",label:"Pages Reporting",value:`${j.length} of ${a.length}`,icon:(0,b.jsx)(d.Globe,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"loadTime",label:"Avg Load Time",value:null===k?"No data yet":(0,h.formatDuration)(k),icon:(0,b.jsx)(e.Clock,{className:"h-4 w-4 text-[#06b6d4]"})},{needs:"errors",label:"Open Errors",value:j.length||l?String(l):"No data yet",icon:(0,b.jsx)(f.AlertTriangle,{className:"h-4 w-4 text-[#ef4444]"})}].filter(a=>i(a.needs));return(0,b.jsx)("div",{className:`grid gap-6 mb-8 mt-4 ${3===m.length?"md:grid-cols-3":"md:grid-cols-2"}`,children:m.map((a,d)=>(0,b.jsx)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(c.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:a.icon})]}),(0,b.jsx)("div",{className:"flex items-baseline gap-3",children:(0,b.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:a.value})})]})},d))})}])},28185,65261,7157,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(53840),e=a.i(60663);let f={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};f.node;let g=(0,e.default)(f),h={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};h.node;let i=(0,e.default)(h),j={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};j.node;let k=(0,e.default)(j);a.s(["OctagonAlert",0,k],65261);var l=a.i(35342);a.s(["TriangleAlert",()=>l.default],7157);var l=l,m=a.i(88237),n=a.i(3130),o=a.i(54161),p=a.i(85608),q=a.i(93673),r=a.i(77790),s=a.i(43368);let t="pages-table-title",u=a=>"Warning"===a||"Critical"===a,v={Critical:{Icon:k,icon:"text-dash-danger",badge:"border-dash-danger/40 bg-dash-danger/10"},Warning:{Icon:l.default,icon:"text-dash-warning",badge:"border-dash-warning/40 bg-dash-warning/10"},Healthy:{Icon:g,icon:"text-dash-success",badge:"border-dash-success/40 bg-dash-success/10"}},w={Icon:i,icon:"text-dash-muted",badge:"border-dash-border-light"},x="rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50",y=`font-medium text-dash-foreground underline underline-offset-4 hover:text-dash-muted-light ${x}`,z="hidden px-3 text-right tabular-nums lg:table-cell";function A({page:a}){let c=a.status??((0,s.hasData)(a)?"No performance data":"No data yet"),{Icon:d,icon:e,badge:f}=a.status?v[a.status]:w;return(0,b.jsxs)(o.Badge,{variant:"outline","data-status":c,className:`text-dash-foreground ${f}`,children:[(0,b.jsx)(d,{"aria-hidden":"true",className:e}),c]})}function B({label:a,caption:c}){return(0,b.jsxs)(m.TableHead,{scope:"col",className:`${z} h-12 text-dash-muted`,children:[a,c&&(0,b.jsx)("span",{className:"block text-body-sm",children:c})]})}function C({status:a,children:c}){let d="Critical"===a?k:l.default;return(0,b.jsxs)(m.TableCell,{"data-over-limit":u(a)||void 0,className:`${z} ${u(a)?"font-semibold text-dash-foreground":"text-dash-muted"}`,children:[u(a)&&(0,b.jsx)(d,{"aria-hidden":"true",className:`mr-1 inline size-3.5 align-[-2px] ${"Critical"===a?"text-dash-danger":"text-dash-warning"}`}),c,u(a)&&(0,b.jsx)("span",{className:"sr-only",children:" over limit"})]})}function D({rows:a,has:d,failed:e}){let f=a.length,h=a.filter(a=>u(a.status)).length,i=a.filter(a=>a.status).length,j=a.filter(a=>!(0,s.hasData)(a)).length,k=e.filter(q.isToolId).map(a=>q.TOOLS[a].label),l=null,m=0===j?"":1===j?"1 has no data yet.":`${j} have no data yet.`;if(h)l=1===f?"This page is over a limit.":1===h?`1 of ${f} pages is over a limit.`:`${h} of ${f} pages are over a limit. Worst first.`;else if(i){let a=1===f?"This page is within your limits.":i===f?`All ${f} pages are within your limits. Closest to a limit first.`:1===i?`1 of ${f} pages is within your limits.`:`${i} of ${f} pages are within your limits. Closest to a limit first.`;l=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g,{"aria-hidden":"true",className:"mr-1 inline size-3.5 align-[-2px] text-dash-success"}),a]})}else k.length?(l=`Could not load ${k.join(" and ")} data, so pages are not checked against your limits.`,m=""):d("loadTime")||(l=(0,b.jsxs)(b.Fragment,{children:["Ranked by Sentry errors in the last 24h. ",(0,b.jsx)(c.default,{href:"/setup",className:y,children:"Connect New Relic"})," to check load time and error rate against your limits."]}));return(i&&k.length&&(m=[m,`Could not load ${k.join(" and ")} data.`].filter(Boolean).join(" ")),l||m)?(0,b.jsxs)("p",{"data-slot":"table-summary",className:"text-body text-dash-muted",children:[l,l&&m&&" ",m]}):null}a.s(["HUB_TABLE_TITLE_ID",0,t,"HubTable",0,function({title:a,pages:e,has:f,thresholds:g,failed:h=[],limit:i}){let j=(0,d.useRouter)(),k=(0,s.rankPages)(e,g),l=k.some(a=>a.status);return(0,b.jsxs)(n.Card,{className:"bg-dash-card text-dash-foreground",children:[(0,b.jsxs)(n.CardHeader,{children:[(0,b.jsx)("h2",{id:t,tabIndex:-1,className:`title-enter w-fit text-h3 text-dash-foreground ${x}`,children:a}),(0,b.jsx)(D,{rows:k,has:f,failed:h})]}),(0,b.jsxs)(n.CardContent,{children:[(0,b.jsxs)(m.Table,{children:[(0,b.jsx)("caption",{className:"sr-only",children:"Pages ranked worst first"}),(0,b.jsx)(m.TableHeader,{children:(0,b.jsxs)(m.TableRow,{className:"border-dash-border hover:bg-transparent",children:[(0,b.jsx)(m.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Page"}),l&&(0,b.jsx)(m.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Status"}),f("loadTime")&&(0,b.jsx)(B,{label:"Load time",caption:(0,s.limitLabel)("loadTime",g)}),f("errorRate")&&(0,b.jsx)(B,{label:"Error rate",caption:(0,s.limitLabel)("errorRate",g)}),f("apdex")&&(0,b.jsx)(B,{label:"Apdex",caption:(0,s.limitLabel)("apdex",g)}),f("errors")&&(0,b.jsx)(B,{label:"Sentry errors",caption:"last 24h, no limit"}),f("traffic")&&(0,b.jsx)(B,{label:(0,p.isSampled)(e)?"Page loads (sampled)":"Views (24h)"})]})}),(0,b.jsx)(m.TableBody,{children:k.slice(0,i).map(a=>{let d=(0,s.hasData)(a),e=(0,s.hasPerformance)(a),h=a.metrics,i=`/performance/${a.slug}`,k=function(a,b,c){if(!(0,s.hasData)(a))return"";if(u(a.status)){let b=(0,s.breachReasons)(a,c).join(", ");return b.charAt(0).toUpperCase()+b.slice(1)}let d=a.metrics,e=(0,s.hasPerformance)(a);return[e&&b("loadTime")&&void 0!==d.loadTime&&`Load ${(0,r.formatDuration)(d.loadTime)}`,e&&b("errorRate")&&void 0!==d.errorRate&&`Errors ${d.errorRate.toFixed(2)}%`,e&&b("apdex")&&void 0!==d.apdex&&`Apdex ${d.apdex.toFixed(2)}`,b("errors")&&d.errors&&`${d.errors.count} Sentry ${1===d.errors.count?"error":"errors"}`].filter(Boolean).join(" · ")}(a,f,g);return(0,b.jsxs)(m.TableRow,{"data-slug":a.slug,className:"h-14 cursor-pointer border-dash-border hover:bg-white/5 focus-within:bg-white/5 lg:h-12",onClick:a=>{a.target.closest("a")||j.push(i)},children:[(0,b.jsxs)("th",{scope:"row","data-slot":"table-cell",className:"w-full max-w-0 px-3 py-2 text-left align-middle font-normal",children:[(0,b.jsxs)(c.default,{href:i,title:a.name,className:`block truncate text-body font-medium text-dash-foreground ${x}`,children:[a.name,(0,b.jsx)("span",{className:"sr-only",children:", view page details"})]}),(0,b.jsx)("span",{title:a.url,className:"block truncate font-mono text-body-sm text-dash-muted",children:a.url}),k&&(0,b.jsx)("span",{"data-slot":"row-summary",className:"mt-0.5 block text-body-sm text-dash-muted lg:hidden",children:k})]}),l&&(0,b.jsx)(m.TableCell,{className:"px-3",children:(0,b.jsx)(A,{page:a})}),f("loadTime")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("loadTime",h.loadTime,g):void 0,children:e&&void 0!==h.loadTime?(0,r.formatDuration)(h.loadTime):"—"}),f("errorRate")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("errorRate",h.errorRate,g):void 0,children:e&&void 0!==h.errorRate?`${h.errorRate.toFixed(2)}%`:"—"}),f("apdex")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("apdex",h.apdex,g):void 0,children:e&&void 0!==h.apdex?h.apdex.toFixed(2):"—"}),f("errors")&&(0,b.jsx)(C,{children:d&&h.errors?h.errors.count:"—"}),f("traffic")&&(0,b.jsx)(C,{children:d&&h.traffic?a.visitors:"—"})]},a.slug)})})]}),void 0!==i&&k.length>i&&(0,b.jsxs)(c.default,{href:"/performance",className:`mt-2 inline-flex min-h-11 items-center px-3 text-body md:min-h-8 ${y}`,children:["View all ",k.length," pages"]})]})]})}],28185)},48097,a=>{"use strict";var b=a.i(47350),c=a.i(92994),d=a.i(50463),e=a.i(12351),f=a.i(43368),g=a.i(66219),h=a.i(77083),i=a.i(28185);a.s(["PerformanceHub",0,function(){let{state:a,retry:j}=(0,e.useMetrics)(),k=(0,g.useThresholds)();if("loading"===a.status)return(0,b.jsx)(d.Skeleton,{className:"mt-6 h-64 w-full bg-[#2d3748]"});if("error"===a.status)return(0,b.jsx)(c.EmptyState,{title:"Could not load metrics",reason:a.message,onRetry:j});if(!a.configured)return(0,b.jsx)(c.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(!a.pages.length||!a.pages.some(f.hasData))return(0,b.jsx)(c.EmptyState,{});let l=b=>(0,e.provides)(a,b);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.HubMetrics,{pages:a.pages,has:l}),(0,b.jsx)(i.HubTable,{title:"All pages",pages:a.pages,has:l,thresholds:k,failed:a.failed})]})}])},85134,a=>{"use strict";var b=a.i(60663);let c={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};c.node;let d=(0,b.default)(c);a.s(["Globe",0,d],85134)},35342,a=>{"use strict";var b=a.i(60663);let c={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};c.node;let d=(0,b.default)(c);a.s(["default",0,d])},31956,a=>{"use strict";var b=a.i(35342);a.s(["AlertTriangle",()=>b.default])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_1u-atbb._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24851,e=>{"use strict";var t=e.i(40798),a=e.i(3547),r=e.i(70065),s=e.i(67881);e.s(["EmptyState",0,function({title:e="No data yet",reason:i="Keys work, but no page events have arrived.",href:l="/connect",cta:n="Send your first events",onRetry:d}){return(0,t.jsx)(r.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,t.jsxs)(r.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-white",children:e}),(0,t.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:i}),(0,t.jsxs)("div",{className:"flex gap-3",children:[l&&(0,t.jsx)(a.default,{href:l,className:(0,s.buttonVariants)(),children:n}),d&&(0,t.jsx)(s.Button,{variant:"outline",onClick:d,children:"Retry"})]})]})})}])},28175,e=>{"use strict";var t=e.i(40798),a=e.i(70065),r=e.i(16791),s=e.i(23023),i=e.i(56296);e.i(34813);var l=e.i(73011),n=e.i(93961);e.s(["HubMetrics",0,function({pages:e,has:d}){let o=e.filter(l.hasData),c=o.length?o.reduce((e,t)=>e+(t.metrics.loadTime??0),0)/o.length:null,u=e.reduce((e,t)=>e+(t.metrics.errors?.count??0),0),h=[{needs:"pages",label:"Pages Reporting",value:`${o.length} of ${e.length}`,icon:(0,t.jsx)(r.Globe,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"loadTime",label:"Avg Load Time",value:null===c?"No data yet":(0,n.formatDuration)(c),icon:(0,t.jsx)(s.Clock,{className:"h-4 w-4 text-[#06b6d4]"})},{needs:"errors",label:"Open Errors",value:o.length||u?String(u):"No data yet",icon:(0,t.jsx)(i.AlertTriangle,{className:"h-4 w-4 text-[#ef4444]"})}].filter(e=>d(e.needs));return(0,t.jsx)("div",{className:`grid gap-6 mb-8 mt-4 ${3===h.length?"md:grid-cols-3":"md:grid-cols-2"}`,children:h.map((e,r)=>(0,t.jsx)(a.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,t.jsxs)(a.CardContent,{className:"p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-400",children:e.label}),(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:e.icon})]}),(0,t.jsx)("div",{className:"flex items-baseline gap-3",children:(0,t.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:e.value})})]})},r))})}])},7848,33451,66987,e=>{"use strict";var t=e.i(40798),a=e.i(3547),r=e.i(19085),s=e.i(67449);let i={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};i.node;let l=(0,s.default)(i),n={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};n.node;let d=(0,s.default)(n),o={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};o.node;let c=(0,s.default)(o);e.s(["OctagonAlert",0,c],33451);var u=e.i(74581);e.s(["TriangleAlert",()=>u.default],66987);var u=u,h=e.i(47627),m=e.i(70065),g=e.i(94179),x=e.i(64114),f=e.i(93834),p=e.i(93961),b=e.i(73011);let v="pages-table-title",j=e=>"Warning"===e||"Critical"===e,y={Critical:{Icon:c,icon:"text-dash-danger",badge:"border-dash-danger/40 bg-dash-danger/10"},Warning:{Icon:u.default,icon:"text-dash-warning",badge:"border-dash-warning/40 bg-dash-warning/10"},Healthy:{Icon:l,icon:"text-dash-success",badge:"border-dash-success/40 bg-dash-success/10"}},w={Icon:d,icon:"text-dash-muted",badge:"border-dash-border-light"},k="rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50",N=`font-medium text-dash-foreground underline underline-offset-4 hover:text-dash-muted-light ${k}`,T="hidden px-3 text-right tabular-nums lg:table-cell";function C({page:e}){let a=e.status??((0,b.hasData)(e)?"No performance data":"No data yet"),{Icon:r,icon:s,badge:i}=e.status?y[e.status]:w;return(0,t.jsxs)(g.Badge,{variant:"outline","data-status":a,className:`text-dash-foreground ${i}`,children:[(0,t.jsx)(r,{"aria-hidden":"true",className:s}),a]})}function $({label:e,caption:a}){return(0,t.jsxs)(h.TableHead,{scope:"col",className:`${T} h-12 text-dash-muted`,children:[e,a&&(0,t.jsx)("span",{className:"block text-body-sm",children:a})]})}function S({status:e,children:a}){let r="Critical"===e?c:u.default;return(0,t.jsxs)(h.TableCell,{"data-over-limit":j(e)||void 0,className:`${T} ${j(e)?"font-semibold text-dash-foreground":"text-dash-muted"}`,children:[j(e)&&(0,t.jsx)(r,{"aria-hidden":"true",className:`mr-1 inline size-3.5 align-[-2px] ${"Critical"===e?"text-dash-danger":"text-dash-warning"}`}),a,j(e)&&(0,t.jsx)("span",{className:"sr-only",children:" over limit"})]})}function z({rows:e,has:r,failed:s}){let i=e.length,n=e.filter(e=>j(e.status)).length,d=e.filter(e=>e.status).length,o=e.filter(e=>!(0,b.hasData)(e)).length,c=s.filter(f.isToolId).map(e=>f.TOOLS[e].label),u=null,h=0===o?"":1===o?"1 has no data yet.":`${o} have no data yet.`;if(n)u=1===i?"This page is over a limit.":1===n?`1 of ${i} pages is over a limit.`:`${n} of ${i} pages are over a limit. Worst first.`;else if(d){let e=1===i?"This page is within your limits.":d===i?`All ${i} pages are within your limits. Closest to a limit first.`:1===d?`1 of ${i} pages is within your limits.`:`${d} of ${i} pages are within your limits. Closest to a limit first.`;u=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{"aria-hidden":"true",className:"mr-1 inline size-3.5 align-[-2px] text-dash-success"}),e]})}else c.length?(u=`Could not load ${c.join(" and ")} data, so pages are not checked against your limits.`,h=""):r("loadTime")||(u=(0,t.jsxs)(t.Fragment,{children:["Ranked by Sentry errors in the last 24h. ",(0,t.jsx)(a.default,{href:"/setup",className:N,children:"Connect New Relic"})," to check load time and error rate against your limits."]}));return(d&&c.length&&(h=[h,`Could not load ${c.join(" and ")} data.`].filter(Boolean).join(" ")),u||h)?(0,t.jsxs)("p",{"data-slot":"table-summary",className:"text-body text-dash-muted",children:[u,u&&h&&" ",h]}):null}e.s(["HUB_TABLE_TITLE_ID",0,v,"HubTable",0,function({title:e,pages:s,has:i,thresholds:l,failed:n=[],limit:d}){let o=(0,r.useRouter)(),c=(0,b.rankPages)(s,l),u=c.some(e=>e.status);return(0,t.jsxs)(m.Card,{className:"bg-dash-card text-dash-foreground",children:[(0,t.jsxs)(m.CardHeader,{children:[(0,t.jsx)("h2",{id:v,tabIndex:-1,className:`title-enter w-fit text-h3 text-dash-foreground ${k}`,children:e}),(0,t.jsx)(z,{rows:c,has:i,failed:n})]}),(0,t.jsxs)(m.CardContent,{children:[(0,t.jsxs)(h.Table,{children:[(0,t.jsx)("caption",{className:"sr-only",children:"Pages ranked worst first"}),(0,t.jsx)(h.TableHeader,{children:(0,t.jsxs)(h.TableRow,{className:"border-dash-border hover:bg-transparent",children:[(0,t.jsx)(h.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Page"}),u&&(0,t.jsx)(h.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Status"}),i("loadTime")&&(0,t.jsx)($,{label:"Load time",caption:(0,b.limitLabel)("loadTime",l)}),i("errorRate")&&(0,t.jsx)($,{label:"Error rate",caption:(0,b.limitLabel)("errorRate",l)}),i("apdex")&&(0,t.jsx)($,{label:"Apdex",caption:(0,b.limitLabel)("apdex",l)}),i("errors")&&(0,t.jsx)($,{label:"Sentry errors",caption:"last 24h, no limit"}),i("traffic")&&(0,t.jsx)($,{label:(0,x.isSampled)(s)?"Page loads (sampled)":"Views (24h)"})]})}),(0,t.jsx)(h.TableBody,{children:c.slice(0,d).map(e=>{let r=(0,b.hasData)(e),s=(0,b.hasPerformance)(e),n=e.metrics,d=`/performance/${e.slug}`,c=function(e,t,a){if(!(0,b.hasData)(e))return"";if(j(e.status)){let t=(0,b.breachReasons)(e,a).join(", ");return t.charAt(0).toUpperCase()+t.slice(1)}let r=e.metrics,s=(0,b.hasPerformance)(e);return[s&&t("loadTime")&&void 0!==r.loadTime&&`Load ${(0,p.formatDuration)(r.loadTime)}`,s&&t("errorRate")&&void 0!==r.errorRate&&`Errors ${r.errorRate.toFixed(2)}%`,s&&t("apdex")&&void 0!==r.apdex&&`Apdex ${r.apdex.toFixed(2)}`,t("errors")&&r.errors&&`${r.errors.count} Sentry ${1===r.errors.count?"error":"errors"}`].filter(Boolean).join(" · ")}(e,i,l);return(0,t.jsxs)(h.TableRow,{"data-slug":e.slug,className:"h-14 cursor-pointer border-dash-border hover:bg-white/5 focus-within:bg-white/5 lg:h-12",onClick:e=>{e.target.closest("a")||o.push(d)},children:[(0,t.jsxs)("th",{scope:"row","data-slot":"table-cell",className:"w-full max-w-0 px-3 py-2 text-left align-middle font-normal",children:[(0,t.jsxs)(a.default,{href:d,title:e.name,className:`block truncate text-body font-medium text-dash-foreground ${k}`,children:[e.name,(0,t.jsx)("span",{className:"sr-only",children:", view page details"})]}),(0,t.jsx)("span",{title:e.url,className:"block truncate font-mono text-body-sm text-dash-muted",children:e.url}),c&&(0,t.jsx)("span",{"data-slot":"row-summary",className:"mt-0.5 block text-body-sm text-dash-muted lg:hidden",children:c})]}),u&&(0,t.jsx)(h.TableCell,{className:"px-3",children:(0,t.jsx)(C,{page:e})}),i("loadTime")&&(0,t.jsx)(S,{status:s?(0,b.metricStatus)("loadTime",n.loadTime,l):void 0,children:s&&void 0!==n.loadTime?(0,p.formatDuration)(n.loadTime):"—"}),i("errorRate")&&(0,t.jsx)(S,{status:s?(0,b.metricStatus)("errorRate",n.errorRate,l):void 0,children:s&&void 0!==n.errorRate?`${n.errorRate.toFixed(2)}%`:"—"}),i("apdex")&&(0,t.jsx)(S,{status:s?(0,b.metricStatus)("apdex",n.apdex,l):void 0,children:s&&void 0!==n.apdex?n.apdex.toFixed(2):"—"}),i("errors")&&(0,t.jsx)(S,{children:r&&n.errors?n.errors.count:"—"}),i("traffic")&&(0,t.jsx)(S,{children:r&&n.traffic?e.visitors:"—"})]},e.slug)})})]}),void 0!==d&&c.length>d&&(0,t.jsxs)(a.default,{href:"/performance",className:`mt-2 inline-flex min-h-11 items-center px-3 text-body md:min-h-8 ${N}`,children:["View all ",c.length," pages"]})]})]})}],7848)},11777,e=>{"use strict";var t=e.i(40798),a=e.i(24851),r=e.i(71428),s=e.i(34813),i=e.i(73011),l=e.i(50762),n=e.i(28175),d=e.i(7848);e.s(["PerformanceHub",0,function(){let{state:e,retry:o}=(0,s.useMetrics)(),c=(0,l.useThresholds)();if("loading"===e.status)return(0,t.jsx)(r.Skeleton,{className:"mt-6 h-64 w-full bg-[#2d3748]"});if("error"===e.status)return(0,t.jsx)(a.EmptyState,{title:"Could not load metrics",reason:e.message,onRetry:o});if(!e.configured)return(0,t.jsx)(a.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(!e.pages.length||!e.pages.some(i.hasData))return(0,t.jsx)(a.EmptyState,{});let u=t=>(0,s.provides)(e,t);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.HubMetrics,{pages:e.pages,has:u}),(0,t.jsx)(d.HubTable,{title:"All pages",pages:e.pages,has:u,thresholds:c,failed:e.failed})]})}])},94179,e=>{"use strict";var t=e.i(39294),a=e.i(69322),r=e.i(94237),s=e.i(27152);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",render:l,...n}){return(0,a.useRender)({defaultTagName:"span",props:(0,t.mergeProps)({className:(0,s.cn)(i({variant:r}),e)},n),render:l,state:{slot:"badge",variant:r}})}])},70065,e=>{"use strict";var t=e.i(40798),a=e.i(27152);e.s(["Card",0,function({className:e,size:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("h3",{"data-slot":"card-title",className:(0,a.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},47627,e=>{"use strict";var t=e.i(40798),a=e.i(27152);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},42230,e=>{"use strict";var t=e.i(96341);let a=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim(),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},s=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,width:l,height:n,strokeWidth:d,absoluteStrokeWidth:o,nonScalingStroke:c,className:u="",children:h,iconNode:m=[],icon:g={node:m,aliases:[],size:24},...x},f)=>{let{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:v=!1,nonScalingStroke:j=!1,color:y="currentColor",className:w=""}=(0,t.useContext)(s)??{},k=!!h||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(x),[N,T,C=[]]=function(e,t={}){return function(e,t={}){let s=t.attributeNames??{},i=e=>s[e]??e,l=e.size??e.width??r.width,n=e.size??e.height??r.height,d=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],o=[...e.name?[`lucide-${e.name}`]:[],...d],c=t.className?.split(" ").filter(Boolean)??[],u=!1===t.includeDefaultClasses?a(...c):a("lucide",...o,...c),h=t.absoluteStrokeWidth?Number(t.strokeWidth??r["stroke-width"])*Number(e.size??e.width??r.width)/Number(t.size??t.width??r.width):t.strokeWidth??r["stroke-width"];return["svg",{...Object.entries(r).reduce((e,[t,a])=>(e[i(t)]=a,e),{}),..."color"in t&&t.color&&{[i("stroke")]:t.color},..."size"in t&&null!=t.size&&{[i("width")]:t.size,[i("height")]:t.size},..."width"in t&&null!=t.width&&{[i("width")]:t.width},..."height"in t&&null!=t.height&&{[i("height")]:t.height},[i("stroke-width")]:h,...u&&{[i("class")]:u},[i("viewBox")]:`0 0 ${l} ${n}`,...!1===t.hasA11yProp?{[i("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[a,r,s]=e,l=t.nonScalingStroke?{[i("vector-effect")]:"non-scaling-stroke",...r}:r;return s?[a,l,s]:[a,l]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(g,{color:e??y,width:l??i??p,height:n??i??p,strokeWidth:d??b,absoluteStrokeWidth:o??v,nonScalingStroke:c??j,className:a(w,u),hasA11yProp:k,attributes:x});return(0,t.createElement)(N,{ref:f,...T},[...C.map(([e,a])=>(0,t.createElement)(e,a)),...Array.isArray(h)?h:[h]])});e.s(["default",0,i],42230)},23023,e=>{"use strict";var t=e.i(67449);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let r=(0,t.default)(a);e.s(["Clock",0,r],23023)},16791,e=>{"use strict";var t=e.i(67449);let a={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};a.node;let r=(0,t.default)(a);e.s(["Globe",0,r],16791)},74581,e=>{"use strict";var t=e.i(67449);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let r=(0,t.default)(a);e.s(["default",0,r])},56296,e=>{"use strict";var t=e.i(74581);e.s(["AlertTriangle",()=>t.default])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96098,e=>{"use strict";var t=e.i(40798),r=e.i(39294),a=e.i(69322),s=e.i(27152),i=e.i(67449);let n={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};n.node;let l=(0,i.default)(n),c={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};function o({className:e,...r}){return(0,t.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:(0,s.cn)(e),...r})}function d({className:e,...r}){return(0,t.jsx)("ol",{"data-slot":"breadcrumb-list",className:(0,s.cn)("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground",e),...r})}function m({className:e,...r}){return(0,t.jsx)("li",{"data-slot":"breadcrumb-item",className:(0,s.cn)("inline-flex items-center gap-1",e),...r})}function u({className:e,render:t,...i}){return(0,a.useRender)({defaultTagName:"a",props:(0,r.mergeProps)({className:(0,s.cn)("transition-colors hover:text-foreground",e)},i),render:t,state:{slot:"breadcrumb-link"}})}function h({className:e,...r}){return(0,t.jsx)("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:(0,s.cn)("font-normal text-foreground",e),...r})}function x({children:e,className:r,...a}){return(0,t.jsx)("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:(0,s.cn)("[&>svg]:size-3.5",r),...a,children:e??(0,t.jsx)(l,{})})}c.node,(0,i.default)(c),e.s(["PerformanceBreadcrumb",0,function({pageName:e="Homepage"}){return(0,t.jsx)(o,{className:"mb-6",children:(0,t.jsxs)(d,{children:[(0,t.jsx)(m,{children:(0,t.jsx)(u,{href:"/performance",className:"text-gray-400 hover:text-white",children:"Performance"})}),(0,t.jsx)(x,{}),(0,t.jsx)(m,{children:(0,t.jsx)(h,{className:"text-white font-medium",children:e})})]})})}],96098)},29672,e=>{"use strict";var t=e.i(40798),r=e.i(19085),a=e.i(24851),s=e.i(71428),i=e.i(34813),n=e.i(73011),l=e.i(96098),c=e.i(5080),o=e.i(97920);e.s(["PerformanceDetail",0,function({slug:e}){let{state:d,retry:m}=(0,i.useMetrics)();if("loading"===d.status)return(0,t.jsx)(s.Skeleton,{className:"h-64 w-full bg-[#2d3748]"});if("error"===d.status)return(0,t.jsx)(a.EmptyState,{title:"Could not load metrics",reason:d.message,onRetry:m});if(!d.configured)return(0,t.jsx)(a.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(0===d.pages.length)return(0,t.jsx)(a.EmptyState,{});let u=d.pages.find(t=>t.slug===e);return u||(0,r.notFound)(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.PerformanceBreadcrumb,{pageName:u.name}),(0,n.hasData)(u)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.PerformanceKPIs,{page:u,has:e=>(0,i.provides)(d,e)}),u.metrics.errors&&(0,t.jsx)(o.RelatedErrorsList,{errors:u.metrics.errors.latest})]}):(0,t.jsx)(a.EmptyState,{reason:`${u.name} (${u.url}): keys work, but no page events have arrived.`})]})}])},5080,e=>{"use strict";var t=e.i(40798),r=e.i(70065),a=e.i(86242),s=e.i(23023),i=e.i(69344),n=e.i(93961),l=e.i(64114);e.s(["PerformanceKPIs",0,function({page:e,has:c}){let o=e.metrics,d=[{needs:"loadTime",label:"Average Load Time",value:void 0===o.loadTime?"—":(0,n.formatDuration)(o.loadTime),icon:(0,t.jsx)(s.Clock,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"errorRate",label:"Error Rate",value:void 0===o.errorRate?"—":`${o.errorRate.toFixed(2)}%`,icon:(0,t.jsx)(a.Activity,{className:"h-4 w-4 text-[#ef4444]"})},{needs:"traffic",label:(0,l.isSampled)([e])?"Page loads (sampled)":"Traffic Volume",value:o.traffic?e.visitors:"—",icon:(0,t.jsx)(i.Zap,{className:"h-4 w-4 text-[#06b6d4]"})}].filter(e=>c(e.needs));return(0,t.jsx)("div",{className:"grid gap-6 md:grid-cols-3 mb-8",children:d.map(e=>(0,t.jsx)(r.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,t.jsxs)(r.CardContent,{className:"p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-400",children:e.label}),(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:e.icon})]}),(0,t.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:e.value})]})},e.label))})}])},97920,e=>{"use strict";var t=e.i(40798),r=e.i(70065),a=e.i(67449);let s={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};s.node;let i=(0,a.default)(s);var n=e.i(23023);e.s(["RelatedErrorsList",0,function({errors:e}){return(0,t.jsxs)(r.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md w-full lg:w-[400px]",children:[(0,t.jsx)(r.CardHeader,{children:(0,t.jsxs)(r.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,t.jsx)(i,{className:"h-5 w-5 text-[#ef4444]"}),"Related Errors"]})}),(0,t.jsx)(r.CardContent,{children:0===e.length?(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"No errors reported for this page."}):(0,t.jsx)("div",{className:"flex flex-col gap-3",children:e.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-[#2d3748] bg-[#0f1419] p-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsxs)("span",{className:"text-xs font-mono text-gray-500",children:[e.count," events"]})}),(0,t.jsx)("p",{className:"text-sm font-medium text-gray-200 line-clamp-2",children:e.title}),(0,t.jsxs)("div",{className:"flex items-center gap-1 mt-1 text-xs text-gray-500",children:[(0,t.jsx)(n.Clock,{className:"h-3 w-3"}),(0,t.jsx)("span",{children:new Date(e.lastSeen).toLocaleString()})]})]},e.title))})})]})}],97920)},24851,e=>{"use strict";var t=e.i(40798),r=e.i(3547),a=e.i(70065),s=e.i(67881);e.s(["EmptyState",0,function({title:e="No data yet",reason:i="Keys work, but no page events have arrived.",href:n="/connect",cta:l="Send your first events",onRetry:c}){return(0,t.jsx)(a.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,t.jsxs)(a.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-white",children:e}),(0,t.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:i}),(0,t.jsxs)("div",{className:"flex gap-3",children:[n&&(0,t.jsx)(r.default,{href:n,className:(0,s.buttonVariants)(),children:l}),c&&(0,t.jsx)(s.Button,{variant:"outline",onClick:c,children:"Retry"})]})]})})}])},70065,e=>{"use strict";var t=e.i(40798),r=e.i(27152);e.s(["Card",0,function({className:e,size:a="default",...s}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("h3",{"data-slot":"card-title",className:(0,r.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},42230,e=>{"use strict";var t=e.i(96341);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},s=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,width:n,height:l,strokeWidth:c,absoluteStrokeWidth:o,nonScalingStroke:d,className:m="",children:u,iconNode:h=[],icon:x={node:h,aliases:[],size:24},...f},g)=>{let{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:j=!1,nonScalingStroke:v=!1,color:w="currentColor",className:N=""}=(0,t.useContext)(s)??{},y=!!u||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(f),[k,C,z=[]]=function(e,t={}){return function(e,t={}){let s=t.attributeNames??{},i=e=>s[e]??e,n=e.size??e.width??a.width,l=e.size??e.height??a.height,c=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],o=[...e.name?[`lucide-${e.name}`]:[],...c],d=t.className?.split(" ").filter(Boolean)??[],m=!1===t.includeDefaultClasses?r(...d):r("lucide",...o,...d),u=t.absoluteStrokeWidth?Number(t.strokeWidth??a["stroke-width"])*Number(e.size??e.width??a.width)/Number(t.size??t.width??a.width):t.strokeWidth??a["stroke-width"];return["svg",{...Object.entries(a).reduce((e,[t,r])=>(e[i(t)]=r,e),{}),..."color"in t&&t.color&&{[i("stroke")]:t.color},..."size"in t&&null!=t.size&&{[i("width")]:t.size,[i("height")]:t.size},..."width"in t&&null!=t.width&&{[i("width")]:t.width},..."height"in t&&null!=t.height&&{[i("height")]:t.height},[i("stroke-width")]:u,...m&&{[i("class")]:m},[i("viewBox")]:`0 0 ${n} ${l}`,...!1===t.hasA11yProp?{[i("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,a,s]=e,n=t.nonScalingStroke?{[i("vector-effect")]:"non-scaling-stroke",...a}:a;return s?[r,n,s]:[r,n]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(x,{color:e??w,width:n??i??p,height:l??i??p,strokeWidth:c??b,absoluteStrokeWidth:o??j,nonScalingStroke:d??v,className:r(N,m),hasA11yProp:y,attributes:f});return(0,t.createElement)(k,{ref:g,...C},[...z.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,i],42230)},23023,e=>{"use strict";var t=e.i(67449);let r={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r.node;let a=(0,t.default)(r);e.s(["Clock",0,a],23023)},69344,e=>{"use strict";var t=e.i(67449);let r={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};r.node;let a=(0,t.default)(r);e.s(["Zap",0,a],69344)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24851,e=>{"use strict";var t=e.i(40798),a=e.i(3547),r=e.i(70065),s=e.i(67881);e.s(["EmptyState",0,function({title:e="No data yet",reason:i="Keys work, but no page events have arrived.",href:l="/connect",cta:n="Send your first events",onRetry:o}){return(0,t.jsx)(r.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,t.jsxs)(r.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-white",children:e}),(0,t.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:i}),(0,t.jsxs)("div",{className:"flex gap-3",children:[l&&(0,t.jsx)(a.default,{href:l,className:(0,s.buttonVariants)(),children:n}),o&&(0,t.jsx)(s.Button,{variant:"outline",onClick:o,children:"Retry"})]})]})})}])},28175,e=>{"use strict";var t=e.i(40798),a=e.i(70065),r=e.i(16791),s=e.i(23023),i=e.i(56296);e.i(34813);var l=e.i(73011),n=e.i(93961);e.s(["HubMetrics",0,function({pages:e,has:o}){let d=e.filter(l.hasData),c=d.length?d.reduce((e,t)=>e+(t.metrics.loadTime??0),0)/d.length:null,u=e.reduce((e,t)=>e+(t.metrics.errors?.count??0),0),h=[{needs:"pages",label:"Pages Reporting",value:`${d.length} of ${e.length}`,icon:(0,t.jsx)(r.Globe,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"loadTime",label:"Avg Load Time",value:null===c?"No data yet":(0,n.formatDuration)(c),icon:(0,t.jsx)(s.Clock,{className:"h-4 w-4 text-[#06b6d4]"})},{needs:"errors",label:"Open Errors",value:d.length||u?String(u):"No data yet",icon:(0,t.jsx)(i.AlertTriangle,{className:"h-4 w-4 text-[#ef4444]"})}].filter(e=>o(e.needs));return(0,t.jsx)("div",{className:`grid gap-6 mb-8 mt-4 ${3===h.length?"md:grid-cols-3":"md:grid-cols-2"}`,children:h.map((e,r)=>(0,t.jsx)(a.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,t.jsxs)(a.CardContent,{className:"p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-400",children:e.label}),(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:e.icon})]}),(0,t.jsx)("div",{className:"flex items-baseline gap-3",children:(0,t.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:e.value})})]})},r))})}])},7848,33451,66987,e=>{"use strict";var t=e.i(40798),a=e.i(3547),r=e.i(19085),s=e.i(67449);let i={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};i.node;let l=(0,s.default)(i),n={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};n.node;let o=(0,s.default)(n),d={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};d.node;let c=(0,s.default)(d);e.s(["OctagonAlert",0,c],33451);var u=e.i(74581);e.s(["TriangleAlert",()=>u.default],66987);var u=u,h=e.i(47627),m=e.i(70065),g=e.i(94179),x=e.i(64114),f=e.i(93834),p=e.i(93961),b=e.i(73011);let v="pages-table-title",y=e=>"Warning"===e||"Critical"===e,j={Critical:{Icon:c,icon:"text-dash-danger",badge:"border-dash-danger/40 bg-dash-danger/10"},Warning:{Icon:u.default,icon:"text-dash-warning",badge:"border-dash-warning/40 bg-dash-warning/10"},Healthy:{Icon:l,icon:"text-dash-success",badge:"border-dash-success/40 bg-dash-success/10"}},w={Icon:o,icon:"text-dash-muted",badge:"border-dash-border-light"},k="rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50",N=`font-medium text-dash-foreground underline underline-offset-4 hover:text-dash-muted-light ${k}`,T="hidden px-3 text-right tabular-nums lg:table-cell";function C({page:e}){let a=e.status??((0,b.hasData)(e)?"No performance data":"No data yet"),{Icon:r,icon:s,badge:i}=e.status?j[e.status]:w;return(0,t.jsxs)(g.Badge,{variant:"outline","data-status":a,className:`text-dash-foreground ${i}`,children:[(0,t.jsx)(r,{"aria-hidden":"true",className:s}),a]})}function S({label:e,caption:a}){return(0,t.jsxs)(h.TableHead,{scope:"col",className:`${T} h-12 text-dash-muted`,children:[e,a&&(0,t.jsx)("span",{className:"block text-body-sm",children:a})]})}function $({status:e,children:a}){let r="Critical"===e?c:u.default;return(0,t.jsxs)(h.TableCell,{"data-over-limit":y(e)||void 0,className:`${T} ${y(e)?"font-semibold text-dash-foreground":"text-dash-muted"}`,children:[y(e)&&(0,t.jsx)(r,{"aria-hidden":"true",className:`mr-1 inline size-3.5 align-[-2px] ${"Critical"===e?"text-dash-danger":"text-dash-warning"}`}),a,y(e)&&(0,t.jsx)("span",{className:"sr-only",children:" over limit"})]})}function z({rows:e,has:r,failed:s}){let i=e.length,n=e.filter(e=>y(e.status)).length,o=e.filter(e=>e.status).length,d=e.filter(e=>!(0,b.hasData)(e)).length,c=s.filter(f.isToolId).map(e=>f.TOOLS[e].label),u=null,h=0===d?"":1===d?"1 has no data yet.":`${d} have no data yet.`;if(n)u=1===i?"This page is over a limit.":1===n?`1 of ${i} pages is over a limit.`:`${n} of ${i} pages are over a limit. Worst first.`;else if(o){let e=1===i?"This page is within your limits.":o===i?`All ${i} pages are within your limits. Closest to a limit first.`:1===o?`1 of ${i} pages is within your limits.`:`${o} of ${i} pages are within your limits. Closest to a limit first.`;u=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{"aria-hidden":"true",className:"mr-1 inline size-3.5 align-[-2px] text-dash-success"}),e]})}else c.length?(u=`Could not load ${c.join(" and ")} data, so pages are not checked against your limits.`,h=""):r("loadTime")||(u=(0,t.jsxs)(t.Fragment,{children:["Ranked by Sentry errors in the last 24h. ",(0,t.jsx)(a.default,{href:"/setup",className:N,children:"Connect New Relic"})," to check load time and error rate against your limits."]}));return(o&&c.length&&(h=[h,`Could not load ${c.join(" and ")} data.`].filter(Boolean).join(" ")),u||h)?(0,t.jsxs)("p",{"data-slot":"table-summary",className:"text-body text-dash-muted",children:[u,u&&h&&" ",h]}):null}e.s(["HUB_TABLE_TITLE_ID",0,v,"HubTable",0,function({title:e,pages:s,has:i,thresholds:l,failed:n=[],limit:o}){let d=(0,r.useRouter)(),c=(0,b.rankPages)(s,l),u=c.some(e=>e.status);return(0,t.jsxs)(m.Card,{className:"bg-dash-card text-dash-foreground",children:[(0,t.jsxs)(m.CardHeader,{children:[(0,t.jsx)("h2",{id:v,tabIndex:-1,className:`title-enter w-fit text-h3 text-dash-foreground ${k}`,children:e}),(0,t.jsx)(z,{rows:c,has:i,failed:n})]}),(0,t.jsxs)(m.CardContent,{children:[(0,t.jsxs)(h.Table,{children:[(0,t.jsx)("caption",{className:"sr-only",children:"Pages ranked worst first"}),(0,t.jsx)(h.TableHeader,{children:(0,t.jsxs)(h.TableRow,{className:"border-dash-border hover:bg-transparent",children:[(0,t.jsx)(h.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Page"}),u&&(0,t.jsx)(h.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Status"}),i("loadTime")&&(0,t.jsx)(S,{label:"Load time",caption:(0,b.limitLabel)("loadTime",l)}),i("errorRate")&&(0,t.jsx)(S,{label:"Error rate",caption:(0,b.limitLabel)("errorRate",l)}),i("apdex")&&(0,t.jsx)(S,{label:"Apdex",caption:(0,b.limitLabel)("apdex",l)}),i("errors")&&(0,t.jsx)(S,{label:"Sentry errors",caption:"last 24h, no limit"}),i("traffic")&&(0,t.jsx)(S,{label:(0,x.isSampled)(s)?"Page loads (sampled)":"Views (24h)"})]})}),(0,t.jsx)(h.TableBody,{children:c.slice(0,o).map(e=>{let r=(0,b.hasData)(e),s=(0,b.hasPerformance)(e),n=e.metrics,o=`/performance/${e.slug}`,c=function(e,t,a){if(!(0,b.hasData)(e))return"";if(y(e.status)){let t=(0,b.breachReasons)(e,a).join(", ");return t.charAt(0).toUpperCase()+t.slice(1)}let r=e.metrics,s=(0,b.hasPerformance)(e);return[s&&t("loadTime")&&void 0!==r.loadTime&&`Load ${(0,p.formatDuration)(r.loadTime)}`,s&&t("errorRate")&&void 0!==r.errorRate&&`Errors ${r.errorRate.toFixed(2)}%`,s&&t("apdex")&&void 0!==r.apdex&&`Apdex ${r.apdex.toFixed(2)}`,t("errors")&&r.errors&&`${r.errors.count} Sentry ${1===r.errors.count?"error":"errors"}`].filter(Boolean).join(" · ")}(e,i,l);return(0,t.jsxs)(h.TableRow,{"data-slug":e.slug,className:"h-14 cursor-pointer border-dash-border hover:bg-white/5 focus-within:bg-white/5 lg:h-12",onClick:e=>{e.target.closest("a")||d.push(o)},children:[(0,t.jsxs)("th",{scope:"row","data-slot":"table-cell",className:"w-full max-w-0 px-3 py-2 text-left align-middle font-normal",children:[(0,t.jsxs)(a.default,{href:o,title:e.name,className:`block truncate text-body font-medium text-dash-foreground ${k}`,children:[e.name,(0,t.jsx)("span",{className:"sr-only",children:", view page details"})]}),(0,t.jsx)("span",{title:e.url,className:"block truncate font-mono text-body-sm text-dash-muted",children:e.url}),c&&(0,t.jsx)("span",{"data-slot":"row-summary",className:"mt-0.5 block text-body-sm text-dash-muted lg:hidden",children:c})]}),u&&(0,t.jsx)(h.TableCell,{className:"px-3",children:(0,t.jsx)(C,{page:e})}),i("loadTime")&&(0,t.jsx)($,{status:s?(0,b.metricStatus)("loadTime",n.loadTime,l):void 0,children:s&&void 0!==n.loadTime?(0,p.formatDuration)(n.loadTime):"—"}),i("errorRate")&&(0,t.jsx)($,{status:s?(0,b.metricStatus)("errorRate",n.errorRate,l):void 0,children:s&&void 0!==n.errorRate?`${n.errorRate.toFixed(2)}%`:"—"}),i("apdex")&&(0,t.jsx)($,{status:s?(0,b.metricStatus)("apdex",n.apdex,l):void 0,children:s&&void 0!==n.apdex?n.apdex.toFixed(2):"—"}),i("errors")&&(0,t.jsx)($,{children:r&&n.errors?n.errors.count:"—"}),i("traffic")&&(0,t.jsx)($,{children:r&&n.traffic?e.visitors:"—"})]},e.slug)})})]}),void 0!==o&&c.length>o&&(0,t.jsxs)(a.default,{href:"/performance",className:`mt-2 inline-flex min-h-11 items-center px-3 text-body md:min-h-8 ${N}`,children:["View all ",c.length," pages"]})]})]})}],7848)},11777,e=>{"use strict";var t=e.i(40798),a=e.i(24851),r=e.i(71428),s=e.i(34813),i=e.i(73011),l=e.i(50762),n=e.i(28175),o=e.i(7848);e.s(["PerformanceHub",0,function(){let{state:e,retry:d}=(0,s.useMetrics)(),c=(0,l.useThresholds)();if("loading"===e.status)return(0,t.jsx)(r.Skeleton,{className:"mt-6 h-64 w-full bg-[#2d3748]"});if("error"===e.status)return(0,t.jsx)(a.EmptyState,{title:"Could not load metrics",reason:e.message,onRetry:d});if(!e.configured)return(0,t.jsx)(a.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(!e.pages.length||!e.pages.some(i.hasData))return(0,t.jsx)(a.EmptyState,{});let u=t=>(0,s.provides)(e,t);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.HubMetrics,{pages:e.pages,has:u}),(0,t.jsx)(o.HubTable,{title:"All pages",pages:e.pages,has:u,thresholds:c,failed:e.failed})]})}])},94179,e=>{"use strict";var t=e.i(39294),a=e.i(69322),r=e.i(94237),s=e.i(27152);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",render:l,...n}){return(0,a.useRender)({defaultTagName:"span",props:(0,t.mergeProps)({className:(0,s.cn)(i({variant:r}),e)},n),render:l,state:{slot:"badge",variant:r}})}])},70065,e=>{"use strict";var t=e.i(40798),a=e.i(27152);e.s(["Card",0,function({className:e,size:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("h3",{"data-slot":"card-title",className:(0,a.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},47627,e=>{"use strict";var t=e.i(40798),a=e.i(27152);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},20587,e=>{"use strict";var t=e.i(96341);let a={alert:!0},r="notification-prefs",s=new Set,i=null;function l(){if(i)return i;let e={...a};try{let t=JSON.parse(localStorage.getItem(r)??"{}");for(let a of Object.keys(e))"boolean"==typeof t[a]&&(e[a]=t[a])}catch{}return i=e}function n(e){e.key===r&&(i=null,s.forEach(e=>e()))}function o(e){return s.add(e),window.addEventListener("storage",n),()=>{s.delete(e),window.removeEventListener("storage",n)}}e.s(["setNotificationPrefs",0,function(e){i={...l(),...e};try{localStorage.setItem(r,JSON.stringify(i))}catch{}s.forEach(e=>e())},"useNotificationPrefs",0,function(){return(0,t.useSyncExternalStore)(o,l,()=>a)}])},42230,e=>{"use strict";var t=e.i(96341);let a=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim(),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},s=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,width:l,height:n,strokeWidth:o,absoluteStrokeWidth:d,nonScalingStroke:c,className:u="",children:h,iconNode:m=[],icon:g={node:m,aliases:[],size:24},...x},f)=>{let{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:v=!1,nonScalingStroke:y=!1,color:j="currentColor",className:w=""}=(0,t.useContext)(s)??{},k=!!h||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(x),[N,T,C=[]]=function(e,t={}){return function(e,t={}){let s=t.attributeNames??{},i=e=>s[e]??e,l=e.size??e.width??r.width,n=e.size??e.height??r.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],d=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(" ").filter(Boolean)??[],u=!1===t.includeDefaultClasses?a(...c):a("lucide",...d,...c),h=t.absoluteStrokeWidth?Number(t.strokeWidth??r["stroke-width"])*Number(e.size??e.width??r.width)/Number(t.size??t.width??r.width):t.strokeWidth??r["stroke-width"];return["svg",{...Object.entries(r).reduce((e,[t,a])=>(e[i(t)]=a,e),{}),..."color"in t&&t.color&&{[i("stroke")]:t.color},..."size"in t&&null!=t.size&&{[i("width")]:t.size,[i("height")]:t.size},..."width"in t&&null!=t.width&&{[i("width")]:t.width},..."height"in t&&null!=t.height&&{[i("height")]:t.height},[i("stroke-width")]:h,...u&&{[i("class")]:u},[i("viewBox")]:`0 0 ${l} ${n}`,...!1===t.hasA11yProp?{[i("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[a,r,s]=e,l=t.nonScalingStroke?{[i("vector-effect")]:"non-scaling-stroke",...r}:r;return s?[a,l,s]:[a,l]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(g,{color:e??j,width:l??i??p,height:n??i??p,strokeWidth:o??b,absoluteStrokeWidth:d??v,nonScalingStroke:c??y,className:a(w,u),hasA11yProp:k,attributes:x});return(0,t.createElement)(N,{ref:f,...T},[...C.map(([e,a])=>(0,t.createElement)(e,a)),...Array.isArray(h)?h:[h]])});e.s(["default",0,i],42230)},23023,e=>{"use strict";var t=e.i(67449);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let r=(0,t.default)(a);e.s(["Clock",0,r],23023)},16791,e=>{"use strict";var t=e.i(67449);let a={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};a.node;let r=(0,t.default)(a);e.s(["Globe",0,r],16791)},74581,e=>{"use strict";var t=e.i(67449);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let r=(0,t.default)(a);e.s(["default",0,r])},56296,e=>{"use strict";var t=e.i(74581);e.s(["AlertTriangle",()=>t.default])},69344,e=>{"use strict";var t=e.i(67449);let a={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};a.node;let r=(0,t.default)(a);e.s(["Zap",0,r],69344)}]);
|