PageSourceSearch

https://agentoai.dk/assets/BusinessBrainActionLogs-CM4XRzuM.js

js agentoai.dk collected 2026-10-02 01:55:05 UTC 4,461 bytes, 1 lines download raw bytes

1import{r,j as e}from"./framer-motion-CQxuJa5n.js";import{a as N,aq as S,ac as p,C as d,i as x}from"./index-CSx7K-7R.js";import{B as C}from"./BusinessBrainLayout-CfgY7Fl5.js";import{B as b}from"./badge-Yar_qzGV.js";import{S as w,a as L,b as B,c as _,d as u}from"./select-BP_Q7Vjk.js";import{fetchActionLogs as A}from"./actionEngine-CnsjkxFK.js";import{S as k}from"./scroll-text-DmdnLCDK.js";import{P as E}from"./play-Bwj0pelq.js";import{C as I}from"./circle-x-Bjw_qpIQ.js";import{C as T}from"./circle-check-big-BvOaTfBT.js";import{C as O}from"./clock-x2s7C7KC.js";import"./recharts-CFjfazL9.js";import"./suggestion-engine-D0RnVcSI.js";import"./chevron-up-fhR0nOsN.js";import"./chevron-down-DvU9LH4D.js";import"./copy-B5YKNs8h.js";import"./circle-alert-BTQs6TYB.js";import"./circle-check-B_lwCfqV.js";import"./compass-DjolDLR6.js";import"./wrench-DfDJJ0Jp.js";import"./circle-help-Bky_gBt3.js";import"./index-LVhgA_5_.js";import"./send-DOJcdEwD.js";import"./rotate-ccw-Dtzdjl-6.js";import"./arrow-down-CUpdqIwW.js";import"./mouse-pointer-click-uQfHAPlc.js";import"./navigation-BOs-RwO7.js";import"./dropdown-menu-B-FPVSP9.js";import"./index-CwKDC_mg.js";import"./index-CVOcPLpq.js";import"./check-BKeeD-3t.js";import"./circle-C-nBCxpe.js";import"./dialog-RiETlj4q.js";import"./textarea-BFuIyuCd.js";import"./switch-GLkYldml.js";import"./index-srxnih4L.js";import"./audioConsentPolicy-Dk1eS16f.js";import"./mic-off-mo8vRT9e.js";import"./plus-t8RS0EeL.js";import"./chevrons-up-down-BOtDc1gx.js";import"./smartphone-Pu_ALQBu.js";import"./download-B29izdwZ.js";import"./radio-CEdjniLT.js";import"./cpu-BGbpP_L0.js";import"./network-uHWkZtbR.js";import"./git-branch-TS776fjf.js";import"./scale-zCwWjfgU.js";import"./flame-BkldTYb6.js";import"./shield-check-BcKgGayo.js";import"./graduation-cap-D1TP_Mw6.js";import"./message-circle-C_UnzPr5.js";import"./file-text-CQNieni0.js";import"./wand-sparkles-D3ewtxXC.js";import"./store-CLn7GiY7.js";import"./flask-conical-DPInzIZf.js";import"./settings-ClDRCqQC.js";import"./index-BdQq_4o_.js";const i={created:{color:"bg-blue-500/10 text-blue-600",icon:O},approved:{color:"bg-green-500/10 text-green-600",icon:T},rejected:{color:"bg-red-500/10 text-red-600",icon:I},executed:{color:"bg-emerald-500/10 text-emerald-600",icon:E},failed:{color:"bg-destructive/10 text-destructive",icon:p},error:{color:"bg-destructive/10 text-destructive",icon:p}};function Ke(){const{user:s}=N(),{workspaceId:f,ready:a}=S(),[l,g]=r.useState([]),[h,c]=r.useState(!0),[o,j]=r.useState("all");r.useEffect(()=>{s&&a&&v()},[s,a]);const v=async()=>{c(!0);const t=await A(s.id,void 0,f||void 0);g(t),c(!1)},m=o==="all"?l:l.filter(t=>t.log_type===o);return e.jsx(C,{children:e.jsxs("div",{className:"space-y-6","data-copilot-id":"action-logs-page",children:[e.jsxs("div",{className:"flex items-center justify-between","data-copilot-id":"action-logs-header",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[e.jsx(k,{className:"w-6 h-6 text-primary"}),"Action Logs"]}),e.jsx("p",{className:"text-muted-foreground",children:"Komplet audit trail for alle action-udførelser"})]}),e.jsxs(w,{value:o,onValueChange:j,children:[e.jsx(L,{className:"w-[150px]",children:e.jsx(B,{})}),e.jsxs(_,{children:[e.jsx(u,{value:"all",children:"Alle typer"}),Object.keys(i).map(t=>e.jsx(u,{value:t,children:t},t))]})]})]}),h?e.jsx("p",{className:"text-muted-foreground text-sm py-8 text-center",children:"Indlæser..."}):m.length===0?e.jsx(d,{children:e.jsx(x,{className:"py-12 text-center text-muted-foreground",children:"Ingen logs fundet"})}):e.jsx("div",{className:"space-y-2",children:m.map(t=>{const n=i[t.log_type]||i.created,y=n.icon;return e.jsx(d,{children:e.jsxs(x,{className:"p-4 flex items-start gap-3",children:[e.jsx("div",{className:`p-2 rounded-lg ${n.color}`,children:e.jsx(y,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx(b,{variant:"outline",className:"text-xs",children:t.log_type}),e.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(t.created_at).toLocaleStr
1ing("da-DK")})]}),t.message&&e.jsx("p",{className:"text-sm mt-1",children:t.message}),t.payload_snapshot&&e.jsx("pre",{className:"bg-muted rounded p-2 text-xs mt-2 overflow-auto max-h-32",children:JSON.stringify(t.payload_snapshot,null,2)})]})]})},t.id)})})]})})}export{Ke 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.