PageSourceSearch

https://flxpoint-help-center.onrender.com/_nuxt/CERuQKH-.js

js flxpoint-help-center.onrender.com collected 2026-10-03 11:41:49 UTC 8,903 bytes, 1 lines download raw bytes

1import{_ as W}from"./DvwJReO8.js";import{a as Y,F as k}from"./D3BEbpqY.js";import{_ as Z}from"./BrBsnUvv.js";import{C as N,a as D}from"./Bgvk1N0K.js";import"./CuV1veUk.js";import{B as ee}from"./REg5JKM6.js";import{u as te}from"./CdluDVjG.js";import{L}from"./BkP4RHU7.js";import{C as F}from"./DJkX-KqU.js";import{C as v}from"./Cj0oaxFs.js";import{C as se}from"./5oayh5lD.js";import{B as ae}from"./BQrFZBBi.js";import{U as ne}from"./DWdK8rng.js";import{c as q}from"./CxxjxuEl.js";import{U as oe}from"./CIYd1YTu.js";import{T as U}from"./cb02fz9F.js";import{E as P}from"./DuUGGbOD.js";import{S as re}from"./DynU6CYy.js";import{E as ie}from"./ky8PAO2n.js";import{F as le}from"./gtCKk8c-.js";import{e as ce,l as de,C as ue,c as o,b as m,a as r,F as y,r as C,g as n,f as c,w as p,k as _,o as a,h as l,t as i,d as h,n as A,i as me}from"./Co3N-VC7.js";import"./DI49_bfq.js";import"./B_Vf1Fy8.js";import"./BancpHVY.js";import"./aJg-boea.js";import"./iSlDSeqS.js";import"./BkfHIqpE.js";import"./C1jiKldv.js";import"./BCBsT_Hy.js";import"./DlAUqK2U.js";import"./BuT7ZGrt.js";import"./Cy8SPLeg.js";import"./B2yH_KGT.js";import"./nBByqvyH.js";const pe=q("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]);const R=q("cog",[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]]),fe={class:"mt-3 space-y-2"},ye=["onClick"],he={class:"min-w-0 flex-1"},ge={class:"truncate text-sm font-medium"},xe={class:"mt-0.5 text-xs text-muted-foreground"},ke={class:"flex shrink-0 items-center gap-1.5"},_e={key:0,class:"border-t p-3"},be={key:0,class:"rounded-md border border-dashed py-8 text-center text-sm text-muted-foreground"},ve={class:"divide-y divide-slate-100"},Ce={class:"min-w-0 flex-1 text-sm"},Ae={class:"inline-flex items-center gap-1 font-medium text-slate-800"},$e={class:"text-slate-600"},Me={key:1,class:"text-slate-600"},Te={class:"shrink-0 text-xs tabular-nums text-slate-400"},Se={key:0,class:"py-8 text-center text-sm text-muted-foreground"},Be={key:1,class:"border-t p-3 text-center"},V=50,ut=ce({__name:"activity",async setup(Ee){let g,$;const{data:M,refresh:z}=([g,$]=de(()=>te("/api/runs",{query:{limit:20},server:!1,lazy:!0},"$ybMSJGmOXs")),g=await g,$(),g),u=_([]),T=_(!1),x=_(!1);async function S(e=!1){x.value=!0;try{const t=await $fetch("/api/audit",{query:{limit:V,offset:e?0:u.value.length}});e?u.value=t:u.value.push(...t),T.value=t.length<V}finally{x.value=!1}}ue(()=>{S(!0)});const f=_(null);function j(e){f.value=f.value===e?null:e,f.value===e&&z()}function B(e){return e?new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}):""}function E(e){if(!e.finishedAt)return"";const t=Math.max(0,Math.round((new Date(e.finishedAt).getTime()-new Date(e.startedAt).getTime())/1e3));return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`}function O(e){return e.filenames.length===0?`${e.sourceCount} source(s)`:e.filenames.length===1?e.filenames[0]:`${e.filenames[0]} +${e.filenames.length-1} more`}const G=[{key:"update",label:"update",class:"bg-blue-100 text-blue-700"},{key:"delete_section",label:"removal",class:"bg-rose-100 text-rose-700"},{key:"new",label:"new",class:"bg-emerald-100 text-emerald-700"},{key:"noise",label:"skipped",class:"bg-slate-200 text-slate-600"}],H={"article.created":{label:"created article",icon:le,class:"text-emerald-600"},"article.updated":{label:"updated article",icon:k,class:"text-blue-600"},"article.published":{label:"published article",icon:ie,class:"text-green-600"},"article.unpublished":{label:"unpublished article",icon:P,class:"text-amber-600"},"article.deleted":{label:"deleted article",icon:U,class:"text-red-600"},"suggestion.created":{label:"proposed",icon:re,class:"text-[#4659b8]"},"suggestion.accepted":{label:"accepted suggestion",icon:F,class:"text-green-600"},"suggestion.rejected":{label:"rejected suggestion",icon:v,class:"text-red-600"},"suggestion.accept_blocked":{label:"accept blocked",icon:pe,class:"text-amber-600"},"suggestion.noise_overridden":{label:"overrode an AI skip",icon:P,class:"text-violet-600"},"suggestion.deleted":{label:"deleted suggestion",icon:U,class:"text-red-600"},"run.completed":{label:"Smart Match run finished",icon:oe,class:"text-slate-500"},"run.failed":{label:"Smart Match run failed",icon:v,class:"text-red-600"},"prompt.updated":{label:"edited a prompt",icon:k,class:"text-[#4659b8]"},"prompt.restored":{label:"restored a prompt version",icon:k,class:"text-[#4659b8]"},"prompt.reset":{label:"reset a prompt to default",icon:k,class:"text-[#4659b8]"},"settings.updated":{label:"changed settings",icon:R,class:"text-slate-500"}};function b(e){return H[e]??{label:e,icon:R,class:"text-slate-500"}}function X(e){return e.actorType==="ai"?`AI (run #${e.runId??"?"})`:e.actorType==="system"?"System":e.actorName??"Someone"}function I(e){const t=e.payload;return e.event==="article.deleted"&&t.snapshot?.title?`"${t.snapshot.title}"`:t.title?`"${t.title}"`:t.titleAfter&&t.titleBefore&&t.titleAfter!==t.titleBefore?`"${t.titleBefore}" → "${t.titleAfter}"`:t.changedFields?.length?`(${t.changedFields.join(", ")})`:t.skipCategory?`(${t.skipCategory})`:t.suggestions!==void 0?`${t.suggestions} suggestion(s), ${t.skipped??0} set aside`:t.error?String(t.error):""}function w(e){return e.entityType==="article"&&e.entityId&&e.event!=="article.deleted"?`/articles/${e.entityId}`:e.entityType==="suggestion"&&e.entityId&&e.event!=="suggestion.deleted"?`/reviews/${e.entityId}`:null}return(e,t)=>{const J=W,K=Y,Q=Z;return a(),o("div",null,[m(J,{title:"Activity",description:"Every Smart Match run and every action on the docs, in one trail."}),t[2]||(t[2]=r("h2",{class:"mt-8 text-sm font-semibold uppercase tracking-wide text-muted-foreground"},"AI runs",-1)),r("div",fe,[(a(!0),o(y,null,C(n(M)||[],s=>(a(),l(n(D),{key:s.id,class:"overflow-hidden py-0"},{default:p(()=>[m(n(N),{class:"p-0"},{default:p(()=>[r("button",{type:"button",class:"flex w-full items-center gap-3 px-4 py-3 text-left hover:bg-muted/40",onClick:d=>j(s.id)},[s.status==="running"?(a(),l(n(L),{key:0,class:"h-4 w-4 shrink-0 animate-spin text-[#607AE3]"})):s.status==="completed"?(a(),l(n(F),{key:1,class:"h-4 w-4 shrink-0 text-green-600"})):(a(),l(n(v),{key:2,class:"h-4 w-4 shrink-0 text-red-600"})),r("div",he,[r("p",ge,i(O(s)),1),r("p",xe,[h(i(s.createdByName||"Unknown")+" · "+i(B(s.startedAt))+" ",1),E(s)?(a(),o(y,{key:0},[h(" · "+i(E(s)),1)],64)):c("",!0)])]),r("div",ke,[(a(),o(y,null,C(G,d=>(a(),o(y,{key:d.key},[s.counts[d.key]?(a(),o("span",{key:0,class:A(["rounded-full px-2 py-0.5 text-[10px] font-medium",d.class])},i(s.counts[d.key])+" "+i(d.label)+i(s.counts[d.key]>1?"s":""),3)):c("",!0)],64))),64))]),m(n(se),{class:A(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",n(f)===s.id?"rotate-180":""])},null,8,["class"])],8,ye),n(f)===s.id?(a(),o("div",_e,[(a(),l(K,{key:s.id,"run-id":s.id},null,8,["run-id"]))])):c("",!0)]),_:2},1024)]),_:2},1024))),128)),(n(M)||[]).length===0?(a(),o("p",be," No Smart Match runs yet. Start one from Upload & Process. ")):c("",!0)]),t[3]||(t[3]=r("h2",{class:"mt-10 text-sm font-semibold uppercase tracking-wide text-muted-foreground"},"Doc actions",-1)),m(n(D),{class:"mt-3 py-0"},{default:p(()=>[m(n(N),{class:"p-0"},{default:p(()=>[r("ul",ve,[(a(!0),o(y,null,C(n(u),s=>(a(),o("li",{key:s.id,class:"flex items-start gap-3 px-4 py-2.5"},[(a(),l(me(b(s.event).icon),{class:A(["mt-0.5 h-4 w-4 shrink-0",b(s.event).class])},null,8,["class"])),r("div",Ce,[r("span",Ae,[s.actorType==="ai"?(a(),l(n(ae),{key:0,class:"h-3 w-3 text-[#607AE3]"})):s.actorType==="user"?(a(),l(n(ne),{key:1,class:"h-3 w-3 text-slate-400"})):c("",!0),h(" "+i(X(s)),1)]),r("span",$e,i(b(s.event).label),1),w(s)?(a(),l(Q,{key:0,to:w(s),class:"text-primary hover:underline"},{default:p(()=>
1[h(i(I(s)||"#"+s.entityId),1)]),_:2},1032,["to"])):(a(),o("span",Me,i(I(s)),1))]),r("span",Te,i(B(s.createdAt)),1)]))),128))]),n(u).length===0?(a(),o("p",Se," Nothing recorded yet. Actions on articles and suggestions will appear here from now on. ")):c("",!0),!n(T)&&n(u).length>0?(a(),o("div",Be,[m(n(ee),{variant:"outline",size:"sm",disabled:n(x),onClick:t[0]||(t[0]=s=>S())},{default:p(()=>[n(x)?(a(),l(n(L),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):c("",!0),t[1]||(t[1]=h(" Load more ",-1))]),_:1},8,["disabled"])])):c("",!0)]),_:1})]),_:1})])}}});export{ut 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.