PageSourceSearch

https://www.crosswork.us/assets/Attention-31yipEWC.js

js crosswork.us collected 2026-10-06 17:01:51 UTC 2,069 bytes, 1 lines download raw bytes

1import{l as h,a as p,j as e,L as u}from"./index-CFT_vGw7.js";import{u as x}from"./useQuery-Cj_mfvI8.js";import{A as f,a as g,S as j,E as y}from"./index-Bv9eWaQz.js";import{S as b}from"./primitives-kHYMyQ1J.js";/* empty css               */import{A as w}from"./query-BS-hXnpp.js";import{p as S}from"./dates-D5iwo3zf.js";import{f as k}from"./inbox-DlE_GKJQ.js";import{u as A,a as N,I as E}from"./Inbox-DSKRoRMF.js";import"./chevron-right-KiyOgOS7.js";import"./check-DvKzkfD7.js";import"./alert-dialog-Bn4OurZo.js";import"./format-D1yTzNoI.js";import"./index-CvuYnzRm.js";import"./chevron-down-pghxaqaB.js";import"./api-CPkmqtWQ.js";import"./format-QflGp-R3.js";function _(){const{isSuperAdmin:i}=h(),[o,a]=p.useState(!1),t=x({queryKey:["attention",o],queryFn:()=>k(o),...w}),{busy:l,err:r,run:c}=A(),s=t.data??[],d=N(s),m=s.filter(n=>n.severity!=="info"&&!n.dismissed).length;return e.jsxs(f,{children:[e.jsx(g,{title:"Attention",lede:e.jsxs(e.Fragment,{children:["The full list behind ",e.jsx(u,{className:"cw-link",to:"/dashboard",children:"Today"}),", including checks that are fine. Nothing here blocks anyone; diligence happens on Carta and Sydecar.",i?"":" Dollar amounts and data-health checks are shown to the owner only."]})}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-4 text-sm",children:[e.jsx("span",{"data-testid":"attention-open-count",children:t.isSuccess?`${S(m,"open item")}`:""}),e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:o,onChange:n=>a(n.target.checked)})," Show dismissed and snoozed"]})]}),r?e.jsx("p",{role:"alert",className:"text-sm cw-error-text mb-3",children:r}):null,t.isLoading?e.jsx(j,{rows:4,label:"Loading the attention list"}):t.isError?e.jsx(y,{onRetry:()=>{t.refetch()},busy:t.isFetching,children:"We could not load the attention list."}):s.length===0?e.jsx(b,{kind:"empty",children:"Nothing needs your attention right now."}):e.jsx("div",{className:"cw-card p-0",children:e.jsx(E,{items:s,isSuperAdmin:i,busy:l,run:c,intents:d})})]})}export{_ 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.