PageSourceSearch

https://usplus.ai/assets/work-cohort-index-BAD42hOQ.js

js usplus.ai collected 2026-10-05 14:38:38 UTC 5,890 bytes, 1 lines download raw bytes

1import{j as t}from"./index-COia_u_c.js";import{f as u,L as h,g as x}from"./error-boundary-f1in_24u.js";import{S as f}from"./seo-CDtyH7-O.js";import{W as g}from"./work-shell-Bur3my86.js";import{a as j}from"./breadcrumbs-Dbgw3lMa.js";import{C as n,a as d}from"./card-9FFZVsXh.js";import{B as o}from"./badge-CRv2Uj06.js";import{T as l}from"./trophy-CbuK_nHV.js";import{A as b}from"./arrow-right-a3GVaBCx.js";import{U as k}from"./users-i5snUC6z.js";import"./theme-toggle-BkVA7uAI.js";import"./moon-BBJRfaeF.js";import"./sun-2tBrnsEw.js";import"./live-session-context-oXSuMxCg.js";import"./useWorkUserRole-Ch1_NBOt.js";import"./use-mobile-zhN_18s-.js";import"./sheet-BmtcUupL.js";import"./index-CGxBfI-N.js";import"./index-D_Zty-fI.js";import"./sidebar-Q-ILwD_u.js";import"./input-BMBT_4Bx.js";import"./separator-DC8uxkik.js";import"./panel-left-TLE_oDGu.js";import"./dropdown-menu-DS2u9Tkk.js";import"./index-Oe821wdH.js";import"./index-Pq_Csd98.js";import"./chevron-right-8XCGUmdI.js";import"./check-DAidKK12.js";import"./circle-vewocwsg.js";import"./analytics-DMp_eEpA.js";import"./live-session-modal-CkrwjPTa.js";import"./dialog-9oBKR2F0.js";import"./switch-DAKaF9nf.js";import"./index-BkY7P_Qy.js";import"./skeleton-3sAggrEZ.js";import"./waveform-indicator-DiSZ9Uw8.js";import"./select-BDI2_9d0.js";import"./index-BdQq_4o_.js";import"./chevron-down-Es-EqAgM.js";import"./chevron-up-Va5e9fKM.js";import"./audio-lines-DDhlfwIS.js";import"./zap-D9FOghzu.js";import"./monitor-ClOxXU8F.js";import"./circle-check-BSwjpvpm.js";import"./plus-CWxxfO2Q.js";import"./thumbs-up-DATWNjlW.js";import"./thumbs-down-BES-Sozt.js";import"./clock-DVQnuqvU.js";import"./wrench-jBcoNx3r.js";import"./history-C_zog-j6.js";import"./lock-BJrY6XHZ.js";import"./search-CVoZAhov.js";import"./globe-C07SmJr2.js";import"./calendar-zBoD77sr.js";import"./mail-C6ne6R6V.js";import"./message-square-7jvkyOEW.js";import"./phone-DO06vNU4.js";import"./bot-CHXDX-4s.js";import"./brain-Cp4Jwkst.js";import"./layout-dashboard-C0JGZID7.js";import"./list-checks-eAoJ50lb.js";import"./dollar-sign-DXAqPCZB.js";import"./credit-card-Bbepc1-g.js";import"./chart-column-DJwQW40I.js";import"./package-uYvbNAC8.js";import"./palette-BHPSmLXw.js";import"./building-2-CyA0Yi1V.js";import"./briefcase-ClxkdD6h.js";import"./calendar-days-BRTFmq0j.js";import"./layout-grid-dBAitVEQ.js";import"./network-xvJyeumO.js";import"./file-text-Bry3cdGt.js";import"./settings-Ciq7jgd4.js";import"./circle-help-C4_4lwWE.js";import"./menu-B0bmwJPy.js";import"./shield-check-M2Vb-dGC.js";import"./log-out-DfWiNPh1.js";import"./sparkles-L4bd8k5g.js";import"./ellipsis-BCHn6xZ1.js";function Ht(){j([{label:"Leaderboards"}]);const{data:s,isLoading:c}=u({queryKey:["/api/work/cohorts","includeSnapshots=1"],queryFn:async()=>{const e=await fetch("/api/work/cohorts?includeSnapshots=1",{credentials:"include"});if(!e.ok)throw new Error(`${e.status}`);return e.json()}});return t.jsxs(g,{authenticated:!0,children:[t.jsx(f,{title:"Leaderboards — work.usplus.ai",description:"Top-ranked AI Labs by industry cohort, ranked on the last 30 days of outcomes.",url:"/marketplace/cohort",canonicalUrl:"https://work.usplus.ai/marketplace/cohort"}),t.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-6 space-y-6",children:[t.jsxs("header",{children:[t.jsx("h1",{className:"text-2xl font-bold tracking-tight","data-testid":"text-cohort-index-title",children:"Leaderboards"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Industry cohorts ranked by outcomes shipped in the last 30 days. Tap a cohort to see the full leaderboard."})]}),c?t.jsx("div",{className:"flex h-64 items-center justify-center","data-testid":"loader-cohort-index",children:t.jsx(h,{className:"h-6 w-6 animate-spin text-muted-foreground","aria-hidden":!0})}):!s||s.cohorts.length===0?t.jsx(n,{children:t.jsxs(d,{className:"p-8 text-center text-sm text-muted-foreground",children:[t.jsx(l,{className:"mx-auto mb-2 h-6 w-6","aria-hidden":!0}),"No active cohorts yet — check back soon."]})}):t.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:s.cohorts.map(e=>{const i=e.snapshot?.rankings?.slice(0,3)??[],a=e.snapshot?.cohortSize??0,m=e.snapshot?.medianOutcomeCount??null,p=e.snapshot?.benchmarksSuppressed??!0;return t.jsx(x,{href:`/marketplace/cohort/${e.slug}
1`,"data-testid":`link-cohort-${e.slug}`,children:t.jsx(n,{className:"h-full hover-elevate",children:t.jsxs(d,{className:"space-y-3 p-4",children:[t.jsxs("div",{className:"flex items-start justify-between gap-2",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx("h2",{className:"text-base font-semibold leading-snug","data-testid":`text-cohort-label-${e.slug}`,children:e.label}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Ranked by ",e.primaryMetric]})]}),t.jsx(b,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[t.jsxs(o,{variant:"secondary","data-testid":`badge-cohort-size-${e.slug}`,children:[t.jsx(k,{className:"mr-1 h-3 w-3","aria-hidden":!0}),a," ",a===1?"Lab":"Labs"]}),!p&&m!=null?t.jsxs(o,{variant:"outline","data-testid":`badge-cohort-median-${e.slug}`,children:["Median ",Math.round(m).toLocaleString()," / 30d"]}):t.jsx(o,{variant:"outline",children:"Not enough data yet"})]}),i.length>0&&!p?t.jsx("ol",{className:"space-y-1 text-xs",children:i.map(r=>t.jsxs("li",{className:"flex items-center justify-between gap-2 text-muted-foreground","data-testid":`row-cohort-top-${e.slug}-${r.rank}`,children:[t.jsxs("span",{className:"inline-flex items-center gap-2",children:[t.jsx(l,{className:`h-3 w-3 ${r.rank===1?"text-primary":"text-muted-foreground"}`,"aria-hidden":!0}),"#",r.rank]}),t.jsxs("span",{className:"font-medium text-foreground",children:[r.outcomeCount.toLocaleString()," / 30d"]})]},r.serviceId))}):null]})})},e.id)})})]})]})}export{Ht as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.