github-issue-tower-defence-management 1.97.2 → 1.97.4
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/CHANGELOG.md +14 -0
- package/bin/adapter/entry-points/console/ui-dist/assets/{index-rqxspBmD.js → index-BFKRWKvS.js} +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/{index-CdQeHptu.css → index-CzVHU81K.css} +1 -1
- package/bin/adapter/entry-points/console/ui-dist/index.html +2 -2
- package/package.json +1 -1
- package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleCloseActions.tsx +4 -4
- package/src/adapter/entry-points/console/ui/src/features/console/lib/markdown.test.ts +9 -0
- package/src/adapter/entry-points/console/ui/src/index.css +31 -0
- package/src/adapter/entry-points/console/ui-dist/assets/{index-rqxspBmD.js → index-BFKRWKvS.js} +1 -1
- package/src/adapter/entry-points/console/ui-dist/assets/{index-CdQeHptu.css → index-CzVHU81K.css} +1 -1
- package/src/adapter/entry-points/console/ui-dist/index.html +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.97.4](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.97.3...v1.97.4) (2026-06-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **console:** place Close button on the right of the close button group ([#926](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/926)) ([4a0e1e5](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/4a0e1e56fa91b4be6148d633af966d879511379c))
|
|
7
|
+
|
|
8
|
+
## [1.97.3](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.97.2...v1.97.3) (2026-06-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **console:** render markdown tables and lists in console markdown content ([#925](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/925)) ([76410ce](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/76410ce2207bf13e17d2225ea4f00a2408de5ab5)), closes [#912](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/912)
|
|
14
|
+
|
|
1
15
|
## [1.97.2](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.97.1...v1.97.2) (2026-06-23)
|
|
2
16
|
|
|
3
17
|
|
package/bin/adapter/entry-points/console/ui-dist/assets/{index-rqxspBmD.js → index-BFKRWKvS.js}
RENAMED
|
@@ -98,4 +98,4 @@ Please report this to https://github.com/markedjs/marked.`,i){const f="<p>An err
|
|
|
98
98
|
`)}),d+=1,c=[])};for(const S of i){if(f===null&&/^```mermaid\s*$/.test(S.trim())){h(),f=[];continue}if(f!==null){if(S.trim()==="```"){o.push({kind:"mermaid",key:`mermaid:${d}`,code:f.join(`
|
|
99
99
|
`)}),d+=1,f=null;continue}f.push(S);continue}c.push(S)}return f!==null&&c.push("```mermaid",...f),h(),o},fb="https://cdn.jsdelivr.net/npm/mermaid@10.9.6/dist/mermaid.min.js";let au=null,Xh=0;const Qh=s=>(s.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeVariables:{background:"#0d1117",primaryColor:"#161b22",primaryTextColor:"#e6edf3",primaryBorderColor:"#30363d",lineColor:"#8b949e",fontSize:"14px"}}),s),db=()=>au!==null?au:window.mermaid!==void 0?(au=Promise.resolve(Qh(window.mermaid)),au):(au=new Promise((s,i)=>{const o=document.createElement("script");o.src=fb,o.async=!0,o.onload=()=>{if(window.mermaid===void 0){i(new Error("mermaid failed to load"));return}s(Qh(window.mermaid))},o.onerror=()=>i(new Error("mermaid script failed to load")),document.head.appendChild(o)}),au),mb=async s=>{const i=await db();Xh+=1;const o=`console-mermaid-${Xh}`,{svg:c}=await i.render(o,s);return up.sanitize(c,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["foreignObject"]})},hb=({code:s})=>{const[i,o]=G.useState({status:"loading"}),c=G.useRef(null);return G.useEffect(()=>{let f=!1;return o({status:"loading"}),mb(s).then(d=>{f||o({status:"ready",svg:d})}).catch(d=>{f||o({status:"error",message:d instanceof Error?d.message:String(d)})}),()=>{f=!0}},[s]),G.useEffect(()=>{const f=c.current;f!==null&&(f.innerHTML=i.status==="ready"?i.svg:"")},[i]),i.status==="loading"?E.jsx("div",{className:"console-mermaid-loading",children:"Rendering diagram..."}):i.status==="error"?E.jsxs("div",{className:"console-mermaid",children:[E.jsxs("div",{className:"console-mermaid-error",children:["Mermaid render error: ",i.message]}),E.jsx("pre",{className:"console-mermaid-source",children:E.jsx("code",{children:s})})]}):E.jsx("div",{ref:c,className:"console-mermaid-rendered"})},pb=({source:s,buildImageProxyUrl:i})=>{const o=G.useMemo(()=>{const f=ob(s);return i===void 0?f:Jy(f,i)},[s,i]),c=G.useRef(null);return G.useEffect(()=>{const f=c.current;f!==null&&(f.innerHTML=o)},[o]),E.jsx("div",{ref:c,className:"console-markdown"})},$c=({body:s,buildImageProxyUrl:i})=>{const o=G.useMemo(()=>rb(s),[s]);return s.trim()===""?E.jsx("p",{className:"console-markdown-empty",children:"No description provided."}):E.jsx("div",{className:"console-markdown-view",children:o.map(c=>c.kind==="mermaid"?E.jsx(hb,{code:c.code},c.key):E.jsx(pb,{source:c.source,buildImageProxyUrl:i},c.key))})},gb=({isPr:s,now:i,onSubmit:o})=>{const[c,f]=G.useState(!s),[d,h]=G.useState(""),[S,g]=G.useState({kind:"idle"}),[T,z]=G.useState([]),R=async()=>{const C=d.trim();if(!(C.length===0||S.kind==="posting")){g({kind:"posting"});try{const H=await o(C);z(I=>[...I,H]),h(""),g({kind:"idle"})}catch(H){g({kind:"error",message:H instanceof Error?H.message:"failed to post"})}}};return E.jsxs("div",{className:"console-composer",children:[E.jsx("button",{type:"button",className:"console-composer-toggle","aria-expanded":c,onClick:()=>f(C=>!C),children:c?"✕ Cancel":"💬 Add a comment"}),T.length>0&&E.jsx("div",{className:"console-composer-posted",children:T.map(C=>E.jsxs("article",{className:"console-comment",children:[E.jsxs("header",{className:"console-comment-header",title:Sr(C.createdAt),children:[E.jsx("span",{className:"console-comment-author",children:C.author===""?"you":C.author}),E.jsx("span",{className:"console-comment-time",children:mi(C.createdAt,i)})]}),E.jsx($c,{body:C.body})]},`${C.author}:${C.createdAt}:${C.body}`))}),c&&E.jsxs("div",{className:"console-composer-form",children:[E.jsx("textarea",{className:"console-composer-input",rows:3,placeholder:"Leave a comment…",value:d,onChange:C=>h(C.target.value)}),E.jsxs("div",{className:"console-composer-row",children:[E.jsx("button",{type:"button",className:"console-composer-submit",disabled:S.kind==="posting",onClick:()=>{R()},children:"Comment"}),S.kind==="posting"&&E.jsx("span",{className:"console-composer-status",children:"Posting…"}),S.kind==="error"&&E.jsxs("span",{role:"alert",className:"console-composer-status console-composer-error",children:["Failed: ",S.message]})]})]})]})},sa=({title:s,count:i=null,defaultCollapsed:o=!1,headerAction:c,children:f})=>{const[d,h]=G.useState(o),S=i===null?s:`${s} (${i})`;return E.jsxs("section",{className:"console-panel",children:[E.jsxs("header",{className:"console-panel-header",children:[E.jsxs("button",{type:"button",className:"console-panel-toggle","aria-expanded":!d,onClick:()=>h(g=>!g),children:[E.jsx("span",{className:"console-panel-caret",children:d?"▸":"▾"}),E.jsx("span",{className:"console-panel-title",children:S})]}),c!==void 0&&E.jsx("div",{className:"console-panel-action",children:c})]}),!d&&E.jsx("div",{className:"console-panel-body",children:f})]})},yb=s=>{switch(s){case"added":return{label:"A",color:"#3fb950"};case"modified":return{label:"M",color:"#d29922"};case"removed":return{label:"D",color:"#f85149"};case"renamed":return{label:"R",color:"#a371f7"};case"changed":return{label:"M",color:"#d29922"};default:return{label:"?",color:"#8b949e"}}},bb=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,vb=s=>{const i=[];let o=0,c=0;for(const f of s.split(`
|
|
100
100
|
`)){if(f.startsWith("@@")){const d=f.match(bb);d!==null&&(o=Number(d[1]),c=Number(d[2])),i.push({kind:"hunk",oldLineNumber:null,newLineNumber:null,content:f});continue}if(f.startsWith("+")){i.push({kind:"add",oldLineNumber:null,newLineNumber:c,content:f}),c+=1;continue}if(f.startsWith("-")){i.push({kind:"del",oldLineNumber:o,newLineNumber:null,content:f}),o+=1;continue}i.push({kind:"ctx",oldLineNumber:o,newLineNumber:c,content:f}),o+=1,c+=1}return i},Sb=({patch:s})=>{if(s===null||s==="")return E.jsx("p",{className:"console-file-diff-empty",children:"(no diff / binary or too large)"});const i=vb(s);return E.jsx("table",{className:"console-file-diff",children:E.jsx("tbody",{children:i.map(o=>E.jsxs("tr",{className:`console-diff-row console-diff-${o.kind}`,children:[E.jsx("td",{className:"console-diff-ln",children:o.oldLineNumber??""}),E.jsx("td",{className:"console-diff-ln",children:o.newLineNumber??""}),E.jsx("td",{className:"console-diff-code",children:o.content})]},`${o.kind}:${o.oldLineNumber??"x"}:${o.newLineNumber??"x"}:${o.content}`))})})},Tb=({file:s})=>{const[i,o]=G.useState(!1),c=yb(s.status);return E.jsxs("li",{className:"console-file",children:[E.jsxs("button",{type:"button",className:"console-file-row","aria-expanded":i,onClick:()=>o(f=>!f),children:[E.jsx("span",{className:"console-file-caret",children:i?"▾":"▸"}),E.jsx("span",{className:"console-file-badge",style:{color:c.color,borderColor:c.color},children:c.label}),E.jsx("span",{className:"console-file-path",children:s.path}),E.jsxs("span",{className:"console-file-stat console-file-add",children:["+",s.additions]}),E.jsxs("span",{className:"console-file-stat console-file-del",children:["-",s.deletions]})]}),i&&E.jsx(Sb,{patch:s.patch})]})},yp=({files:s,isLoading:i,error:o})=>o!==null?E.jsxs("p",{role:"alert",className:"console-files-error",children:["Failed to load changed files: ",o]}):i?E.jsx("p",{className:"console-files-loading",children:"Loading changed files..."}):s.length===0?E.jsx("p",{className:"console-files-empty",children:"No changed files."}):E.jsx("ul",{className:"console-files",children:s.map(c=>E.jsx(Tb,{file:c},c.path))}),Eb=({comments:s,isLoading:i,error:o,now:c,buildImageProxyUrl:f})=>{const[d,h]=G.useState(!1);if(o!==null)return E.jsxs("p",{role:"alert",className:"console-comment-error",children:["Failed to load comments: ",o]});if(i)return E.jsx("p",{className:"console-comment-loading",children:"Loading comments..."});if(s.length===0)return E.jsx("p",{className:"console-comment-empty",children:"No comments."});const S=d?s:s.slice(-1);return E.jsxs("div",{className:"console-comment-list",children:[!d&&s.length>1&&E.jsxs("button",{type:"button",className:"console-comment-show-all",onClick:()=>h(!0),children:["Show all ",s.length]}),S.map(g=>E.jsxs("article",{className:"console-comment",children:[E.jsxs("header",{className:"console-comment-header",children:[E.jsx("span",{className:"console-comment-author",children:g.author}),E.jsx("span",{className:"console-comment-time",children:mi(g.createdAt,c)})]}),E.jsx($c,{body:g.body,buildImageProxyUrl:f})]},`${g.author}:${g.createdAt}:${g.body}`))]})},Ab=s=>s.slice(0,7),_b=s=>s.split(`
|
|
101
|
-
`)[0],bp=({commits:s,isLoading:i,error:o,now:c})=>o!==null?E.jsxs("p",{role:"alert",className:"console-commits-error",children:["Failed to load commits: ",o]}):i?E.jsx("p",{className:"console-commits-loading",children:"Loading commits..."}):s.length===0?E.jsx("p",{className:"console-commits-empty",children:"No commits."}):E.jsx("ul",{className:"console-commits",children:s.map(f=>E.jsxs("li",{className:"console-commit",children:[E.jsx("span",{className:"console-commit-message",children:_b(f.message)}),E.jsx("span",{className:"console-commit-sha",children:Ab(f.sha)}),E.jsx("span",{className:"console-commit-author",children:f.author}),E.jsx("span",{className:"console-commit-time",children:mi(f.authoredAt,c)})]},f.sha))}),xb=({pullRequest:s,body:i,bodyIsLoading:o,files:c,filesAreLoading:f,filesError:d,commits:h,commitsAreLoading:S,commitsError:g,now:T,buildImageProxyUrl:z})=>{const R=s.summary,C=f||d!==null?null:c.length,H=S||g!==null?null:h.length;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"console-pr-header",children:[E.jsx("a",{href:s.url,className:"console-pr-section-title",target:"_blank",rel:"noopener noreferrer",children:(R==null?void 0:R.title)??s.url}),s.isDraft&&E.jsx("span",{className:"console-pr-section-state",children:"draft"}),E.jsxs("div",{className:"console-pr-statbar",children:[s.branchName!==null&&E.jsx("span",{className:"console-pr-branch",children:s.branchName}),R!==null&&E.jsxs(E.Fragment,{children:[E.jsxs("span",{className:"console-pr-add",children:["+",R.additions]}),E.jsxs("span",{className:"console-pr-del",children:["-",R.deletions]}),E.jsxs("span",{className:"console-pr-files-count",children:[R.changedFiles," files"]})]})]})]}),E.jsx(sa,{title:"Description",defaultCollapsed:!0,children:o?E.jsx("p",{className:"console-pr-body-loading",children:"Loading description..."}):E.jsx($c,{body:(R==null?void 0:R.body)??i,buildImageProxyUrl:z})}),E.jsx(sa,{title:"Changed files",count:C,children:E.jsx(yp,{files:c,isLoading:f,error:d})}),E.jsx(sa,{title:"Commits",count:H,defaultCollapsed:!0,children:E.jsx(bp,{commits:h,isLoading:S,error:g,now:T})})]})},Nb=({item:s,storyName:i,storyColorEnum:o,overlayStatus:c,state:f,body:d,bodyIsLoading:h,bodyError:S,comments:g,commentsAreLoading:T,commentsError:z,files:R,filesAreLoading:C,filesError:H,commits:I,commitsAreLoading:F,commitsError:K,relatedPullRequests:ct,now:J,commentComposer:yt,operationBar:st,buildImageProxyUrl:Nt})=>{const pt=(f==null?void 0:f.state)??"open",tt=(f==null?void 0:f.merged)??!1,Mt=!s.isPr&&pt==="closed"?"Closed":null,Pt=di(o),te=c?di(c.color):null,he=C||H!==null?null:R.length,Bt=T||z!==null?null:g.length,Ue=F||K!==null?null:I.length;return E.jsxs("article",{className:"console-detail",children:[i!==null&&E.jsx("div",{className:"console-detail-story",children:E.jsxs("span",{className:"console-storytag",children:[E.jsx("span",{className:"console-story-dot",style:{backgroundColor:Pt.dot}}),i]})}),c!==null&&te!==null&&E.jsx("span",{className:"console-detail-status-chip",style:{color:te.fg,borderColor:te.border,backgroundColor:te.bg},children:c.name}),E.jsxs("h2",{className:"console-detail-title",children:[E.jsx(Fh,{isPr:s.isPr,state:pt,merged:tt,isDraft:!1,stateReason:""}),E.jsx("span",{className:"console-detail-title-text",children:s.title}),E.jsx("span",{className:"console-detail-number",children:s.isPr?`PR #${s.number}`:`#${s.number}`}),Mt!==null&&E.jsx("span",{className:"console-detail-closed-label",children:Mt})]}),E.jsxs("div",{className:"console-detail-subbar",children:[E.jsx("a",{href:s.url,className:"console-detail-link",target:"_blank",rel:"noopener noreferrer",children:s.isPr?`PR #${s.number}`:`Issue #${s.number}`}),E.jsx("span",{className:"console-detail-repo",children:s.repo}),E.jsx("span",{className:"console-detail-pill",children:s.isPr?"PR":"Issue"})]}),s.labels.length>0&&E.jsx("div",{className:"console-detail-labels",children:s.labels.map(jt=>E.jsx("span",{className:"console-label-chip",children:jt},jt))}),E.jsxs("div",{className:"console-detail-createdat",title:Sr(s.createdAt),children:["opened ",mi(s.createdAt,J)]}),E.jsx(sa,{title:"Description",headerAction:E.jsx("a",{href:s.url,className:"console-panel-open-link",target:"_blank",rel:"noopener noreferrer",children:"open"}),children:S!==null?E.jsxs("p",{role:"alert",className:"console-detail-body-error",children:["Failed to load description: ",S]}):h?E.jsx("p",{className:"console-detail-body-loading",children:"Loading description..."}):E.jsx($c,{body:d,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Changed files",count:he,children:E.jsx(yp,{files:R,isLoading:C,error:H})}),E.jsx(sa,{title:"Comments",count:Bt,defaultCollapsed:s.isPr,children:E.jsx(Eb,{comments:g,isLoading:T,error:z,now:J,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Commits",count:Ue,defaultCollapsed:!0,children:E.jsx(bp,{commits:I,isLoading:F,error:K,now:J})}),!s.isPr&&ct.map(jt=>{var $t;return E.jsx(xb,{pullRequest:jt.pullRequest,body:(($t=jt.pullRequest.summary)==null?void 0:$t.body)??"",bodyIsLoading:!1,files:jt.files,filesAreLoading:jt.filesAreLoading,filesError:jt.filesError,commits:jt.commits,commitsAreLoading:jt.commitsAreLoading,commitsError:jt.commitsError,now:J,buildImageProxyUrl:Nt},jt.pullRequest.url)}),yt,E.jsx("div",{className:"console-actionbar",children:st})]})},Ob=({onClose:s})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close"),children:"Close"}),E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close_not_planned"),children:"Close as not planned"})]}),zb=({isTodoByHuman:s,onSetNextActionDate:i})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1day"),children:"+1 day"}),E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1week"),children:s?"+1 week and skip":"+1 week"})]}),Rb=[{action:"unnecessary",label:"Unnecessary",variant:"unneeded"},{action:"totally_wrong",label:"Totally wrong",variant:"wrong"},{action:"request_changes",label:"Reject",variant:"reject"},{action:"approve",label:"Approve",variant:"approve"}],Mb=({onReview:s})=>E.jsx("div",{className:"console-op-group console-op-group-review",children:Rb.map(i=>E.jsx("button",{type:"button",className:`console-op-button console-op-button-${i.variant}`,onClick:()=>s(i.action),children:i.label},i.action))}),Cb=(s,i)=>{const o=i.toLowerCase();return s.find(c=>c.name.toLowerCase()===o)??null},Db=({statusOptions:s,onSetStatus:i,onSetInTmuxByHuman:o})=>{const c=gy.map(f=>({name:f,option:Cb(s,f)})).filter(f=>f.option!==null);return c.length===0?null:E.jsx("div",{className:"console-op-group",children:c.map(({name:f,option:d})=>{const h=di(d.color),S=f===yy;return E.jsx("button",{type:"button",className:"console-op-button",style:{color:h.fg,borderColor:h.border,backgroundColor:h.bg},onClick:()=>S?o(d):i(d),children:d.name},d.id)})})},Ub=s=>s.name.toLowerCase().includes("no story"),wb=({storyOptions:s,onSetStory:i})=>{const o=s.filter(c=>!Ub(c));return o.length===0?null:E.jsx("div",{className:"console-op-group console-op-group-stories",children:o.map(c=>{const f=di(c.color);return E.jsx("button",{type:"button",className:"console-op-button",style:{color:f.fg,borderColor:f.border,backgroundColor:f.bg},onClick:()=>i(c),children:c.name},c.id)})})},Lb=({tab:s,item:i,hasPullRequest:o,statusOptions:c,storyOptions:f,handlers:d})=>{const h=s==="triage",S=!i.isPr;return E.jsxs("div",{className:"console-operation-bar",children:[o&&E.jsx(Mb,{onReview:d.onReview}),E.jsx(zb,{isTodoByHuman:by(s),onSetNextActionDate:d.onSetNextActionDate}),h&&E.jsx(wb,{storyOptions:f,onSetStory:d.onSetStory}),E.jsx(Db,{statusOptions:c,onSetStatus:d.onSetStatus,onSetInTmuxByHuman:d.onSetInTmuxByHuman}),S&&E.jsx(Ob,{onClose:d.onClose})]})},uu=(s,i,o,c)=>{const f=i!==null?s.peek(i):void 0,[d,h]=G.useState(f??c),[S,g]=G.useState(i!==null&&f===void 0),[T,z]=G.useState(null);return G.useEffect(()=>{if(i===null||o===null)return;const R=s.peek(i);if(R!==void 0){h(R),g(!1),z(null);return}let C=!1;return g(!0),z(null),s.load(i,o).then(H=>{C||(h(H),g(!1))}).catch(H=>{C||(z(H instanceof Error?H.message:String(H)),g(!1))}),()=>{C=!0}},[s,i,o]),{data:d,isLoading:S,error:T}},jb=[],Vh=[],Kh=[],Hb=[],kb={state:"open",merged:!1,isPullRequest:!1},Bb=(s,i)=>{const o=i!==null?`${i.repo}#${i.number}`:null,c=i!==null?i.url:null,f=(i==null?void 0:i.isPr)??!1,d=uu(s.body,o,c,""),h=uu(s.state,o,c,kb),S=uu(s.comments,o,c,jb),g=uu(s.files,f?o:null,f?c:null,Vh),T=uu(s.commits,f?o:null,f?c:null,Kh),z=uu(s.relatedPrs,f?null:o,f?null:c,Hb),[R,C]=G.useState([]);return G.useEffect(()=>{if(f||z.data.length===0){C([]);return}let H=!1;const I=z.data.map(K=>({pullRequest:K,files:Vh,filesAreLoading:!0,filesError:null,commits:Kh,commitsAreLoading:!0,commitsError:null}));C(I);const F=(K,ct)=>{H||C(J=>J.map(yt=>yt.pullRequest.url===K?{...yt,...ct}:yt))};for(const K of z.data){const ct=K.url;s.files.load(ct,K.url).then(J=>F(K.url,{files:J,filesAreLoading:!1})).catch(J=>F(K.url,{filesAreLoading:!1,filesError:J instanceof Error?J.message:String(J)})),s.commits.load(ct,K.url).then(J=>F(K.url,{commits:J,commitsAreLoading:!1})).catch(J=>F(K.url,{commitsAreLoading:!1,commitsError:J instanceof Error?J.message:String(J)}))}return()=>{H=!0}},[s,f,z.data]),{state:h.data,body:d.data,bodyIsLoading:d.isLoading,bodyError:d.error,comments:S.data,commentsAreLoading:S.isLoading,commentsError:S.error,files:g.data,filesAreLoading:g.isLoading,filesError:g.error,commits:T.data,commitsAreLoading:T.isLoading,commitsError:T.error,relatedPullRequests:R}},qb=({tab:s,item:i,caches:o,operations:c,statusOptions:f,storyOptions:d,storyColors:h,storyName:S,overlayStatus:g,now:T,onQueueAction:z})=>{const R=Bb(o,i),{token:C}=Kc(),H=G.useCallback(J=>Ky(J,C),[C]),I=i.isPr||R.relatedPullRequests.length>0,F={onReview:J=>{var st;const yt=i.isPr?i.url:((st=R.relatedPullRequests[0])==null?void 0:st.pullRequest.url)??i.url;z({kind:{type:"review",action:J},item:i,commit:()=>{c.reviewPullRequest(i,yt,J)}})},onSetNextActionDate:J=>{z({kind:{type:"next_action_date",action:J},item:i,commit:()=>{c.setNextActionDate(i,J)}})},onSetStory:J=>{z({kind:{type:"set_story",optionName:J.name},item:i,commit:()=>{c.setStory(i,J)}})},onSetStatus:J=>{z({kind:{type:"set_status",optionName:J.name},item:i,commit:()=>{c.setStatus(i,J)}})},onSetInTmuxByHuman:J=>{z({kind:{type:"set_in_tmux_by_human",optionName:J.name},item:i,commit:()=>{c.setInTmuxByHuman(i,J)}})},onClose:J=>{z({kind:{type:"close",action:J},item:i,commit:()=>{c.closeIssue(i,J)}})}},K=S??(i.story.trim()!==""?i.story:null),ct=K!==null?Jh(h,K):null;return E.jsx(Nb,{item:i,storyName:K,storyColorEnum:ct,overlayStatus:g,state:R.state,body:R.body,bodyIsLoading:R.bodyIsLoading,bodyError:R.bodyError,comments:R.comments,commentsAreLoading:R.commentsAreLoading,commentsError:R.commentsError,files:R.files,filesAreLoading:R.filesAreLoading,filesError:R.filesError,commits:R.commits,commitsAreLoading:R.commitsAreLoading,commitsError:R.commitsError,relatedPullRequests:R.relatedPullRequests,now:T,buildImageProxyUrl:H,commentComposer:E.jsx(gb,{isPr:i.isPr,now:T,onSubmit:J=>c.addComment(i,J)}),operationBar:E.jsx(Lb,{tab:s,item:i,hasPullRequest:I,statusOptions:f,storyOptions:d,handlers:F})})},Yb=()=>{const s={};for(const i of yl)s[i.name]=0;return s},Gb="console",Zb=()=>{const s=Cy(),{snapshots:i,isLoading:o,error:c}=qy(s),f=my(s),{activeTab:d,selectedItemKey:h,openItem:S,closeItem:g,selectTab:T}=f,z=Ry(s??Gb),R=oy(),C=xy(s,d,z),H=F0(),I=Date.now(),F=G.useMemo(()=>{const k=Yb();for(const X of yl){const bt=i[X.name];bt!==null&&(k[X.name]=vy(bt.items,z.overlay))}return k},[i,z.overlay]),K=i[d],ct=G.useMemo(()=>K===null?[]:Sy(K.items,z.overlay),[K,z.overlay]),J=G.useMemo(()=>ct.map(k=>Fl(k)),[ct]),yt=G.useMemo(()=>k0(ct,z.overlay),[ct,z.overlay]),st=(K==null?void 0:K.storyColors)??{},Nt=(K==null?void 0:K.statusOptions)??[],pt=(K==null?void 0:K.storyOptions)??[],tt=(K==null?void 0:K.generatedAt)??null,Mt=G.useMemo(()=>h===null||K===null?null:K.items.find(k=>k.projectItemId===h)??null,[h,K]),Pt=F[d],te=G.useRef({tab:d,count:Pt});G.useEffect(()=>{const k=te.current;if(te.current={tab:d,count:Pt},k.tab===d&&k.count>0&&Pt===0){const X=Xy(d,F);X!==null&&(T(X),g())}},[d,Pt,F,T,g]);const he=(()=>{if(Mt===null)return null;const k=z.overlay[Fl(Mt)];return(k==null?void 0:k.status)??null})(),Bt=Mt!==null?mr(Mt,z.overlay):null,Ue=G.useCallback(k=>{const X=Yy(J,k);X!==null?S(X):g()},[J,S,g]),jt=G.useCallback(k=>{const X=Fl(k.item);H.enqueue({message:$0(k.kind,k.item,d),color:K0(k.kind),commit:k.commit,advance:()=>{J0(k.kind,d)&&Ue(X)}})},[H,d,Ue]),$t=G.useCallback(k=>{if(h===null||k===null)return;const X=k==="next"?Gy(J,h):Zy(J,h);X!==null&&S(X)},[h,J,S]),D=jy($t);return E.jsxs("main",{className:"console-app",children:[H.pending!==null&&E.jsx(X0,{message:H.pending.message,color:H.pending.color,remainingSeconds:H.pending.remainingSeconds,progress:H.pending.progress,onUndo:H.undo}),E.jsx(j0,{activeTab:d,counts:F,pjcode:s,generatedAt:tt,tabHref:f.tabHref,onSelectTab:f.selectTab}),Mt===null?E.jsx(Z0,{rows:yt,storyColors:st,activeItemId:null,now:I,isLoading:o,error:c,onSelectItem:k=>f.openItem(k.projectItemId)}):E.jsxs("div",{className:"console-detail-screen",ref:D,children:[E.jsx("button",{type:"button",className:"console-back-button",onClick:g,children:"← Back to list"}),E.jsx(qb,{tab:d,item:Mt,caches:R,operations:C,statusOptions:Nt,storyOptions:pt,storyColors:st,storyName:Bt,overlayStatus:he,now:I,onQueueAction:jt})]})]})},vp=document.getElementById("root");if(vp===null)throw new Error("Root container #root not found");w0.createRoot(vp).render(E.jsx(G.StrictMode,{children:E.jsx(Zb,{})}));
|
|
101
|
+
`)[0],bp=({commits:s,isLoading:i,error:o,now:c})=>o!==null?E.jsxs("p",{role:"alert",className:"console-commits-error",children:["Failed to load commits: ",o]}):i?E.jsx("p",{className:"console-commits-loading",children:"Loading commits..."}):s.length===0?E.jsx("p",{className:"console-commits-empty",children:"No commits."}):E.jsx("ul",{className:"console-commits",children:s.map(f=>E.jsxs("li",{className:"console-commit",children:[E.jsx("span",{className:"console-commit-message",children:_b(f.message)}),E.jsx("span",{className:"console-commit-sha",children:Ab(f.sha)}),E.jsx("span",{className:"console-commit-author",children:f.author}),E.jsx("span",{className:"console-commit-time",children:mi(f.authoredAt,c)})]},f.sha))}),xb=({pullRequest:s,body:i,bodyIsLoading:o,files:c,filesAreLoading:f,filesError:d,commits:h,commitsAreLoading:S,commitsError:g,now:T,buildImageProxyUrl:z})=>{const R=s.summary,C=f||d!==null?null:c.length,H=S||g!==null?null:h.length;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"console-pr-header",children:[E.jsx("a",{href:s.url,className:"console-pr-section-title",target:"_blank",rel:"noopener noreferrer",children:(R==null?void 0:R.title)??s.url}),s.isDraft&&E.jsx("span",{className:"console-pr-section-state",children:"draft"}),E.jsxs("div",{className:"console-pr-statbar",children:[s.branchName!==null&&E.jsx("span",{className:"console-pr-branch",children:s.branchName}),R!==null&&E.jsxs(E.Fragment,{children:[E.jsxs("span",{className:"console-pr-add",children:["+",R.additions]}),E.jsxs("span",{className:"console-pr-del",children:["-",R.deletions]}),E.jsxs("span",{className:"console-pr-files-count",children:[R.changedFiles," files"]})]})]})]}),E.jsx(sa,{title:"Description",defaultCollapsed:!0,children:o?E.jsx("p",{className:"console-pr-body-loading",children:"Loading description..."}):E.jsx($c,{body:(R==null?void 0:R.body)??i,buildImageProxyUrl:z})}),E.jsx(sa,{title:"Changed files",count:C,children:E.jsx(yp,{files:c,isLoading:f,error:d})}),E.jsx(sa,{title:"Commits",count:H,defaultCollapsed:!0,children:E.jsx(bp,{commits:h,isLoading:S,error:g,now:T})})]})},Nb=({item:s,storyName:i,storyColorEnum:o,overlayStatus:c,state:f,body:d,bodyIsLoading:h,bodyError:S,comments:g,commentsAreLoading:T,commentsError:z,files:R,filesAreLoading:C,filesError:H,commits:I,commitsAreLoading:F,commitsError:K,relatedPullRequests:ct,now:J,commentComposer:yt,operationBar:st,buildImageProxyUrl:Nt})=>{const pt=(f==null?void 0:f.state)??"open",tt=(f==null?void 0:f.merged)??!1,Mt=!s.isPr&&pt==="closed"?"Closed":null,Pt=di(o),te=c?di(c.color):null,he=C||H!==null?null:R.length,Bt=T||z!==null?null:g.length,Ue=F||K!==null?null:I.length;return E.jsxs("article",{className:"console-detail",children:[i!==null&&E.jsx("div",{className:"console-detail-story",children:E.jsxs("span",{className:"console-storytag",children:[E.jsx("span",{className:"console-story-dot",style:{backgroundColor:Pt.dot}}),i]})}),c!==null&&te!==null&&E.jsx("span",{className:"console-detail-status-chip",style:{color:te.fg,borderColor:te.border,backgroundColor:te.bg},children:c.name}),E.jsxs("h2",{className:"console-detail-title",children:[E.jsx(Fh,{isPr:s.isPr,state:pt,merged:tt,isDraft:!1,stateReason:""}),E.jsx("span",{className:"console-detail-title-text",children:s.title}),E.jsx("span",{className:"console-detail-number",children:s.isPr?`PR #${s.number}`:`#${s.number}`}),Mt!==null&&E.jsx("span",{className:"console-detail-closed-label",children:Mt})]}),E.jsxs("div",{className:"console-detail-subbar",children:[E.jsx("a",{href:s.url,className:"console-detail-link",target:"_blank",rel:"noopener noreferrer",children:s.isPr?`PR #${s.number}`:`Issue #${s.number}`}),E.jsx("span",{className:"console-detail-repo",children:s.repo}),E.jsx("span",{className:"console-detail-pill",children:s.isPr?"PR":"Issue"})]}),s.labels.length>0&&E.jsx("div",{className:"console-detail-labels",children:s.labels.map(jt=>E.jsx("span",{className:"console-label-chip",children:jt},jt))}),E.jsxs("div",{className:"console-detail-createdat",title:Sr(s.createdAt),children:["opened ",mi(s.createdAt,J)]}),E.jsx(sa,{title:"Description",headerAction:E.jsx("a",{href:s.url,className:"console-panel-open-link",target:"_blank",rel:"noopener noreferrer",children:"open"}),children:S!==null?E.jsxs("p",{role:"alert",className:"console-detail-body-error",children:["Failed to load description: ",S]}):h?E.jsx("p",{className:"console-detail-body-loading",children:"Loading description..."}):E.jsx($c,{body:d,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Changed files",count:he,children:E.jsx(yp,{files:R,isLoading:C,error:H})}),E.jsx(sa,{title:"Comments",count:Bt,defaultCollapsed:s.isPr,children:E.jsx(Eb,{comments:g,isLoading:T,error:z,now:J,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Commits",count:Ue,defaultCollapsed:!0,children:E.jsx(bp,{commits:I,isLoading:F,error:K,now:J})}),!s.isPr&&ct.map(jt=>{var $t;return E.jsx(xb,{pullRequest:jt.pullRequest,body:(($t=jt.pullRequest.summary)==null?void 0:$t.body)??"",bodyIsLoading:!1,files:jt.files,filesAreLoading:jt.filesAreLoading,filesError:jt.filesError,commits:jt.commits,commitsAreLoading:jt.commitsAreLoading,commitsError:jt.commitsError,now:J,buildImageProxyUrl:Nt},jt.pullRequest.url)}),yt,E.jsx("div",{className:"console-actionbar",children:st})]})},Ob=({onClose:s})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close_not_planned"),children:"Close as not planned"}),E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close"),children:"Close"})]}),zb=({isTodoByHuman:s,onSetNextActionDate:i})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1day"),children:"+1 day"}),E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1week"),children:s?"+1 week and skip":"+1 week"})]}),Rb=[{action:"unnecessary",label:"Unnecessary",variant:"unneeded"},{action:"totally_wrong",label:"Totally wrong",variant:"wrong"},{action:"request_changes",label:"Reject",variant:"reject"},{action:"approve",label:"Approve",variant:"approve"}],Mb=({onReview:s})=>E.jsx("div",{className:"console-op-group console-op-group-review",children:Rb.map(i=>E.jsx("button",{type:"button",className:`console-op-button console-op-button-${i.variant}`,onClick:()=>s(i.action),children:i.label},i.action))}),Cb=(s,i)=>{const o=i.toLowerCase();return s.find(c=>c.name.toLowerCase()===o)??null},Db=({statusOptions:s,onSetStatus:i,onSetInTmuxByHuman:o})=>{const c=gy.map(f=>({name:f,option:Cb(s,f)})).filter(f=>f.option!==null);return c.length===0?null:E.jsx("div",{className:"console-op-group",children:c.map(({name:f,option:d})=>{const h=di(d.color),S=f===yy;return E.jsx("button",{type:"button",className:"console-op-button",style:{color:h.fg,borderColor:h.border,backgroundColor:h.bg},onClick:()=>S?o(d):i(d),children:d.name},d.id)})})},Ub=s=>s.name.toLowerCase().includes("no story"),wb=({storyOptions:s,onSetStory:i})=>{const o=s.filter(c=>!Ub(c));return o.length===0?null:E.jsx("div",{className:"console-op-group console-op-group-stories",children:o.map(c=>{const f=di(c.color);return E.jsx("button",{type:"button",className:"console-op-button",style:{color:f.fg,borderColor:f.border,backgroundColor:f.bg},onClick:()=>i(c),children:c.name},c.id)})})},Lb=({tab:s,item:i,hasPullRequest:o,statusOptions:c,storyOptions:f,handlers:d})=>{const h=s==="triage",S=!i.isPr;return E.jsxs("div",{className:"console-operation-bar",children:[o&&E.jsx(Mb,{onReview:d.onReview}),E.jsx(zb,{isTodoByHuman:by(s),onSetNextActionDate:d.onSetNextActionDate}),h&&E.jsx(wb,{storyOptions:f,onSetStory:d.onSetStory}),E.jsx(Db,{statusOptions:c,onSetStatus:d.onSetStatus,onSetInTmuxByHuman:d.onSetInTmuxByHuman}),S&&E.jsx(Ob,{onClose:d.onClose})]})},uu=(s,i,o,c)=>{const f=i!==null?s.peek(i):void 0,[d,h]=G.useState(f??c),[S,g]=G.useState(i!==null&&f===void 0),[T,z]=G.useState(null);return G.useEffect(()=>{if(i===null||o===null)return;const R=s.peek(i);if(R!==void 0){h(R),g(!1),z(null);return}let C=!1;return g(!0),z(null),s.load(i,o).then(H=>{C||(h(H),g(!1))}).catch(H=>{C||(z(H instanceof Error?H.message:String(H)),g(!1))}),()=>{C=!0}},[s,i,o]),{data:d,isLoading:S,error:T}},jb=[],Vh=[],Kh=[],Hb=[],kb={state:"open",merged:!1,isPullRequest:!1},Bb=(s,i)=>{const o=i!==null?`${i.repo}#${i.number}`:null,c=i!==null?i.url:null,f=(i==null?void 0:i.isPr)??!1,d=uu(s.body,o,c,""),h=uu(s.state,o,c,kb),S=uu(s.comments,o,c,jb),g=uu(s.files,f?o:null,f?c:null,Vh),T=uu(s.commits,f?o:null,f?c:null,Kh),z=uu(s.relatedPrs,f?null:o,f?null:c,Hb),[R,C]=G.useState([]);return G.useEffect(()=>{if(f||z.data.length===0){C([]);return}let H=!1;const I=z.data.map(K=>({pullRequest:K,files:Vh,filesAreLoading:!0,filesError:null,commits:Kh,commitsAreLoading:!0,commitsError:null}));C(I);const F=(K,ct)=>{H||C(J=>J.map(yt=>yt.pullRequest.url===K?{...yt,...ct}:yt))};for(const K of z.data){const ct=K.url;s.files.load(ct,K.url).then(J=>F(K.url,{files:J,filesAreLoading:!1})).catch(J=>F(K.url,{filesAreLoading:!1,filesError:J instanceof Error?J.message:String(J)})),s.commits.load(ct,K.url).then(J=>F(K.url,{commits:J,commitsAreLoading:!1})).catch(J=>F(K.url,{commitsAreLoading:!1,commitsError:J instanceof Error?J.message:String(J)}))}return()=>{H=!0}},[s,f,z.data]),{state:h.data,body:d.data,bodyIsLoading:d.isLoading,bodyError:d.error,comments:S.data,commentsAreLoading:S.isLoading,commentsError:S.error,files:g.data,filesAreLoading:g.isLoading,filesError:g.error,commits:T.data,commitsAreLoading:T.isLoading,commitsError:T.error,relatedPullRequests:R}},qb=({tab:s,item:i,caches:o,operations:c,statusOptions:f,storyOptions:d,storyColors:h,storyName:S,overlayStatus:g,now:T,onQueueAction:z})=>{const R=Bb(o,i),{token:C}=Kc(),H=G.useCallback(J=>Ky(J,C),[C]),I=i.isPr||R.relatedPullRequests.length>0,F={onReview:J=>{var st;const yt=i.isPr?i.url:((st=R.relatedPullRequests[0])==null?void 0:st.pullRequest.url)??i.url;z({kind:{type:"review",action:J},item:i,commit:()=>{c.reviewPullRequest(i,yt,J)}})},onSetNextActionDate:J=>{z({kind:{type:"next_action_date",action:J},item:i,commit:()=>{c.setNextActionDate(i,J)}})},onSetStory:J=>{z({kind:{type:"set_story",optionName:J.name},item:i,commit:()=>{c.setStory(i,J)}})},onSetStatus:J=>{z({kind:{type:"set_status",optionName:J.name},item:i,commit:()=>{c.setStatus(i,J)}})},onSetInTmuxByHuman:J=>{z({kind:{type:"set_in_tmux_by_human",optionName:J.name},item:i,commit:()=>{c.setInTmuxByHuman(i,J)}})},onClose:J=>{z({kind:{type:"close",action:J},item:i,commit:()=>{c.closeIssue(i,J)}})}},K=S??(i.story.trim()!==""?i.story:null),ct=K!==null?Jh(h,K):null;return E.jsx(Nb,{item:i,storyName:K,storyColorEnum:ct,overlayStatus:g,state:R.state,body:R.body,bodyIsLoading:R.bodyIsLoading,bodyError:R.bodyError,comments:R.comments,commentsAreLoading:R.commentsAreLoading,commentsError:R.commentsError,files:R.files,filesAreLoading:R.filesAreLoading,filesError:R.filesError,commits:R.commits,commitsAreLoading:R.commitsAreLoading,commitsError:R.commitsError,relatedPullRequests:R.relatedPullRequests,now:T,buildImageProxyUrl:H,commentComposer:E.jsx(gb,{isPr:i.isPr,now:T,onSubmit:J=>c.addComment(i,J)}),operationBar:E.jsx(Lb,{tab:s,item:i,hasPullRequest:I,statusOptions:f,storyOptions:d,handlers:F})})},Yb=()=>{const s={};for(const i of yl)s[i.name]=0;return s},Gb="console",Zb=()=>{const s=Cy(),{snapshots:i,isLoading:o,error:c}=qy(s),f=my(s),{activeTab:d,selectedItemKey:h,openItem:S,closeItem:g,selectTab:T}=f,z=Ry(s??Gb),R=oy(),C=xy(s,d,z),H=F0(),I=Date.now(),F=G.useMemo(()=>{const k=Yb();for(const X of yl){const bt=i[X.name];bt!==null&&(k[X.name]=vy(bt.items,z.overlay))}return k},[i,z.overlay]),K=i[d],ct=G.useMemo(()=>K===null?[]:Sy(K.items,z.overlay),[K,z.overlay]),J=G.useMemo(()=>ct.map(k=>Fl(k)),[ct]),yt=G.useMemo(()=>k0(ct,z.overlay),[ct,z.overlay]),st=(K==null?void 0:K.storyColors)??{},Nt=(K==null?void 0:K.statusOptions)??[],pt=(K==null?void 0:K.storyOptions)??[],tt=(K==null?void 0:K.generatedAt)??null,Mt=G.useMemo(()=>h===null||K===null?null:K.items.find(k=>k.projectItemId===h)??null,[h,K]),Pt=F[d],te=G.useRef({tab:d,count:Pt});G.useEffect(()=>{const k=te.current;if(te.current={tab:d,count:Pt},k.tab===d&&k.count>0&&Pt===0){const X=Xy(d,F);X!==null&&(T(X),g())}},[d,Pt,F,T,g]);const he=(()=>{if(Mt===null)return null;const k=z.overlay[Fl(Mt)];return(k==null?void 0:k.status)??null})(),Bt=Mt!==null?mr(Mt,z.overlay):null,Ue=G.useCallback(k=>{const X=Yy(J,k);X!==null?S(X):g()},[J,S,g]),jt=G.useCallback(k=>{const X=Fl(k.item);H.enqueue({message:$0(k.kind,k.item,d),color:K0(k.kind),commit:k.commit,advance:()=>{J0(k.kind,d)&&Ue(X)}})},[H,d,Ue]),$t=G.useCallback(k=>{if(h===null||k===null)return;const X=k==="next"?Gy(J,h):Zy(J,h);X!==null&&S(X)},[h,J,S]),D=jy($t);return E.jsxs("main",{className:"console-app",children:[H.pending!==null&&E.jsx(X0,{message:H.pending.message,color:H.pending.color,remainingSeconds:H.pending.remainingSeconds,progress:H.pending.progress,onUndo:H.undo}),E.jsx(j0,{activeTab:d,counts:F,pjcode:s,generatedAt:tt,tabHref:f.tabHref,onSelectTab:f.selectTab}),Mt===null?E.jsx(Z0,{rows:yt,storyColors:st,activeItemId:null,now:I,isLoading:o,error:c,onSelectItem:k=>f.openItem(k.projectItemId)}):E.jsxs("div",{className:"console-detail-screen",ref:D,children:[E.jsx("button",{type:"button",className:"console-back-button",onClick:g,children:"← Back to list"}),E.jsx(qb,{tab:d,item:Mt,caches:R,operations:C,statusOptions:Nt,storyOptions:pt,storyColors:st,storyName:Bt,overlayStatus:he,now:I,onQueueAction:jt})]})]})},vp=document.getElementById("root");if(vp===null)throw new Error("Root container #root not found");w0.createRoot(vp).render(E.jsx(G.StrictMode,{children:E.jsx(Zb,{})}));
|
package/bin/adapter/entry-points/console/ui-dist/assets/{index-CdQeHptu.css → index-CzVHU81K.css}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-input:#e5e5e5;--color-ring:#0a0a0a;--color-background:#fff;--color-foreground:#0a0a0a;--color-primary:#171717;--color-primary-foreground:#fafafa;--color-secondary:#f5f5f5;--color-secondary-foreground:#171717;--color-accent:#f5f5f5;--color-accent-foreground:#171717}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.hidden{display:none}.inline-flex{display:inline-flex}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-input{border-color:var(--color-input)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--color-background)}.bg-primary{background-color:var(--color-primary)}.bg-secondary{background-color:var(--color-secondary)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-foreground{color:var(--color-foreground)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.lowercase{text-transform:lowercase}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-primary\/90:hover{background-color:#171717e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--color-primary) 90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:#f5f5f5cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--color-secondary) 80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}}body{color:#e6edf3;background-color:#0d1117;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.console-app{flex-direction:column;max-width:920px;margin:0 auto;display:flex}.console-tabbar{-webkit-overflow-scrolling:touch;background:#161b22;border-bottom:2px solid #30363d;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:42px;padding:0 8px;display:flex;overflow-x:auto}.console-tab{color:#8b949e;white-space:nowrap;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 14px;font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;display:inline-flex}.console-tab:hover{color:#e6edf3}.console-tab[data-active=true]{color:#e6edf3;border-bottom-color:#2f81f7;font-weight:700}.console-tab-badge{text-align:center;color:#e6edf3;background:#484f58;border-radius:20px;min-width:20px;padding:1px 7px;font-size:11px;font-weight:700;line-height:1.5}.console-tab-badge[data-zero=true]{color:#8b949e;background:#30363d}.console-tab-pjname{color:#8b949e;align-self:center;margin-left:auto;padding:0 8px;font-size:11.5px}.console-tab-geninfo{color:#8b949e;align-self:center;padding:0 4px;font-size:11px}.console-tab-count-heading{color:#8b949e;margin:0;padding:12px 18px 0;font-size:13px}.console-list{margin:0;padding:12px 18px 18px;list-style:none}.console-list-group{list-style:none}.console-item-row .console-item-icon{flex:none;margin-top:3px}.console-group-header{background:#0b0f14;border-bottom:1px solid #21262d;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-storytag{align-items:center;gap:8px;font-size:13px;font-weight:700;display:inline-flex}.console-story-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.console-group-count{color:#8b949e;font-size:12px}.console-item-row{color:#e6edf3;text-align:left;cursor:pointer;background:#161b22;border:1px solid #30363d;border-radius:8px;align-items:flex-start;gap:14px;width:100%;margin-bottom:10px;padding:12px 16px;display:flex}.console-item-row:hover{background:#1a2029;border-color:#484f58}.console-item-row[data-active=true]{background:#1a2029;border-color:#4493f8}.console-item-meta{flex:1;min-width:0}.console-item-title{font-size:14.5px;font-weight:600;display:block}.console-item-sub{color:#8b949e;margin-top:3px;font-size:12.5px;display:block}.console-item-pill{color:#8b949e;border:1px solid #30363d;border-radius:20px;margin-right:6px;padding:1px 8px;font-size:11px;display:inline-block}.console-item-createdat{color:#8b949e;cursor:help}.console-list-message{color:#8b949e;padding:16px;font-size:14px}.console-list-empty{text-align:center;color:#8b949e;padding:40px;font-size:14px}.console-list-error,.console-comment-error,.console-files-error,.console-commits-error,.console-detail-body-error{color:#f85149}.console-detail{flex-direction:column;gap:12px;padding:16px;display:flex}.console-detail-title{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.console-detail-title-text{flex:1}.console-detail-number{color:#8b949e;font-weight:400}.console-detail-closed-label{color:#a371f7;font-size:13px}.console-detail-subbar{align-items:center;gap:12px;font-size:13px;display:flex}.console-detail-link{color:#4493f8}.console-detail-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-detail-pill,.console-label-chip,.console-detail-status-chip{border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.console-detail-labels{flex-wrap:wrap;gap:6px;display:flex}.console-detail-createdat{color:#8b949e;font-size:12px}.console-panel{border:1px solid #30363d;border-radius:8px;overflow:hidden}.console-panel-header{background:#161b22;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-panel-toggle{color:#e6edf3;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.console-panel-body{padding:12px}.console-markdown{word-break:break-word;font-size:14px;line-height:1.5}.console-mermaid-error{color:#f85149;font-size:13px}.console-comment{border-top:1px solid #21262d;padding-top:8px}.console-comment-header{color:#8b949e;gap:8px;font-size:12px;display:flex}.console-comment-author{color:#e6edf3;font-weight:600}.console-files,.console-commits{margin:0;padding:0;list-style:none}.console-commit{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file{flex-direction:column;font-size:13px;display:flex}.console-file-badge{text-align:center;border:1px solid;border-radius:4px;width:18px;font-size:11px}.console-file-path,.console-commit-message{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-add,.console-pr-add{color:#3fb950}.console-file-del,.console-pr-del{color:#f85149}.console-commit-sha{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-actionbar{z-index:100;background:#161b22;border-top:2px solid #30363d;padding:10px 16px;position:fixed;bottom:0;left:0;right:0}.console-operation-bar{flex-direction:column;gap:8px;max-width:920px;margin:0 auto;display:flex}.console-op-group{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.console-op-group-review{gap:10px}.console-op-group-stories{max-height:50vh;overflow-y:auto}.console-op-button{color:#e6edf3;white-space:nowrap;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-op-button:hover{border-color:#484f58}.console-op-button-approve{color:#fff;background:#238636;border-color:#2ea043}.console-op-button-reject{color:#ffd166;background:#7d5000;border-color:#a06800}.console-op-button-wrong{color:#f85149;background:#3a1518;border-color:#f85149}.console-op-button-unneeded{color:#aab0b8;background:#2a2d31;border-color:#6e7681}.console-op-button-snooze{color:#79c0ff;background:#1c2b4a;border-color:#4493f8}.console-pr-section{border:1px solid #30363d;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.console-pr-statbar{color:#8b949e;gap:12px;font-size:12px;display:flex}.console-detail-screen{padding-bottom:140px}.console-panel-open-link{color:#4493f8;font-size:13px;font-weight:400}.console-composer{margin-top:4px}.console-composer-toggle{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:2px 0;font-size:12.5px}.console-composer-toggle:hover{color:#e6edf3}.console-composer-posted{flex-direction:column;gap:8px;margin-top:8px;display:flex}.console-composer-form{margin-top:8px}.console-composer-input{box-sizing:border-box;color:#e6edf3;width:100%;font:inherit;resize:vertical;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:8px;font-size:14px}.console-composer-row{align-items:center;gap:8px;margin-top:6px;display:flex}.console-composer-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-composer-submit:disabled{opacity:.6;cursor:default}.console-composer-status{color:#8b949e;font-size:12px}.console-composer-error{color:#f85149}.console-undo-toast{z-index:9998;white-space:nowrap;border-radius:10px;align-items:center;gap:12px;max-width:92vw;padding:12px 18px;font-size:13.5px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0009}.console-undo-toast-green{color:#3fb950;background:#0d3320;border:1px solid #2ea043}.console-undo-toast-amber{color:#ffd166;background:#3a2800;border:1px solid #a06800}.console-undo-toast-red{color:#f85149;background:#3a1518;border:1px solid #da3633}.console-undo-toast-gray{color:#aab0b8;background:#2a2d31;border:1px solid #6e7681}.console-undo-toast-blue{color:#79c0ff;background:#0d1f40;border:1px solid #4493f8}.console-undo-toast-error{color:#f85149;background:#3a1518;border:1px solid #f85149}.console-undo-toast-message{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.console-undo-toast-undo{cursor:pointer;color:inherit;background:#ffffff1f;border:none;border-radius:6px;flex:none;padding:4px 12px;font-size:13px;font-weight:700}.console-undo-toast-undo:hover{background:#ffffff38}.console-undo-toast-countdown{opacity:.7;flex:none;font-size:11px}.console-undo-toast-bar{opacity:.5;background:currentColor;border-radius:0 0 10px 10px;height:3px;transition:width .1s linear;position:absolute;bottom:0;left:0}.console-file-row{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file-row:hover{background:#1a2029}.console-file-caret{color:#8b949e;flex:none;width:1em}.console-file-diff{border-collapse:collapse;width:100%;margin:4px 0 8px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-diff td{white-space:pre-wrap;word-break:break-word;vertical-align:top;padding:0 10px}.console-diff-ln{text-align:right;color:#6e7681;-webkit-user-select:none;user-select:none;white-space:nowrap;border-right:1px solid #30363d;width:1%;padding:0 8px}.console-diff-add td{background:#2ea04326}.console-diff-add .console-diff-code{color:#aff5b4}.console-diff-del td{background:#f8514926}.console-diff-del .console-diff-code{color:#ffdcd7}.console-diff-hunk td{color:#79c0ff;background:#161b22}.console-diff-ctx .console-diff-code{color:#c9d1d9}.console-file-diff-empty{color:#8b949e;padding:8px 14px;font-size:12px}.console-pr-header{flex-wrap:wrap;align-items:center;gap:10px;padding-top:4px;display:flex}.console-pr-section-title{color:#e6edf3;font-size:15px;font-weight:600}.console-pr-section-state{color:#8b949e;border:1px solid #6e7681;border-radius:999px;padding:1px 8px;font-size:11px}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
1
|
+
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-input:#e5e5e5;--color-ring:#0a0a0a;--color-background:#fff;--color-foreground:#0a0a0a;--color-primary:#171717;--color-primary-foreground:#fafafa;--color-secondary:#f5f5f5;--color-secondary-foreground:#171717;--color-accent:#f5f5f5;--color-accent-foreground:#171717}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.hidden{display:none}.inline-flex{display:inline-flex}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-input{border-color:var(--color-input)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--color-background)}.bg-primary{background-color:var(--color-primary)}.bg-secondary{background-color:var(--color-secondary)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-foreground{color:var(--color-foreground)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.lowercase{text-transform:lowercase}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-primary\/90:hover{background-color:#171717e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--color-primary) 90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:#f5f5f5cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--color-secondary) 80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}}body{color:#e6edf3;background-color:#0d1117;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.console-app{flex-direction:column;max-width:920px;margin:0 auto;display:flex}.console-tabbar{-webkit-overflow-scrolling:touch;background:#161b22;border-bottom:2px solid #30363d;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:42px;padding:0 8px;display:flex;overflow-x:auto}.console-tab{color:#8b949e;white-space:nowrap;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 14px;font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;display:inline-flex}.console-tab:hover{color:#e6edf3}.console-tab[data-active=true]{color:#e6edf3;border-bottom-color:#2f81f7;font-weight:700}.console-tab-badge{text-align:center;color:#e6edf3;background:#484f58;border-radius:20px;min-width:20px;padding:1px 7px;font-size:11px;font-weight:700;line-height:1.5}.console-tab-badge[data-zero=true]{color:#8b949e;background:#30363d}.console-tab-pjname{color:#8b949e;align-self:center;margin-left:auto;padding:0 8px;font-size:11.5px}.console-tab-geninfo{color:#8b949e;align-self:center;padding:0 4px;font-size:11px}.console-tab-count-heading{color:#8b949e;margin:0;padding:12px 18px 0;font-size:13px}.console-list{margin:0;padding:12px 18px 18px;list-style:none}.console-list-group{list-style:none}.console-item-row .console-item-icon{flex:none;margin-top:3px}.console-group-header{background:#0b0f14;border-bottom:1px solid #21262d;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-storytag{align-items:center;gap:8px;font-size:13px;font-weight:700;display:inline-flex}.console-story-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.console-group-count{color:#8b949e;font-size:12px}.console-item-row{color:#e6edf3;text-align:left;cursor:pointer;background:#161b22;border:1px solid #30363d;border-radius:8px;align-items:flex-start;gap:14px;width:100%;margin-bottom:10px;padding:12px 16px;display:flex}.console-item-row:hover{background:#1a2029;border-color:#484f58}.console-item-row[data-active=true]{background:#1a2029;border-color:#4493f8}.console-item-meta{flex:1;min-width:0}.console-item-title{font-size:14.5px;font-weight:600;display:block}.console-item-sub{color:#8b949e;margin-top:3px;font-size:12.5px;display:block}.console-item-pill{color:#8b949e;border:1px solid #30363d;border-radius:20px;margin-right:6px;padding:1px 8px;font-size:11px;display:inline-block}.console-item-createdat{color:#8b949e;cursor:help}.console-list-message{color:#8b949e;padding:16px;font-size:14px}.console-list-empty{text-align:center;color:#8b949e;padding:40px;font-size:14px}.console-list-error,.console-comment-error,.console-files-error,.console-commits-error,.console-detail-body-error{color:#f85149}.console-detail{flex-direction:column;gap:12px;padding:16px;display:flex}.console-detail-title{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.console-detail-title-text{flex:1}.console-detail-number{color:#8b949e;font-weight:400}.console-detail-closed-label{color:#a371f7;font-size:13px}.console-detail-subbar{align-items:center;gap:12px;font-size:13px;display:flex}.console-detail-link{color:#4493f8}.console-detail-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-detail-pill,.console-label-chip,.console-detail-status-chip{border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.console-detail-labels{flex-wrap:wrap;gap:6px;display:flex}.console-detail-createdat{color:#8b949e;font-size:12px}.console-panel{border:1px solid #30363d;border-radius:8px;overflow:hidden}.console-panel-header{background:#161b22;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-panel-toggle{color:#e6edf3;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.console-panel-body{padding:12px}.console-markdown{word-break:break-word;font-size:14px;line-height:1.5}.console-markdown ul{margin:.5em 0;padding-left:1.5em;list-style:outside}.console-markdown ol{margin:.5em 0;padding-left:1.5em;list-style:decimal}.console-markdown li{margin:.25em 0}.console-markdown table{border-collapse:collapse;margin:.5em 0}.console-markdown th,.console-markdown td{border:1px solid #30363d;padding:4px 8px}.console-markdown th{background:#161b22}.console-mermaid-error{color:#f85149;font-size:13px}.console-comment{border-top:1px solid #21262d;padding-top:8px}.console-comment-header{color:#8b949e;gap:8px;font-size:12px;display:flex}.console-comment-author{color:#e6edf3;font-weight:600}.console-files,.console-commits{margin:0;padding:0;list-style:none}.console-commit{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file{flex-direction:column;font-size:13px;display:flex}.console-file-badge{text-align:center;border:1px solid;border-radius:4px;width:18px;font-size:11px}.console-file-path,.console-commit-message{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-add,.console-pr-add{color:#3fb950}.console-file-del,.console-pr-del{color:#f85149}.console-commit-sha{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-actionbar{z-index:100;background:#161b22;border-top:2px solid #30363d;padding:10px 16px;position:fixed;bottom:0;left:0;right:0}.console-operation-bar{flex-direction:column;gap:8px;max-width:920px;margin:0 auto;display:flex}.console-op-group{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.console-op-group-review{gap:10px}.console-op-group-stories{max-height:50vh;overflow-y:auto}.console-op-button{color:#e6edf3;white-space:nowrap;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-op-button:hover{border-color:#484f58}.console-op-button-approve{color:#fff;background:#238636;border-color:#2ea043}.console-op-button-reject{color:#ffd166;background:#7d5000;border-color:#a06800}.console-op-button-wrong{color:#f85149;background:#3a1518;border-color:#f85149}.console-op-button-unneeded{color:#aab0b8;background:#2a2d31;border-color:#6e7681}.console-op-button-snooze{color:#79c0ff;background:#1c2b4a;border-color:#4493f8}.console-pr-section{border:1px solid #30363d;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.console-pr-statbar{color:#8b949e;gap:12px;font-size:12px;display:flex}.console-detail-screen{padding-bottom:140px}.console-panel-open-link{color:#4493f8;font-size:13px;font-weight:400}.console-composer{margin-top:4px}.console-composer-toggle{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:2px 0;font-size:12.5px}.console-composer-toggle:hover{color:#e6edf3}.console-composer-posted{flex-direction:column;gap:8px;margin-top:8px;display:flex}.console-composer-form{margin-top:8px}.console-composer-input{box-sizing:border-box;color:#e6edf3;width:100%;font:inherit;resize:vertical;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:8px;font-size:14px}.console-composer-row{align-items:center;gap:8px;margin-top:6px;display:flex}.console-composer-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-composer-submit:disabled{opacity:.6;cursor:default}.console-composer-status{color:#8b949e;font-size:12px}.console-composer-error{color:#f85149}.console-undo-toast{z-index:9998;white-space:nowrap;border-radius:10px;align-items:center;gap:12px;max-width:92vw;padding:12px 18px;font-size:13.5px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0009}.console-undo-toast-green{color:#3fb950;background:#0d3320;border:1px solid #2ea043}.console-undo-toast-amber{color:#ffd166;background:#3a2800;border:1px solid #a06800}.console-undo-toast-red{color:#f85149;background:#3a1518;border:1px solid #da3633}.console-undo-toast-gray{color:#aab0b8;background:#2a2d31;border:1px solid #6e7681}.console-undo-toast-blue{color:#79c0ff;background:#0d1f40;border:1px solid #4493f8}.console-undo-toast-error{color:#f85149;background:#3a1518;border:1px solid #f85149}.console-undo-toast-message{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.console-undo-toast-undo{cursor:pointer;color:inherit;background:#ffffff1f;border:none;border-radius:6px;flex:none;padding:4px 12px;font-size:13px;font-weight:700}.console-undo-toast-undo:hover{background:#ffffff38}.console-undo-toast-countdown{opacity:.7;flex:none;font-size:11px}.console-undo-toast-bar{opacity:.5;background:currentColor;border-radius:0 0 10px 10px;height:3px;transition:width .1s linear;position:absolute;bottom:0;left:0}.console-file-row{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file-row:hover{background:#1a2029}.console-file-caret{color:#8b949e;flex:none;width:1em}.console-file-diff{border-collapse:collapse;width:100%;margin:4px 0 8px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-diff td{white-space:pre-wrap;word-break:break-word;vertical-align:top;padding:0 10px}.console-diff-ln{text-align:right;color:#6e7681;-webkit-user-select:none;user-select:none;white-space:nowrap;border-right:1px solid #30363d;width:1%;padding:0 8px}.console-diff-add td{background:#2ea04326}.console-diff-add .console-diff-code{color:#aff5b4}.console-diff-del td{background:#f8514926}.console-diff-del .console-diff-code{color:#ffdcd7}.console-diff-hunk td{color:#79c0ff;background:#161b22}.console-diff-ctx .console-diff-code{color:#c9d1d9}.console-file-diff-empty{color:#8b949e;padding:8px 14px;font-size:12px}.console-pr-header{flex-wrap:wrap;align-items:center;gap:10px;padding-top:4px;display:flex}.console-pr-section-title{color:#e6edf3;font-size:15px;font-weight:600}.console-pr-section-state{color:#8b949e;border:1px solid #6e7681;border-radius:999px;padding:1px 8px;font-size:11px}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>TDPM Console</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BFKRWKvS.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CzVHU81K.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -11,16 +11,16 @@ export const ConsoleCloseActions = ({
|
|
|
11
11
|
<button
|
|
12
12
|
type="button"
|
|
13
13
|
className="console-op-button"
|
|
14
|
-
onClick={() => onClose('
|
|
14
|
+
onClick={() => onClose('close_not_planned')}
|
|
15
15
|
>
|
|
16
|
-
Close
|
|
16
|
+
Close as not planned
|
|
17
17
|
</button>
|
|
18
18
|
<button
|
|
19
19
|
type="button"
|
|
20
20
|
className="console-op-button"
|
|
21
|
-
onClick={() => onClose('
|
|
21
|
+
onClick={() => onClose('close')}
|
|
22
22
|
>
|
|
23
|
-
Close
|
|
23
|
+
Close
|
|
24
24
|
</button>
|
|
25
25
|
</div>
|
|
26
26
|
);
|
|
@@ -19,6 +19,15 @@ describe('renderMarkdownToSafeHtml', () => {
|
|
|
19
19
|
expect(html).toContain('<li>one</li>');
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
+
it('renders GitHub-flavored markdown tables', () => {
|
|
23
|
+
const html = renderMarkdownToSafeHtml(
|
|
24
|
+
'| Name | Value |\n| --- | --- |\n| one | 1 |',
|
|
25
|
+
);
|
|
26
|
+
expect(html).toContain('<table>');
|
|
27
|
+
expect(html).toContain('<th>Name</th>');
|
|
28
|
+
expect(html).toContain('<td>one</td>');
|
|
29
|
+
});
|
|
30
|
+
|
|
22
31
|
it('strips script tags via DOMPurify', () => {
|
|
23
32
|
const html = renderMarkdownToSafeHtml(
|
|
24
33
|
'before <script>alert(1)</script> after',
|
|
@@ -342,6 +342,37 @@ body {
|
|
|
342
342
|
word-break: break-word;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
+
.console-markdown ul {
|
|
346
|
+
list-style: disc;
|
|
347
|
+
padding-left: 1.5em;
|
|
348
|
+
margin: 0.5em 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.console-markdown ol {
|
|
352
|
+
list-style: decimal;
|
|
353
|
+
padding-left: 1.5em;
|
|
354
|
+
margin: 0.5em 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.console-markdown li {
|
|
358
|
+
margin: 0.25em 0;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.console-markdown table {
|
|
362
|
+
border-collapse: collapse;
|
|
363
|
+
margin: 0.5em 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.console-markdown th,
|
|
367
|
+
.console-markdown td {
|
|
368
|
+
border: 1px solid #30363d;
|
|
369
|
+
padding: 4px 8px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.console-markdown th {
|
|
373
|
+
background: #161b22;
|
|
374
|
+
}
|
|
375
|
+
|
|
345
376
|
.console-mermaid-error {
|
|
346
377
|
color: #f85149;
|
|
347
378
|
font-size: 13px;
|
package/src/adapter/entry-points/console/ui-dist/assets/{index-rqxspBmD.js → index-BFKRWKvS.js}
RENAMED
|
@@ -98,4 +98,4 @@ Please report this to https://github.com/markedjs/marked.`,i){const f="<p>An err
|
|
|
98
98
|
`)}),d+=1,c=[])};for(const S of i){if(f===null&&/^```mermaid\s*$/.test(S.trim())){h(),f=[];continue}if(f!==null){if(S.trim()==="```"){o.push({kind:"mermaid",key:`mermaid:${d}`,code:f.join(`
|
|
99
99
|
`)}),d+=1,f=null;continue}f.push(S);continue}c.push(S)}return f!==null&&c.push("```mermaid",...f),h(),o},fb="https://cdn.jsdelivr.net/npm/mermaid@10.9.6/dist/mermaid.min.js";let au=null,Xh=0;const Qh=s=>(s.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeVariables:{background:"#0d1117",primaryColor:"#161b22",primaryTextColor:"#e6edf3",primaryBorderColor:"#30363d",lineColor:"#8b949e",fontSize:"14px"}}),s),db=()=>au!==null?au:window.mermaid!==void 0?(au=Promise.resolve(Qh(window.mermaid)),au):(au=new Promise((s,i)=>{const o=document.createElement("script");o.src=fb,o.async=!0,o.onload=()=>{if(window.mermaid===void 0){i(new Error("mermaid failed to load"));return}s(Qh(window.mermaid))},o.onerror=()=>i(new Error("mermaid script failed to load")),document.head.appendChild(o)}),au),mb=async s=>{const i=await db();Xh+=1;const o=`console-mermaid-${Xh}`,{svg:c}=await i.render(o,s);return up.sanitize(c,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["foreignObject"]})},hb=({code:s})=>{const[i,o]=G.useState({status:"loading"}),c=G.useRef(null);return G.useEffect(()=>{let f=!1;return o({status:"loading"}),mb(s).then(d=>{f||o({status:"ready",svg:d})}).catch(d=>{f||o({status:"error",message:d instanceof Error?d.message:String(d)})}),()=>{f=!0}},[s]),G.useEffect(()=>{const f=c.current;f!==null&&(f.innerHTML=i.status==="ready"?i.svg:"")},[i]),i.status==="loading"?E.jsx("div",{className:"console-mermaid-loading",children:"Rendering diagram..."}):i.status==="error"?E.jsxs("div",{className:"console-mermaid",children:[E.jsxs("div",{className:"console-mermaid-error",children:["Mermaid render error: ",i.message]}),E.jsx("pre",{className:"console-mermaid-source",children:E.jsx("code",{children:s})})]}):E.jsx("div",{ref:c,className:"console-mermaid-rendered"})},pb=({source:s,buildImageProxyUrl:i})=>{const o=G.useMemo(()=>{const f=ob(s);return i===void 0?f:Jy(f,i)},[s,i]),c=G.useRef(null);return G.useEffect(()=>{const f=c.current;f!==null&&(f.innerHTML=o)},[o]),E.jsx("div",{ref:c,className:"console-markdown"})},$c=({body:s,buildImageProxyUrl:i})=>{const o=G.useMemo(()=>rb(s),[s]);return s.trim()===""?E.jsx("p",{className:"console-markdown-empty",children:"No description provided."}):E.jsx("div",{className:"console-markdown-view",children:o.map(c=>c.kind==="mermaid"?E.jsx(hb,{code:c.code},c.key):E.jsx(pb,{source:c.source,buildImageProxyUrl:i},c.key))})},gb=({isPr:s,now:i,onSubmit:o})=>{const[c,f]=G.useState(!s),[d,h]=G.useState(""),[S,g]=G.useState({kind:"idle"}),[T,z]=G.useState([]),R=async()=>{const C=d.trim();if(!(C.length===0||S.kind==="posting")){g({kind:"posting"});try{const H=await o(C);z(I=>[...I,H]),h(""),g({kind:"idle"})}catch(H){g({kind:"error",message:H instanceof Error?H.message:"failed to post"})}}};return E.jsxs("div",{className:"console-composer",children:[E.jsx("button",{type:"button",className:"console-composer-toggle","aria-expanded":c,onClick:()=>f(C=>!C),children:c?"✕ Cancel":"💬 Add a comment"}),T.length>0&&E.jsx("div",{className:"console-composer-posted",children:T.map(C=>E.jsxs("article",{className:"console-comment",children:[E.jsxs("header",{className:"console-comment-header",title:Sr(C.createdAt),children:[E.jsx("span",{className:"console-comment-author",children:C.author===""?"you":C.author}),E.jsx("span",{className:"console-comment-time",children:mi(C.createdAt,i)})]}),E.jsx($c,{body:C.body})]},`${C.author}:${C.createdAt}:${C.body}`))}),c&&E.jsxs("div",{className:"console-composer-form",children:[E.jsx("textarea",{className:"console-composer-input",rows:3,placeholder:"Leave a comment…",value:d,onChange:C=>h(C.target.value)}),E.jsxs("div",{className:"console-composer-row",children:[E.jsx("button",{type:"button",className:"console-composer-submit",disabled:S.kind==="posting",onClick:()=>{R()},children:"Comment"}),S.kind==="posting"&&E.jsx("span",{className:"console-composer-status",children:"Posting…"}),S.kind==="error"&&E.jsxs("span",{role:"alert",className:"console-composer-status console-composer-error",children:["Failed: ",S.message]})]})]})]})},sa=({title:s,count:i=null,defaultCollapsed:o=!1,headerAction:c,children:f})=>{const[d,h]=G.useState(o),S=i===null?s:`${s} (${i})`;return E.jsxs("section",{className:"console-panel",children:[E.jsxs("header",{className:"console-panel-header",children:[E.jsxs("button",{type:"button",className:"console-panel-toggle","aria-expanded":!d,onClick:()=>h(g=>!g),children:[E.jsx("span",{className:"console-panel-caret",children:d?"▸":"▾"}),E.jsx("span",{className:"console-panel-title",children:S})]}),c!==void 0&&E.jsx("div",{className:"console-panel-action",children:c})]}),!d&&E.jsx("div",{className:"console-panel-body",children:f})]})},yb=s=>{switch(s){case"added":return{label:"A",color:"#3fb950"};case"modified":return{label:"M",color:"#d29922"};case"removed":return{label:"D",color:"#f85149"};case"renamed":return{label:"R",color:"#a371f7"};case"changed":return{label:"M",color:"#d29922"};default:return{label:"?",color:"#8b949e"}}},bb=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,vb=s=>{const i=[];let o=0,c=0;for(const f of s.split(`
|
|
100
100
|
`)){if(f.startsWith("@@")){const d=f.match(bb);d!==null&&(o=Number(d[1]),c=Number(d[2])),i.push({kind:"hunk",oldLineNumber:null,newLineNumber:null,content:f});continue}if(f.startsWith("+")){i.push({kind:"add",oldLineNumber:null,newLineNumber:c,content:f}),c+=1;continue}if(f.startsWith("-")){i.push({kind:"del",oldLineNumber:o,newLineNumber:null,content:f}),o+=1;continue}i.push({kind:"ctx",oldLineNumber:o,newLineNumber:c,content:f}),o+=1,c+=1}return i},Sb=({patch:s})=>{if(s===null||s==="")return E.jsx("p",{className:"console-file-diff-empty",children:"(no diff / binary or too large)"});const i=vb(s);return E.jsx("table",{className:"console-file-diff",children:E.jsx("tbody",{children:i.map(o=>E.jsxs("tr",{className:`console-diff-row console-diff-${o.kind}`,children:[E.jsx("td",{className:"console-diff-ln",children:o.oldLineNumber??""}),E.jsx("td",{className:"console-diff-ln",children:o.newLineNumber??""}),E.jsx("td",{className:"console-diff-code",children:o.content})]},`${o.kind}:${o.oldLineNumber??"x"}:${o.newLineNumber??"x"}:${o.content}`))})})},Tb=({file:s})=>{const[i,o]=G.useState(!1),c=yb(s.status);return E.jsxs("li",{className:"console-file",children:[E.jsxs("button",{type:"button",className:"console-file-row","aria-expanded":i,onClick:()=>o(f=>!f),children:[E.jsx("span",{className:"console-file-caret",children:i?"▾":"▸"}),E.jsx("span",{className:"console-file-badge",style:{color:c.color,borderColor:c.color},children:c.label}),E.jsx("span",{className:"console-file-path",children:s.path}),E.jsxs("span",{className:"console-file-stat console-file-add",children:["+",s.additions]}),E.jsxs("span",{className:"console-file-stat console-file-del",children:["-",s.deletions]})]}),i&&E.jsx(Sb,{patch:s.patch})]})},yp=({files:s,isLoading:i,error:o})=>o!==null?E.jsxs("p",{role:"alert",className:"console-files-error",children:["Failed to load changed files: ",o]}):i?E.jsx("p",{className:"console-files-loading",children:"Loading changed files..."}):s.length===0?E.jsx("p",{className:"console-files-empty",children:"No changed files."}):E.jsx("ul",{className:"console-files",children:s.map(c=>E.jsx(Tb,{file:c},c.path))}),Eb=({comments:s,isLoading:i,error:o,now:c,buildImageProxyUrl:f})=>{const[d,h]=G.useState(!1);if(o!==null)return E.jsxs("p",{role:"alert",className:"console-comment-error",children:["Failed to load comments: ",o]});if(i)return E.jsx("p",{className:"console-comment-loading",children:"Loading comments..."});if(s.length===0)return E.jsx("p",{className:"console-comment-empty",children:"No comments."});const S=d?s:s.slice(-1);return E.jsxs("div",{className:"console-comment-list",children:[!d&&s.length>1&&E.jsxs("button",{type:"button",className:"console-comment-show-all",onClick:()=>h(!0),children:["Show all ",s.length]}),S.map(g=>E.jsxs("article",{className:"console-comment",children:[E.jsxs("header",{className:"console-comment-header",children:[E.jsx("span",{className:"console-comment-author",children:g.author}),E.jsx("span",{className:"console-comment-time",children:mi(g.createdAt,c)})]}),E.jsx($c,{body:g.body,buildImageProxyUrl:f})]},`${g.author}:${g.createdAt}:${g.body}`))]})},Ab=s=>s.slice(0,7),_b=s=>s.split(`
|
|
101
|
-
`)[0],bp=({commits:s,isLoading:i,error:o,now:c})=>o!==null?E.jsxs("p",{role:"alert",className:"console-commits-error",children:["Failed to load commits: ",o]}):i?E.jsx("p",{className:"console-commits-loading",children:"Loading commits..."}):s.length===0?E.jsx("p",{className:"console-commits-empty",children:"No commits."}):E.jsx("ul",{className:"console-commits",children:s.map(f=>E.jsxs("li",{className:"console-commit",children:[E.jsx("span",{className:"console-commit-message",children:_b(f.message)}),E.jsx("span",{className:"console-commit-sha",children:Ab(f.sha)}),E.jsx("span",{className:"console-commit-author",children:f.author}),E.jsx("span",{className:"console-commit-time",children:mi(f.authoredAt,c)})]},f.sha))}),xb=({pullRequest:s,body:i,bodyIsLoading:o,files:c,filesAreLoading:f,filesError:d,commits:h,commitsAreLoading:S,commitsError:g,now:T,buildImageProxyUrl:z})=>{const R=s.summary,C=f||d!==null?null:c.length,H=S||g!==null?null:h.length;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"console-pr-header",children:[E.jsx("a",{href:s.url,className:"console-pr-section-title",target:"_blank",rel:"noopener noreferrer",children:(R==null?void 0:R.title)??s.url}),s.isDraft&&E.jsx("span",{className:"console-pr-section-state",children:"draft"}),E.jsxs("div",{className:"console-pr-statbar",children:[s.branchName!==null&&E.jsx("span",{className:"console-pr-branch",children:s.branchName}),R!==null&&E.jsxs(E.Fragment,{children:[E.jsxs("span",{className:"console-pr-add",children:["+",R.additions]}),E.jsxs("span",{className:"console-pr-del",children:["-",R.deletions]}),E.jsxs("span",{className:"console-pr-files-count",children:[R.changedFiles," files"]})]})]})]}),E.jsx(sa,{title:"Description",defaultCollapsed:!0,children:o?E.jsx("p",{className:"console-pr-body-loading",children:"Loading description..."}):E.jsx($c,{body:(R==null?void 0:R.body)??i,buildImageProxyUrl:z})}),E.jsx(sa,{title:"Changed files",count:C,children:E.jsx(yp,{files:c,isLoading:f,error:d})}),E.jsx(sa,{title:"Commits",count:H,defaultCollapsed:!0,children:E.jsx(bp,{commits:h,isLoading:S,error:g,now:T})})]})},Nb=({item:s,storyName:i,storyColorEnum:o,overlayStatus:c,state:f,body:d,bodyIsLoading:h,bodyError:S,comments:g,commentsAreLoading:T,commentsError:z,files:R,filesAreLoading:C,filesError:H,commits:I,commitsAreLoading:F,commitsError:K,relatedPullRequests:ct,now:J,commentComposer:yt,operationBar:st,buildImageProxyUrl:Nt})=>{const pt=(f==null?void 0:f.state)??"open",tt=(f==null?void 0:f.merged)??!1,Mt=!s.isPr&&pt==="closed"?"Closed":null,Pt=di(o),te=c?di(c.color):null,he=C||H!==null?null:R.length,Bt=T||z!==null?null:g.length,Ue=F||K!==null?null:I.length;return E.jsxs("article",{className:"console-detail",children:[i!==null&&E.jsx("div",{className:"console-detail-story",children:E.jsxs("span",{className:"console-storytag",children:[E.jsx("span",{className:"console-story-dot",style:{backgroundColor:Pt.dot}}),i]})}),c!==null&&te!==null&&E.jsx("span",{className:"console-detail-status-chip",style:{color:te.fg,borderColor:te.border,backgroundColor:te.bg},children:c.name}),E.jsxs("h2",{className:"console-detail-title",children:[E.jsx(Fh,{isPr:s.isPr,state:pt,merged:tt,isDraft:!1,stateReason:""}),E.jsx("span",{className:"console-detail-title-text",children:s.title}),E.jsx("span",{className:"console-detail-number",children:s.isPr?`PR #${s.number}`:`#${s.number}`}),Mt!==null&&E.jsx("span",{className:"console-detail-closed-label",children:Mt})]}),E.jsxs("div",{className:"console-detail-subbar",children:[E.jsx("a",{href:s.url,className:"console-detail-link",target:"_blank",rel:"noopener noreferrer",children:s.isPr?`PR #${s.number}`:`Issue #${s.number}`}),E.jsx("span",{className:"console-detail-repo",children:s.repo}),E.jsx("span",{className:"console-detail-pill",children:s.isPr?"PR":"Issue"})]}),s.labels.length>0&&E.jsx("div",{className:"console-detail-labels",children:s.labels.map(jt=>E.jsx("span",{className:"console-label-chip",children:jt},jt))}),E.jsxs("div",{className:"console-detail-createdat",title:Sr(s.createdAt),children:["opened ",mi(s.createdAt,J)]}),E.jsx(sa,{title:"Description",headerAction:E.jsx("a",{href:s.url,className:"console-panel-open-link",target:"_blank",rel:"noopener noreferrer",children:"open"}),children:S!==null?E.jsxs("p",{role:"alert",className:"console-detail-body-error",children:["Failed to load description: ",S]}):h?E.jsx("p",{className:"console-detail-body-loading",children:"Loading description..."}):E.jsx($c,{body:d,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Changed files",count:he,children:E.jsx(yp,{files:R,isLoading:C,error:H})}),E.jsx(sa,{title:"Comments",count:Bt,defaultCollapsed:s.isPr,children:E.jsx(Eb,{comments:g,isLoading:T,error:z,now:J,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Commits",count:Ue,defaultCollapsed:!0,children:E.jsx(bp,{commits:I,isLoading:F,error:K,now:J})}),!s.isPr&&ct.map(jt=>{var $t;return E.jsx(xb,{pullRequest:jt.pullRequest,body:(($t=jt.pullRequest.summary)==null?void 0:$t.body)??"",bodyIsLoading:!1,files:jt.files,filesAreLoading:jt.filesAreLoading,filesError:jt.filesError,commits:jt.commits,commitsAreLoading:jt.commitsAreLoading,commitsError:jt.commitsError,now:J,buildImageProxyUrl:Nt},jt.pullRequest.url)}),yt,E.jsx("div",{className:"console-actionbar",children:st})]})},Ob=({onClose:s})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close"),children:"Close"}),E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close_not_planned"),children:"Close as not planned"})]}),zb=({isTodoByHuman:s,onSetNextActionDate:i})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1day"),children:"+1 day"}),E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1week"),children:s?"+1 week and skip":"+1 week"})]}),Rb=[{action:"unnecessary",label:"Unnecessary",variant:"unneeded"},{action:"totally_wrong",label:"Totally wrong",variant:"wrong"},{action:"request_changes",label:"Reject",variant:"reject"},{action:"approve",label:"Approve",variant:"approve"}],Mb=({onReview:s})=>E.jsx("div",{className:"console-op-group console-op-group-review",children:Rb.map(i=>E.jsx("button",{type:"button",className:`console-op-button console-op-button-${i.variant}`,onClick:()=>s(i.action),children:i.label},i.action))}),Cb=(s,i)=>{const o=i.toLowerCase();return s.find(c=>c.name.toLowerCase()===o)??null},Db=({statusOptions:s,onSetStatus:i,onSetInTmuxByHuman:o})=>{const c=gy.map(f=>({name:f,option:Cb(s,f)})).filter(f=>f.option!==null);return c.length===0?null:E.jsx("div",{className:"console-op-group",children:c.map(({name:f,option:d})=>{const h=di(d.color),S=f===yy;return E.jsx("button",{type:"button",className:"console-op-button",style:{color:h.fg,borderColor:h.border,backgroundColor:h.bg},onClick:()=>S?o(d):i(d),children:d.name},d.id)})})},Ub=s=>s.name.toLowerCase().includes("no story"),wb=({storyOptions:s,onSetStory:i})=>{const o=s.filter(c=>!Ub(c));return o.length===0?null:E.jsx("div",{className:"console-op-group console-op-group-stories",children:o.map(c=>{const f=di(c.color);return E.jsx("button",{type:"button",className:"console-op-button",style:{color:f.fg,borderColor:f.border,backgroundColor:f.bg},onClick:()=>i(c),children:c.name},c.id)})})},Lb=({tab:s,item:i,hasPullRequest:o,statusOptions:c,storyOptions:f,handlers:d})=>{const h=s==="triage",S=!i.isPr;return E.jsxs("div",{className:"console-operation-bar",children:[o&&E.jsx(Mb,{onReview:d.onReview}),E.jsx(zb,{isTodoByHuman:by(s),onSetNextActionDate:d.onSetNextActionDate}),h&&E.jsx(wb,{storyOptions:f,onSetStory:d.onSetStory}),E.jsx(Db,{statusOptions:c,onSetStatus:d.onSetStatus,onSetInTmuxByHuman:d.onSetInTmuxByHuman}),S&&E.jsx(Ob,{onClose:d.onClose})]})},uu=(s,i,o,c)=>{const f=i!==null?s.peek(i):void 0,[d,h]=G.useState(f??c),[S,g]=G.useState(i!==null&&f===void 0),[T,z]=G.useState(null);return G.useEffect(()=>{if(i===null||o===null)return;const R=s.peek(i);if(R!==void 0){h(R),g(!1),z(null);return}let C=!1;return g(!0),z(null),s.load(i,o).then(H=>{C||(h(H),g(!1))}).catch(H=>{C||(z(H instanceof Error?H.message:String(H)),g(!1))}),()=>{C=!0}},[s,i,o]),{data:d,isLoading:S,error:T}},jb=[],Vh=[],Kh=[],Hb=[],kb={state:"open",merged:!1,isPullRequest:!1},Bb=(s,i)=>{const o=i!==null?`${i.repo}#${i.number}`:null,c=i!==null?i.url:null,f=(i==null?void 0:i.isPr)??!1,d=uu(s.body,o,c,""),h=uu(s.state,o,c,kb),S=uu(s.comments,o,c,jb),g=uu(s.files,f?o:null,f?c:null,Vh),T=uu(s.commits,f?o:null,f?c:null,Kh),z=uu(s.relatedPrs,f?null:o,f?null:c,Hb),[R,C]=G.useState([]);return G.useEffect(()=>{if(f||z.data.length===0){C([]);return}let H=!1;const I=z.data.map(K=>({pullRequest:K,files:Vh,filesAreLoading:!0,filesError:null,commits:Kh,commitsAreLoading:!0,commitsError:null}));C(I);const F=(K,ct)=>{H||C(J=>J.map(yt=>yt.pullRequest.url===K?{...yt,...ct}:yt))};for(const K of z.data){const ct=K.url;s.files.load(ct,K.url).then(J=>F(K.url,{files:J,filesAreLoading:!1})).catch(J=>F(K.url,{filesAreLoading:!1,filesError:J instanceof Error?J.message:String(J)})),s.commits.load(ct,K.url).then(J=>F(K.url,{commits:J,commitsAreLoading:!1})).catch(J=>F(K.url,{commitsAreLoading:!1,commitsError:J instanceof Error?J.message:String(J)}))}return()=>{H=!0}},[s,f,z.data]),{state:h.data,body:d.data,bodyIsLoading:d.isLoading,bodyError:d.error,comments:S.data,commentsAreLoading:S.isLoading,commentsError:S.error,files:g.data,filesAreLoading:g.isLoading,filesError:g.error,commits:T.data,commitsAreLoading:T.isLoading,commitsError:T.error,relatedPullRequests:R}},qb=({tab:s,item:i,caches:o,operations:c,statusOptions:f,storyOptions:d,storyColors:h,storyName:S,overlayStatus:g,now:T,onQueueAction:z})=>{const R=Bb(o,i),{token:C}=Kc(),H=G.useCallback(J=>Ky(J,C),[C]),I=i.isPr||R.relatedPullRequests.length>0,F={onReview:J=>{var st;const yt=i.isPr?i.url:((st=R.relatedPullRequests[0])==null?void 0:st.pullRequest.url)??i.url;z({kind:{type:"review",action:J},item:i,commit:()=>{c.reviewPullRequest(i,yt,J)}})},onSetNextActionDate:J=>{z({kind:{type:"next_action_date",action:J},item:i,commit:()=>{c.setNextActionDate(i,J)}})},onSetStory:J=>{z({kind:{type:"set_story",optionName:J.name},item:i,commit:()=>{c.setStory(i,J)}})},onSetStatus:J=>{z({kind:{type:"set_status",optionName:J.name},item:i,commit:()=>{c.setStatus(i,J)}})},onSetInTmuxByHuman:J=>{z({kind:{type:"set_in_tmux_by_human",optionName:J.name},item:i,commit:()=>{c.setInTmuxByHuman(i,J)}})},onClose:J=>{z({kind:{type:"close",action:J},item:i,commit:()=>{c.closeIssue(i,J)}})}},K=S??(i.story.trim()!==""?i.story:null),ct=K!==null?Jh(h,K):null;return E.jsx(Nb,{item:i,storyName:K,storyColorEnum:ct,overlayStatus:g,state:R.state,body:R.body,bodyIsLoading:R.bodyIsLoading,bodyError:R.bodyError,comments:R.comments,commentsAreLoading:R.commentsAreLoading,commentsError:R.commentsError,files:R.files,filesAreLoading:R.filesAreLoading,filesError:R.filesError,commits:R.commits,commitsAreLoading:R.commitsAreLoading,commitsError:R.commitsError,relatedPullRequests:R.relatedPullRequests,now:T,buildImageProxyUrl:H,commentComposer:E.jsx(gb,{isPr:i.isPr,now:T,onSubmit:J=>c.addComment(i,J)}),operationBar:E.jsx(Lb,{tab:s,item:i,hasPullRequest:I,statusOptions:f,storyOptions:d,handlers:F})})},Yb=()=>{const s={};for(const i of yl)s[i.name]=0;return s},Gb="console",Zb=()=>{const s=Cy(),{snapshots:i,isLoading:o,error:c}=qy(s),f=my(s),{activeTab:d,selectedItemKey:h,openItem:S,closeItem:g,selectTab:T}=f,z=Ry(s??Gb),R=oy(),C=xy(s,d,z),H=F0(),I=Date.now(),F=G.useMemo(()=>{const k=Yb();for(const X of yl){const bt=i[X.name];bt!==null&&(k[X.name]=vy(bt.items,z.overlay))}return k},[i,z.overlay]),K=i[d],ct=G.useMemo(()=>K===null?[]:Sy(K.items,z.overlay),[K,z.overlay]),J=G.useMemo(()=>ct.map(k=>Fl(k)),[ct]),yt=G.useMemo(()=>k0(ct,z.overlay),[ct,z.overlay]),st=(K==null?void 0:K.storyColors)??{},Nt=(K==null?void 0:K.statusOptions)??[],pt=(K==null?void 0:K.storyOptions)??[],tt=(K==null?void 0:K.generatedAt)??null,Mt=G.useMemo(()=>h===null||K===null?null:K.items.find(k=>k.projectItemId===h)??null,[h,K]),Pt=F[d],te=G.useRef({tab:d,count:Pt});G.useEffect(()=>{const k=te.current;if(te.current={tab:d,count:Pt},k.tab===d&&k.count>0&&Pt===0){const X=Xy(d,F);X!==null&&(T(X),g())}},[d,Pt,F,T,g]);const he=(()=>{if(Mt===null)return null;const k=z.overlay[Fl(Mt)];return(k==null?void 0:k.status)??null})(),Bt=Mt!==null?mr(Mt,z.overlay):null,Ue=G.useCallback(k=>{const X=Yy(J,k);X!==null?S(X):g()},[J,S,g]),jt=G.useCallback(k=>{const X=Fl(k.item);H.enqueue({message:$0(k.kind,k.item,d),color:K0(k.kind),commit:k.commit,advance:()=>{J0(k.kind,d)&&Ue(X)}})},[H,d,Ue]),$t=G.useCallback(k=>{if(h===null||k===null)return;const X=k==="next"?Gy(J,h):Zy(J,h);X!==null&&S(X)},[h,J,S]),D=jy($t);return E.jsxs("main",{className:"console-app",children:[H.pending!==null&&E.jsx(X0,{message:H.pending.message,color:H.pending.color,remainingSeconds:H.pending.remainingSeconds,progress:H.pending.progress,onUndo:H.undo}),E.jsx(j0,{activeTab:d,counts:F,pjcode:s,generatedAt:tt,tabHref:f.tabHref,onSelectTab:f.selectTab}),Mt===null?E.jsx(Z0,{rows:yt,storyColors:st,activeItemId:null,now:I,isLoading:o,error:c,onSelectItem:k=>f.openItem(k.projectItemId)}):E.jsxs("div",{className:"console-detail-screen",ref:D,children:[E.jsx("button",{type:"button",className:"console-back-button",onClick:g,children:"← Back to list"}),E.jsx(qb,{tab:d,item:Mt,caches:R,operations:C,statusOptions:Nt,storyOptions:pt,storyColors:st,storyName:Bt,overlayStatus:he,now:I,onQueueAction:jt})]})]})},vp=document.getElementById("root");if(vp===null)throw new Error("Root container #root not found");w0.createRoot(vp).render(E.jsx(G.StrictMode,{children:E.jsx(Zb,{})}));
|
|
101
|
+
`)[0],bp=({commits:s,isLoading:i,error:o,now:c})=>o!==null?E.jsxs("p",{role:"alert",className:"console-commits-error",children:["Failed to load commits: ",o]}):i?E.jsx("p",{className:"console-commits-loading",children:"Loading commits..."}):s.length===0?E.jsx("p",{className:"console-commits-empty",children:"No commits."}):E.jsx("ul",{className:"console-commits",children:s.map(f=>E.jsxs("li",{className:"console-commit",children:[E.jsx("span",{className:"console-commit-message",children:_b(f.message)}),E.jsx("span",{className:"console-commit-sha",children:Ab(f.sha)}),E.jsx("span",{className:"console-commit-author",children:f.author}),E.jsx("span",{className:"console-commit-time",children:mi(f.authoredAt,c)})]},f.sha))}),xb=({pullRequest:s,body:i,bodyIsLoading:o,files:c,filesAreLoading:f,filesError:d,commits:h,commitsAreLoading:S,commitsError:g,now:T,buildImageProxyUrl:z})=>{const R=s.summary,C=f||d!==null?null:c.length,H=S||g!==null?null:h.length;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"console-pr-header",children:[E.jsx("a",{href:s.url,className:"console-pr-section-title",target:"_blank",rel:"noopener noreferrer",children:(R==null?void 0:R.title)??s.url}),s.isDraft&&E.jsx("span",{className:"console-pr-section-state",children:"draft"}),E.jsxs("div",{className:"console-pr-statbar",children:[s.branchName!==null&&E.jsx("span",{className:"console-pr-branch",children:s.branchName}),R!==null&&E.jsxs(E.Fragment,{children:[E.jsxs("span",{className:"console-pr-add",children:["+",R.additions]}),E.jsxs("span",{className:"console-pr-del",children:["-",R.deletions]}),E.jsxs("span",{className:"console-pr-files-count",children:[R.changedFiles," files"]})]})]})]}),E.jsx(sa,{title:"Description",defaultCollapsed:!0,children:o?E.jsx("p",{className:"console-pr-body-loading",children:"Loading description..."}):E.jsx($c,{body:(R==null?void 0:R.body)??i,buildImageProxyUrl:z})}),E.jsx(sa,{title:"Changed files",count:C,children:E.jsx(yp,{files:c,isLoading:f,error:d})}),E.jsx(sa,{title:"Commits",count:H,defaultCollapsed:!0,children:E.jsx(bp,{commits:h,isLoading:S,error:g,now:T})})]})},Nb=({item:s,storyName:i,storyColorEnum:o,overlayStatus:c,state:f,body:d,bodyIsLoading:h,bodyError:S,comments:g,commentsAreLoading:T,commentsError:z,files:R,filesAreLoading:C,filesError:H,commits:I,commitsAreLoading:F,commitsError:K,relatedPullRequests:ct,now:J,commentComposer:yt,operationBar:st,buildImageProxyUrl:Nt})=>{const pt=(f==null?void 0:f.state)??"open",tt=(f==null?void 0:f.merged)??!1,Mt=!s.isPr&&pt==="closed"?"Closed":null,Pt=di(o),te=c?di(c.color):null,he=C||H!==null?null:R.length,Bt=T||z!==null?null:g.length,Ue=F||K!==null?null:I.length;return E.jsxs("article",{className:"console-detail",children:[i!==null&&E.jsx("div",{className:"console-detail-story",children:E.jsxs("span",{className:"console-storytag",children:[E.jsx("span",{className:"console-story-dot",style:{backgroundColor:Pt.dot}}),i]})}),c!==null&&te!==null&&E.jsx("span",{className:"console-detail-status-chip",style:{color:te.fg,borderColor:te.border,backgroundColor:te.bg},children:c.name}),E.jsxs("h2",{className:"console-detail-title",children:[E.jsx(Fh,{isPr:s.isPr,state:pt,merged:tt,isDraft:!1,stateReason:""}),E.jsx("span",{className:"console-detail-title-text",children:s.title}),E.jsx("span",{className:"console-detail-number",children:s.isPr?`PR #${s.number}`:`#${s.number}`}),Mt!==null&&E.jsx("span",{className:"console-detail-closed-label",children:Mt})]}),E.jsxs("div",{className:"console-detail-subbar",children:[E.jsx("a",{href:s.url,className:"console-detail-link",target:"_blank",rel:"noopener noreferrer",children:s.isPr?`PR #${s.number}`:`Issue #${s.number}`}),E.jsx("span",{className:"console-detail-repo",children:s.repo}),E.jsx("span",{className:"console-detail-pill",children:s.isPr?"PR":"Issue"})]}),s.labels.length>0&&E.jsx("div",{className:"console-detail-labels",children:s.labels.map(jt=>E.jsx("span",{className:"console-label-chip",children:jt},jt))}),E.jsxs("div",{className:"console-detail-createdat",title:Sr(s.createdAt),children:["opened ",mi(s.createdAt,J)]}),E.jsx(sa,{title:"Description",headerAction:E.jsx("a",{href:s.url,className:"console-panel-open-link",target:"_blank",rel:"noopener noreferrer",children:"open"}),children:S!==null?E.jsxs("p",{role:"alert",className:"console-detail-body-error",children:["Failed to load description: ",S]}):h?E.jsx("p",{className:"console-detail-body-loading",children:"Loading description..."}):E.jsx($c,{body:d,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Changed files",count:he,children:E.jsx(yp,{files:R,isLoading:C,error:H})}),E.jsx(sa,{title:"Comments",count:Bt,defaultCollapsed:s.isPr,children:E.jsx(Eb,{comments:g,isLoading:T,error:z,now:J,buildImageProxyUrl:Nt})}),s.isPr&&E.jsx(sa,{title:"Commits",count:Ue,defaultCollapsed:!0,children:E.jsx(bp,{commits:I,isLoading:F,error:K,now:J})}),!s.isPr&&ct.map(jt=>{var $t;return E.jsx(xb,{pullRequest:jt.pullRequest,body:(($t=jt.pullRequest.summary)==null?void 0:$t.body)??"",bodyIsLoading:!1,files:jt.files,filesAreLoading:jt.filesAreLoading,filesError:jt.filesError,commits:jt.commits,commitsAreLoading:jt.commitsAreLoading,commitsError:jt.commitsError,now:J,buildImageProxyUrl:Nt},jt.pullRequest.url)}),yt,E.jsx("div",{className:"console-actionbar",children:st})]})},Ob=({onClose:s})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close_not_planned"),children:"Close as not planned"}),E.jsx("button",{type:"button",className:"console-op-button",onClick:()=>s("close"),children:"Close"})]}),zb=({isTodoByHuman:s,onSetNextActionDate:i})=>E.jsxs("div",{className:"console-op-group",children:[E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1day"),children:"+1 day"}),E.jsx("button",{type:"button",className:"console-op-button console-op-button-snooze",onClick:()=>i("snooze_1week"),children:s?"+1 week and skip":"+1 week"})]}),Rb=[{action:"unnecessary",label:"Unnecessary",variant:"unneeded"},{action:"totally_wrong",label:"Totally wrong",variant:"wrong"},{action:"request_changes",label:"Reject",variant:"reject"},{action:"approve",label:"Approve",variant:"approve"}],Mb=({onReview:s})=>E.jsx("div",{className:"console-op-group console-op-group-review",children:Rb.map(i=>E.jsx("button",{type:"button",className:`console-op-button console-op-button-${i.variant}`,onClick:()=>s(i.action),children:i.label},i.action))}),Cb=(s,i)=>{const o=i.toLowerCase();return s.find(c=>c.name.toLowerCase()===o)??null},Db=({statusOptions:s,onSetStatus:i,onSetInTmuxByHuman:o})=>{const c=gy.map(f=>({name:f,option:Cb(s,f)})).filter(f=>f.option!==null);return c.length===0?null:E.jsx("div",{className:"console-op-group",children:c.map(({name:f,option:d})=>{const h=di(d.color),S=f===yy;return E.jsx("button",{type:"button",className:"console-op-button",style:{color:h.fg,borderColor:h.border,backgroundColor:h.bg},onClick:()=>S?o(d):i(d),children:d.name},d.id)})})},Ub=s=>s.name.toLowerCase().includes("no story"),wb=({storyOptions:s,onSetStory:i})=>{const o=s.filter(c=>!Ub(c));return o.length===0?null:E.jsx("div",{className:"console-op-group console-op-group-stories",children:o.map(c=>{const f=di(c.color);return E.jsx("button",{type:"button",className:"console-op-button",style:{color:f.fg,borderColor:f.border,backgroundColor:f.bg},onClick:()=>i(c),children:c.name},c.id)})})},Lb=({tab:s,item:i,hasPullRequest:o,statusOptions:c,storyOptions:f,handlers:d})=>{const h=s==="triage",S=!i.isPr;return E.jsxs("div",{className:"console-operation-bar",children:[o&&E.jsx(Mb,{onReview:d.onReview}),E.jsx(zb,{isTodoByHuman:by(s),onSetNextActionDate:d.onSetNextActionDate}),h&&E.jsx(wb,{storyOptions:f,onSetStory:d.onSetStory}),E.jsx(Db,{statusOptions:c,onSetStatus:d.onSetStatus,onSetInTmuxByHuman:d.onSetInTmuxByHuman}),S&&E.jsx(Ob,{onClose:d.onClose})]})},uu=(s,i,o,c)=>{const f=i!==null?s.peek(i):void 0,[d,h]=G.useState(f??c),[S,g]=G.useState(i!==null&&f===void 0),[T,z]=G.useState(null);return G.useEffect(()=>{if(i===null||o===null)return;const R=s.peek(i);if(R!==void 0){h(R),g(!1),z(null);return}let C=!1;return g(!0),z(null),s.load(i,o).then(H=>{C||(h(H),g(!1))}).catch(H=>{C||(z(H instanceof Error?H.message:String(H)),g(!1))}),()=>{C=!0}},[s,i,o]),{data:d,isLoading:S,error:T}},jb=[],Vh=[],Kh=[],Hb=[],kb={state:"open",merged:!1,isPullRequest:!1},Bb=(s,i)=>{const o=i!==null?`${i.repo}#${i.number}`:null,c=i!==null?i.url:null,f=(i==null?void 0:i.isPr)??!1,d=uu(s.body,o,c,""),h=uu(s.state,o,c,kb),S=uu(s.comments,o,c,jb),g=uu(s.files,f?o:null,f?c:null,Vh),T=uu(s.commits,f?o:null,f?c:null,Kh),z=uu(s.relatedPrs,f?null:o,f?null:c,Hb),[R,C]=G.useState([]);return G.useEffect(()=>{if(f||z.data.length===0){C([]);return}let H=!1;const I=z.data.map(K=>({pullRequest:K,files:Vh,filesAreLoading:!0,filesError:null,commits:Kh,commitsAreLoading:!0,commitsError:null}));C(I);const F=(K,ct)=>{H||C(J=>J.map(yt=>yt.pullRequest.url===K?{...yt,...ct}:yt))};for(const K of z.data){const ct=K.url;s.files.load(ct,K.url).then(J=>F(K.url,{files:J,filesAreLoading:!1})).catch(J=>F(K.url,{filesAreLoading:!1,filesError:J instanceof Error?J.message:String(J)})),s.commits.load(ct,K.url).then(J=>F(K.url,{commits:J,commitsAreLoading:!1})).catch(J=>F(K.url,{commitsAreLoading:!1,commitsError:J instanceof Error?J.message:String(J)}))}return()=>{H=!0}},[s,f,z.data]),{state:h.data,body:d.data,bodyIsLoading:d.isLoading,bodyError:d.error,comments:S.data,commentsAreLoading:S.isLoading,commentsError:S.error,files:g.data,filesAreLoading:g.isLoading,filesError:g.error,commits:T.data,commitsAreLoading:T.isLoading,commitsError:T.error,relatedPullRequests:R}},qb=({tab:s,item:i,caches:o,operations:c,statusOptions:f,storyOptions:d,storyColors:h,storyName:S,overlayStatus:g,now:T,onQueueAction:z})=>{const R=Bb(o,i),{token:C}=Kc(),H=G.useCallback(J=>Ky(J,C),[C]),I=i.isPr||R.relatedPullRequests.length>0,F={onReview:J=>{var st;const yt=i.isPr?i.url:((st=R.relatedPullRequests[0])==null?void 0:st.pullRequest.url)??i.url;z({kind:{type:"review",action:J},item:i,commit:()=>{c.reviewPullRequest(i,yt,J)}})},onSetNextActionDate:J=>{z({kind:{type:"next_action_date",action:J},item:i,commit:()=>{c.setNextActionDate(i,J)}})},onSetStory:J=>{z({kind:{type:"set_story",optionName:J.name},item:i,commit:()=>{c.setStory(i,J)}})},onSetStatus:J=>{z({kind:{type:"set_status",optionName:J.name},item:i,commit:()=>{c.setStatus(i,J)}})},onSetInTmuxByHuman:J=>{z({kind:{type:"set_in_tmux_by_human",optionName:J.name},item:i,commit:()=>{c.setInTmuxByHuman(i,J)}})},onClose:J=>{z({kind:{type:"close",action:J},item:i,commit:()=>{c.closeIssue(i,J)}})}},K=S??(i.story.trim()!==""?i.story:null),ct=K!==null?Jh(h,K):null;return E.jsx(Nb,{item:i,storyName:K,storyColorEnum:ct,overlayStatus:g,state:R.state,body:R.body,bodyIsLoading:R.bodyIsLoading,bodyError:R.bodyError,comments:R.comments,commentsAreLoading:R.commentsAreLoading,commentsError:R.commentsError,files:R.files,filesAreLoading:R.filesAreLoading,filesError:R.filesError,commits:R.commits,commitsAreLoading:R.commitsAreLoading,commitsError:R.commitsError,relatedPullRequests:R.relatedPullRequests,now:T,buildImageProxyUrl:H,commentComposer:E.jsx(gb,{isPr:i.isPr,now:T,onSubmit:J=>c.addComment(i,J)}),operationBar:E.jsx(Lb,{tab:s,item:i,hasPullRequest:I,statusOptions:f,storyOptions:d,handlers:F})})},Yb=()=>{const s={};for(const i of yl)s[i.name]=0;return s},Gb="console",Zb=()=>{const s=Cy(),{snapshots:i,isLoading:o,error:c}=qy(s),f=my(s),{activeTab:d,selectedItemKey:h,openItem:S,closeItem:g,selectTab:T}=f,z=Ry(s??Gb),R=oy(),C=xy(s,d,z),H=F0(),I=Date.now(),F=G.useMemo(()=>{const k=Yb();for(const X of yl){const bt=i[X.name];bt!==null&&(k[X.name]=vy(bt.items,z.overlay))}return k},[i,z.overlay]),K=i[d],ct=G.useMemo(()=>K===null?[]:Sy(K.items,z.overlay),[K,z.overlay]),J=G.useMemo(()=>ct.map(k=>Fl(k)),[ct]),yt=G.useMemo(()=>k0(ct,z.overlay),[ct,z.overlay]),st=(K==null?void 0:K.storyColors)??{},Nt=(K==null?void 0:K.statusOptions)??[],pt=(K==null?void 0:K.storyOptions)??[],tt=(K==null?void 0:K.generatedAt)??null,Mt=G.useMemo(()=>h===null||K===null?null:K.items.find(k=>k.projectItemId===h)??null,[h,K]),Pt=F[d],te=G.useRef({tab:d,count:Pt});G.useEffect(()=>{const k=te.current;if(te.current={tab:d,count:Pt},k.tab===d&&k.count>0&&Pt===0){const X=Xy(d,F);X!==null&&(T(X),g())}},[d,Pt,F,T,g]);const he=(()=>{if(Mt===null)return null;const k=z.overlay[Fl(Mt)];return(k==null?void 0:k.status)??null})(),Bt=Mt!==null?mr(Mt,z.overlay):null,Ue=G.useCallback(k=>{const X=Yy(J,k);X!==null?S(X):g()},[J,S,g]),jt=G.useCallback(k=>{const X=Fl(k.item);H.enqueue({message:$0(k.kind,k.item,d),color:K0(k.kind),commit:k.commit,advance:()=>{J0(k.kind,d)&&Ue(X)}})},[H,d,Ue]),$t=G.useCallback(k=>{if(h===null||k===null)return;const X=k==="next"?Gy(J,h):Zy(J,h);X!==null&&S(X)},[h,J,S]),D=jy($t);return E.jsxs("main",{className:"console-app",children:[H.pending!==null&&E.jsx(X0,{message:H.pending.message,color:H.pending.color,remainingSeconds:H.pending.remainingSeconds,progress:H.pending.progress,onUndo:H.undo}),E.jsx(j0,{activeTab:d,counts:F,pjcode:s,generatedAt:tt,tabHref:f.tabHref,onSelectTab:f.selectTab}),Mt===null?E.jsx(Z0,{rows:yt,storyColors:st,activeItemId:null,now:I,isLoading:o,error:c,onSelectItem:k=>f.openItem(k.projectItemId)}):E.jsxs("div",{className:"console-detail-screen",ref:D,children:[E.jsx("button",{type:"button",className:"console-back-button",onClick:g,children:"← Back to list"}),E.jsx(qb,{tab:d,item:Mt,caches:R,operations:C,statusOptions:Nt,storyOptions:pt,storyColors:st,storyName:Bt,overlayStatus:he,now:I,onQueueAction:jt})]})]})},vp=document.getElementById("root");if(vp===null)throw new Error("Root container #root not found");w0.createRoot(vp).render(E.jsx(G.StrictMode,{children:E.jsx(Zb,{})}));
|
package/src/adapter/entry-points/console/ui-dist/assets/{index-CdQeHptu.css → index-CzVHU81K.css}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-input:#e5e5e5;--color-ring:#0a0a0a;--color-background:#fff;--color-foreground:#0a0a0a;--color-primary:#171717;--color-primary-foreground:#fafafa;--color-secondary:#f5f5f5;--color-secondary-foreground:#171717;--color-accent:#f5f5f5;--color-accent-foreground:#171717}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.hidden{display:none}.inline-flex{display:inline-flex}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-input{border-color:var(--color-input)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--color-background)}.bg-primary{background-color:var(--color-primary)}.bg-secondary{background-color:var(--color-secondary)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-foreground{color:var(--color-foreground)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.lowercase{text-transform:lowercase}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-primary\/90:hover{background-color:#171717e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--color-primary) 90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:#f5f5f5cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--color-secondary) 80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}}body{color:#e6edf3;background-color:#0d1117;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.console-app{flex-direction:column;max-width:920px;margin:0 auto;display:flex}.console-tabbar{-webkit-overflow-scrolling:touch;background:#161b22;border-bottom:2px solid #30363d;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:42px;padding:0 8px;display:flex;overflow-x:auto}.console-tab{color:#8b949e;white-space:nowrap;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 14px;font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;display:inline-flex}.console-tab:hover{color:#e6edf3}.console-tab[data-active=true]{color:#e6edf3;border-bottom-color:#2f81f7;font-weight:700}.console-tab-badge{text-align:center;color:#e6edf3;background:#484f58;border-radius:20px;min-width:20px;padding:1px 7px;font-size:11px;font-weight:700;line-height:1.5}.console-tab-badge[data-zero=true]{color:#8b949e;background:#30363d}.console-tab-pjname{color:#8b949e;align-self:center;margin-left:auto;padding:0 8px;font-size:11.5px}.console-tab-geninfo{color:#8b949e;align-self:center;padding:0 4px;font-size:11px}.console-tab-count-heading{color:#8b949e;margin:0;padding:12px 18px 0;font-size:13px}.console-list{margin:0;padding:12px 18px 18px;list-style:none}.console-list-group{list-style:none}.console-item-row .console-item-icon{flex:none;margin-top:3px}.console-group-header{background:#0b0f14;border-bottom:1px solid #21262d;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-storytag{align-items:center;gap:8px;font-size:13px;font-weight:700;display:inline-flex}.console-story-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.console-group-count{color:#8b949e;font-size:12px}.console-item-row{color:#e6edf3;text-align:left;cursor:pointer;background:#161b22;border:1px solid #30363d;border-radius:8px;align-items:flex-start;gap:14px;width:100%;margin-bottom:10px;padding:12px 16px;display:flex}.console-item-row:hover{background:#1a2029;border-color:#484f58}.console-item-row[data-active=true]{background:#1a2029;border-color:#4493f8}.console-item-meta{flex:1;min-width:0}.console-item-title{font-size:14.5px;font-weight:600;display:block}.console-item-sub{color:#8b949e;margin-top:3px;font-size:12.5px;display:block}.console-item-pill{color:#8b949e;border:1px solid #30363d;border-radius:20px;margin-right:6px;padding:1px 8px;font-size:11px;display:inline-block}.console-item-createdat{color:#8b949e;cursor:help}.console-list-message{color:#8b949e;padding:16px;font-size:14px}.console-list-empty{text-align:center;color:#8b949e;padding:40px;font-size:14px}.console-list-error,.console-comment-error,.console-files-error,.console-commits-error,.console-detail-body-error{color:#f85149}.console-detail{flex-direction:column;gap:12px;padding:16px;display:flex}.console-detail-title{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.console-detail-title-text{flex:1}.console-detail-number{color:#8b949e;font-weight:400}.console-detail-closed-label{color:#a371f7;font-size:13px}.console-detail-subbar{align-items:center;gap:12px;font-size:13px;display:flex}.console-detail-link{color:#4493f8}.console-detail-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-detail-pill,.console-label-chip,.console-detail-status-chip{border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.console-detail-labels{flex-wrap:wrap;gap:6px;display:flex}.console-detail-createdat{color:#8b949e;font-size:12px}.console-panel{border:1px solid #30363d;border-radius:8px;overflow:hidden}.console-panel-header{background:#161b22;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-panel-toggle{color:#e6edf3;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.console-panel-body{padding:12px}.console-markdown{word-break:break-word;font-size:14px;line-height:1.5}.console-mermaid-error{color:#f85149;font-size:13px}.console-comment{border-top:1px solid #21262d;padding-top:8px}.console-comment-header{color:#8b949e;gap:8px;font-size:12px;display:flex}.console-comment-author{color:#e6edf3;font-weight:600}.console-files,.console-commits{margin:0;padding:0;list-style:none}.console-commit{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file{flex-direction:column;font-size:13px;display:flex}.console-file-badge{text-align:center;border:1px solid;border-radius:4px;width:18px;font-size:11px}.console-file-path,.console-commit-message{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-add,.console-pr-add{color:#3fb950}.console-file-del,.console-pr-del{color:#f85149}.console-commit-sha{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-actionbar{z-index:100;background:#161b22;border-top:2px solid #30363d;padding:10px 16px;position:fixed;bottom:0;left:0;right:0}.console-operation-bar{flex-direction:column;gap:8px;max-width:920px;margin:0 auto;display:flex}.console-op-group{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.console-op-group-review{gap:10px}.console-op-group-stories{max-height:50vh;overflow-y:auto}.console-op-button{color:#e6edf3;white-space:nowrap;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-op-button:hover{border-color:#484f58}.console-op-button-approve{color:#fff;background:#238636;border-color:#2ea043}.console-op-button-reject{color:#ffd166;background:#7d5000;border-color:#a06800}.console-op-button-wrong{color:#f85149;background:#3a1518;border-color:#f85149}.console-op-button-unneeded{color:#aab0b8;background:#2a2d31;border-color:#6e7681}.console-op-button-snooze{color:#79c0ff;background:#1c2b4a;border-color:#4493f8}.console-pr-section{border:1px solid #30363d;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.console-pr-statbar{color:#8b949e;gap:12px;font-size:12px;display:flex}.console-detail-screen{padding-bottom:140px}.console-panel-open-link{color:#4493f8;font-size:13px;font-weight:400}.console-composer{margin-top:4px}.console-composer-toggle{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:2px 0;font-size:12.5px}.console-composer-toggle:hover{color:#e6edf3}.console-composer-posted{flex-direction:column;gap:8px;margin-top:8px;display:flex}.console-composer-form{margin-top:8px}.console-composer-input{box-sizing:border-box;color:#e6edf3;width:100%;font:inherit;resize:vertical;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:8px;font-size:14px}.console-composer-row{align-items:center;gap:8px;margin-top:6px;display:flex}.console-composer-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-composer-submit:disabled{opacity:.6;cursor:default}.console-composer-status{color:#8b949e;font-size:12px}.console-composer-error{color:#f85149}.console-undo-toast{z-index:9998;white-space:nowrap;border-radius:10px;align-items:center;gap:12px;max-width:92vw;padding:12px 18px;font-size:13.5px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0009}.console-undo-toast-green{color:#3fb950;background:#0d3320;border:1px solid #2ea043}.console-undo-toast-amber{color:#ffd166;background:#3a2800;border:1px solid #a06800}.console-undo-toast-red{color:#f85149;background:#3a1518;border:1px solid #da3633}.console-undo-toast-gray{color:#aab0b8;background:#2a2d31;border:1px solid #6e7681}.console-undo-toast-blue{color:#79c0ff;background:#0d1f40;border:1px solid #4493f8}.console-undo-toast-error{color:#f85149;background:#3a1518;border:1px solid #f85149}.console-undo-toast-message{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.console-undo-toast-undo{cursor:pointer;color:inherit;background:#ffffff1f;border:none;border-radius:6px;flex:none;padding:4px 12px;font-size:13px;font-weight:700}.console-undo-toast-undo:hover{background:#ffffff38}.console-undo-toast-countdown{opacity:.7;flex:none;font-size:11px}.console-undo-toast-bar{opacity:.5;background:currentColor;border-radius:0 0 10px 10px;height:3px;transition:width .1s linear;position:absolute;bottom:0;left:0}.console-file-row{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file-row:hover{background:#1a2029}.console-file-caret{color:#8b949e;flex:none;width:1em}.console-file-diff{border-collapse:collapse;width:100%;margin:4px 0 8px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-diff td{white-space:pre-wrap;word-break:break-word;vertical-align:top;padding:0 10px}.console-diff-ln{text-align:right;color:#6e7681;-webkit-user-select:none;user-select:none;white-space:nowrap;border-right:1px solid #30363d;width:1%;padding:0 8px}.console-diff-add td{background:#2ea04326}.console-diff-add .console-diff-code{color:#aff5b4}.console-diff-del td{background:#f8514926}.console-diff-del .console-diff-code{color:#ffdcd7}.console-diff-hunk td{color:#79c0ff;background:#161b22}.console-diff-ctx .console-diff-code{color:#c9d1d9}.console-file-diff-empty{color:#8b949e;padding:8px 14px;font-size:12px}.console-pr-header{flex-wrap:wrap;align-items:center;gap:10px;padding-top:4px;display:flex}.console-pr-section-title{color:#e6edf3;font-size:15px;font-weight:600}.console-pr-section-state{color:#8b949e;border:1px solid #6e7681;border-radius:999px;padding:1px 8px;font-size:11px}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
1
|
+
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-input:#e5e5e5;--color-ring:#0a0a0a;--color-background:#fff;--color-foreground:#0a0a0a;--color-primary:#171717;--color-primary-foreground:#fafafa;--color-secondary:#f5f5f5;--color-secondary-foreground:#171717;--color-accent:#f5f5f5;--color-accent-foreground:#171717}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.hidden{display:none}.inline-flex{display:inline-flex}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-input{border-color:var(--color-input)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--color-background)}.bg-primary{background-color:var(--color-primary)}.bg-secondary{background-color:var(--color-secondary)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-foreground{color:var(--color-foreground)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.lowercase{text-transform:lowercase}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-primary\/90:hover{background-color:#171717e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--color-primary) 90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:#f5f5f5cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--color-secondary) 80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}}body{color:#e6edf3;background-color:#0d1117;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.console-app{flex-direction:column;max-width:920px;margin:0 auto;display:flex}.console-tabbar{-webkit-overflow-scrolling:touch;background:#161b22;border-bottom:2px solid #30363d;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:42px;padding:0 8px;display:flex;overflow-x:auto}.console-tab{color:#8b949e;white-space:nowrap;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 14px;font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;display:inline-flex}.console-tab:hover{color:#e6edf3}.console-tab[data-active=true]{color:#e6edf3;border-bottom-color:#2f81f7;font-weight:700}.console-tab-badge{text-align:center;color:#e6edf3;background:#484f58;border-radius:20px;min-width:20px;padding:1px 7px;font-size:11px;font-weight:700;line-height:1.5}.console-tab-badge[data-zero=true]{color:#8b949e;background:#30363d}.console-tab-pjname{color:#8b949e;align-self:center;margin-left:auto;padding:0 8px;font-size:11.5px}.console-tab-geninfo{color:#8b949e;align-self:center;padding:0 4px;font-size:11px}.console-tab-count-heading{color:#8b949e;margin:0;padding:12px 18px 0;font-size:13px}.console-list{margin:0;padding:12px 18px 18px;list-style:none}.console-list-group{list-style:none}.console-item-row .console-item-icon{flex:none;margin-top:3px}.console-group-header{background:#0b0f14;border-bottom:1px solid #21262d;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-storytag{align-items:center;gap:8px;font-size:13px;font-weight:700;display:inline-flex}.console-story-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.console-group-count{color:#8b949e;font-size:12px}.console-item-row{color:#e6edf3;text-align:left;cursor:pointer;background:#161b22;border:1px solid #30363d;border-radius:8px;align-items:flex-start;gap:14px;width:100%;margin-bottom:10px;padding:12px 16px;display:flex}.console-item-row:hover{background:#1a2029;border-color:#484f58}.console-item-row[data-active=true]{background:#1a2029;border-color:#4493f8}.console-item-meta{flex:1;min-width:0}.console-item-title{font-size:14.5px;font-weight:600;display:block}.console-item-sub{color:#8b949e;margin-top:3px;font-size:12.5px;display:block}.console-item-pill{color:#8b949e;border:1px solid #30363d;border-radius:20px;margin-right:6px;padding:1px 8px;font-size:11px;display:inline-block}.console-item-createdat{color:#8b949e;cursor:help}.console-list-message{color:#8b949e;padding:16px;font-size:14px}.console-list-empty{text-align:center;color:#8b949e;padding:40px;font-size:14px}.console-list-error,.console-comment-error,.console-files-error,.console-commits-error,.console-detail-body-error{color:#f85149}.console-detail{flex-direction:column;gap:12px;padding:16px;display:flex}.console-detail-title{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.console-detail-title-text{flex:1}.console-detail-number{color:#8b949e;font-weight:400}.console-detail-closed-label{color:#a371f7;font-size:13px}.console-detail-subbar{align-items:center;gap:12px;font-size:13px;display:flex}.console-detail-link{color:#4493f8}.console-detail-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-detail-pill,.console-label-chip,.console-detail-status-chip{border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.console-detail-labels{flex-wrap:wrap;gap:6px;display:flex}.console-detail-createdat{color:#8b949e;font-size:12px}.console-panel{border:1px solid #30363d;border-radius:8px;overflow:hidden}.console-panel-header{background:#161b22;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-panel-toggle{color:#e6edf3;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.console-panel-body{padding:12px}.console-markdown{word-break:break-word;font-size:14px;line-height:1.5}.console-markdown ul{margin:.5em 0;padding-left:1.5em;list-style:outside}.console-markdown ol{margin:.5em 0;padding-left:1.5em;list-style:decimal}.console-markdown li{margin:.25em 0}.console-markdown table{border-collapse:collapse;margin:.5em 0}.console-markdown th,.console-markdown td{border:1px solid #30363d;padding:4px 8px}.console-markdown th{background:#161b22}.console-mermaid-error{color:#f85149;font-size:13px}.console-comment{border-top:1px solid #21262d;padding-top:8px}.console-comment-header{color:#8b949e;gap:8px;font-size:12px;display:flex}.console-comment-author{color:#e6edf3;font-weight:600}.console-files,.console-commits{margin:0;padding:0;list-style:none}.console-commit{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file{flex-direction:column;font-size:13px;display:flex}.console-file-badge{text-align:center;border:1px solid;border-radius:4px;width:18px;font-size:11px}.console-file-path,.console-commit-message{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-add,.console-pr-add{color:#3fb950}.console-file-del,.console-pr-del{color:#f85149}.console-commit-sha{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-actionbar{z-index:100;background:#161b22;border-top:2px solid #30363d;padding:10px 16px;position:fixed;bottom:0;left:0;right:0}.console-operation-bar{flex-direction:column;gap:8px;max-width:920px;margin:0 auto;display:flex}.console-op-group{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.console-op-group-review{gap:10px}.console-op-group-stories{max-height:50vh;overflow-y:auto}.console-op-button{color:#e6edf3;white-space:nowrap;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-op-button:hover{border-color:#484f58}.console-op-button-approve{color:#fff;background:#238636;border-color:#2ea043}.console-op-button-reject{color:#ffd166;background:#7d5000;border-color:#a06800}.console-op-button-wrong{color:#f85149;background:#3a1518;border-color:#f85149}.console-op-button-unneeded{color:#aab0b8;background:#2a2d31;border-color:#6e7681}.console-op-button-snooze{color:#79c0ff;background:#1c2b4a;border-color:#4493f8}.console-pr-section{border:1px solid #30363d;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.console-pr-statbar{color:#8b949e;gap:12px;font-size:12px;display:flex}.console-detail-screen{padding-bottom:140px}.console-panel-open-link{color:#4493f8;font-size:13px;font-weight:400}.console-composer{margin-top:4px}.console-composer-toggle{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:2px 0;font-size:12.5px}.console-composer-toggle:hover{color:#e6edf3}.console-composer-posted{flex-direction:column;gap:8px;margin-top:8px;display:flex}.console-composer-form{margin-top:8px}.console-composer-input{box-sizing:border-box;color:#e6edf3;width:100%;font:inherit;resize:vertical;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:8px;font-size:14px}.console-composer-row{align-items:center;gap:8px;margin-top:6px;display:flex}.console-composer-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-composer-submit:disabled{opacity:.6;cursor:default}.console-composer-status{color:#8b949e;font-size:12px}.console-composer-error{color:#f85149}.console-undo-toast{z-index:9998;white-space:nowrap;border-radius:10px;align-items:center;gap:12px;max-width:92vw;padding:12px 18px;font-size:13.5px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0009}.console-undo-toast-green{color:#3fb950;background:#0d3320;border:1px solid #2ea043}.console-undo-toast-amber{color:#ffd166;background:#3a2800;border:1px solid #a06800}.console-undo-toast-red{color:#f85149;background:#3a1518;border:1px solid #da3633}.console-undo-toast-gray{color:#aab0b8;background:#2a2d31;border:1px solid #6e7681}.console-undo-toast-blue{color:#79c0ff;background:#0d1f40;border:1px solid #4493f8}.console-undo-toast-error{color:#f85149;background:#3a1518;border:1px solid #f85149}.console-undo-toast-message{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.console-undo-toast-undo{cursor:pointer;color:inherit;background:#ffffff1f;border:none;border-radius:6px;flex:none;padding:4px 12px;font-size:13px;font-weight:700}.console-undo-toast-undo:hover{background:#ffffff38}.console-undo-toast-countdown{opacity:.7;flex:none;font-size:11px}.console-undo-toast-bar{opacity:.5;background:currentColor;border-radius:0 0 10px 10px;height:3px;transition:width .1s linear;position:absolute;bottom:0;left:0}.console-file-row{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file-row:hover{background:#1a2029}.console-file-caret{color:#8b949e;flex:none;width:1em}.console-file-diff{border-collapse:collapse;width:100%;margin:4px 0 8px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-diff td{white-space:pre-wrap;word-break:break-word;vertical-align:top;padding:0 10px}.console-diff-ln{text-align:right;color:#6e7681;-webkit-user-select:none;user-select:none;white-space:nowrap;border-right:1px solid #30363d;width:1%;padding:0 8px}.console-diff-add td{background:#2ea04326}.console-diff-add .console-diff-code{color:#aff5b4}.console-diff-del td{background:#f8514926}.console-diff-del .console-diff-code{color:#ffdcd7}.console-diff-hunk td{color:#79c0ff;background:#161b22}.console-diff-ctx .console-diff-code{color:#c9d1d9}.console-file-diff-empty{color:#8b949e;padding:8px 14px;font-size:12px}.console-pr-header{flex-wrap:wrap;align-items:center;gap:10px;padding-top:4px;display:flex}.console-pr-section-title{color:#e6edf3;font-size:15px;font-weight:600}.console-pr-section-state{color:#8b949e;border:1px solid #6e7681;border-radius:999px;padding:1px 8px;font-size:11px}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>TDPM Console</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BFKRWKvS.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CzVHU81K.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|