dev-process-kit 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/dist/chunks/shared-B2K3LoOU.js +1016 -0
- package/dist/chunks/{shared-D6UXy-Qw.js → shared-BqW3KAJ4.js} +99 -46
- package/dist/chunks/{shared-DZlREPaN.js → shared-Byv6cc0r.js} +480 -238
- package/dist/chunks/{shared-D3EKtSkd.js → shared-CKG_SQh5.js} +1 -1
- package/dist/chunks/{shared-C4Y4jSXa.js → shared-CPAT0Cgk.js} +4 -2
- package/dist/chunks/shared-CwbzACTe.js +1874 -0
- package/dist/chunks/{shared-utv1engQ.js → shared-DBDgdVsd.js} +1 -1
- package/dist/chunks/shared-DMlMTd3c.js +1018 -0
- package/dist/chunks/shared-DaoPCw6-.js +556 -0
- package/dist/chunks/shared-DqB_TR20.js +1599 -0
- package/dist/chunks/shared-DsVxrO_3.js +609 -0
- package/dist/chunks/shared-iQIywbRc.js +676 -0
- package/dist/chunks/shared-xrCdgpNS.js +1 -0
- package/dist/components.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/event-storming.js +1 -1
- package/dist/templates/example-mapping.js +1 -1
- package/dist/templates/grill.js +1 -1
- package/dist/templates/plain.js +1 -1
- package/dist/templates/prototype.js +1 -1
- package/dist/templates/slides.js +1 -1
- package/dist/templates/task-board.js +1 -0
- package/dist/templates/usm.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/shared-BFAVBf4I.js +0 -1
- package/dist/chunks/shared-BXV4Dm_n.js +0 -522
- package/dist/chunks/shared-CQlssGTf.js +0 -692
- package/dist/chunks/shared-CcD4vDCE.js +0 -1461
- package/dist/chunks/shared-D2QreyJq.js +0 -926
- package/dist/chunks/shared-OdGbSUTa.js +0 -574
- package/dist/chunks/shared-TjJWiz7W.js +0 -546
|
@@ -0,0 +1,1599 @@
|
|
|
1
|
+
import{a9 as Ro,aa as b,ab as i,ac as f,ad as c,ae as $,au as h,al as X,af as J,ag as V,q as w,v as qo,as as Io,ap as Qo,ai as Uo,ak as B,P as Ho,f as Mo,_ as Ko,V as Fo,R as S,a1 as s,a2 as n,A as jo,a3 as y,aH as Z,aI as Yo,ax as P,K as Xo,aC as Jo,a0 as Vo,T as oo,m as Zo,aA as oe}from"./shared-CwbzACTe.js";const eo=["working","waiting","blocked","done"],D=["todo","doing","blocked","done"],ao=["agent","human"],E=["why","what","goals","nonGoals"],T=J(c(),V(1)),ee=b({id:h,name:T,kind:i($(ao),"agent")}),ae=b({id:h,title:T,status:i($(D),"todo"),assignee:i(h),note:i(c()),proposed:i(X(),!1),reason:i(c())}),te=b({id:h,label:i(c()),href:T,kind:i(c()),description:i(c())}),re=b({why:i(c()),what:i(c()),goals:i(f(c()),[]),nonGoals:i(f(c()),[])}),ne=b({id:h,from:i(h),at:i(c()),title:i(c()),body:i(c()),points:i(f(c()),[])}),de=b({id:h,ref:i(T),title:T,description:i(c()),blocking:i(X(),!1),assumption:i(c())}),to=b({title:i(c(),""),status:i($(eo)),updatedAt:i(c()),context:i(re,{}),members:i(f(ee),[]),todos:i(f(ae),[]),outputs:i(f(te),[]),log:i(f(ne),[]),questions:i(f(de),[])}),A=(e,o)=>{const a=new Set;for(const t of o){if(a.has(t))throw new Error(`duplicate ${e} id: ${t}`);a.add(t)}},u=e=>e===void 0||e.trim()===""?null:e,N=e=>e.filter(o=>o.trim()!==""),ro=e=>{const o=Ro(to,e);A("member",o.members.map(t=>t.id)),A("todo",o.todos.map(t=>t.id)),A("output",o.outputs.map(t=>t.id)),A("log",o.log.map(t=>t.id)),A("question",o.questions.map(t=>t.id));const a=new Set(o.members.map(t=>t.id));for(const t of o.todos)if(t.assignee!==void 0&&!a.has(t.assignee))throw new Error(`todo ${t.id} is assigned to ${t.assignee}, which is not in members`);for(const t of o.log){if(t.from!==void 0&&!a.has(t.from))throw new Error(`log entry ${t.id} is from ${t.from}, which is not in members`);if(u(t.title)===null&&u(t.body)===null)throw new Error(`log entry ${t.id} needs a title or a body`)}for(const t of o.questions)if(!t.blocking&&u(t.assumption)===null)throw new Error(`question ${t.id} does not block, so it needs the assumption the agent works on`);return{title:o.title,status:o.status??null,updatedAt:u(o.updatedAt),context:{why:u(o.context.why),what:u(o.context.what),goals:N(o.context.goals),nonGoals:N(o.context.nonGoals)},members:o.members,todos:o.todos.map(t=>({id:t.id,title:t.title,status:t.status,assignee:t.assignee??null,note:u(t.note),proposed:t.proposed,reason:u(t.reason),added:!1})),outputs:o.outputs.map(t=>({id:t.id,label:u(t.label),href:t.href,kind:u(t.kind),description:u(t.description)})),log:o.log.map(t=>({id:t.id,from:t.from??null,at:u(t.at),title:u(t.title),body:u(t.body),points:N(t.points)})),questions:o.questions.map((t,r)=>({id:t.id,ref:t.ref??`Q${r+1}`,title:t.title,description:u(t.description),blocking:t.blocking,assumption:u(t.assumption)})),answers:{},decisions:{}}},no=()=>({title:"",status:null,updatedAt:null,context:{why:null,what:null,goals:[],nonGoals:[]},members:[],todos:[],outputs:[],log:[],questions:[],answers:{},decisions:{}}),O=(e,o)=>o===null?void 0:e.members.find(a=>a.id===o),k=(e,o)=>e.todos.find(a=>a.id===o),so=(e,o)=>e.log.find(a=>a.id===o),io=e=>E.includes(e),W=(e,o)=>{const a=e.context[o];return typeof a=="string"||a!==null&&a.length>0},C=(e,o)=>e.questions.find(a=>a.id===o),lo=(e,o)=>{const a=e.answers[o.id];return a===void 0?!1:a.kind==="approve"||a.text.trim()!==""},R=(e,o)=>!o.proposed||e.decisions[o.id]==="accept",q=(e,o)=>R(e,o)&&O(e,o.assignee)?.kind==="human",po=(e,o,a)=>{const t={...e};return a===null?delete t[o]:t[o]=a,t},I=(e,o,a)=>({...e,answers:po(e.answers,o,a)}),se=(e,o,a)=>({...e,decisions:po(e.decisions,o,a)}),ie=(e,o,a)=>({...e,todos:e.todos.map(t=>t.id===o?a(t):t)}),m={ANSWER_QUESTION:w("ANSWER_QUESTION","question",Uo("kind",[b({kind:B("approve")}),b({kind:B("answer"),text:c()}),b({kind:B("clear")})])),DECIDE_PROPOSAL:w("DECIDE_PROPOSAL","todo",b({decision:$(["accept","decline","clear"])})),SET_TODO_STATUS:w("SET_TODO_STATUS","todo",b({status:$(D)})),ADD_TODO:w("ADD_TODO","page",b({id:h,title:J(c(),Qo(),V(1)),assignee:Io(h)}),{dedupeKey:qo}),DELETE_TODO:w("DELETE_TODO","todo",b({}))},co={type:"page",id:"task-board"},Q=(e,o)=>({type:"ANSWER_QUESTION",target:{type:"question",id:e},payload:o}),uo=(e,o)=>({type:"DECIDE_PROPOSAL",target:{type:"todo",id:e},payload:{decision:o}}),bo=(e,o)=>({type:"SET_TODO_STATUS",target:{type:"todo",id:e},payload:{status:o}}),go=(e,o,a)=>({type:"ADD_TODO",target:co,payload:{id:e,title:o,assignee:a}}),ho=e=>({type:"DELETE_TODO",target:{type:"todo",id:e},payload:{}}),ko=(e,o)=>{const a=Ho(m,o);if(a===null)return null;const t=a.target.id;switch(a.type){case"ANSWER_QUESTION":{const r=C(e,t);if(r===void 0)return null;const d=a.payload;return d.kind==="clear"?I(e,t,null):d.kind==="approve"?r.assumption===null?null:I(e,t,{kind:"approve"}):I(e,t,{kind:"answer",text:d.text})}case"DECIDE_PROPOSAL":{if(k(e,t)?.proposed!==!0)return null;const{decision:r}=a.payload;return se(e,t,r==="clear"?null:r)}case"SET_TODO_STATUS":{const r=k(e,t);if(r===void 0||!q(e,r))return null;const{status:d}=a.payload;return ie(e,t,l=>({...l,status:d}))}case"ADD_TODO":{const{payload:r}=a;return k(e,r.id)!==void 0||r.assignee!==null&&O(e,r.assignee)===void 0?null:{...e,todos:[...e.todos,{id:r.id,title:r.title,status:"todo",assignee:r.assignee,note:null,proposed:!1,reason:null,added:!0}]}}case"DELETE_TODO":return k(e,t)?.added!==!0?null:{...e,todos:e.todos.filter(r=>r.id!==t)};default:return Mo(a)}},U=Ko({en:{wholeBoard:"Whole board",statusWorking:"Working",statusWaiting:"Waiting on you",statusBlocked:"Blocked",statusDone:"Done",todoTodo:"To do",todoDoing:"In progress",todoBlocked:"Blocked",todoDone:"Done",kindAgent:"Agent",kindHuman:"Human",updatedAt:e=>`Updated ${e}`,context:"What this task is about",contextWhy:"Why",contextWhat:"What",contextGoals:"Goals",contextNonGoals:"Non-goals",noContext:"The agent has not written down why and what yet.",tabs:"Board sections",tabContext:"Context",tabLog:"Work log",tabQuestions:"Questions",openCount:e=>`${e} open`,noQuestions:"The agent has nothing to ask right now.",questions:"Questions from the agent",questionsProgress:(e,o)=>`${e} of ${o} replied`,blockingGroup:"Blocking \u2014 the agent waits for your decision",provisionalGroup:"Going ahead on an assumption \u2014 the agent adjusts if you answer otherwise",blockingTag:"Blocking",assumption:"Assumption",recommendation:"Agent recommends",approveAssumption:"OK, go with this",approveRecommendation:"OK, go with the recommendation",answerOther:"Answer differently",answerOf:e=>`Your answer to ${e}`,answerPlaceholder:"What you expect instead\u2026",blockingPlaceholder:"Your decision\u2026",approvedTag:"Approved",answeredTag:"Answered",todos:"Todo",progress:(e,o)=>`${e} of ${o} done`,noTodosYet:"No todos yet",assignee:"Assignee",unassigned:"Unassigned",memberOption:(e,o)=>`${e} (${o})`,statusOf:e=>`Status of \u201C${e}\u201D`,filterTodos:"Show todos",filterAll:"All",filterHuman:"People",doneGroup:e=>`Done (${e})`,noHumanTodos:"Nobody but the agent has a todo.",addedTag:"Added by you",changedTag:"Changed",removeAdded:"Remove this todo you added",noTodos:"There are no todos yet.",newTodo:"New todo",newTodoPlaceholder:"Add a todo for the agent\u2026",newTodoAssignee:"Assignee of the new todo",addTodo:"Add",proposedMark:"Proposed by the agent",reason:"Why",accept:"Accept",decline:"Decline",decisionOf:e=>`Decision on \u201C${e}\u201D`,acceptedTag:"Accepted",declinedTag:"Declined",undoDecision:"Undo",outputs:"Outputs",noOutputs:"Nothing has been produced yet.",copy:e=>`Copy ${e}`,copied:"Copied",log:"Conversation with the agent",logLede:"Newest first",noLog:"Nothing has been exchanged yet.",fromAgent:"Agent",latestTag:"Latest",commentOn:e=>`Comment on ${e}`,todoGroup:"Todo",logGroup:"Log",contextGroup:"Context",proposalGroup:"Proposal",questionGroup:"Question",approved:"Approve the assumption",answered:"Answer",answerCleared:"Clear the reply",accepted:"Accept the proposal",declined:"Decline the proposal",decisionCleared:"Clear the decision",statusChanged:"Change the status",todoAdded:"Add a todo",todoRemoved:"Remove the added todo",quoted:e=>`\u2192 \u201C${e}\u201D`,change:(e,o)=>`${e} \u2192 ${o}`},ja:{wholeBoard:"\u30DC\u30FC\u30C9\u5168\u4F53",statusWorking:"\u4F5C\u696D\u4E2D",statusWaiting:"\u3042\u306A\u305F\u306E\u8FD4\u7B54\u5F85\u3061",statusBlocked:"\u30D6\u30ED\u30C3\u30AF\u4E2D",statusDone:"\u5B8C\u4E86",todoTodo:"\u672A\u7740\u624B",todoDoing:"\u9032\u884C\u4E2D",todoBlocked:"\u30D6\u30ED\u30C3\u30AF",todoDone:"\u5B8C\u4E86",kindAgent:"Agent",kindHuman:"\u4EBA\u9593",updatedAt:e=>`\u66F4\u65B0 ${e}`,context:"\u3053\u306E\u30BF\u30B9\u30AF\u306E\u524D\u63D0",contextWhy:"Why \u2014 \u306A\u305C\u3084\u308B\u304B",contextWhat:"What \u2014 \u4F55\u3092\u3084\u308B\u304B",contextGoals:"\u30B4\u30FC\u30EB",contextNonGoals:"\u3084\u3089\u306A\u3044\u3053\u3068",noContext:"Agent \u306F\u307E\u3060 Why / What \u3092\u66F8\u3044\u3066\u3044\u307E\u305B\u3093\u3002",tabs:"\u30DC\u30FC\u30C9\u306E\u533A\u5206",tabContext:"Context",tabLog:"\u4F5C\u696D\u30ED\u30B0",tabQuestions:"\u8CEA\u554F",openCount:e=>`\u672A\u56DE\u7B54 ${e} \u4EF6`,noQuestions:"\u4ECA Agent \u304B\u3089\u805E\u304D\u305F\u3044\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",questions:"Agent \u304B\u3089\u306E\u8CEA\u554F",questionsProgress:(e,o)=>`\u8FD4\u7B54\u6E08\u307F ${e} / ${o}`,blockingGroup:"\u30D6\u30ED\u30C3\u30AB\u30FC \u2014 \u6C7A\u3081\u3066\u3082\u3089\u3046\u307E\u3067\u5148\u306B\u9032\u3081\u306A\u3044",provisionalGroup:"\u4EEE\u306E\u524D\u63D0\u3067\u9032\u884C\u4E2D \u2014 \u9055\u3048\u3070\u65B9\u91DD\u3092\u76F4\u3059",blockingTag:"\u30D6\u30ED\u30C3\u30AB\u30FC",assumption:"\u4EEE\u56DE\u7B54",recommendation:"Agent \u306E\u63A8\u5968",approveAssumption:"\u3053\u306E\u524D\u63D0\u3067 OK",approveRecommendation:"\u63A8\u5968\u3069\u304A\u308A\u3067 OK",answerOther:"\u5225\u306E\u56DE\u7B54\u3092\u3059\u308B",answerOf:e=>`${e} \u3078\u306E\u56DE\u7B54`,answerPlaceholder:"\u671F\u5F85\u3059\u308B\u56DE\u7B54\u3092\u5165\u529B\u2026",blockingPlaceholder:"\u3069\u3046\u3059\u308B\u304B\u3092\u5165\u529B\u2026",approvedTag:"\u627F\u8A8D\u6E08\u307F",answeredTag:"\u56DE\u7B54\u6E08\u307F",todos:"Todo",progress:(e,o)=>`${o} \u4EF6\u4E2D ${e} \u4EF6\u5B8C\u4E86`,noTodosYet:"Todo \u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",assignee:"\u62C5\u5F53",unassigned:"\u672A\u5272\u308A\u5F53\u3066",memberOption:(e,o)=>`${e}\uFF08${o}\uFF09`,statusOf:e=>`\u300C${e}\u300D\u306E\u72B6\u614B`,filterTodos:"\u8868\u793A\u3059\u308B Todo",filterAll:"\u3059\u3079\u3066",filterHuman:"\u4EBA\u9593\u306E\u62C5\u5F53",doneGroup:e=>`\u5B8C\u4E86 ${e} \u4EF6`,noHumanTodos:"\u4EBA\u9593\u304C\u62C5\u5F53\u3059\u308B Todo \u306F\u3042\u308A\u307E\u305B\u3093\u3002",addedTag:"\u3042\u306A\u305F\u304C\u8FFD\u52A0",changedTag:"\u5909\u66F4\u3042\u308A",removeAdded:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3059",noTodos:"Todo \u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",newTodo:"\u65B0\u3057\u3044 Todo",newTodoPlaceholder:"Agent \u306B\u983C\u3080 Todo \u3092\u8FFD\u52A0\u2026",newTodoAssignee:"\u65B0\u3057\u3044 Todo \u306E\u62C5\u5F53",addTodo:"\u8FFD\u52A0",proposedMark:"Agent \u304B\u3089\u306E\u63D0\u6848",reason:"\u306A\u305C",accept:"\u627F\u8A8D",decline:"\u898B\u9001\u308A",decisionOf:e=>`\u300C${e}\u300D\u306E\u5224\u65AD`,acceptedTag:"\u627F\u8A8D\u6E08\u307F",declinedTag:"\u898B\u9001\u308A",undoDecision:"\u53D6\u308A\u6D88\u3059",outputs:"\u6210\u679C\u7269",noOutputs:"\u307E\u3060\u6210\u679C\u7269\u306F\u3042\u308A\u307E\u305B\u3093\u3002",copy:e=>`${e} \u3092\u30B3\u30D4\u30FC`,copied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",log:"Agent \u3068\u306E\u3084\u308A\u3068\u308A",logLede:"\u65B0\u3057\u3044\u9806",noLog:"\u307E\u3060\u3084\u308A\u3068\u308A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",fromAgent:"Agent",latestTag:"\u6700\u65B0",commentOn:e=>`${e} \u306B\u30B3\u30E1\u30F3\u30C8`,todoGroup:"Todo",logGroup:"\u4F5C\u696D\u30ED\u30B0",contextGroup:"Context",proposalGroup:"\u63D0\u6848",questionGroup:"\u8CEA\u554F",approved:"\u524D\u63D0\u3092\u627F\u8A8D",answered:"\u56DE\u7B54",answerCleared:"\u8FD4\u7B54\u3092\u30AF\u30EA\u30A2",accepted:"\u63D0\u6848\u3092\u627F\u8A8D",declined:"\u63D0\u6848\u3092\u898B\u9001\u308A",decisionCleared:"\u63D0\u6848\u306E\u5224\u65AD\u3092\u30AF\u30EA\u30A2",statusChanged:"\u72B6\u614B\u3092\u5909\u66F4",todoAdded:"Todo \u3092\u8FFD\u52A0",todoRemoved:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3057",quoted:e=>`\u2192 \u300C${e}\u300D`,change:(e,o)=>`${e} \u2192 ${o}`}}),xo=(e,o)=>{switch(o){case"working":return e.statusWorking;case"waiting":return e.statusWaiting;case"blocked":return e.statusBlocked;case"done":return e.statusDone}},z=(e,o)=>{switch(o){case"todo":return e.todoTodo;case"doing":return e.todoDoing;case"blocked":return e.todoBlocked;case"done":return e.todoDone}},le=(e,o)=>o==="agent"?e.kindAgent:e.kindHuman,_=(e,o)=>{switch(o){case"why":return e.contextWhy;case"what":return e.contextWhat;case"goals":return e.contextGoals;case"nonGoals":return e.contextNonGoals}},fo=48,H=e=>{const o=e.title??e.body??e.id;return o.length<=fo?o:`${o.slice(0,fo-1)}\u2026`},pe=(e,o,a)=>a===null?e.unassigned:O(o,a)?.name??a,mo=e=>e.title===""?"Task Context Board":e.title,vo=(e,o,a)=>{switch(a.type){case"todo":{const t=k(o,a.id);return`${t?.proposed===!0?e.proposalGroup:e.todoGroup} \xB7 ${t?.title??a.id}`}case"log":{const t=so(o,a.id);return`${e.logGroup} \xB7 ${t===void 0?a.id:H(t)}`}case"context":return`${e.contextGroup} \xB7 ${io(a.id)?_(e,a.id):a.id}`;case"question":{const t=C(o,a.id);return t===void 0?a.id:`${t.ref} \xB7 ${t.title}`}case"page":return e.wholeBoard;default:return a.id}},ce=(e,o)=>{switch(o){case"accept":return{title:e.accepted,tone:"update"};case"decline":return{title:e.declined,tone:"update"};case"clear":return{title:e.decisionCleared,tone:"delete"}}},ue=(e,o,a)=>{switch(a.type){case"ANSWER_QUESTION":{const t=S(m.ANSWER_QUESTION,a);if(t.kind==="clear")return{title:e.answerCleared,tone:"delete"};if(t.kind==="approve"){const r=C(o,a.target.id)?.assumption??null;return{title:e.approved,tone:"update",...r===null?{}:{body:e.quoted(r)}}}return{title:e.answered,tone:"update",body:e.quoted(t.text.slice(0,120))}}case"DECIDE_PROPOSAL":return ce(e,S(m.DECIDE_PROPOSAL,a).decision);case"SET_TODO_STATUS":{const{status:t}=S(m.SET_TODO_STATUS,a),r=k(o,a.target.id)?.status,d=z(e,t);return{title:e.statusChanged,tone:"update",body:r===void 0?d:e.change(z(e,r),d)}}case"ADD_TODO":{const t=S(m.ADD_TODO,a);return{title:e.todoAdded,tone:"create",targetLabel:`${e.todoGroup} \xB7 ${t.title}`,...t.assignee===null?{}:{body:`${e.assignee}: ${pe(e,o,t.assignee)}`}}}case"DELETE_TODO":return{title:e.todoRemoved,tone:"delete"};default:return{title:a.type,tone:"meta"}}},$o=(e,o,a,t)=>{let r;try{r=ue(e,t??a,o)}catch{r={title:o.type,tone:"meta"}}return{title:r.title,targetLabel:r.targetLabel??vo(e,a,o.target),tone:r.tone,...r.body===void 0?{}:{summary:r.body}}},wo=e=>`${e.type} ${Fo(e.target)} ${JSON.stringify(e.payload)}`,yo=(e,o)=>[...o.questions.map(a=>({value:`question:${a.id}`,label:`${a.ref} \xB7 ${a.title}`,group:e.questionGroup})),...o.todos.map(a=>({value:`todo:${a.id}`,label:a.title,group:a.proposed?e.proposalGroup:e.todoGroup})),...o.log.map(a=>({value:`log:${a.id}`,label:H(a),group:e.logGroup})),...E.filter(a=>W(o,a)).map(a=>({value:`context:${a}`,label:_(e,a),group:e.contextGroup}))],To=(e,o)=>o,Ao=(e,o,a)=>({parts:E.filter(t=>W(o,t)).map(t=>{const r=o.context[t];return{id:t,title:_(e,t),text:typeof r=="string"?r:null,items:typeof r=="string"||r===null?[]:r,comments:a(`context:${t}`)}})}),be=(e,o,a)=>{const t=e.answers[o.id];return{id:o.id,ref:o.ref,title:o.title,description:o.description,blocking:o.blocking,assumption:o.assumption,reply:t?.kind??"none",resolved:lo(e,o),draft:t?.kind==="answer"?t.text:"",comments:a(`question:${o.id}`)}},Oo=(e,o)=>{const a=e.questions.map(r=>be(e,r,o)),t=a.filter(r=>r.resolved).length;return{blocking:a.filter(r=>r.blocking),provisional:a.filter(r=>!r.blocking),resolved:t,total:a.length,open:a.length-t,blockingOpen:a.filter(r=>r.blocking&&!r.resolved).length}},ge=(e,o,a,t,r)=>{const d=k(a,t.id),l=O(o,t.assignee);return{id:t.id,title:t.title,note:t.note,reason:t.reason,status:t.status,statusLabel:z(e,t.status),assignee:t.assignee,assigneeName:l?.name??null,assigneeKind:l?.kind??null,editable:q(o,t),proposal:t.proposed?o.decisions[t.id]??"pending":null,added:t.added,changed:d!==void 0&&d.status!==t.status,comments:r(`todo:${t.id}`)}},So=(e,o,a,t,r="all")=>{const d=o.todos.filter(p=>R(o,p)),l=d.filter(p=>p.status==="done").length,g=o.members.some(p=>p.kind==="human"),x=g?r:"all",F=p=>p.assigneeKind==="human",L=o.todos.map(p=>ge(e,o,a,p,t)),j=x==="human"?L.filter(F):L,Y=p=>p.status==="done"&&k(a,p.id)?.status==="done";return{todos:j.filter(p=>!Y(p)),done:j.filter(Y),filter:x,canFilter:g,humanCount:L.filter(F).length,progress:{done:l,total:d.length,label:d.length===0?e.noTodosYet:e.progress(l,d.length)},statuses:D.map(p=>({value:p,label:z(e,p)})),members:o.members.map(p=>({id:p.id,label:e.memberOption(p.name,le(e,p.kind))}))}},Do=e=>{if(!/^[a-z][a-z\d+.-]*:\/\//i.test(e))return{kind:"path"};try{return{kind:"url",host:new URL(e).host}}catch{return{kind:"path"}}},Eo=e=>e.outputs.map(o=>({id:o.id,title:o.label??o.href,labelled:o.label!==null,href:o.href,kind:o.kind,description:o.description,place:Do(o.href)})),Co=(e,o,a)=>({entries:o.log.map((t,r)=>{const d=O(o,t.from);return{id:t.id,author:d===void 0?null:{name:d.name,kind:d.kind},at:t.at,title:t.title,body:t.body,points:t.points,label:H(t),latest:r===o.log.length-1,comments:a(`log:${t.id}`)}}).reverse(),status:o.status===null&&o.updatedAt===null?null:{status:o.status,label:o.status===null?null:xo(e,o.status),updatedAt:o.updatedAt}}),zo=(e,o)=>{switch(o.type){case"todo":return k(e,o.id)!==void 0;case"log":return so(e,o.id)!==void 0;case"context":return io(o.id)&&W(e,o.id);case"question":return C(e,o.id)!==void 0;case"page":return!0;default:return!1}},_o=e=>{const o=U(e);return{name:"task-board",label:"Task Context Board",parseBase:ro,emptyBase:no,actions:m,apply:ko,hasTarget:zo,describe:(a,t,r)=>$o(o,a,t,r),serialize:wo,resolveNavigation:To,commentTargets:a=>yo(o,a),title:mo}},G=(e,o,a,t)=>n`
|
|
2
|
+
<button
|
|
3
|
+
class="dpk-icon-btn board-comment"
|
|
4
|
+
type="button"
|
|
5
|
+
data-comment=${e}
|
|
6
|
+
aria-label=${o}
|
|
7
|
+
title=${o}
|
|
8
|
+
@click=${()=>t.comment(e)}
|
|
9
|
+
>
|
|
10
|
+
${jo()} ${a>0?n`<span class="dpk-icon-badge">${a}</span>`:s}
|
|
11
|
+
</button>
|
|
12
|
+
`,M=(e,o,a,t=null)=>n`
|
|
13
|
+
<header class="board-section-head">
|
|
14
|
+
<h2 id=${e}>${o}</h2>
|
|
15
|
+
${a===null?s:n`<span class="board-section-meta">${a}</span>`}
|
|
16
|
+
</header>
|
|
17
|
+
${t===null?s:n`<p class="board-lede">${t}</p>`}
|
|
18
|
+
`,he=(e,o,a,t)=>n`
|
|
19
|
+
<section class="board-context" aria-label=${e.context}>
|
|
20
|
+
${o.parts.length===0&&!a?n`<p class="board-empty">${e.noContext}</p>`:s}
|
|
21
|
+
${o.parts.length===0?s:n`<div class="board-context-parts">
|
|
22
|
+
${y(o.parts,r=>r.id,r=>ke(e,r,t))}
|
|
23
|
+
</div>`}
|
|
24
|
+
<div class="board-figures"><slot name="main"></slot></div>
|
|
25
|
+
</section>
|
|
26
|
+
`,ke=(e,o,a)=>n`
|
|
27
|
+
<article class="board-context-part" data-context=${o.id} aria-labelledby=${`board-context-${o.id}`}>
|
|
28
|
+
<header class="board-context-head">
|
|
29
|
+
<h3 class="board-context-title" id=${`board-context-${o.id}`}>${o.title}</h3>
|
|
30
|
+
${G(`context:${o.id}`,e.commentOn(o.title),o.comments,a)}
|
|
31
|
+
</header>
|
|
32
|
+
${o.text===null?s:n`<p class="board-context-text">${o.text}</p>`}
|
|
33
|
+
${o.items.length===0?s:n`<ul class="board-context-items">
|
|
34
|
+
${o.items.map(t=>n`<li>${t}</li>`)}
|
|
35
|
+
</ul>`}
|
|
36
|
+
</article>
|
|
37
|
+
`,xe=(e,o,a)=>o.total===0?s:n`
|
|
38
|
+
<section class="board-section" data-section="questions" aria-labelledby="board-questions">
|
|
39
|
+
${M("board-questions",e.questions,e.questionsProgress(o.resolved,o.total))}
|
|
40
|
+
${Go(e,"blocking",e.blockingGroup,o.blocking,a)}
|
|
41
|
+
${Go(e,"provisional",e.provisionalGroup,o.provisional,a)}
|
|
42
|
+
</section>
|
|
43
|
+
`,Go=(e,o,a,t,r)=>t.length===0?s:n`<div class="board-group" data-group=${o}>
|
|
44
|
+
<h3 class="board-group-title">${a}</h3>
|
|
45
|
+
<ol class="board-questions">
|
|
46
|
+
${y(t,d=>d.id,d=>fe(e,d,r))}
|
|
47
|
+
</ol>
|
|
48
|
+
</div>`,fe=(e,o,a)=>{const t=o.assumption!==null;return n`
|
|
49
|
+
<li
|
|
50
|
+
class="board-card board-question"
|
|
51
|
+
data-question=${o.id}
|
|
52
|
+
data-blocking=${String(o.blocking)}
|
|
53
|
+
data-reply=${o.reply}
|
|
54
|
+
data-resolved=${String(o.resolved)}
|
|
55
|
+
>
|
|
56
|
+
<div class="board-card-head">
|
|
57
|
+
<span class="board-ref">${o.ref}</span>
|
|
58
|
+
<h4 class="board-card-title">${o.title}</h4>
|
|
59
|
+
${o.resolved?n`<span class="board-tag" data-tone="done">
|
|
60
|
+
${o.reply==="approve"?e.approvedTag:e.answeredTag}
|
|
61
|
+
</span>`:s}
|
|
62
|
+
${G(`question:${o.id}`,e.commentOn(o.ref),o.comments,a)}
|
|
63
|
+
</div>
|
|
64
|
+
${o.description===null?s:n`<p class="board-card-text">${o.description}</p>`}
|
|
65
|
+
${t?me(e,o,a):s}
|
|
66
|
+
<textarea
|
|
67
|
+
class="dpk-textarea board-answer"
|
|
68
|
+
data-answer-text=${o.id}
|
|
69
|
+
rows="2"
|
|
70
|
+
aria-label=${e.answerOf(o.ref)}
|
|
71
|
+
placeholder=${t?e.answerPlaceholder:e.blockingPlaceholder}
|
|
72
|
+
.value=${o.draft}
|
|
73
|
+
?hidden=${t&&o.reply!=="answer"}
|
|
74
|
+
@input=${r=>{const d=r.currentTarget;d instanceof HTMLTextAreaElement&&a.answer(o.id,!t&&d.value===""?{kind:"clear"}:{kind:"answer",text:d.value})}}
|
|
75
|
+
></textarea>
|
|
76
|
+
</li>
|
|
77
|
+
`},me=(e,o,a)=>n`
|
|
78
|
+
<div class="board-assumption">
|
|
79
|
+
<span class="board-assumption-label">${o.blocking?e.recommendation:e.assumption}</span>
|
|
80
|
+
<p class="board-assumption-text">${o.assumption}</p>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="board-reply" role="group" aria-label=${e.answerOf(o.ref)}>
|
|
83
|
+
<button
|
|
84
|
+
type="button"
|
|
85
|
+
class="dpk-btn board-approve"
|
|
86
|
+
aria-pressed=${o.reply==="approve"?"true":"false"}
|
|
87
|
+
@click=${()=>a.answer(o.id,o.reply==="approve"?{kind:"clear"}:{kind:"approve"})}
|
|
88
|
+
>
|
|
89
|
+
${Z()} ${o.blocking?e.approveRecommendation:e.approveAssumption}
|
|
90
|
+
</button>
|
|
91
|
+
<button
|
|
92
|
+
type="button"
|
|
93
|
+
class="dpk-btn dpk-btn--ghost board-other"
|
|
94
|
+
aria-pressed=${o.reply==="answer"?"true":"false"}
|
|
95
|
+
@click=${()=>o.reply==="answer"?a.answer(o.id,{kind:"clear"}):a.answerOther(o.id)}
|
|
96
|
+
>
|
|
97
|
+
${e.answerOther}
|
|
98
|
+
</button>
|
|
99
|
+
</div>
|
|
100
|
+
`,ve=(e,o,a,t)=>n`
|
|
101
|
+
<section class="board-section board-rail-section" data-section="outputs" aria-labelledby="board-outputs">
|
|
102
|
+
${M("board-outputs",e.outputs,o.length===0?null:String(o.length))}
|
|
103
|
+
${o.length===0?n`<p class="board-empty">${e.noOutputs}</p>`:n`<ul class="board-outputs">
|
|
104
|
+
${y(o,r=>r.id,r=>$e(e,r,a===r.id,t))}
|
|
105
|
+
</ul>`}
|
|
106
|
+
</section>
|
|
107
|
+
`,$e=(e,o,a,t)=>{const r=o.place,d=a?e.copied:e.copy(o.href);return n`
|
|
108
|
+
<li class="board-output" data-output=${o.id} data-place=${r.kind}>
|
|
109
|
+
<div class="board-output-body">
|
|
110
|
+
<div class="board-output-head">
|
|
111
|
+
${o.kind===null?s:n`<span class="board-kind">${o.kind}</span>`}
|
|
112
|
+
${r.kind==="url"?n`<a class="board-output-link" href=${o.href} target="_blank" rel="noopener noreferrer"
|
|
113
|
+
>${o.title}</a
|
|
114
|
+
>`:o.labelled?n`<span class="board-output-label">${o.title}</span>`:n`<code class="board-output-path">${o.href}</code>`}
|
|
115
|
+
</div>
|
|
116
|
+
${r.kind==="url"?n`<span class="board-output-sub">${r.host}</span>`:o.labelled?n`<code class="board-output-path board-output-sub">${o.href}</code>`:s}
|
|
117
|
+
${o.description===null?s:n`<p class="board-output-text">${o.description}</p>`}
|
|
118
|
+
</div>
|
|
119
|
+
<button
|
|
120
|
+
class="dpk-icon-btn board-copy"
|
|
121
|
+
type="button"
|
|
122
|
+
data-copied=${String(a)}
|
|
123
|
+
aria-label=${d}
|
|
124
|
+
title=${d}
|
|
125
|
+
@click=${()=>t.copy(o.id,o.href)}
|
|
126
|
+
>
|
|
127
|
+
${a?Z():Yo()}
|
|
128
|
+
</button>
|
|
129
|
+
</li>
|
|
130
|
+
`},Lo=(e,o)=>n`
|
|
131
|
+
<div class="board-log-now">
|
|
132
|
+
${o.status===null?s:n`<span class="board-status" data-status=${o.status}>
|
|
133
|
+
<span class="board-status-dot" aria-hidden="true"></span>${o.label}
|
|
134
|
+
</span>`}
|
|
135
|
+
${o.updatedAt===null?s:n`<span class="board-updated">${e.updatedAt(o.updatedAt)}</span>`}
|
|
136
|
+
</div>
|
|
137
|
+
`,we=(e,o,a)=>n`
|
|
138
|
+
<section class="board-section" data-section="log" aria-labelledby="board-log">
|
|
139
|
+
${M("board-log",e.log,o.entries.length===0?null:e.logLede)}
|
|
140
|
+
${o.entries.length===0?n`${o.status===null?s:Lo(e,o.status)}
|
|
141
|
+
<p class="board-empty">${e.noLog}</p>`:n`<ol class="board-log">
|
|
142
|
+
${y(o.entries,t=>t.id,t=>ye(e,t,t.latest?o.status:null,a))}
|
|
143
|
+
</ol>`}
|
|
144
|
+
</section>
|
|
145
|
+
`,ye=(e,o,a,t)=>{const r=o.author?.name??e.fromAgent;return n`
|
|
146
|
+
<li
|
|
147
|
+
class="board-log-entry"
|
|
148
|
+
data-log=${o.id}
|
|
149
|
+
data-from=${o.author?.kind??"agent"}
|
|
150
|
+
data-latest=${String(o.latest)}
|
|
151
|
+
>
|
|
152
|
+
<span class="board-log-avatar" aria-hidden="true">${r.slice(0,1)}</span>
|
|
153
|
+
<div class="board-log-body">
|
|
154
|
+
${a===null?s:Lo(e,a)}
|
|
155
|
+
<div class="board-log-head">
|
|
156
|
+
<span class="board-log-author">${r}</span>
|
|
157
|
+
${o.at===null?s:n`<time class="board-log-at">${o.at}</time>`}
|
|
158
|
+
${o.latest?n`<span class="board-log-latest">${e.latestTag}</span>`:s}
|
|
159
|
+
${G(`log:${o.id}`,e.commentOn(o.label),o.comments,t)}
|
|
160
|
+
</div>
|
|
161
|
+
${o.title===null?s:n`<h3 class="board-log-title">${o.title}</h3>`}
|
|
162
|
+
${o.body===null?s:n`<p class="board-log-text">${o.body}</p>`}
|
|
163
|
+
${o.points.length===0?s:n`<ul class="board-log-points">
|
|
164
|
+
${o.points.map(d=>n`<li>${d}</li>`)}
|
|
165
|
+
</ul>`}
|
|
166
|
+
</div>
|
|
167
|
+
</li>
|
|
168
|
+
`},v=["context","log","questions"],Te=(e,o)=>{const a=v.indexOf(e),t=v.length-1;switch(o){case"ArrowRight":return v[a===t?0:a+1]??null;case"ArrowLeft":return v[a===0?t:a-1]??null;case"Home":return v[0];case"End":return v[t]??null;default:return null}},Ae=(e,o)=>{switch(o){case"context":return e.tabContext;case"log":return e.tabLog;case"questions":return e.tabQuestions}},Oe=(e,o)=>{switch(e){case"context":return null;case"log":return o.log;case"questions":return o.questions}},Se=(e,o,a,t,r)=>n`
|
|
169
|
+
<div class="board-tabs" role="tablist" aria-label=${e.tabs}>
|
|
170
|
+
${v.map(d=>{const l=Oe(d,a);return n`<button
|
|
171
|
+
type="button"
|
|
172
|
+
role="tab"
|
|
173
|
+
id=${`board-tab-${d}`}
|
|
174
|
+
data-tab=${d}
|
|
175
|
+
data-alert=${d==="questions"?String(a.alert):s}
|
|
176
|
+
aria-controls=${`board-panel-${d}`}
|
|
177
|
+
aria-selected=${String(o===d)}
|
|
178
|
+
tabindex=${o===d?0:-1}
|
|
179
|
+
title=${d==="questions"&&a.questions>0?e.openCount(a.questions):s}
|
|
180
|
+
@click=${()=>t(d)}
|
|
181
|
+
@keydown=${r}
|
|
182
|
+
>
|
|
183
|
+
${Ae(e,d)}${l===null||l===0?s:n`<span class="board-tab-count">${l}</span>`}
|
|
184
|
+
</button>`})}
|
|
185
|
+
</div>
|
|
186
|
+
`,K=(e,o,a)=>n`
|
|
187
|
+
<div
|
|
188
|
+
class="board-panel"
|
|
189
|
+
id=${`board-panel-${e}`}
|
|
190
|
+
role="tabpanel"
|
|
191
|
+
aria-labelledby=${`board-tab-${e}`}
|
|
192
|
+
?hidden=${o!==e}
|
|
193
|
+
>
|
|
194
|
+
${a}
|
|
195
|
+
</div>
|
|
196
|
+
`,Bo="",De=(e,o)=>o.statuses.some(a=>a.value===e),Ee=(e,o,a)=>n`
|
|
197
|
+
<section class="board-section board-rail-section" data-section="todos" aria-labelledby="board-todos">
|
|
198
|
+
<header class="board-section-head">
|
|
199
|
+
<h2 id="board-todos">${e.todos}</h2>
|
|
200
|
+
<span class="board-section-meta">${o.progress.label}</span>
|
|
201
|
+
</header>
|
|
202
|
+
${o.progress.total===0?s:n`<div
|
|
203
|
+
class="board-progress"
|
|
204
|
+
role="progressbar"
|
|
205
|
+
aria-label=${o.progress.label}
|
|
206
|
+
aria-valuemin="0"
|
|
207
|
+
aria-valuemax=${o.progress.total}
|
|
208
|
+
aria-valuenow=${o.progress.done}
|
|
209
|
+
>
|
|
210
|
+
<span class="board-progress-fill" style=${`width: ${o.progress.done/o.progress.total*100}%`}></span>
|
|
211
|
+
</div>`}
|
|
212
|
+
${o.canFilter?Ce(e,o,a):s}
|
|
213
|
+
${o.todos.length===0&&o.done.length===0?n`<p class="board-empty">${o.filter==="human"?e.noHumanTodos:e.noTodos}</p>`:s}
|
|
214
|
+
${o.done.length===0?s:n`<details class="board-done">
|
|
215
|
+
<summary class="board-done-summary">
|
|
216
|
+
<span class="board-done-chevron" aria-hidden="true"></span>${e.doneGroup(o.done.length)}
|
|
217
|
+
</summary>
|
|
218
|
+
${Po(e,o,o.done,a)}
|
|
219
|
+
</details>`}
|
|
220
|
+
${o.todos.length===0?s:Po(e,o,o.todos,a)} ${Pe(e,o,a)}
|
|
221
|
+
</section>
|
|
222
|
+
`,Po=(e,o,a,t)=>n`
|
|
223
|
+
<ul class="board-todos">
|
|
224
|
+
${y(a,r=>r.id,r=>Ge(e,o,r,t))}
|
|
225
|
+
</ul>
|
|
226
|
+
`,Ce=(e,o,a)=>{const t=(r,d,l)=>n`
|
|
227
|
+
<button
|
|
228
|
+
type="button"
|
|
229
|
+
class="board-filter-option"
|
|
230
|
+
data-filter=${r}
|
|
231
|
+
aria-pressed=${o.filter===r?"true":"false"}
|
|
232
|
+
@click=${()=>a.filterTodos(r)}
|
|
233
|
+
>
|
|
234
|
+
${d}${l===null?s:n`<span class="board-filter-count">${l}</span>`}
|
|
235
|
+
</button>
|
|
236
|
+
`;return n`<div class="board-filter" role="group" aria-label=${e.filterTodos}>
|
|
237
|
+
${t("all",e.filterAll,null)} ${t("human",e.filterHuman,o.humanCount)}
|
|
238
|
+
</div>`},ze=(e,o)=>o.proposal==="pending"||o.proposal==="decline"?n`<span
|
|
239
|
+
class="board-todo-mark board-todo-mark--proposal"
|
|
240
|
+
role="img"
|
|
241
|
+
aria-label=${e.proposedMark}
|
|
242
|
+
title=${e.proposedMark}
|
|
243
|
+
>?</span
|
|
244
|
+
>`:n`<span class="board-todo-mark" data-status=${o.status} aria-hidden="true"></span>`,_e=(e,o)=>n`
|
|
245
|
+
${o.proposal==="accept"?n`<span class="board-tag" data-tone="done">${e.acceptedTag}</span>`:s}
|
|
246
|
+
${o.proposal==="decline"?n`<span class="board-tag" data-tone="muted">${e.declinedTag}</span>`:s}
|
|
247
|
+
${o.added?n`<span class="board-tag" data-tone="new">${e.addedTag}</span>`:s}
|
|
248
|
+
${o.changed?n`<span class="board-tag" data-tone="changed">${e.changedTag}</span>`:s}
|
|
249
|
+
`,Ge=(e,o,a,t)=>n`
|
|
250
|
+
<li
|
|
251
|
+
class="board-todo"
|
|
252
|
+
data-todo=${a.id}
|
|
253
|
+
data-status=${a.status}
|
|
254
|
+
data-proposal=${a.proposal??"none"}
|
|
255
|
+
data-added=${String(a.added)}
|
|
256
|
+
data-changed=${String(a.changed)}
|
|
257
|
+
>
|
|
258
|
+
${ze(e,a)}
|
|
259
|
+
<div class="board-todo-body">
|
|
260
|
+
<div class="board-todo-title"><span class="board-todo-text">${a.title}</span>${_e(e,a)}</div>
|
|
261
|
+
${a.note===null?s:n`<p class="board-todo-note">${a.note}</p>`}
|
|
262
|
+
${a.reason===null||a.proposal==="accept"?s:n`<p class="board-reason"><span class="board-reason-label">${e.reason}</span>${a.reason}</p>`}
|
|
263
|
+
<div class="board-todo-controls">
|
|
264
|
+
${a.proposal==="pending"?Le(e,a,t):a.proposal==="decline"?s:Be(e,o,a,t)}
|
|
265
|
+
${a.assigneeName===null?s:n`<span class="board-assignee" data-kind=${a.assigneeKind??"agent"} title=${e.assignee}
|
|
266
|
+
>${a.assigneeName}</span
|
|
267
|
+
>`}
|
|
268
|
+
${a.proposal==="accept"||a.proposal==="decline"?n`<button
|
|
269
|
+
type="button"
|
|
270
|
+
class="dpk-btn dpk-btn--ghost board-undo"
|
|
271
|
+
@click=${()=>t.decide(a.id,"clear")}
|
|
272
|
+
>
|
|
273
|
+
${e.undoDecision}
|
|
274
|
+
</button>`:s}
|
|
275
|
+
${G(`todo:${a.id}`,e.commentOn(a.title),a.comments,t)}
|
|
276
|
+
${a.added?n`<button
|
|
277
|
+
class="dpk-icon-btn board-todo-remove"
|
|
278
|
+
type="button"
|
|
279
|
+
aria-label=${e.removeAdded}
|
|
280
|
+
title=${e.removeAdded}
|
|
281
|
+
@click=${()=>t.deleteTodo(a.id)}
|
|
282
|
+
>
|
|
283
|
+
${Xo()}
|
|
284
|
+
</button>`:s}
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
</li>
|
|
288
|
+
`,Le=(e,o,a)=>n`
|
|
289
|
+
<div class="board-decision" role="group" aria-label=${e.decisionOf(o.title)}>
|
|
290
|
+
<button
|
|
291
|
+
type="button"
|
|
292
|
+
class="dpk-btn board-decide"
|
|
293
|
+
data-decision="accept"
|
|
294
|
+
@click=${()=>a.decide(o.id,"accept")}
|
|
295
|
+
>
|
|
296
|
+
${e.accept}
|
|
297
|
+
</button>
|
|
298
|
+
<button
|
|
299
|
+
type="button"
|
|
300
|
+
class="dpk-btn dpk-btn--ghost board-decide"
|
|
301
|
+
data-decision="decline"
|
|
302
|
+
@click=${()=>a.decide(o.id,"decline")}
|
|
303
|
+
>
|
|
304
|
+
${e.decline}
|
|
305
|
+
</button>
|
|
306
|
+
</div>
|
|
307
|
+
`,Be=(e,o,a,t)=>a.editable?n`<select
|
|
308
|
+
class="dpk-select board-todo-status"
|
|
309
|
+
data-status=${a.status}
|
|
310
|
+
aria-label=${e.statusOf(a.title)}
|
|
311
|
+
@change=${Jo(r=>{De(r,o)&&r!==a.status&&t.setStatus(a.id,r)})}
|
|
312
|
+
>
|
|
313
|
+
${o.statuses.map(r=>n`<option value=${r.value} ?selected=${r.value===a.status}>${r.label}</option>`)}
|
|
314
|
+
</select>`:n`<span class="board-todo-state" data-status=${a.status}>${a.statusLabel}</span>`,Pe=(e,o,a)=>n`
|
|
315
|
+
<form
|
|
316
|
+
class="board-add-todo"
|
|
317
|
+
@submit=${t=>{t.preventDefault();const r=P(t.currentTarget,HTMLFormElement);if(r===null)return;const d=P(r.elements.namedItem("title"),HTMLInputElement),l=P(r.elements.namedItem("assignee"),HTMLSelectElement),g=d?.value.trim()??"";d===null||g===""||(a.addTodo(g,l===null||l.value===Bo?null:l.value),d.value="")}}
|
|
318
|
+
>
|
|
319
|
+
<input
|
|
320
|
+
class="dpk-input board-add-title"
|
|
321
|
+
name="title"
|
|
322
|
+
type="text"
|
|
323
|
+
autocomplete="off"
|
|
324
|
+
aria-label=${e.newTodo}
|
|
325
|
+
placeholder=${e.newTodoPlaceholder}
|
|
326
|
+
/>
|
|
327
|
+
<div class="board-add-row">
|
|
328
|
+
${o.members.length===0?s:n`<select class="dpk-select board-add-assignee" name="assignee" aria-label=${e.newTodoAssignee}>
|
|
329
|
+
<option value=${Bo}>${e.unassigned}</option>
|
|
330
|
+
${o.members.map(t=>n`<option value=${t.id}>${t.label}</option>`)}
|
|
331
|
+
</select>`}
|
|
332
|
+
<button class="dpk-btn board-add-submit" type="submit">${e.addTodo}</button>
|
|
333
|
+
</div>
|
|
334
|
+
</form>
|
|
335
|
+
`,Ne=Vo`
|
|
336
|
+
.dpk-main {
|
|
337
|
+
order: 1;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.dpk-sidebar {
|
|
341
|
+
order: 2;
|
|
342
|
+
width: 360px;
|
|
343
|
+
padding: 10px 14px 20px;
|
|
344
|
+
border-right: 0;
|
|
345
|
+
border-left: 1px solid var(--dpk-rule);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.board-rail {
|
|
349
|
+
display: grid;
|
|
350
|
+
gap: 14px;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* The review opens where it always does, on the right, but over the rail:
|
|
354
|
+
a third column would squeeze the board, and the shell's order would put
|
|
355
|
+
it on the left of the main area. */
|
|
356
|
+
.dpk-body {
|
|
357
|
+
position: relative;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.dpk-notes {
|
|
361
|
+
position: absolute;
|
|
362
|
+
top: 0;
|
|
363
|
+
right: 0;
|
|
364
|
+
bottom: 0;
|
|
365
|
+
z-index: 30;
|
|
366
|
+
width: 360px;
|
|
367
|
+
max-width: 100%;
|
|
368
|
+
box-shadow: var(--dpk-shadow-lg);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.board {
|
|
372
|
+
display: grid;
|
|
373
|
+
gap: 18px;
|
|
374
|
+
max-width: 880px;
|
|
375
|
+
width: 100%;
|
|
376
|
+
margin: 0 auto;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@media (max-width: 760px) {
|
|
380
|
+
/* Without a zero minimum, a truncated output row's full text width would
|
|
381
|
+
widen the whole shell past the screen. */
|
|
382
|
+
.dpk-body {
|
|
383
|
+
flex-direction: column;
|
|
384
|
+
min-width: 0;
|
|
385
|
+
overflow: auto;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.dpk-main,
|
|
389
|
+
.dpk-sidebar {
|
|
390
|
+
flex: 0 0 auto;
|
|
391
|
+
overflow: visible;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.dpk-sidebar {
|
|
395
|
+
width: auto;
|
|
396
|
+
border-left: 0;
|
|
397
|
+
border-top: 1px solid var(--dpk-rule);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* The body scrolls here, so an absolute panel would scroll away with it:
|
|
401
|
+
the review takes the screen instead, below the floating button. */
|
|
402
|
+
.dpk-notes {
|
|
403
|
+
position: fixed;
|
|
404
|
+
inset: 0;
|
|
405
|
+
z-index: 50;
|
|
406
|
+
width: auto;
|
|
407
|
+
padding-top: 60px;
|
|
408
|
+
border-left: 0;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
[data-status='working'],
|
|
413
|
+
[data-status='doing'] {
|
|
414
|
+
--board-tone: var(--dpk-blue);
|
|
415
|
+
--board-tone-soft: var(--dpk-blue-soft);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
[data-status='waiting'] {
|
|
419
|
+
--board-tone: var(--dpk-amber);
|
|
420
|
+
--board-tone-soft: var(--dpk-amber-soft);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
[data-status='blocked'] {
|
|
424
|
+
--board-tone: var(--dpk-danger);
|
|
425
|
+
--board-tone-soft: var(--dpk-danger-soft);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
[data-status='done'] {
|
|
429
|
+
--board-tone: var(--dpk-green);
|
|
430
|
+
--board-tone-soft: var(--dpk-green-soft);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
[data-status='todo'] {
|
|
434
|
+
--board-tone: var(--dpk-rule-strong);
|
|
435
|
+
--board-tone-soft: var(--dpk-paper-sunken);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/* ------------------------------------------------------------- status */
|
|
439
|
+
|
|
440
|
+
.board-status {
|
|
441
|
+
display: inline-flex;
|
|
442
|
+
align-items: center;
|
|
443
|
+
gap: 7px;
|
|
444
|
+
padding: 4px 11px 4px 9px;
|
|
445
|
+
border-radius: 999px;
|
|
446
|
+
background: var(--board-tone-soft);
|
|
447
|
+
color: color-mix(in srgb, var(--board-tone) 80%, var(--dpk-ink));
|
|
448
|
+
font-size: 12.5px;
|
|
449
|
+
font-weight: 650;
|
|
450
|
+
white-space: nowrap;
|
|
451
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--board-tone) 28%, transparent);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* On a phone the header has no room; the Context tab says the same. */
|
|
455
|
+
@media (max-width: 720px) {
|
|
456
|
+
.board-status--header {
|
|
457
|
+
display: none;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.board-status-dot {
|
|
462
|
+
width: 8px;
|
|
463
|
+
height: 8px;
|
|
464
|
+
border-radius: 50%;
|
|
465
|
+
background: var(--board-tone);
|
|
466
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--board-tone) 22%, transparent);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.board-status[data-status='working'] .board-status-dot {
|
|
470
|
+
animation: board-pulse 1.8s var(--dpk-ease) infinite;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
@keyframes board-pulse {
|
|
474
|
+
50% {
|
|
475
|
+
box-shadow: 0 0 0 6px color-mix(in srgb, var(--board-tone) 0%, transparent);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* --------------------------------------------------------------- tabs */
|
|
480
|
+
|
|
481
|
+
/* Stays at the top of the main area while a long log or question list scrolls. */
|
|
482
|
+
.board-tabs {
|
|
483
|
+
position: sticky;
|
|
484
|
+
top: 0;
|
|
485
|
+
z-index: 2;
|
|
486
|
+
display: flex;
|
|
487
|
+
gap: 3px;
|
|
488
|
+
padding: 3px;
|
|
489
|
+
border: 1px solid var(--dpk-rule);
|
|
490
|
+
border-radius: var(--dpk-radius);
|
|
491
|
+
background: var(--dpk-paper-sunken);
|
|
492
|
+
box-shadow:
|
|
493
|
+
inset 0 1px 2px var(--dpk-shade-1),
|
|
494
|
+
0 6px 14px -10px var(--dpk-shade-3);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.board-tabs [role='tab'] {
|
|
498
|
+
flex: 1 1 0;
|
|
499
|
+
display: inline-flex;
|
|
500
|
+
align-items: center;
|
|
501
|
+
justify-content: center;
|
|
502
|
+
gap: 7px;
|
|
503
|
+
min-width: 0;
|
|
504
|
+
padding: 7px 10px;
|
|
505
|
+
border: 1px solid transparent;
|
|
506
|
+
border-radius: var(--dpk-radius-sm);
|
|
507
|
+
background: transparent;
|
|
508
|
+
color: var(--dpk-ink-soft);
|
|
509
|
+
font: inherit;
|
|
510
|
+
font-size: 13px;
|
|
511
|
+
font-weight: 550;
|
|
512
|
+
white-space: nowrap;
|
|
513
|
+
cursor: pointer;
|
|
514
|
+
transition:
|
|
515
|
+
color 140ms var(--dpk-ease),
|
|
516
|
+
background 140ms var(--dpk-ease);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.board-tabs [role='tab']:hover {
|
|
520
|
+
color: var(--dpk-ink);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.board-tabs [role='tab']:focus-visible {
|
|
524
|
+
outline: none;
|
|
525
|
+
box-shadow: var(--dpk-focus);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.board-tabs [role='tab'][aria-selected='true'] {
|
|
529
|
+
background: var(--dpk-paper-raised);
|
|
530
|
+
color: var(--dpk-ink);
|
|
531
|
+
font-weight: 700;
|
|
532
|
+
box-shadow: var(--dpk-bevel), var(--dpk-shadow-xs);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.board-tab-count {
|
|
536
|
+
min-width: 18px;
|
|
537
|
+
padding: 0 6px;
|
|
538
|
+
border-radius: 999px;
|
|
539
|
+
background: var(--dpk-rule);
|
|
540
|
+
color: var(--dpk-ink-soft);
|
|
541
|
+
font-family: var(--dpk-mono);
|
|
542
|
+
font-size: 10.5px;
|
|
543
|
+
font-weight: 650;
|
|
544
|
+
font-variant-numeric: tabular-nums;
|
|
545
|
+
line-height: 17px;
|
|
546
|
+
text-align: center;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* An open blocker: the agent is stuck until the reader answers. */
|
|
550
|
+
.board-tabs [data-alert='true'] .board-tab-count {
|
|
551
|
+
background: var(--dpk-danger);
|
|
552
|
+
color: #fff;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.board-panel {
|
|
556
|
+
display: grid;
|
|
557
|
+
gap: 18px;
|
|
558
|
+
min-width: 0;
|
|
559
|
+
animation: board-fade 180ms var(--dpk-ease);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.board-panel[hidden] {
|
|
563
|
+
display: none;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
@keyframes board-fade {
|
|
567
|
+
from {
|
|
568
|
+
opacity: 0;
|
|
569
|
+
transform: translateY(4px);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/* ------------------------------------------------------------ context */
|
|
574
|
+
|
|
575
|
+
.board-context {
|
|
576
|
+
display: grid;
|
|
577
|
+
gap: 14px;
|
|
578
|
+
min-width: 0;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/* Why / What side by side, then Goals / Non-goals: a design doc at a glance. */
|
|
582
|
+
.board-context-parts {
|
|
583
|
+
display: grid;
|
|
584
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
585
|
+
gap: 12px;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
@media (max-width: 760px) {
|
|
589
|
+
.board-context-parts {
|
|
590
|
+
grid-template-columns: minmax(0, 1fr);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.board-context-part {
|
|
595
|
+
display: grid;
|
|
596
|
+
align-content: start;
|
|
597
|
+
gap: 6px;
|
|
598
|
+
min-width: 0;
|
|
599
|
+
padding: 14px 16px;
|
|
600
|
+
border: 1px solid var(--dpk-rule);
|
|
601
|
+
border-radius: var(--dpk-radius-lg);
|
|
602
|
+
background: var(--dpk-paper-raised);
|
|
603
|
+
box-shadow: var(--dpk-shadow-xs), var(--dpk-bevel);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.board-context-part[data-context='why'],
|
|
607
|
+
.board-context-part[data-context='what'] {
|
|
608
|
+
border-top: 3px solid var(--dpk-accent);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.board-context-head {
|
|
612
|
+
display: flex;
|
|
613
|
+
align-items: center;
|
|
614
|
+
justify-content: space-between;
|
|
615
|
+
gap: 8px;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.board-context-title {
|
|
619
|
+
margin: 0;
|
|
620
|
+
color: var(--dpk-ink-soft);
|
|
621
|
+
font-size: 12px;
|
|
622
|
+
font-weight: 700;
|
|
623
|
+
letter-spacing: 0.04em;
|
|
624
|
+
text-transform: uppercase;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.board-context-text {
|
|
628
|
+
margin: 0;
|
|
629
|
+
color: var(--dpk-ink);
|
|
630
|
+
font-size: 14px;
|
|
631
|
+
line-height: 1.7;
|
|
632
|
+
white-space: pre-line;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.board-context-items {
|
|
636
|
+
display: grid;
|
|
637
|
+
gap: 4px;
|
|
638
|
+
margin: 0;
|
|
639
|
+
padding: 0;
|
|
640
|
+
list-style: none;
|
|
641
|
+
color: var(--dpk-ink);
|
|
642
|
+
font-size: 13.5px;
|
|
643
|
+
line-height: 1.6;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.board-context-items li {
|
|
647
|
+
position: relative;
|
|
648
|
+
padding-left: 20px;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.board-context-items li::before {
|
|
652
|
+
position: absolute;
|
|
653
|
+
left: 0;
|
|
654
|
+
font-weight: 700;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.board-context-part[data-context='goals'] li::before {
|
|
658
|
+
content: '✓';
|
|
659
|
+
color: var(--dpk-green);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.board-context-part[data-context='nonGoals'] li::before {
|
|
663
|
+
content: '−';
|
|
664
|
+
color: var(--dpk-ink-faint);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.board-context-part[data-context='nonGoals'] .board-context-items {
|
|
668
|
+
color: var(--dpk-ink-soft);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.board-figures {
|
|
672
|
+
display: grid;
|
|
673
|
+
gap: 14px;
|
|
674
|
+
min-width: 0;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.board-figures ::slotted(*) {
|
|
678
|
+
min-width: 0;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.board-updated {
|
|
682
|
+
color: var(--dpk-ink-faint);
|
|
683
|
+
font-size: 12px;
|
|
684
|
+
font-variant-numeric: tabular-nums;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/* ----------------------------------------------------------- sections */
|
|
688
|
+
|
|
689
|
+
.board-section {
|
|
690
|
+
display: grid;
|
|
691
|
+
gap: 12px;
|
|
692
|
+
min-width: 0;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.board-rail-section {
|
|
696
|
+
gap: 6px;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.board-section-head {
|
|
700
|
+
display: flex;
|
|
701
|
+
align-items: baseline;
|
|
702
|
+
justify-content: space-between;
|
|
703
|
+
gap: 12px;
|
|
704
|
+
padding-bottom: 8px;
|
|
705
|
+
border-bottom: 1px solid var(--dpk-rule);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.board-section-head h2 {
|
|
709
|
+
margin: 0;
|
|
710
|
+
color: var(--dpk-ink);
|
|
711
|
+
font-size: 15px;
|
|
712
|
+
font-weight: 700;
|
|
713
|
+
letter-spacing: -0.01em;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/* The rail is narrow and always in view: its headings are labels, not breaks. */
|
|
717
|
+
.board-rail-section .board-section-head {
|
|
718
|
+
padding-bottom: 3px;
|
|
719
|
+
line-height: 1.3;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.board-rail-section .board-section-head h2 {
|
|
723
|
+
font-size: 11.5px;
|
|
724
|
+
text-transform: uppercase;
|
|
725
|
+
letter-spacing: 0.04em;
|
|
726
|
+
color: var(--dpk-ink-soft);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.board-section-meta {
|
|
730
|
+
color: var(--dpk-ink-faint);
|
|
731
|
+
font-size: 12px;
|
|
732
|
+
font-variant-numeric: tabular-nums;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.board-lede {
|
|
736
|
+
margin: -4px 0 0;
|
|
737
|
+
color: var(--dpk-ink-soft);
|
|
738
|
+
font-size: 12.5px;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.board-empty {
|
|
742
|
+
margin: 0;
|
|
743
|
+
padding: 12px 14px;
|
|
744
|
+
border: 1px dashed var(--dpk-rule-strong);
|
|
745
|
+
border-radius: var(--dpk-radius);
|
|
746
|
+
color: var(--dpk-ink-faint);
|
|
747
|
+
font-size: 13px;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.board-tag {
|
|
751
|
+
flex: 0 0 auto;
|
|
752
|
+
padding: 1px 7px;
|
|
753
|
+
border-radius: 999px;
|
|
754
|
+
font-size: 11px;
|
|
755
|
+
font-weight: 650;
|
|
756
|
+
line-height: 1.6;
|
|
757
|
+
white-space: nowrap;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.board-tag[data-tone='done'] {
|
|
761
|
+
background: var(--dpk-green-soft);
|
|
762
|
+
color: color-mix(in srgb, var(--dpk-green) 75%, var(--dpk-ink));
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.board-tag[data-tone='new'] {
|
|
766
|
+
background: var(--dpk-accent-soft);
|
|
767
|
+
color: var(--dpk-accent-ink);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.board-tag[data-tone='changed'] {
|
|
771
|
+
background: var(--dpk-blue-soft);
|
|
772
|
+
color: color-mix(in srgb, var(--dpk-blue) 75%, var(--dpk-ink));
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.board-tag[data-tone='muted'] {
|
|
776
|
+
background: var(--dpk-paper-inset);
|
|
777
|
+
color: var(--dpk-ink-soft);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.board-comment {
|
|
781
|
+
flex: 0 0 auto;
|
|
782
|
+
position: relative;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/* ---------------------------------------------------------- questions */
|
|
786
|
+
|
|
787
|
+
/* Blocking questions are red: the agent is waiting. The rest are amber: the
|
|
788
|
+
agent goes on under its assumption. Either turns green once replied to. */
|
|
789
|
+
.board-group {
|
|
790
|
+
--board-group-tone: var(--dpk-amber);
|
|
791
|
+
--board-group-soft: var(--dpk-amber-soft);
|
|
792
|
+
display: grid;
|
|
793
|
+
gap: 8px;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.board-group[data-group='blocking'] {
|
|
797
|
+
--board-group-tone: var(--dpk-danger);
|
|
798
|
+
--board-group-soft: var(--dpk-danger-soft);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.board-group-title {
|
|
802
|
+
display: flex;
|
|
803
|
+
align-items: center;
|
|
804
|
+
gap: 8px;
|
|
805
|
+
margin: 0;
|
|
806
|
+
color: color-mix(in srgb, var(--board-group-tone) 75%, var(--dpk-ink));
|
|
807
|
+
font-size: 12.5px;
|
|
808
|
+
font-weight: 700;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.board-group-title::before {
|
|
812
|
+
content: '';
|
|
813
|
+
width: 8px;
|
|
814
|
+
height: 8px;
|
|
815
|
+
border-radius: 50%;
|
|
816
|
+
background: var(--board-group-tone);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.board-group + .board-group {
|
|
820
|
+
margin-top: 6px;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.board-questions {
|
|
824
|
+
display: grid;
|
|
825
|
+
gap: 10px;
|
|
826
|
+
margin: 0;
|
|
827
|
+
padding: 0;
|
|
828
|
+
list-style: none;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.board-card {
|
|
832
|
+
display: grid;
|
|
833
|
+
gap: 10px;
|
|
834
|
+
padding: 14px 16px;
|
|
835
|
+
border: 1px solid var(--dpk-rule);
|
|
836
|
+
border-left: 3px solid var(--board-group-tone);
|
|
837
|
+
border-radius: var(--dpk-radius);
|
|
838
|
+
background: var(--dpk-paper-raised);
|
|
839
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
840
|
+
transition:
|
|
841
|
+
border-color 160ms var(--dpk-ease),
|
|
842
|
+
background 160ms var(--dpk-ease);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.board-question[data-resolved='true'] {
|
|
846
|
+
border-left-color: var(--dpk-green);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.board-card-head {
|
|
850
|
+
display: flex;
|
|
851
|
+
align-items: flex-start;
|
|
852
|
+
gap: 10px;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.board-card-title {
|
|
856
|
+
flex: 1 1 auto;
|
|
857
|
+
margin: 0;
|
|
858
|
+
color: var(--dpk-ink);
|
|
859
|
+
font-size: 14px;
|
|
860
|
+
font-weight: 650;
|
|
861
|
+
line-height: 1.5;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.board-card-text {
|
|
865
|
+
margin: 0;
|
|
866
|
+
color: var(--dpk-ink-soft);
|
|
867
|
+
font-size: 13px;
|
|
868
|
+
line-height: 1.65;
|
|
869
|
+
white-space: pre-line;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.board-ref {
|
|
873
|
+
flex: 0 0 auto;
|
|
874
|
+
padding: 2px 7px;
|
|
875
|
+
border-radius: var(--dpk-radius-xs);
|
|
876
|
+
background: var(--board-group-soft);
|
|
877
|
+
color: color-mix(in srgb, var(--board-group-tone) 75%, var(--dpk-ink));
|
|
878
|
+
font-family: var(--dpk-mono);
|
|
879
|
+
font-size: 11.5px;
|
|
880
|
+
font-weight: 700;
|
|
881
|
+
line-height: 1.6;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.board-question[data-resolved='true'] .board-ref {
|
|
885
|
+
background: var(--dpk-green-soft);
|
|
886
|
+
color: color-mix(in srgb, var(--dpk-green) 75%, var(--dpk-ink));
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.board-assumption {
|
|
890
|
+
display: grid;
|
|
891
|
+
gap: 3px;
|
|
892
|
+
padding: 9px 12px;
|
|
893
|
+
border-radius: var(--dpk-radius-sm);
|
|
894
|
+
background: var(--dpk-paper-sunken);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.board-assumption-label {
|
|
898
|
+
color: var(--dpk-ink-faint);
|
|
899
|
+
font-size: 11px;
|
|
900
|
+
font-weight: 700;
|
|
901
|
+
letter-spacing: 0.03em;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.board-assumption-text {
|
|
905
|
+
margin: 0;
|
|
906
|
+
color: var(--dpk-ink);
|
|
907
|
+
font-size: 13.5px;
|
|
908
|
+
line-height: 1.55;
|
|
909
|
+
white-space: pre-line;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.board-question[data-reply='answer'] .board-assumption-text {
|
|
913
|
+
color: var(--dpk-ink-faint);
|
|
914
|
+
text-decoration: line-through;
|
|
915
|
+
text-decoration-color: color-mix(in srgb, var(--dpk-ink-faint) 60%, transparent);
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.board-reply {
|
|
919
|
+
display: flex;
|
|
920
|
+
flex-wrap: wrap;
|
|
921
|
+
gap: 8px;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.board-approve svg {
|
|
925
|
+
width: 14px;
|
|
926
|
+
height: 14px;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.board-approve[aria-pressed='true'] {
|
|
930
|
+
border-color: var(--dpk-green);
|
|
931
|
+
background: var(--dpk-green-soft);
|
|
932
|
+
color: color-mix(in srgb, var(--dpk-green) 70%, var(--dpk-ink));
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.board-other[aria-pressed='true'] {
|
|
936
|
+
border-color: color-mix(in srgb, var(--dpk-accent) 55%, var(--dpk-rule));
|
|
937
|
+
background: var(--dpk-accent-soft);
|
|
938
|
+
color: var(--dpk-accent-ink);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.board-answer {
|
|
942
|
+
width: 100%;
|
|
943
|
+
box-sizing: border-box;
|
|
944
|
+
resize: vertical;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.board-answer[hidden] {
|
|
948
|
+
display: none;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/* -------------------------------------------------------------- todos */
|
|
952
|
+
|
|
953
|
+
.board-progress {
|
|
954
|
+
height: 6px;
|
|
955
|
+
border-radius: 999px;
|
|
956
|
+
background: var(--dpk-rule);
|
|
957
|
+
overflow: hidden;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.board-progress-fill {
|
|
961
|
+
display: block;
|
|
962
|
+
height: 100%;
|
|
963
|
+
border-radius: inherit;
|
|
964
|
+
background: var(--dpk-green);
|
|
965
|
+
transition: width 240ms var(--dpk-ease);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.board-todos {
|
|
969
|
+
display: grid;
|
|
970
|
+
margin: 0;
|
|
971
|
+
padding: 0;
|
|
972
|
+
list-style: none;
|
|
973
|
+
border: 1px solid var(--dpk-rule);
|
|
974
|
+
border-radius: var(--dpk-radius);
|
|
975
|
+
background: var(--dpk-paper-raised);
|
|
976
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
977
|
+
overflow: hidden;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.board-todo {
|
|
981
|
+
display: grid;
|
|
982
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
983
|
+
align-items: start;
|
|
984
|
+
gap: 10px;
|
|
985
|
+
padding: 9px 12px;
|
|
986
|
+
border-top: 1px solid var(--dpk-rule);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.board-todo:first-child {
|
|
990
|
+
border-top: 0;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.board-todo[data-added='true'] {
|
|
994
|
+
background: color-mix(in srgb, var(--dpk-accent) 5%, var(--dpk-paper-raised));
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.board-todo[data-proposal='pending'] {
|
|
998
|
+
background: color-mix(in srgb, var(--dpk-violet) 5%, var(--dpk-paper-raised));
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.board-todo[data-proposal='decline'] {
|
|
1002
|
+
background: var(--dpk-paper-sunken);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.board-todo[data-proposal='decline'] .board-todo-text,
|
|
1006
|
+
.board-todo[data-proposal='decline'] .board-reason {
|
|
1007
|
+
color: var(--dpk-ink-faint);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.board-todo[data-proposal='decline'] .board-todo-text {
|
|
1011
|
+
text-decoration: line-through;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.board-todo-mark {
|
|
1015
|
+
width: 12px;
|
|
1016
|
+
height: 12px;
|
|
1017
|
+
margin-top: 4px;
|
|
1018
|
+
border: 2px solid var(--board-tone);
|
|
1019
|
+
border-radius: 50%;
|
|
1020
|
+
box-sizing: border-box;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.board-todo-mark[data-status='doing'] {
|
|
1024
|
+
background: linear-gradient(90deg, var(--board-tone) 50%, transparent 50%);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.board-todo-mark[data-status='done'],
|
|
1028
|
+
.board-todo-mark[data-status='blocked'] {
|
|
1029
|
+
background: var(--board-tone);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/* A proposal is not work yet: a question mark in place of the status. */
|
|
1033
|
+
.board-todo-mark--proposal {
|
|
1034
|
+
display: grid;
|
|
1035
|
+
place-items: center;
|
|
1036
|
+
width: 16px;
|
|
1037
|
+
height: 16px;
|
|
1038
|
+
margin: 2px -2px 0;
|
|
1039
|
+
border: 1.5px dashed var(--dpk-violet);
|
|
1040
|
+
background: var(--dpk-violet-soft);
|
|
1041
|
+
color: var(--dpk-violet);
|
|
1042
|
+
font-size: 10.5px;
|
|
1043
|
+
font-weight: 800;
|
|
1044
|
+
line-height: 1;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.board-todo[data-proposal='decline'] .board-todo-mark--proposal {
|
|
1048
|
+
border-color: var(--dpk-rule-strong);
|
|
1049
|
+
background: transparent;
|
|
1050
|
+
color: var(--dpk-ink-faint);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.board-todo-body {
|
|
1054
|
+
display: grid;
|
|
1055
|
+
gap: 4px;
|
|
1056
|
+
min-width: 0;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.board-todo-title {
|
|
1060
|
+
display: flex;
|
|
1061
|
+
flex-wrap: wrap;
|
|
1062
|
+
align-items: center;
|
|
1063
|
+
gap: 4px 6px;
|
|
1064
|
+
color: var(--dpk-ink);
|
|
1065
|
+
font-size: 13.5px;
|
|
1066
|
+
line-height: 1.5;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.board-todo[data-status='done'] .board-todo-text {
|
|
1070
|
+
color: var(--dpk-ink-faint);
|
|
1071
|
+
text-decoration: line-through;
|
|
1072
|
+
text-decoration-color: color-mix(in srgb, var(--dpk-ink-faint) 60%, transparent);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.board-todo-note,
|
|
1076
|
+
.board-reason {
|
|
1077
|
+
margin: 0;
|
|
1078
|
+
color: var(--dpk-ink-soft);
|
|
1079
|
+
font-size: 12px;
|
|
1080
|
+
line-height: 1.55;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.board-reason-label {
|
|
1084
|
+
margin-right: 6px;
|
|
1085
|
+
padding: 0 5px;
|
|
1086
|
+
border-radius: var(--dpk-radius-xs);
|
|
1087
|
+
background: var(--dpk-violet-soft);
|
|
1088
|
+
color: var(--dpk-violet);
|
|
1089
|
+
font-size: 10.5px;
|
|
1090
|
+
font-weight: 700;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.board-todo-controls {
|
|
1094
|
+
display: flex;
|
|
1095
|
+
flex-wrap: wrap;
|
|
1096
|
+
align-items: center;
|
|
1097
|
+
gap: 6px;
|
|
1098
|
+
margin-top: 2px;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.board-todo-status {
|
|
1102
|
+
width: auto;
|
|
1103
|
+
min-width: 0;
|
|
1104
|
+
min-height: 26px;
|
|
1105
|
+
height: 26px;
|
|
1106
|
+
padding-top: 0;
|
|
1107
|
+
padding-bottom: 0;
|
|
1108
|
+
font-size: 12px;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.board-todo-status {
|
|
1112
|
+
border-color: color-mix(in srgb, var(--board-tone) 45%, var(--dpk-rule));
|
|
1113
|
+
background-color: var(--board-tone-soft);
|
|
1114
|
+
color: var(--dpk-ink);
|
|
1115
|
+
font-weight: 600;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/* The agent's own status: it reports it by rewriting the board. */
|
|
1119
|
+
.board-todo-state {
|
|
1120
|
+
display: inline-flex;
|
|
1121
|
+
align-items: center;
|
|
1122
|
+
height: 22px;
|
|
1123
|
+
padding: 0 8px;
|
|
1124
|
+
border-radius: 999px;
|
|
1125
|
+
background: var(--board-tone-soft);
|
|
1126
|
+
color: color-mix(in srgb, var(--board-tone) 75%, var(--dpk-ink));
|
|
1127
|
+
font-size: 11.5px;
|
|
1128
|
+
font-weight: 600;
|
|
1129
|
+
white-space: nowrap;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.board-todo-state[data-status='todo'] {
|
|
1133
|
+
color: var(--dpk-ink-soft);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.board-assignee {
|
|
1137
|
+
display: inline-flex;
|
|
1138
|
+
align-items: center;
|
|
1139
|
+
max-width: 140px;
|
|
1140
|
+
height: 22px;
|
|
1141
|
+
padding: 0 8px;
|
|
1142
|
+
border: 1px solid var(--dpk-rule);
|
|
1143
|
+
border-radius: 999px;
|
|
1144
|
+
color: var(--dpk-ink-soft);
|
|
1145
|
+
font-size: 11.5px;
|
|
1146
|
+
white-space: nowrap;
|
|
1147
|
+
overflow: hidden;
|
|
1148
|
+
text-overflow: ellipsis;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.board-assignee::before {
|
|
1152
|
+
content: '@';
|
|
1153
|
+
margin-right: 1px;
|
|
1154
|
+
color: var(--dpk-ink-faint);
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.board-assignee[data-kind='human'] {
|
|
1158
|
+
border-color: color-mix(in srgb, var(--dpk-violet) 35%, var(--dpk-rule));
|
|
1159
|
+
background: var(--dpk-violet-soft);
|
|
1160
|
+
color: var(--dpk-violet);
|
|
1161
|
+
font-weight: 600;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
.board-assignee[data-kind='human']::before {
|
|
1165
|
+
color: inherit;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/* ------------------------------------------------------ filter / done */
|
|
1169
|
+
|
|
1170
|
+
.board-filter {
|
|
1171
|
+
display: inline-flex;
|
|
1172
|
+
justify-self: start;
|
|
1173
|
+
gap: 2px;
|
|
1174
|
+
padding: 2px;
|
|
1175
|
+
border: 1px solid var(--dpk-rule);
|
|
1176
|
+
border-radius: var(--dpk-radius-sm);
|
|
1177
|
+
background: var(--dpk-paper-sunken);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.board-filter-option {
|
|
1181
|
+
display: inline-flex;
|
|
1182
|
+
align-items: center;
|
|
1183
|
+
gap: 5px;
|
|
1184
|
+
padding: 3px 10px;
|
|
1185
|
+
border: 0;
|
|
1186
|
+
border-radius: var(--dpk-radius-xs);
|
|
1187
|
+
background: transparent;
|
|
1188
|
+
color: var(--dpk-ink-soft);
|
|
1189
|
+
font: inherit;
|
|
1190
|
+
font-size: 12px;
|
|
1191
|
+
cursor: pointer;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.board-filter-option:hover {
|
|
1195
|
+
color: var(--dpk-ink);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.board-filter-option:focus-visible {
|
|
1199
|
+
outline: none;
|
|
1200
|
+
box-shadow: var(--dpk-focus);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.board-filter-option[aria-pressed='true'] {
|
|
1204
|
+
background: var(--dpk-paper-raised);
|
|
1205
|
+
color: var(--dpk-ink);
|
|
1206
|
+
font-weight: 650;
|
|
1207
|
+
box-shadow: var(--dpk-bevel), var(--dpk-shadow-xs);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
.board-filter-count {
|
|
1211
|
+
font-family: var(--dpk-mono);
|
|
1212
|
+
font-size: 10.5px;
|
|
1213
|
+
color: var(--dpk-violet);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.board-done {
|
|
1217
|
+
display: grid;
|
|
1218
|
+
gap: 6px;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.board-done-summary {
|
|
1222
|
+
display: inline-flex;
|
|
1223
|
+
align-items: center;
|
|
1224
|
+
gap: 6px;
|
|
1225
|
+
justify-self: start;
|
|
1226
|
+
padding: 3px 8px 3px 4px;
|
|
1227
|
+
border-radius: var(--dpk-radius-xs);
|
|
1228
|
+
color: var(--dpk-ink-soft);
|
|
1229
|
+
font-size: 12px;
|
|
1230
|
+
font-weight: 600;
|
|
1231
|
+
list-style: none;
|
|
1232
|
+
cursor: pointer;
|
|
1233
|
+
user-select: none;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.board-done-summary::-webkit-details-marker {
|
|
1237
|
+
display: none;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.board-done-summary:hover {
|
|
1241
|
+
background: var(--dpk-paper-sunken);
|
|
1242
|
+
color: var(--dpk-ink);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.board-done-summary:focus-visible {
|
|
1246
|
+
outline: none;
|
|
1247
|
+
box-shadow: var(--dpk-focus);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.board-done-chevron {
|
|
1251
|
+
width: 6px;
|
|
1252
|
+
height: 6px;
|
|
1253
|
+
margin: 0 3px;
|
|
1254
|
+
border-right: 1.5px solid currentColor;
|
|
1255
|
+
border-bottom: 1.5px solid currentColor;
|
|
1256
|
+
transform: rotate(-45deg);
|
|
1257
|
+
transition: transform 160ms var(--dpk-ease);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
.board-done[open] .board-done-chevron {
|
|
1261
|
+
transform: rotate(45deg);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.board-todo-controls .board-comment {
|
|
1265
|
+
margin-left: auto;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
.board-decision {
|
|
1269
|
+
display: flex;
|
|
1270
|
+
gap: 6px;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
.board-decide,
|
|
1274
|
+
.board-undo {
|
|
1275
|
+
min-height: 26px;
|
|
1276
|
+
height: 26px;
|
|
1277
|
+
padding: 0 10px;
|
|
1278
|
+
font-size: 12px;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.board-decide[data-decision='accept'] {
|
|
1282
|
+
border-color: color-mix(in srgb, var(--dpk-green) 50%, var(--dpk-rule));
|
|
1283
|
+
color: color-mix(in srgb, var(--dpk-green) 70%, var(--dpk-ink));
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
.board-decide[data-decision='accept']:hover {
|
|
1287
|
+
background: var(--dpk-green-soft);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
.board-add-todo {
|
|
1291
|
+
display: grid;
|
|
1292
|
+
gap: 6px;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
.board-add-row {
|
|
1296
|
+
display: flex;
|
|
1297
|
+
gap: 6px;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.board-add-assignee {
|
|
1301
|
+
flex: 1 1 auto;
|
|
1302
|
+
width: auto;
|
|
1303
|
+
min-width: 0;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.board-add-submit {
|
|
1307
|
+
flex: 0 0 auto;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/* ------------------------------------------------------------ outputs */
|
|
1311
|
+
|
|
1312
|
+
.board-outputs {
|
|
1313
|
+
display: grid;
|
|
1314
|
+
margin: 0;
|
|
1315
|
+
padding: 0;
|
|
1316
|
+
list-style: none;
|
|
1317
|
+
border: 1px solid var(--dpk-rule);
|
|
1318
|
+
border-radius: var(--dpk-radius);
|
|
1319
|
+
background: var(--dpk-paper-raised);
|
|
1320
|
+
box-shadow: var(--dpk-shadow-xs);
|
|
1321
|
+
overflow: hidden;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
.board-output {
|
|
1325
|
+
display: grid;
|
|
1326
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1327
|
+
align-items: center;
|
|
1328
|
+
gap: 8px;
|
|
1329
|
+
padding: 6px 6px 6px 10px;
|
|
1330
|
+
border-top: 1px solid var(--dpk-rule);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.board-output:first-child {
|
|
1334
|
+
border-top: 0;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
.board-output-body {
|
|
1338
|
+
display: grid;
|
|
1339
|
+
gap: 1px;
|
|
1340
|
+
min-width: 0;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.board-output-head {
|
|
1344
|
+
display: flex;
|
|
1345
|
+
align-items: baseline;
|
|
1346
|
+
gap: 6px;
|
|
1347
|
+
min-width: 0;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.board-kind {
|
|
1351
|
+
flex: 0 0 auto;
|
|
1352
|
+
padding: 0 5px;
|
|
1353
|
+
border-radius: var(--dpk-radius-xs);
|
|
1354
|
+
background: var(--dpk-paper-sunken);
|
|
1355
|
+
color: var(--dpk-ink-soft);
|
|
1356
|
+
font-family: var(--dpk-mono);
|
|
1357
|
+
font-size: 10px;
|
|
1358
|
+
font-weight: 700;
|
|
1359
|
+
line-height: 1.7;
|
|
1360
|
+
text-transform: uppercase;
|
|
1361
|
+
letter-spacing: 0.04em;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.board-output-link,
|
|
1365
|
+
.board-output-label,
|
|
1366
|
+
.board-output-head .board-output-path {
|
|
1367
|
+
min-width: 0;
|
|
1368
|
+
overflow: hidden;
|
|
1369
|
+
text-overflow: ellipsis;
|
|
1370
|
+
white-space: nowrap;
|
|
1371
|
+
color: var(--dpk-ink);
|
|
1372
|
+
font-size: 13px;
|
|
1373
|
+
font-weight: 600;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.board-output-link {
|
|
1377
|
+
text-decoration: none;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.board-output-link:hover {
|
|
1381
|
+
color: var(--dpk-blue);
|
|
1382
|
+
text-decoration: underline;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
.board-output-link:focus-visible {
|
|
1386
|
+
outline: none;
|
|
1387
|
+
border-radius: var(--dpk-radius-xs);
|
|
1388
|
+
box-shadow: var(--dpk-focus);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
.board-output-path {
|
|
1392
|
+
font-family: var(--dpk-mono);
|
|
1393
|
+
font-size: 12px;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.board-output-head .board-output-path {
|
|
1397
|
+
font-size: 12px;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.board-output-sub {
|
|
1401
|
+
overflow: hidden;
|
|
1402
|
+
text-overflow: ellipsis;
|
|
1403
|
+
white-space: nowrap;
|
|
1404
|
+
color: var(--dpk-ink-faint);
|
|
1405
|
+
font-family: var(--dpk-mono);
|
|
1406
|
+
font-size: 11px;
|
|
1407
|
+
font-weight: 400;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
.board-output-text {
|
|
1411
|
+
margin: 2px 0 0;
|
|
1412
|
+
color: var(--dpk-ink-soft);
|
|
1413
|
+
font-size: 12px;
|
|
1414
|
+
line-height: 1.5;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
.board-copy[data-copied='true'] {
|
|
1418
|
+
color: var(--dpk-green);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
/* ---------------------------------------------------------------- log */
|
|
1422
|
+
|
|
1423
|
+
.board-log {
|
|
1424
|
+
display: grid;
|
|
1425
|
+
margin: 0;
|
|
1426
|
+
padding: 0;
|
|
1427
|
+
list-style: none;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.board-log-entry {
|
|
1431
|
+
position: relative;
|
|
1432
|
+
display: grid;
|
|
1433
|
+
grid-template-columns: 28px minmax(0, 1fr);
|
|
1434
|
+
gap: 10px;
|
|
1435
|
+
padding-bottom: 14px;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/* The line that joins the exchanges into one conversation. */
|
|
1439
|
+
.board-log-entry::before {
|
|
1440
|
+
content: '';
|
|
1441
|
+
position: absolute;
|
|
1442
|
+
left: 13px;
|
|
1443
|
+
top: 30px;
|
|
1444
|
+
bottom: 0;
|
|
1445
|
+
width: 2px;
|
|
1446
|
+
background: var(--dpk-rule);
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
.board-log-entry:last-child::before {
|
|
1450
|
+
display: none;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.board-log-avatar {
|
|
1454
|
+
display: grid;
|
|
1455
|
+
place-items: center;
|
|
1456
|
+
width: 28px;
|
|
1457
|
+
height: 28px;
|
|
1458
|
+
border-radius: 50%;
|
|
1459
|
+
background: var(--dpk-accent-soft);
|
|
1460
|
+
color: var(--dpk-accent-strong);
|
|
1461
|
+
font-size: 12px;
|
|
1462
|
+
font-weight: 700;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.board-log-entry[data-from='human'] .board-log-avatar {
|
|
1466
|
+
background: var(--dpk-violet-soft);
|
|
1467
|
+
color: var(--dpk-violet);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
.board-log-body {
|
|
1471
|
+
min-width: 0;
|
|
1472
|
+
padding: 10px 14px 12px;
|
|
1473
|
+
border: 1px solid var(--dpk-rule);
|
|
1474
|
+
border-radius: var(--dpk-radius);
|
|
1475
|
+
background: var(--dpk-paper-raised);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
.board-log-entry[data-from='human'] .board-log-body {
|
|
1479
|
+
background: color-mix(in srgb, var(--dpk-violet) 4%, var(--dpk-paper-raised));
|
|
1480
|
+
border-color: color-mix(in srgb, var(--dpk-violet) 22%, var(--dpk-rule));
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
.board-log-entry[data-latest='true'] .board-log-body {
|
|
1484
|
+
border-color: color-mix(in srgb, var(--dpk-accent) 45%, var(--dpk-rule));
|
|
1485
|
+
box-shadow:
|
|
1486
|
+
var(--dpk-shadow-sm),
|
|
1487
|
+
0 0 0 3px var(--dpk-accent-soft);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
/* Where the task stands, on the newest entry only. */
|
|
1491
|
+
.board-log-now {
|
|
1492
|
+
display: flex;
|
|
1493
|
+
flex-wrap: wrap;
|
|
1494
|
+
align-items: center;
|
|
1495
|
+
gap: 10px;
|
|
1496
|
+
margin: -2px 0 10px;
|
|
1497
|
+
padding-bottom: 10px;
|
|
1498
|
+
border-bottom: 1px dashed var(--dpk-rule);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.board-section > .board-log-now {
|
|
1502
|
+
margin: 0;
|
|
1503
|
+
padding-bottom: 0;
|
|
1504
|
+
border-bottom: 0;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
.board-log-head {
|
|
1508
|
+
display: flex;
|
|
1509
|
+
align-items: center;
|
|
1510
|
+
gap: 8px;
|
|
1511
|
+
min-height: 24px;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.board-log-author {
|
|
1515
|
+
color: var(--dpk-ink);
|
|
1516
|
+
font-size: 12.5px;
|
|
1517
|
+
font-weight: 700;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.board-log-entry[data-from='human'] .board-log-author {
|
|
1521
|
+
color: var(--dpk-violet);
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.board-log-at {
|
|
1525
|
+
color: var(--dpk-ink-faint);
|
|
1526
|
+
font-size: 11.5px;
|
|
1527
|
+
font-variant-numeric: tabular-nums;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.board-log-latest {
|
|
1531
|
+
padding: 1px 7px;
|
|
1532
|
+
border-radius: 999px;
|
|
1533
|
+
background: var(--dpk-accent-soft);
|
|
1534
|
+
color: var(--dpk-accent-strong);
|
|
1535
|
+
font-size: 10.5px;
|
|
1536
|
+
font-weight: 700;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
.board-log-head .board-comment {
|
|
1540
|
+
margin-left: auto;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.board-log-title {
|
|
1544
|
+
margin: 4px 0 0;
|
|
1545
|
+
color: var(--dpk-ink);
|
|
1546
|
+
font-size: 14px;
|
|
1547
|
+
font-weight: 650;
|
|
1548
|
+
line-height: 1.5;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
.board-log-text {
|
|
1552
|
+
margin: 4px 0 0;
|
|
1553
|
+
color: var(--dpk-ink);
|
|
1554
|
+
font-size: 13.5px;
|
|
1555
|
+
line-height: 1.65;
|
|
1556
|
+
white-space: pre-line;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.board-log-title + .board-log-text {
|
|
1560
|
+
color: var(--dpk-ink-soft);
|
|
1561
|
+
font-size: 13px;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
.board-log-points {
|
|
1565
|
+
margin: 6px 0 0;
|
|
1566
|
+
padding-left: 18px;
|
|
1567
|
+
color: var(--dpk-ink-soft);
|
|
1568
|
+
font-size: 12.5px;
|
|
1569
|
+
line-height: 1.6;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1573
|
+
.board-status[data-status='working'] .board-status-dot {
|
|
1574
|
+
animation: none;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
.board-progress-fill {
|
|
1578
|
+
transition: none;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.board-panel {
|
|
1582
|
+
animation: none;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
`,We=1500;class No extends oo{static{this.styles=[oo.styles,Ne]}static{this.properties={tab:{state:!0},todoFilter:{state:!0}}}#o=null;#e=null;#a;constructor(){super(),this.tab="context",this.todoFilter="all"}definitionFor(o){return _o(o)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#a)}renderRegions(o){const a=U(this.locale),t=x=>o.commentCount(x),r=Oo(o.state,t),d=Co(a,o.state,t),l=this.#d(),g=this.tab;return{header:this.#r(a,o.state),sidebar:n`
|
|
1586
|
+
<div class="board-rail">
|
|
1587
|
+
${ve(a,Eo(o.state),this.#e,l)}
|
|
1588
|
+
${Ee(a,So(a,o.state,o.base,t,this.todoFilter),l)}
|
|
1589
|
+
</div>
|
|
1590
|
+
`,main:n`
|
|
1591
|
+
<div class="board">
|
|
1592
|
+
${Se(a,g,{log:d.entries.length,questions:r.open,alert:r.blockingOpen>0},x=>{this.tab=x},x=>this.#t(x))}
|
|
1593
|
+
${K("context",g,he(a,Ao(a,o.state,t),this.#n(),l))}
|
|
1594
|
+
${K("log",g,we(a,d,l))}
|
|
1595
|
+
${K("questions",g,r.total===0?n`<p class="board-empty">${a.noQuestions}</p>`:xe(a,r,l))}
|
|
1596
|
+
</div>
|
|
1597
|
+
`}}updated(){super.updated();const o=this.#o;o!==null&&(this.#o=null,this.renderRoot.querySelector(`[data-answer-text="${o}"]`)?.focus())}#t(o){const a=Te(this.tab,o.key);a!==null&&(o.preventDefault(),this.tab=a,this.updateComplete.then(()=>this.renderRoot.querySelector(`[data-tab="${a}"]`)?.focus()))}#r(o,a){return a.status===null?s:n`<span class="board-status board-status--header" data-status=${a.status}>
|
|
1598
|
+
<span class="board-status-dot" aria-hidden="true"></span>${xo(o,a.status)}
|
|
1599
|
+
</span>`}#n(){return this.querySelector(':scope > [slot="main"]')!==null}#d(){return{answer:(o,a)=>this.#s(o,a),answerOther:o=>this.#i(o),decide:(o,a)=>this.dispatch(uo(o,a)),setStatus:(o,a)=>this.dispatch(bo(o,a)),filterTodos:o=>{this.todoFilter=o},addTodo:(o,a)=>this.#l(o,a),deleteTodo:o=>this.dispatch(ho(o)),copy:(o,a)=>{this.#p(o,a)},comment:o=>this.requestComment(o)}}#s(o,a){this.dispatch(Q(o,a))}#i(o){this.dispatch(Q(o,{kind:"answer",text:""})).ok&&(this.#o=o)}#l(o,a){const{base:t,state:r}=this.derivation,d=[...t.todos,...r.todos].map(l=>l.id);this.dispatch(go(Zo(o,d),o,a))}async#p(o,a){await oe(a)&&(clearTimeout(this.#a),this.#e=o,this.requestUpdate(),this.#a=setTimeout(()=>{this.#e=null,this.requestUpdate()},We))}}const Wo=()=>{customElements.get("dpk-template-task-board")||customElements.define("dpk-template-task-board",No)},Re=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_PARTS:E,DpkTemplateTaskBoard:No,MEMBER_KINDS:ao,TASK_BOARD_PAGE:co,TASK_STATUSES:eo,TODO_STATUSES:D,addTodo:go,answerQuestion:Q,applyTaskBoardAction:ko,contextPartTitle:_,decideProposal:uo,defineTaskBoardElement:Wo,deleteTodo:ho,describeTaskBoardAction:$o,emptyTaskBoardBase:no,isAnswered:lo,isHumanTodo:q,isPlanned:R,outputLocation:Do,parseTaskBoardBase:ro,presentContext:Ao,presentLog:Co,presentOutputs:Eo,presentQuestions:Oo,presentTodos:So,resolveTaskBoardNavigation:To,serializeTaskBoardAction:wo,setTodoStatus:bo,taskBoardActions:m,taskBoardBaseSchema:to,taskBoardCommentTargets:yo,taskBoardDefinitionFor:_o,taskBoardHasTarget:zo,taskBoardMessages:U,taskBoardTargetLabel:vo,taskBoardTitle:mo},Symbol.toStringTag,{value:"Module"}));export{Wo as d,Re as i};
|