PageSourceSearch

https://xterns.ai/assets/SuperAdminPodSprintBoard-D1QYh_gj.js

js xterns.ai collected 2026-10-05 13:23:48 UTC 4,371 bytes, 1 lines download raw bytes

1import{a8 as g,u as N,j as t,B as d,L as y,h as v,i as C,k as b,J as w,m as L,aj as M,x as S,a4 as P}from"./index-DLd_kDlx.js";import{S as _}from"./SuperAdminLayout-BsUvQU2j.js";import{u as A}from"./usePodManagement-CP5ffjdL.js";import{u as k}from"./useSprintManagement-C4IIF8L2.js";import{P as B}from"./PodTechLeadCollaborationPanel-DOXEgUVe.js";import{A as $}from"./arrow-left-BXtn7MCa.js";import{L as E}from"./loader-circle-D2miE2xB.js";import{E as z}from"./eye-CRDofLPH.js";import{f as p}from"./format-BTXglRCX.js";import"./NotificationIcon-C1wwYnH5.js";import"./popover-BMD5FOmU.js";import"./scroll-area-BXTuUF24.js";import"./index-Deh-4PO1.js";import"./index-BdQq_4o_.js";import"./NotificationItem-Dc2WXW-y.js";import"./formatDistanceToNow-57P64IbE.js";import"./en-US-9SRVm7yB.js";import"./differenceInCalendarMonths-BA0TPVs2.js";import"./endOfDay-DkR3ZXc8.js";import"./endOfMonth-CYn6pTOm.js";import"./message-square-CtxeCfRz.js";import"./trophy-DBX-jNOC.js";import"./triangle-alert-Chqk_WK7.js";import"./dropdown-menu-DSd1c3Vk.js";import"./index-lTaZyIGy.js";import"./chevron-right-CD1gvy-q.js";import"./crown-hzm_bRIt.js";import"./user-check-DxoAQXwU.js";import"./star-BH1OFEcs.js";import"./globe-C057RQ73.js";import"./timer-CZhDpZys.js";import"./briefcase-business-CphIeAJd.js";import"./key-round-B79BulHq.js";import"./search-DFH5eAlA.js";import"./usePodDetails-C9Suehy1.js";import"./usePodMembers-8OtOtFCP.js";import"./useRoadmapData-uoMx8Hqe.js";import"./label-D4-ENrYn.js";import"./select-RSrodAEw.js";import"./chevron-down-DpJJsCer.js";import"./chevron-up-M4SAwIjf.js";import"./useMultilateralTechLeadInvitations-CzvKFiLJ.js";import"./useTechLeads-Cmw-XrPs.js";import"./TechLeadPicker-DENSUSgV.js";import"./command-BReSBG4f.js";import"./textarea-C6X-I43k.js";import"./alert-dialog-Ct5JsrY0.js";import"./user-cog-BjzUwQIe.js";import"./shield-alert-CVqPbwtZ.js";import"./mail-plus-CkuPXPSq.js";import"./git-branch-C-twpC7K.js";import"./refresh-cw-CoPjtj5-.js";const l={active:{label:"Active",icon:t.jsx(P,{className:"h-4 w-4"}),variant:"default"},completed:{label:"Completed",icon:t.jsx(S,{className:"h-4 w-4"}),variant:"secondary"},not_started:{label:"Not Started",icon:t.jsx(M,{className:"h-4 w-4"}),variant:"outline"}},Et=()=>{var o;const{podId:r}=g(),c=N(),{podDetails:s,isLoading:x}=A(r),{sprints:i,isLoading:u}=k(r),h=x||u,j=(s==null?void 0:s.pod_type)==="multilateral",f=Array.isArray((o=s==null?void 0:s.projects)==null?void 0:o.career_paths)?s.projects.career_paths:[];return t.jsx(_,{children:t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(d,{variant:"ghost",size:"icon",asChild:!0,children:t.jsx(y,{to:"/super-admin/sprint-boards-pods",children:t.jsx($,{className:"h-5 w-5"})})}),t.jsxs("div",{children:[t.jsxs("h1",{className:"text-2xl font-bold",children:[(s==null?void 0:s.pod_name)||"Pod"," — Sprints"]}),t.jsx("p",{className:"text-muted-foreground text-sm",children:s?`Status: ${s.status}`:"Loading pod details..."})]})]}),t.jsx(B,{podId:r,isMultilateral:j,pathways:f}),h?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(E,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):i.length===0?t.jsx("p",{className:"text-muted-foreground text-center py-12",children:"No sprints created yet."}):t.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:i.map(e=>{var n;const a=l[e.status]||l.not_started,m=((n=e.stories)==null?void 0:n.length)??0;return t.jsxs(v,{className:"flex flex-col",children:[t.jsx(C,{className:"pb-3",children:t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(b,{className:"text-base",children:e.name||`Sprint ${e.sprint_number}`}),t.jsxs(w,{variant:a.variant,className:"gap-1",children:[a.icon,a.label]})]})}),t.jsxs(L,{className:"flex-1 flex flex-col justify-between gap-4",children:[t.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[t.jsxs("p",{children:[p(new Date(e.start_date),"MMM d")," –"," ",p(new Date(e.end_date),"MMM d, yyyy")]}),t.jsxs("p",{children:[m," ",m===1?"story":"stories"]})]}),t.jsxs(d,{size:"sm",variant:"outline",className:"gap-1.5 self-start",onClick:()=>c(`/super-admin/sprint-boards-pods/${r}/sprint-board/${e.id}`),children:[t.jsx(z,{className:"h-3.5 w-3.5"}),"View Board"]})]})]},e.id)})})]})})};export{Et 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.