@kabmo-labs/kabmo 0.61.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -49
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +1157 -825
- package/dist/client/static/js/{Body-ab8wswhm.js → Body-z6kstvk6.js} +3 -3
- package/dist/client/static/js/{CsvGrid-czssywvz.js → CsvGrid-f73c0s4e.js} +2 -2
- package/dist/client/static/js/{DocxView-ke0dwdmt.js → DocxView-a1pb7nsb.js} +3 -3
- package/dist/client/static/js/{DrawioView-a1whhy84.js → DrawioView-r61gcg24.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-dr32dwjy.js → HtmlPreview-vt7j0b05.js} +1 -1
- package/dist/client/static/js/ImageView-4nhr5dtm.js +1 -0
- package/dist/client/static/js/LayoutWrapper-vwhy0vhj.js +2 -0
- package/dist/client/static/js/MergeDiffView-f4h9ss71.js +1 -0
- package/dist/client/static/js/Modal-cadmjkak.js +60 -0
- package/dist/client/static/js/{PdfView-2kdn91f9.js → PdfView-mppt2gkd.js} +1 -1
- package/dist/client/static/js/SessionsView-vvsaw9f0.js +1 -0
- package/dist/client/static/js/{SheetView-ettr9pdw.js → SheetView-5s9zfx9g.js} +9 -9
- package/dist/client/static/js/{SvgPreview-hzcejjry.js → SvgPreview-ff78xn3e.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-kdmv4y72.js → abnfDiagram-O67JEVCF-p29sh3w2.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-83w3kytq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-qyrwaq0x.js → architectureDiagram-NJMV4G6O-nbpdyea3.js} +3 -3
- package/dist/client/static/js/{astro-yphdvdty.js → astro-qtfmc8x7.js} +1 -1
- package/dist/client/static/js/bash-wcy12qjx.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-tszxy2g7.js → blockDiagram-BEXU5L5S-t8xbexa6.js} +6 -6
- package/dist/client/static/js/c-vvantfth.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-0ye36hhv.js → c4Diagram-YGBWAQC7-9fwf2zxk.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-szgk1shv.js → classDiagram-v2-NBCMYWYE-nbapgqbs.js} +4 -4
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-0s9s4mmv.js → cose-bilkent-JH36ORCC-k54mmydp.js} +1 -1
- package/dist/client/static/js/cpp-5x63r6g0.js +1 -0
- package/dist/client/static/js/css-j2j6f03w.js +1 -0
- package/dist/client/static/js/css-qk59j6rj.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-80z02zrj.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-664g28ze.js → cynefinDiagram-VND7K2PF-qdg32wah.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-ga4rp1jx.js → dagre-6A5THRUB-qzshg1vs.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-aagj46ty.js → diagram-22UHCM2B-197hemfa.js} +11 -11
- package/dist/client/static/js/{diagram-3UASUU5V-20qk6whk.js → diagram-3UASUU5V-236gnjr6.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-1vg1tfca.js → diagram-ATOU4E4O-vjgpyaaq.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-90d6jrqs.js → diagram-CDSNMT55-ywvzcx7z.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-8je4z8m1.js → diagram-MLGK6HIB-9ey7ev7j.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-0kzpexsj.js → diagram-MPIPVDR6-vrqbb6r7.js} +2 -2
- package/dist/client/static/js/{dockerfile-5nrbr0ef.js → dockerfile-4nked309.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-47yg36zx.js → ebnfDiagram-ZINNZB2B-hvnkevqy.js} +1 -1
- package/dist/client/static/js/{elixir-3nwnd9yw.js → elixir-3jvh6v4k.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-5hqp6r2d.js → elk-276RUBZZ-nej6yy1c.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-bt9te7r0.js → erDiagram-OPXOYQCR-ww453xcy.js} +5 -5
- package/dist/client/static/js/{erlang-p5c4n3t0.js → erlang-4fz73a1q.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-y9pq2709.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-e6v7513q.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-kzc13swm.js → ganttDiagram-FUAMR5RP-abc5wy70.js} +3 -3
- package/dist/client/static/js/gitGraph-4MIJSDKK-fzaf9azs.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-bjf8aa3j.js → gitGraphDiagram-X574FWY7-4acqzj2h.js} +7 -7
- package/dist/client/static/js/graphql-hpkvdvk7.js +1 -0
- package/dist/client/static/js/html-x12gb1wk.js +1 -0
- package/dist/client/static/js/{index-v88m5sva.js → index-0g82ph6h.js} +2 -2
- package/dist/client/static/js/{index-1fmjhm2d.js → index-0w1jzang.js} +5 -5
- package/dist/client/static/js/{index-kj70d2q9.js → index-1svt0cdw.js} +2 -2
- package/dist/client/static/js/{index-m24sebb0.js → index-1tb4py5v.js} +2 -2
- package/dist/client/static/js/index-2gt9krtj.js +4 -0
- package/dist/client/static/js/index-2x9m7s1a.js +1 -0
- package/dist/client/static/js/index-3fvqmz3m.js +4 -0
- package/dist/client/static/js/{index-k9yf2txw.js → index-42wvbkm5.js} +2 -2
- package/dist/client/static/js/index-477vtt51.js +2 -0
- package/dist/client/static/js/{index-ca6tmamh.js → index-4px56qaz.js} +2 -2
- package/dist/client/static/js/{index-excgtjhx.js → index-5anvw7xg.js} +36 -36
- package/dist/client/static/js/index-5nb9k2ph.js +1 -0
- package/dist/client/static/js/{index-97sw4d9n.js → index-615je3km.js} +2 -2
- package/dist/client/static/js/{index-jz4012t5.js → index-66qxrh5n.js} +1 -1
- package/dist/client/static/js/{index-a145x0w2.js → index-7kct1sz1.js} +2 -2
- package/dist/client/static/js/{index-hwv7bfxc.js → index-8e0d8y30.js} +2 -2
- package/dist/client/static/js/{index-s4j2ghmx.js → index-90bq56xw.js} +2 -2
- package/dist/client/static/js/{index-wsy6y5em.js → index-b1gzh60t.js} +11 -11
- package/dist/client/static/js/{index-10vzyga1.js → index-bypkmjrz.js} +2 -2
- package/dist/client/static/js/{index-n8r7r86r.js → index-c1vd63yd.js} +2 -2
- package/dist/client/static/js/index-c9f0hejv.js +3 -0
- package/dist/client/static/js/{index-2dmew334.js → index-cgqj15g0.js} +2 -2
- package/dist/client/static/js/{index-mtav0rpf.js → index-cts5re1t.js} +2 -2
- package/dist/client/static/js/index-dxc14kmm.js +1 -0
- package/dist/client/static/js/{index-krdz5vby.js → index-dxyjxhm1.js} +2 -2
- package/dist/client/static/js/{index-zr3965k9.js → index-edpyqz9f.js} +1 -1
- package/dist/client/static/js/{index-h7agc069.js → index-eesepb70.js} +2 -2
- package/dist/client/static/js/{index-r38e0rya.js → index-evh437bz.js} +2 -2
- package/dist/client/static/js/index-ey6v4t5b.js +1 -0
- package/dist/client/static/js/{index-025s3fp8.js → index-fsd7n336.js} +2 -2
- package/dist/client/static/js/{index-yfcy4cf6.js → index-h7a7fqag.js} +2 -2
- package/dist/client/static/js/{index-11qn05g9.js → index-hffgwnvz.js} +2 -2
- package/dist/client/static/js/index-j734ev6q.js +482 -0
- package/dist/client/static/js/{index-9g2nzgpx.js → index-jcbp1d9d.js} +6 -6
- package/dist/client/static/js/index-jg5h18sm.js +2 -0
- package/dist/client/static/js/{index-bq9f0mxp.js → index-jtdve6xw.js} +7 -7
- package/dist/client/static/js/{index-kyr612aa.js → index-k0bqrb1y.js} +1 -1
- package/dist/client/static/js/{index-bdtftrym.js → index-kegevd10.js} +2 -2
- package/dist/client/static/js/{index-fr6wsqk8.js → index-kqcfxkch.js} +2 -2
- package/dist/client/static/js/{index-sr14vwn5.js → index-kv1xnem9.js} +2 -2
- package/dist/client/static/js/{index-xy0m8te9.js → index-m54ctmxr.js} +1 -1
- package/dist/client/static/js/index-mgzbypt5.js +314 -0
- package/dist/client/static/js/{index-85jfn1fz.js → index-mh52531j.js} +2 -2
- package/dist/client/static/js/{index-776n5n29.js → index-mhz5ywa4.js} +5 -5
- package/dist/client/static/js/{index-3j2he86h.js → index-nnwdbg3t.js} +2 -2
- package/dist/client/static/js/{index-3x7cbxwq.js → index-nxd6z7f9.js} +2 -2
- package/dist/client/static/js/{index-dabnbvbc.js → index-pjrbt77c.js} +2 -2
- package/dist/client/static/js/index-r7h4pm42.js +2 -0
- package/dist/client/static/js/index-ratrdgc9.js +2 -0
- package/dist/client/static/js/{index-475dc6h9.js → index-rhmvh9w5.js} +2 -2
- package/dist/client/static/js/{index-twwsn91p.js → index-sqzjwy9h.js} +2 -2
- package/dist/client/static/js/{index-z5s9tmj8.js → index-tckzkw0f.js} +2 -2
- package/dist/client/static/js/index-tza9h3q6.css +1 -0
- package/dist/client/static/js/{index-qccydkze.js → index-vhjfr093.js} +2 -2
- package/dist/client/static/js/{index-653x8zdq.js → index-w0j96eyy.js} +8 -8
- package/dist/client/static/js/{index-24a40rw8.js → index-ws04kxy9.js} +1 -1
- package/dist/client/static/js/{index-a3bpmw2r.js → index-x1yqmzpr.js} +2 -2
- package/dist/client/static/js/{index-fb2fjndj.js → index-x2f7wykb.js} +6 -6
- package/dist/client/static/js/index-y8405hdg.js +10 -0
- package/dist/client/static/js/{index-sx83ans2.js → index-yxk7dgnb.js} +2 -2
- package/dist/client/static/js/{index-bkn6jtn1.js → index-zavecxak.js} +2 -2
- package/dist/client/static/js/{index-vn59zz0k.js → index-zg7q3kcb.js} +2 -2
- package/dist/client/static/js/{index-enm77k5z.js → index-zhn9vv3z.js} +2 -2
- package/dist/client/static/js/{index-vgcw01yk.js → index-zy963qbh.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-t7pbg7rt.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-jy5zvvj8.js → infoDiagram-VRGFBTTK-9pe7w3r5.js} +2 -2
- package/dist/client/static/js/ini-522adp5a.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-pfky1nnf.js → ishikawaDiagram-OU5B5YK6-38arfrx5.js} +2 -2
- package/dist/client/static/js/java-z0rgs7v6.js +1 -0
- package/dist/client/static/js/javascript-fv87f565.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-mvaf7rfh.js → journeyDiagram-ZHPQQLJL-kcwzjgtz.js} +4 -4
- package/dist/client/static/js/json-1czq1ped.js +1 -0
- package/dist/client/static/js/jsx-1fch2jyr.js +1 -0
- package/dist/client/static/js/{julia-rpd1y9vh.js → julia-pzzxbptm.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-hw2xwe6e.js → kanban-definition-PNTS6WVX-nmegwy9w.js} +15 -15
- package/dist/client/static/js/lua-nn8bpjev.js +1 -0
- package/dist/client/static/js/markdown-38tqrgkn.js +1 -0
- package/dist/client/static/js/{mermaid.core-hsw87hmq.js → mermaid.core-3aae27b9.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-wfe4d846.js → mindmap-definition-NLK3R4M7-zsaq4e65.js} +12 -12
- package/dist/client/static/js/one-dark-pro-trnff03z.js +1 -0
- package/dist/client/static/js/one-light-ck31ptqs.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-rwac7scq.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-cvnmxgst.js → pegDiagram-GJSIUBJH-2b6whj1p.js} +1 -1
- package/dist/client/static/js/{perl-kmtz9dnv.js → perl-zdkbbjd2.js} +1 -1
- package/dist/client/static/js/{php-bttrsbxy.js → php-ktaxff6g.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-gjz20apz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-0n3gz7sv.js → pieDiagram-5QR66LMP-y09ar7vz.js} +3 -3
- package/dist/client/static/js/properties-kncqeqhn.js +1 -0
- package/dist/client/static/js/python-gx8ggmyh.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-9qqh6xvv.js → quadrantDiagram-O4NWA36T-mapfzs06.js} +3 -3
- package/dist/client/static/js/r-x8rftkm3.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-akwdknab.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-m5v4rfhx.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-k2gmqcjb.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zdsfjf4.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-e98evqb6.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-5f3x3762.js → railroadDiagram-XR7U4H2S-70qy7qdh.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-a68bv6kh.js → requirementDiagram-PLB6GJNP-2vb2gp3e.js} +3 -3
- package/dist/client/static/js/{ruby-dve3y59w.js → ruby-ytqv3pqz.js} +1 -1
- package/dist/client/static/js/{rust-qjhdt4b0.js → rust-6sddyxnt.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-ry7xcphh.js → sankeyDiagram-IPEJSGJF-9jd8ebrn.js} +3 -3
- package/dist/client/static/js/{sass-emxqt5p2.js → sass-dvbra5b6.js} +1 -1
- package/dist/client/static/js/{scss-4j4t3r6y.js → scss-sy7w8916.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-mekzzhet.js → sequenceDiagram-PO4LG4MO-w7z84f80.js} +7 -7
- package/dist/client/static/js/{sizeCapture-INFHLROL-pvc16ame.js → sizeCapture-INFHLROL-q8w7ehgx.js} +1 -1
- package/dist/client/static/js/sql-99y0qnag.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-3ytxby83.js → stateDiagram-v2-GCMORJYK-4978hapr.js} +3 -3
- package/dist/client/static/js/{svelte-dbsx1ehx.js → svelte-xvs3fkza.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-c2zfp416.js → swimlanes-2SLR337P-eshg5fjy.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-914e28hd.js +8 -0
- package/dist/client/static/js/timeline-definition-EJHVYXUP-5h5q357k.js +120 -0
- package/dist/client/static/js/treeView-Q6P3EWNA-fkm3a7gx.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-hm4ktxjf.js +1 -0
- package/dist/client/static/js/tsx-phngprp0.js +1 -0
- package/dist/client/static/js/typescript-m62a7zr2.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-sz6b7bnv.js → usecaseDiagram-POWQR4AR-4j69y3zx.js} +20 -20
- package/dist/client/static/js/vennDiagram-UO4OBE2U-pa9p5jpw.js +34 -0
- package/dist/client/static/js/{vue-hyr58df9.js → vue-p4g4avm3.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-3y2rvdmy.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-xvtyvde9.js → wardleyDiagram-VNRHLVJA-hjddd656.js} +3 -3
- package/dist/client/static/js/xml-59n0cjn6.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-jcs20s84.js → xychartDiagram-PMCCYNJV-8ng5m849.js} +4 -4
- package/dist/client/static/js/yaml-9fw908s4.js +1 -0
- package/dist/client/tailwindcss-oxide.linux-x64-gnu-c0fa36dv.node +0 -0
- package/dist/client/tailwindcss-oxide.linux-x64-musl-kr04sh0e.node +0 -0
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/app.tsx +2 -5
- package/marketplace/plugins/command-runner/src/panel/CustomForm.tsx +35 -52
- package/marketplace/plugins/command-runner/src/panel/Groups.tsx +6 -5
- package/marketplace/plugins/command-runner/src/panel/Header.tsx +18 -54
- package/marketplace/plugins/command-runner/src/panel/Output.tsx +3 -7
- package/marketplace/plugins/command-runner/src/panel/Row.tsx +19 -38
- package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -4
- package/marketplace/plugins/git-forge/package.json +2 -2
- package/marketplace/plugins/git-forge/src/app.tsx +2 -0
- package/marketplace/plugins/git-forge/src/panel/Credential.tsx +8 -15
- package/marketplace/plugins/git-forge/src/panel/Header.tsx +35 -66
- package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +7 -13
- package/marketplace/plugins/git-forge/src/panel/List.tsx +28 -56
- package/marketplace/plugins/git-forge/src/panel/Row.tsx +7 -9
- package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +21 -31
- package/marketplace/plugins/git-forge/src/panel/Write.tsx +26 -40
- package/marketplace/plugins/git-forge/src/panel/index.tsx +0 -1
- package/marketplace/plugins/github-actions/package.json +2 -2
- package/marketplace/plugins/github-actions/src/app.tsx +2 -0
- package/marketplace/plugins/github-actions/src/panel/Actions.tsx +9 -17
- package/marketplace/plugins/github-actions/src/panel/LogView.tsx +4 -13
- package/marketplace/plugins/github-actions/src/panel/Row.tsx +4 -5
- package/marketplace/plugins/github-actions/src/panel/RunView.tsx +8 -15
- package/marketplace/plugins/github-actions/src/panel/index.test.tsx +3 -2
- package/marketplace/plugins/github-actions/src/panel/index.tsx +31 -37
- package/marketplace/plugins/kanban/package.json +2 -2
- package/marketplace/plugins/kanban/src/app.tsx +2 -0
- package/marketplace/plugins/kanban/src/panel/CardSheet.tsx +88 -98
- package/marketplace/plugins/kanban/src/panel/CardTile.tsx +6 -10
- package/marketplace/plugins/kanban/src/panel/StageColumn.tsx +22 -18
- package/marketplace/plugins/kanban/src/panel/StageSheet.tsx +59 -70
- package/marketplace/plugins/kanban/src/panel/index.tsx +37 -52
- package/marketplace/plugins/kanban/src/panel/use-board.ts +2 -0
- package/marketplace/plugins/session-info/package.json +2 -2
- package/marketplace/plugins/session-info/src/app.tsx +6 -3
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/KillConfirm.test.tsx +6 -4
- package/marketplace/plugins/stats/src/KillConfirm.tsx +26 -76
- package/marketplace/plugins/stats/src/ProcessTable.tsx +8 -6
- package/marketplace/plugins/stats/src/RefreshButton.tsx +7 -5
- package/marketplace/plugins/stats/src/app.tsx +11 -9
- package/package.json +10 -10
- package/src/cli/lib/commands/plugin.js +8 -5
- package/src/client/bootstrap.d.ts +5 -0
- package/src/client/chat-title-overlay.test.ts +53 -0
- package/src/client/components/auth/login-screen/index.tsx +31 -3
- package/src/client/components/common/SignOutButton.tsx +4 -5
- package/src/client/components/common/account-badge/index.tsx +31 -0
- package/src/client/components/common/footer-version/index.tsx +40 -0
- package/src/client/components/common/fullscreen-viewer/fullscreen-viewer.test.tsx +24 -0
- package/src/client/components/common/fullscreen-viewer/index.tsx +22 -31
- package/src/client/components/common/header-controls/MoreMenu.tsx +5 -56
- package/src/client/components/common/header-controls/index.test.tsx +2 -6
- package/src/client/components/common/header-controls/index.tsx +9 -25
- package/src/client/components/common/header-controls/phone-row.test.tsx +3 -16
- package/src/client/components/common/shell-update-button/index.tsx +2 -2
- package/src/client/components/common/zoom-pan-stage/index.tsx +54 -50
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +4 -5
- package/src/client/components/layout/desktop-layout/index.tsx +2 -4
- package/src/client/components/layout/left-bar/index.tsx +25 -3
- package/src/client/components/layout/rail-toggle.test.tsx +112 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.accent.test.tsx +81 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +11 -3
- package/src/client/components/layout/session-sidebar/Footer.test.tsx +36 -0
- package/src/client/components/layout/session-sidebar/Footer.tsx +42 -61
- package/src/client/components/layout/session-sidebar/FooterHost.tsx +5 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +30 -10
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +4 -0
- package/src/client/components/layout/session-sidebar/modern/index.tsx +8 -1
- package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +25 -4
- package/src/client/components/layout/session-title-bar/index.tsx +13 -5
- package/src/client/components/layout/top-bars.test.tsx +4 -2
- package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
- package/src/client/components/mobile/RightSidebar.tsx +12 -3
- package/src/client/components/mobile/SessionSidebar.tsx +6 -2
- package/src/client/components/mobile/drawer-layout.test.tsx +7 -3
- package/src/client/components/mobile/drawer-strip.tsx +9 -2
- package/src/client/components/mobile/mobile-main-view/Header.test.tsx +29 -9
- package/src/client/components/mobile/mobile-main-view/Header.tsx +43 -12
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +12 -1
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
- package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +1 -0
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +9 -1
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +4 -2
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +48 -46
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +18 -1
- package/src/client/components/mobile/mobile-session-sidebar/Item.test.tsx +4 -0
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +4 -6
- package/src/client/components/mobile/right-drawer-nav.test.tsx +53 -1
- package/src/client/components/settings/Band.tsx +5 -2
- package/src/client/components/settings/Modal.tsx +8 -5
- package/src/client/components/settings/Sidebar.tsx +5 -3
- package/src/client/components/settings/apply-side-effects.ts +5 -0
- package/src/client/components/settings/categories/AccountSettings.tsx +266 -0
- package/src/client/components/settings/categories/ProjectSettings.tsx +2 -0
- package/src/client/components/settings/categories/account-settings/Dialogs.tsx +223 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +3 -4
- package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +66 -39
- package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +7 -4
- package/src/client/components/settings/categories/project-settings/DetailsForm.tsx +14 -1
- package/src/client/components/settings/categories/project-settings/ProjectSharing.tsx +130 -0
- package/src/client/components/settings/categories/project-settings/SidebarList.tsx +5 -0
- package/src/client/components/settings/category-content.tsx +3 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/ComposerDockFrame.tsx +2 -1
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/SessionSkeleton.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +9 -2
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +2 -1
- package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +34 -0
- package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +9 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/styles.test.tsx +4 -1
- package/src/client/components/workspace/editor/Tab.tsx +19 -26
- package/src/client/components/workspace/editor/Tabs.test.ts +13 -7
- package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +1 -0
- package/src/client/components/workspace/git-panel/commit-modal/floating.test.ts +46 -0
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -0
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +4 -5
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +40 -39
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +76 -58
- package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +9 -9
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +14 -1
- package/src/client/components/workspace/panel-tabs/index.tsx +1 -1
- package/src/client/components/workspace/plugin-panel/catalog.tsx +22 -5
- package/src/client/components/workspace/plugin-panel/chrome.test.tsx +89 -0
- package/src/client/components/workspace/plugin-panel/chrome.tsx +62 -0
- package/src/client/data/settings/omp-schema.json +40 -4
- package/src/client/floating-phone.test.ts +189 -0
- package/src/client/floating.css +205 -2
- package/src/client/floating.test.ts +43 -0
- package/src/client/glass.css +47 -0
- package/src/client/hooks/chat/omp/index.ts +6 -5
- package/src/client/hooks/chat/omp/prompt-send.test.ts +18 -0
- package/src/client/hooks/chat/omp/prompt-send.ts +26 -8
- package/src/client/hooks/chat/omp/session-list.tsx +20 -8
- package/src/client/hooks/chat/timeline/deferred-model.ts +13 -5
- package/src/client/hooks/chat/timeline/index.ts +2 -0
- package/src/client/hooks/chat/timeline/send-props.ts +14 -0
- package/src/client/hooks/chat/timeline/send-steer.test.ts +11 -2
- package/src/client/hooks/chat/timeline/send-switch.test.ts +92 -0
- package/src/client/hooks/chat/timeline/send.test-util.ts +37 -7
- package/src/client/hooks/chat/timeline/send.test.ts +11 -2
- package/src/client/hooks/chat/timeline/send.ts +62 -42
- package/src/client/hooks/editor/image-generation.ts +24 -0
- package/src/client/hooks/editor/resolve-viewer.test.ts +26 -20
- package/src/client/hooks/editor/resolve-viewer.ts +14 -5
- package/src/client/hooks/editor/use-file-editor.test.ts +34 -0
- package/src/client/hooks/editor/use-file-editor.ts +6 -2
- package/src/client/hooks/settings/accounts.ts +162 -0
- package/src/client/hooks/ui/auth.ts +58 -3
- package/src/client/hooks/ui/border-style.test.ts +5 -4
- package/src/client/hooks/ui/border-style.ts +3 -2
- package/src/client/hooks/ui/mobile-chrome-style.ts +68 -0
- package/src/client/hooks/ui/navbar-controls.test.ts +1 -2
- package/src/client/hooks/ui/navbar-controls.ts +0 -3
- package/src/client/hooks/ui/zoom-gesture.ts +104 -0
- package/src/client/lib/desktop/titlebar.test.ts +21 -0
- package/src/client/lib/desktop/titlebar.ts +34 -0
- package/src/client/lib/plugins/bootstrap.test.ts +20 -0
- package/src/client/lib/plugins/bootstrap.tsx +10 -15
- package/src/client/lib/plugins/kit-components.test.tsx +119 -0
- package/src/client/lib/plugins/kit-components.tsx +79 -0
- package/src/client/lib/plugins/kit.ts +8 -0
- package/src/client/lib/plugins/slots.test.ts +34 -0
- package/src/client/lib/plugins/slots.ts +31 -4
- package/src/client/lib/plugins/stylesheets.ts +10 -11
- package/src/client/lib/ui/pinch.test.ts +74 -0
- package/src/client/lib/ui/pinch.ts +104 -0
- package/src/client/lib/ui/safe-area.test.ts +25 -0
- package/src/client/lib/ui/safe-area.ts +23 -0
- package/src/client/main.tsx +8 -1
- package/src/client/tailwind.css +54 -1
- package/src/server/index.ts +2 -0
- package/src/server/lib/assets/shell-attributes.server.ts +12 -4
- package/src/server/lib/assets/shell-attributes.test.ts +19 -18
- package/src/server/lib/auth/client-address.test.ts +2 -2
- package/src/server/lib/auth/guard.test.ts +2 -2
- package/src/server/lib/auth/guard.ts +81 -97
- package/src/server/lib/auth/handover-guard.test.ts +1 -1
- package/src/server/lib/auth/rate-limit.test.ts +2 -2
- package/src/server/lib/auth/token.test.ts +1 -1
- package/src/server/lib/auth/workspace-gate.server.ts +34 -0
- package/src/server/lib/bundler/css.test.ts +16 -0
- package/src/server/lib/connect/devices.server.test.ts +12 -0
- package/src/server/lib/connect/devices.server.ts +63 -19
- package/src/server/lib/connect/pairing.server.ts +5 -3
- package/src/server/lib/connect/status.server.ts +2 -2
- package/src/server/lib/db/schema.test.ts +3 -3
- package/src/server/lib/db/schema.ts +6 -0
- package/src/server/lib/harness/update-spawn.server.test.ts +97 -0
- package/src/server/lib/harness/update-spawn.server.ts +10 -0
- package/src/server/lib/models/provider-icon-override.server.test.ts +140 -0
- package/src/server/lib/models/provider-icon-override.server.ts +197 -0
- package/src/server/lib/models/provider-icon-store.server.ts +8 -0
- package/src/server/lib/models/provider-icon.server.ts +31 -6
- package/src/server/lib/omp/session/artifacts.server.test.ts +11 -7
- package/src/server/lib/omp/session/artifacts.server.ts +21 -17
- package/src/server/lib/panels/build.server.ts +19 -2
- package/src/server/lib/panels/css.server.test.ts +141 -0
- package/src/server/lib/panels/css.server.ts +255 -0
- package/src/server/lib/panels/plugin-ui-contract.test.ts +64 -0
- package/src/server/lib/panels/registry-stylesheet.server.test.ts +69 -0
- package/src/server/lib/panels/scan.server.ts +13 -7
- package/src/server/lib/panels/source-warnings.server.test.ts +65 -0
- package/src/server/lib/panels/source-warnings.server.ts +71 -0
- package/src/server/lib/realtime/topics/catalog.server.ts +3 -0
- package/src/server/lib/realtime/topics.server.ts +14 -0
- package/src/server/lib/sessions/last-opened-client.server.ts +1 -1
- package/src/server/lib/workspace/access.server.ts +108 -0
- package/src/server/lib/workspace/project-patch.server.ts +4 -2
- package/src/server/lib/workspace/register-folder.server.ts +19 -5
- package/src/server/lib/workspace/session-access.server.ts +55 -0
- package/src/server/lib/workspace/tenancy-schema.server.ts +40 -0
- package/src/server/plugins/ssr.ts +19 -3
- package/src/server/routes/accounts/index.ts +8 -0
- package/src/server/routes/accounts/management.test.ts +174 -0
- package/src/server/routes/accounts/management.ts +166 -0
- package/src/server/routes/auth/login.ts +22 -8
- package/src/server/routes/auth/logout.ts +1 -1
- package/src/server/routes/auth/password.ts +40 -33
- package/src/server/routes/auth/revoke.test.ts +1 -1
- package/src/server/routes/auth/revoke.ts +26 -8
- package/src/server/routes/auth/routes.test.ts +3 -3
- package/src/server/routes/auth/state.ts +14 -7
- package/src/server/routes/connect/devices.ts +7 -4
- package/src/server/routes/connect/pair.ts +4 -3
- package/src/server/routes/connect/status.ts +4 -2
- package/src/server/routes/connect/tunnels.ts +2 -1
- package/src/server/routes/folders/batch-delete.ts +12 -0
- package/src/server/routes/folders/clone.ts +7 -2
- package/src/server/routes/folders/create.ts +3 -1
- package/src/server/routes/folders/folder.ts +44 -4
- package/src/server/routes/folders/index.ts +3 -0
- package/src/server/routes/folders/shares.ts +62 -0
- package/src/server/routes/index.ts +2 -0
- package/src/server/routes/panels/build.ts +1 -1
- package/src/server/routes/panels/css.test.ts +22 -0
- package/src/server/routes/panels/css.ts +5 -7
- package/src/server/routes/realtime/ws.ts +16 -1
- package/src/server/routes/sessions/list.ts +3 -2
- package/src/server/routes/settings/projects.ts +46 -7
- package/src/server/routes/settings/provider-icon.ts +18 -0
- package/src/shared/lib/chat/timeline/tool-render-mode.test.ts +2 -2
- package/src/shared/lib/chat/timeline/tool-render-mode.ts +6 -3
- package/src/shared/lib/icons/tint-hues.generated.ts +38 -37
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +27 -1
- package/src/shared/lib/omp/session/prewarm-misc.test.ts +1 -1
- package/src/shared/lib/realtime/protocol.ts +16 -0
- package/src/shared/lib/settings/defaults.ts +2 -1
- package/src/shared/lib/settings/sections.ts +1 -1
- package/src/shared/lib/theme/border-style.test.ts +11 -9
- package/src/shared/lib/theme/border-style.ts +7 -7
- package/src/shared/lib/theme/chrome-style.test.ts +15 -0
- package/src/shared/lib/theme/chrome-style.ts +16 -1
- package/src/shared/types/index.ts +1 -0
- package/src/shared/types/settings/state.ts +6 -5
- package/src/test-support/file-editor.test-util.ts +25 -6
- package/tsconfig.json +21 -0
- package/dist/client/static/js/ImageView-zf4kh5wp.js +0 -1
- package/dist/client/static/js/LayoutWrapper-dncbzcea.js +0 -2
- package/dist/client/static/js/MergeDiffView-btdx9yb9.js +0 -1
- package/dist/client/static/js/Modal-5cxfw2rv.js +0 -60
- package/dist/client/static/js/SessionsView-vbn0nvx4.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +0 -1
- package/dist/client/static/js/bash-bcbct9gc.js +0 -1
- package/dist/client/static/js/c-fn9jz26e.js +0 -1
- package/dist/client/static/js/cpp-a1q64mke.js +0 -1
- package/dist/client/static/js/css-b92azee8.js +0 -1
- package/dist/client/static/js/css-sn00sq6v.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-500fcx2a.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +0 -1
- package/dist/client/static/js/graphql-8d8bn59j.js +0 -1
- package/dist/client/static/js/html-6hdrwtz2.js +0 -1
- package/dist/client/static/js/index-0kcnghxn.js +0 -4
- package/dist/client/static/js/index-2zhmmtye.js +0 -2
- package/dist/client/static/js/index-4vtc4xct.js +0 -481
- package/dist/client/static/js/index-5srvxsht.js +0 -2
- package/dist/client/static/js/index-6c1s0v4b.js +0 -1
- package/dist/client/static/js/index-cvm2ha01.js +0 -1
- package/dist/client/static/js/index-d11mbz2q.js +0 -4
- package/dist/client/static/js/index-fen0x3qh.js +0 -1
- package/dist/client/static/js/index-gwgh27h3.js +0 -314
- package/dist/client/static/js/index-hxy1sadd.js +0 -2
- package/dist/client/static/js/index-pg87cgpy.js +0 -2
- package/dist/client/static/js/index-q1a40v20.js +0 -3
- package/dist/client/static/js/index-qmvstmvh.js +0 -1
- package/dist/client/static/js/index-t6nqy2n5.css +0 -1
- package/dist/client/static/js/index-wf5j0009.js +0 -10
- package/dist/client/static/js/index-y6zbkh4p.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +0 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +0 -1
- package/dist/client/static/js/java-n596am4c.js +0 -1
- package/dist/client/static/js/javascript-zc1qnyyp.js +0 -1
- package/dist/client/static/js/json-7k70qbkj.js +0 -1
- package/dist/client/static/js/jsx-sndenqrc.js +0 -1
- package/dist/client/static/js/lua-djd3g9q5.js +0 -1
- package/dist/client/static/js/markdown-r2tpvxpn.js +0 -1
- package/dist/client/static/js/one-dark-pro-ckq5capv.js +0 -1
- package/dist/client/static/js/one-light-a908z398.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +0 -1
- package/dist/client/static/js/properties-brn72zdk.js +0 -1
- package/dist/client/static/js/python-g9mghwgm.js +0 -1
- package/dist/client/static/js/r-e247x4mw.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +0 -1
- package/dist/client/static/js/sql-0kar81jy.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-9gm67sq4.js +0 -8
- package/dist/client/static/js/timeline-definition-EJHVYXUP-xtvv4za2.js +0 -120
- package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +0 -1
- package/dist/client/static/js/tsx-gjxfjnbk.js +0 -1
- package/dist/client/static/js/typescript-bm89v3gk.js +0 -1
- package/dist/client/static/js/vennDiagram-UO4OBE2U-56q0qs51.js +0 -34
- package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +0 -1
- package/dist/client/static/js/xml-b7824nx0.js +0 -1
- package/dist/client/static/js/yaml-kqqktdv1.js +0 -1
- package/src/server/lib/auth/client-address.ts +0 -89
- package/src/server/lib/auth/config.ts +0 -133
- package/src/server/lib/auth/rate-limit.ts +0 -146
- package/src/server/lib/auth/token.ts +0 -220
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
* unreachable on a phone.
|
|
45
45
|
*/
|
|
46
46
|
|
|
47
|
+
import { IconButton } from '@kabmo-labs/kabmo-ui/components';
|
|
47
48
|
import { useEffect, useId, useState } from 'preact/hooks';
|
|
48
49
|
|
|
49
50
|
import type { Command, RunLog, RunSummary } from '../protocol';
|
|
@@ -190,65 +191,45 @@ export function CommandRow({
|
|
|
190
191
|
coarse pointer, so a phone is not left with two invisible controls
|
|
191
192
|
it can press but cannot see. */}
|
|
192
193
|
{command.custom && onEdit ? (
|
|
193
|
-
<
|
|
194
|
-
|
|
194
|
+
<IconButton
|
|
195
|
+
ariaLabel={`Edit ${command.label}`}
|
|
195
196
|
onClick={() => onEdit(command)}
|
|
196
|
-
|
|
197
|
-
aria-label={`Edit ${command.label}`}
|
|
198
|
-
className="flex-shrink-0 p-1 rounded text-ink/35 hover:text-ink hover:bg-ink/5 transition-colors cursor-pointer opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 touch-visible"
|
|
197
|
+
className="opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 touch-visible"
|
|
199
198
|
>
|
|
200
199
|
<Glyph path={ICON.edit} />
|
|
201
|
-
</
|
|
200
|
+
</IconButton>
|
|
202
201
|
) : null}
|
|
203
202
|
|
|
204
203
|
{command.custom && onRemove ? (
|
|
205
|
-
<
|
|
206
|
-
|
|
204
|
+
<IconButton
|
|
205
|
+
ariaLabel={`Delete ${command.label}`}
|
|
206
|
+
variant="danger"
|
|
207
207
|
onClick={() => onRemove(command)}
|
|
208
|
-
|
|
209
|
-
aria-label={`Delete ${command.label}`}
|
|
210
|
-
className="flex-shrink-0 p-1 rounded text-ink/35 hover:text-error hover:bg-error/10 transition-colors cursor-pointer opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 touch-visible"
|
|
208
|
+
className="opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 touch-visible"
|
|
211
209
|
>
|
|
212
210
|
<Glyph path={ICON.trash} />
|
|
213
|
-
</
|
|
211
|
+
</IconButton>
|
|
214
212
|
) : null}
|
|
215
213
|
|
|
216
214
|
{/* The one toggle left: how a run is TRACKED, not what is displayed. */}
|
|
217
|
-
<
|
|
218
|
-
|
|
219
|
-
onClick={() => onToggleBackground(command.id, !background)}
|
|
220
|
-
aria-pressed={background}
|
|
221
|
-
/* The name must not begin with `Run`/`Stop` like the control beside
|
|
222
|
-
it. It used to (`Run <label> as a background job …`), which gave two
|
|
223
|
-
buttons in one row the same accessible name up to the suffix — so a
|
|
224
|
-
screen reader announced two controls beginning "Run bun run dev",
|
|
225
|
-
and the e2e spec had to disambiguate with `exact: true` to click the
|
|
226
|
-
right one. A name that starts with what the button DOES
|
|
227
|
-
(`Keep … running in the background`) is unambiguous for both. */
|
|
228
|
-
aria-label={`Keep ${command.label} running in the background — currently ${background ? 'on' : 'off'}, click to turn ${background ? 'off' : 'on'}`}
|
|
215
|
+
<IconButton
|
|
216
|
+
ariaLabel={`Keep ${command.label} running in the background — currently ${background ? 'on' : 'off'}, click to turn ${background ? 'off' : 'on'}`}
|
|
229
217
|
title={background ? `Stop tracking ${command.label} as a job` : `Run ${command.label} as a background job`}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}`}
|
|
218
|
+
pressed={background}
|
|
219
|
+
onClick={() => onToggleBackground(command.id, !background)}
|
|
233
220
|
>
|
|
234
221
|
<Glyph path={ICON.background} />
|
|
235
|
-
</
|
|
222
|
+
</IconButton>
|
|
236
223
|
|
|
237
224
|
{/* Run / Stop, icon-only. A running command's glyph is the square, so the
|
|
238
225
|
one control says which of the two things a click will do. */}
|
|
239
|
-
<
|
|
240
|
-
|
|
226
|
+
<IconButton
|
|
227
|
+
ariaLabel={running ? `Stop ${command.label}` : `Run ${command.label}`}
|
|
228
|
+
variant={running ? 'danger' : 'outline'}
|
|
241
229
|
onClick={() => (running ? onStop(run!.id) : handleRun())}
|
|
242
|
-
title={running ? `Stop ${command.label}` : `Run ${command.label}`}
|
|
243
|
-
aria-label={running ? `Stop ${command.label}` : `Run ${command.label}`}
|
|
244
|
-
className={`flex-shrink-0 p-1 rounded border transition-colors cursor-pointer ${
|
|
245
|
-
running
|
|
246
|
-
? 'border-error/40 text-error hover:bg-error/10'
|
|
247
|
-
: 'border-ink/20 text-ink/70 hover:text-ink hover:bg-ink/5'
|
|
248
|
-
}`}
|
|
249
230
|
>
|
|
250
231
|
<Glyph path={running ? ICON.stop : ICON.play} />
|
|
251
|
-
</
|
|
232
|
+
</IconButton>
|
|
252
233
|
</div>
|
|
253
234
|
|
|
254
235
|
{/* Mounted in both states so the reveal animates; `inert` while hidden so
|
|
@@ -46,8 +46,6 @@ export interface PanelViewProps {
|
|
|
46
46
|
logs: Record<string, RunLog>;
|
|
47
47
|
/** The scope every request carries, or null with no workspace. */
|
|
48
48
|
scope: { root: string; repo: string } | null;
|
|
49
|
-
/** False in the phone's drawer, which draws its own tab strip above the view. */
|
|
50
|
-
showHeader: boolean;
|
|
51
49
|
onToggleGroup: (file: string, collapsed: boolean) => void;
|
|
52
50
|
onToggleBackground: (commandId: string, next: boolean) => void;
|
|
53
51
|
onRefresh: () => void;
|
|
@@ -82,7 +80,6 @@ export function PanelView({
|
|
|
82
80
|
background,
|
|
83
81
|
logs,
|
|
84
82
|
scope,
|
|
85
|
-
showHeader,
|
|
86
83
|
onToggleGroup,
|
|
87
84
|
onToggleBackground,
|
|
88
85
|
onRefresh,
|
|
@@ -103,7 +100,7 @@ export function PanelView({
|
|
|
103
100
|
|
|
104
101
|
return (
|
|
105
102
|
<div className="flex flex-col h-full w-full bg-paper text-ink">
|
|
106
|
-
<PanelHeader scope={repo}
|
|
103
|
+
<PanelHeader scope={repo} onRefresh={onRefresh} />
|
|
107
104
|
|
|
108
105
|
<div className="flex-1 min-h-0 overflow-y-auto scrollbar-overlay-container">
|
|
109
106
|
{!scope ? (
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Reads and acts on a repository's issues, pull/merge requests and releases on GitHub, GitLab, Gitea or Bitbucket.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"kabmo": {
|
|
8
8
|
"id": "git-forge",
|
|
9
9
|
"name": "Forge",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.6.0",
|
|
11
11
|
"description": "Reads and acts on a repository's issues, pull/merge requests and releases on GitHub, GitLab, Gitea or Bitbucket.",
|
|
12
12
|
"app": "dist/app.js",
|
|
13
13
|
"server": "dist/server.js",
|
|
@@ -34,6 +34,8 @@ export default definePluginApp((app) => {
|
|
|
34
34
|
id: 'forge',
|
|
35
35
|
title: 'Issues & requests',
|
|
36
36
|
component: ForgePanel,
|
|
37
|
+
// The host draws the panel's title row; the plugin owns the toolbar below.
|
|
38
|
+
chrome: 'host',
|
|
37
39
|
// A row carries a state badge, a title, an id, an author, a count and up to
|
|
38
40
|
// two labels; below this the title is a fragment.
|
|
39
41
|
minWidth: 420,
|
|
@@ -26,6 +26,7 @@ import { useRpc } from '@kabmo-labs/kabmo-ui';
|
|
|
26
26
|
|
|
27
27
|
import { RPC, type ForgeCredential } from '../protocol';
|
|
28
28
|
import type { Scope } from './use-forge';
|
|
29
|
+
import { Button, IconButton } from '@kabmo-labs/kabmo-ui/components';
|
|
29
30
|
import { Glyph, ICON } from './Glyph';
|
|
30
31
|
|
|
31
32
|
interface CredentialSheetProps {
|
|
@@ -41,8 +42,6 @@ const SOURCE: Record<ForgeCredential['source'], string> = {
|
|
|
41
42
|
none: 'nothing: reads are anonymous',
|
|
42
43
|
};
|
|
43
44
|
|
|
44
|
-
const FOCUS = 'tap-target focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink/20';
|
|
45
|
-
|
|
46
45
|
export function CredentialSheet({ scope, credential, onClose }: CredentialSheetProps) {
|
|
47
46
|
const probe = useRpc<{ root: string; repo: string; probe: boolean }, ForgeCredential>(RPC.credential);
|
|
48
47
|
const [probed, setProbed] = useState<ForgeCredential | null>(null);
|
|
@@ -71,15 +70,14 @@ export function CredentialSheet({ scope, credential, onClose }: CredentialSheetP
|
|
|
71
70
|
<div className="flex items-center gap-1.5">
|
|
72
71
|
<Glyph path={ICON.key} size={11} />
|
|
73
72
|
<span className="text-[10px] font-semibold uppercase tracking-wider text-ink/60">Credential</span>
|
|
74
|
-
<
|
|
75
|
-
|
|
73
|
+
<IconButton
|
|
74
|
+
ariaLabel="Close the credential sheet"
|
|
76
75
|
onClick={onClose}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
className={`ml-auto cursor-pointer rounded p-0.5 text-ink/50 transition-colors hover:text-ink ${FOCUS}`}
|
|
76
|
+
size="xs"
|
|
77
|
+
className="ml-auto"
|
|
80
78
|
>
|
|
81
79
|
<Glyph path={ICON.cross} size={11} />
|
|
82
|
-
</
|
|
80
|
+
</IconButton>
|
|
83
81
|
</div>
|
|
84
82
|
|
|
85
83
|
<p className="text-[11px] leading-relaxed text-ink/80">
|
|
@@ -88,14 +86,9 @@ export function CredentialSheet({ scope, credential, onClose }: CredentialSheetP
|
|
|
88
86
|
<p className={`text-[10px] leading-relaxed ${write.tone}`}>{write.text}</p>
|
|
89
87
|
|
|
90
88
|
<div className="flex items-center gap-1">
|
|
91
|
-
<
|
|
92
|
-
type="button"
|
|
93
|
-
onClick={() => void runProbe()}
|
|
94
|
-
disabled={probe.pending || !current?.present}
|
|
95
|
-
className={`cursor-pointer rounded border border-ink/15 px-2 py-1 text-[10px] text-ink transition-colors hover:bg-ink/5 disabled:cursor-default disabled:opacity-40 ${FOCUS}`}
|
|
96
|
-
>
|
|
89
|
+
<Button size="xs" onClick={() => void runProbe()} disabled={probe.pending || !current?.present}>
|
|
97
90
|
{probe.pending ? 'Checking…' : 'Check write scope'}
|
|
98
|
-
</
|
|
91
|
+
</Button>
|
|
99
92
|
<span className="text-[10px] text-ink/55">one request; a read-only token is what hides the verbs</span>
|
|
100
93
|
</div>
|
|
101
94
|
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
* while the reader assumes GitHub, and the vocabulary in the sidebar (MRs vs
|
|
30
30
|
* PRs) is derived from the same fact.
|
|
31
31
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* The TITLE row belongs to the host (`chrome: 'host'`); these are the toolbar
|
|
33
|
+
* rows below it. The scope and filter rows stay here because they hold
|
|
34
|
+
* controls, not a name.
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
import { useEffect, useRef, useState } from 'preact/hooks';
|
|
38
38
|
import { RepoPicker, type RepoScopeHandle } from '@kabmo-labs/kabmo-ui';
|
|
39
|
+
import { Button, IconButton, PanelToolbar, Segmented } from '@kabmo-labs/kabmo-ui/components';
|
|
39
40
|
|
|
40
41
|
import {
|
|
41
42
|
DEFAULT_FILTER,
|
|
@@ -54,7 +55,6 @@ import type { Scope } from './use-forge';
|
|
|
54
55
|
|
|
55
56
|
interface HeaderProps {
|
|
56
57
|
scope: RepoScopeHandle;
|
|
57
|
-
showHeader: boolean;
|
|
58
58
|
section: ForgeSection;
|
|
59
59
|
list: ForgeList | null;
|
|
60
60
|
provider: ForgeProvider;
|
|
@@ -88,7 +88,6 @@ const CONTROL = 'tap-target cursor-pointer focus-visible:outline-none focus-visi
|
|
|
88
88
|
|
|
89
89
|
export function Header({
|
|
90
90
|
scope,
|
|
91
|
-
showHeader,
|
|
92
91
|
section,
|
|
93
92
|
list,
|
|
94
93
|
provider,
|
|
@@ -134,55 +133,32 @@ export function Header({
|
|
|
134
133
|
}, [label, query, filter.state, filter.mine]);
|
|
135
134
|
|
|
136
135
|
const refresh = (
|
|
137
|
-
<
|
|
138
|
-
type="button"
|
|
139
|
-
onClick={onRefresh}
|
|
140
|
-
disabled={loading}
|
|
141
|
-
title="Re-read from the host"
|
|
142
|
-
aria-label="Re-read from the host"
|
|
143
|
-
className={`flex-shrink-0 cursor-pointer rounded p-1 text-ink/60 transition-colors hover:bg-ink/5 hover:text-ink disabled:cursor-default disabled:opacity-50 ${CONTROL}`}
|
|
144
|
-
>
|
|
136
|
+
<IconButton ariaLabel="Re-read from the host" onClick={onRefresh} disabled={loading}>
|
|
145
137
|
<span className={loading ? 'inline-flex animate-spin' : 'inline-flex'}>
|
|
146
138
|
<Glyph path={ICON.refresh} size={13} />
|
|
147
139
|
</span>
|
|
148
|
-
</
|
|
140
|
+
</IconButton>
|
|
149
141
|
);
|
|
150
142
|
|
|
151
143
|
const credentialButton = (
|
|
152
|
-
<
|
|
153
|
-
|
|
144
|
+
<IconButton
|
|
145
|
+
ariaLabel="Credential details"
|
|
146
|
+
ariaExpanded={credentialOpen}
|
|
154
147
|
onClick={() => setCredentialOpen((value) => !value)}
|
|
155
|
-
|
|
148
|
+
variant={credential?.present ? 'success' : 'warning'}
|
|
156
149
|
title={
|
|
157
150
|
credential?.present
|
|
158
151
|
? `Credential: ${credential.source}. Open for details.`
|
|
159
152
|
: 'No credential: public repositories only. Open for details.'
|
|
160
153
|
}
|
|
161
|
-
aria-label="Credential details"
|
|
162
|
-
className={`flex-shrink-0 cursor-pointer rounded p-1 transition-colors hover:bg-ink/5 ${CONTROL} ${
|
|
163
|
-
credential?.present ? 'text-success-text' : 'text-warning-text'
|
|
164
|
-
}`}
|
|
165
154
|
>
|
|
166
155
|
<Glyph path={ICON.key} size={12} />
|
|
167
|
-
</
|
|
156
|
+
</IconButton>
|
|
168
157
|
);
|
|
169
158
|
|
|
170
159
|
return (
|
|
171
160
|
<div className="flex flex-shrink-0 flex-col border-b border-ink/10">
|
|
172
|
-
|
|
173
|
-
<div className="flex h-10 items-center justify-between gap-2 px-3">
|
|
174
|
-
<div className="flex min-w-0 items-center gap-1.5">
|
|
175
|
-
<Glyph path={ICON.forge} size={14} />
|
|
176
|
-
<span className="truncate text-xs font-semibold uppercase tracking-wider text-ink">Forge</span>
|
|
177
|
-
</div>
|
|
178
|
-
<div className="flex items-center gap-0.5">
|
|
179
|
-
{refresh}
|
|
180
|
-
{credentialButton}
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
)}
|
|
184
|
-
|
|
185
|
-
<div className="flex items-center gap-1.5 px-2 pt-1.5">
|
|
161
|
+
<PanelToolbar>
|
|
186
162
|
<RepoPicker scope={scope} className="min-w-0" />
|
|
187
163
|
{list && (
|
|
188
164
|
<span
|
|
@@ -204,27 +180,20 @@ export function Header({
|
|
|
204
180
|
<Glyph path={ICON.external} size={13} />
|
|
205
181
|
</a>
|
|
206
182
|
)}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
183
|
+
<div className="ml-auto flex items-center gap-0.5">
|
|
184
|
+
{refresh}
|
|
185
|
+
{credentialButton}
|
|
186
|
+
</div>
|
|
187
|
+
</PanelToolbar>
|
|
210
188
|
|
|
211
189
|
{filterable ? (
|
|
212
|
-
<
|
|
213
|
-
<
|
|
214
|
-
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
aria-pressed={filter.state === state.value}
|
|
220
|
-
className={`cursor-pointer rounded-sm px-1.5 py-0.5 text-[10px] transition-colors ${CONTROL} ${
|
|
221
|
-
filter.state === state.value ? 'bg-ink/10 font-medium text-ink' : 'text-ink/60 hover:text-ink'
|
|
222
|
-
}`}
|
|
223
|
-
>
|
|
224
|
-
{state.label}
|
|
225
|
-
</button>
|
|
226
|
-
))}
|
|
227
|
-
</div>
|
|
190
|
+
<PanelToolbar>
|
|
191
|
+
<Segmented
|
|
192
|
+
value={filter.state}
|
|
193
|
+
options={STATES}
|
|
194
|
+
ariaLabel="State filter"
|
|
195
|
+
onChange={(state) => onFilter({ ...filter, state: state as typeof filter.state })}
|
|
196
|
+
/>
|
|
228
197
|
|
|
229
198
|
{canMine && (
|
|
230
199
|
<button
|
|
@@ -253,15 +222,15 @@ export function Header({
|
|
|
253
222
|
className="min-w-0 flex-1 bg-transparent text-[11px] text-ink outline-none placeholder-ink/40"
|
|
254
223
|
/>
|
|
255
224
|
{query && (
|
|
256
|
-
<
|
|
257
|
-
|
|
225
|
+
<IconButton
|
|
226
|
+
ariaLabel="Clear the search"
|
|
258
227
|
onClick={() => setQuery('')}
|
|
259
228
|
title="Clear the search"
|
|
260
|
-
|
|
261
|
-
className={
|
|
229
|
+
size="xs"
|
|
230
|
+
className={CONTROL}
|
|
262
231
|
>
|
|
263
232
|
<Glyph path={ICON.cross} size={10} />
|
|
264
|
-
</
|
|
233
|
+
</IconButton>
|
|
265
234
|
)}
|
|
266
235
|
</div>
|
|
267
236
|
|
|
@@ -278,9 +247,9 @@ export function Header({
|
|
|
278
247
|
<Glyph path={ICON.filter} size={11} />
|
|
279
248
|
{narrowed && <span className="font-medium">filtered</span>}
|
|
280
249
|
</button>
|
|
281
|
-
</
|
|
250
|
+
</PanelToolbar>
|
|
282
251
|
) : (
|
|
283
|
-
<div className="px-
|
|
252
|
+
<div className="px-3 py-1.5 text-[10px] text-ink/55">Newest first. Releases are not filtered.</div>
|
|
284
253
|
)}
|
|
285
254
|
|
|
286
255
|
{expanded && filterable && (
|
|
@@ -294,17 +263,17 @@ export function Header({
|
|
|
294
263
|
className="w-full rounded border border-ink/15 bg-canvas px-1.5 py-1 text-[11px] text-ink outline-none placeholder-ink/40 focus:border-ink/40"
|
|
295
264
|
/>
|
|
296
265
|
{narrowed && (
|
|
297
|
-
<
|
|
298
|
-
|
|
266
|
+
<Button
|
|
267
|
+
size="xs"
|
|
299
268
|
onClick={() => {
|
|
300
269
|
setLabel('');
|
|
301
270
|
setQuery('');
|
|
302
271
|
onFilter(DEFAULT_FILTER);
|
|
303
272
|
}}
|
|
304
|
-
className={`self-start
|
|
273
|
+
className={`self-start underline underline-offset-2 ${CONTROL}`}
|
|
305
274
|
>
|
|
306
275
|
Clear every filter
|
|
307
|
-
</
|
|
276
|
+
</Button>
|
|
308
277
|
)}
|
|
309
278
|
</div>
|
|
310
279
|
)}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* reply, so both are drawn as a muted line rather than as a message with a body.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
import { Markdown } from '@kabmo-labs/kabmo-ui/components';
|
|
31
|
+
import { IconButton, Markdown, RetryButton } from '@kabmo-labs/kabmo-ui/components';
|
|
32
32
|
|
|
33
33
|
import type { ForgeComment, ForgeCredential, ForgeDetail, ForgeItem } from '../protocol';
|
|
34
34
|
import { LabelChips, StateBadge } from './Badge';
|
|
@@ -108,15 +108,15 @@ export function ItemView({ item, detail, loading, error, credential, write, onBa
|
|
|
108
108
|
return (
|
|
109
109
|
<div className="flex h-full min-h-0 flex-col">
|
|
110
110
|
<div className="flex flex-shrink-0 items-start gap-1.5 border-b border-ink/10 px-2.5 py-2">
|
|
111
|
-
<
|
|
112
|
-
|
|
111
|
+
<IconButton
|
|
112
|
+
ariaLabel="Back to the list"
|
|
113
113
|
onClick={onBack}
|
|
114
114
|
title="Back to the list"
|
|
115
|
-
|
|
116
|
-
className={`mt-0.5
|
|
115
|
+
size="sm"
|
|
116
|
+
className={`mt-0.5 ${FOCUS}`}
|
|
117
117
|
>
|
|
118
118
|
<Glyph path={ICON.back} size={13} />
|
|
119
|
-
</
|
|
119
|
+
</IconButton>
|
|
120
120
|
<div className="flex min-w-0 flex-1 flex-col gap-1">
|
|
121
121
|
<div className="flex flex-wrap items-center gap-x-2 gap-y-1">
|
|
122
122
|
<StateBadge state={item.state} />
|
|
@@ -145,13 +145,7 @@ export function ItemView({ item, detail, loading, error, credential, write, onBa
|
|
|
145
145
|
{error && (
|
|
146
146
|
<div className="flex flex-col items-start gap-1.5 px-2.5 py-2">
|
|
147
147
|
<p className="text-[11px] leading-relaxed text-error-text">{error}</p>
|
|
148
|
-
<
|
|
149
|
-
type="button"
|
|
150
|
-
onClick={onRetry}
|
|
151
|
-
className={`cursor-pointer rounded border border-ink/20 px-2.5 py-1 text-[10px] text-ink transition-colors hover:bg-ink/5 ${FOCUS}`}
|
|
152
|
-
>
|
|
153
|
-
Try again
|
|
154
|
-
</button>
|
|
148
|
+
<RetryButton onClick={onRetry} />
|
|
155
149
|
</div>
|
|
156
150
|
)}
|
|
157
151
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
import type { ForgeItem, ForgeList, ForgeProvider, ForgeSection } from '../protocol';
|
|
30
|
-
import { Note } from '@kabmo-labs/kabmo-ui/components';
|
|
30
|
+
import { Note, ResultState, RetryButton } from '@kabmo-labs/kabmo-ui/components';
|
|
31
31
|
|
|
32
32
|
import { Glyph, ICON } from './Glyph';
|
|
33
33
|
import { ItemRow } from './Row';
|
|
@@ -97,46 +97,14 @@ function SkeletonRows() {
|
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
/** A centred state: a mark, a sentence, and the one action that helps. */
|
|
101
|
-
function StateBlock({
|
|
102
|
-
icon,
|
|
103
|
-
title,
|
|
104
|
-
hint,
|
|
105
|
-
action,
|
|
106
|
-
}: {
|
|
107
|
-
icon: string;
|
|
108
|
-
title: string;
|
|
109
|
-
hint?: string;
|
|
110
|
-
action?: preact.ComponentChildren;
|
|
111
|
-
}) {
|
|
112
|
-
return (
|
|
113
|
-
<div className="flex h-full flex-col items-center justify-center gap-2 px-6 text-center">
|
|
114
|
-
<span className="text-ink/40">
|
|
115
|
-
<Glyph path={icon} size={20} />
|
|
116
|
-
</span>
|
|
117
|
-
<p className="text-[11px] leading-relaxed text-ink/70">{title}</p>
|
|
118
|
-
{hint && <p className="max-w-xs text-[10px] leading-relaxed text-ink/55">{hint}</p>}
|
|
119
|
-
{action}
|
|
120
|
-
</div>
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
100
|
export function ItemList({ list, provider, section, selectedId, loading, error, onOpen, onRetry }: ListProps) {
|
|
125
101
|
if (error && !list) {
|
|
126
102
|
return (
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
type="button"
|
|
133
|
-
onClick={onRetry}
|
|
134
|
-
className="mt-1 tap-target cursor-pointer rounded border border-ink/20 px-2.5 py-1 text-[10px] text-ink transition-colors hover:bg-ink/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink/20"
|
|
135
|
-
>
|
|
136
|
-
Try again
|
|
137
|
-
</button>
|
|
138
|
-
}
|
|
139
|
-
/>
|
|
103
|
+
<ResultState title={error} action={<RetryButton onClick={onRetry} />}>
|
|
104
|
+
<span className="text-ink/40">
|
|
105
|
+
<Glyph path={ICON.warning} size={20} />
|
|
106
|
+
</span>
|
|
107
|
+
</ResultState>
|
|
140
108
|
);
|
|
141
109
|
}
|
|
142
110
|
|
|
@@ -148,7 +116,13 @@ export function ItemList({ list, provider, section, selectedId, loading, error,
|
|
|
148
116
|
</div>
|
|
149
117
|
);
|
|
150
118
|
}
|
|
151
|
-
return
|
|
119
|
+
return (
|
|
120
|
+
<ResultState title="No repository selected." description="Pick a repository above to read its forge.">
|
|
121
|
+
<span className="text-ink/40">
|
|
122
|
+
<Glyph path={ICON.forge} size={20} />
|
|
123
|
+
</span>
|
|
124
|
+
</ResultState>
|
|
125
|
+
);
|
|
152
126
|
}
|
|
153
127
|
|
|
154
128
|
const data = list.sections[section];
|
|
@@ -180,26 +154,24 @@ export function ItemList({ list, provider, section, selectedId, loading, error,
|
|
|
180
154
|
// The server already pushed the sentence into `notes` (shown above), so
|
|
181
155
|
// this is the same fact in the place the list would have been: a failed
|
|
182
156
|
// read is not an empty section, and only one of them is actionable.
|
|
183
|
-
<
|
|
184
|
-
icon={ICON.warning}
|
|
157
|
+
<ResultState
|
|
185
158
|
title={`The ${name} could not be read.`}
|
|
186
|
-
|
|
187
|
-
action={
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
Try again
|
|
194
|
-
</button>
|
|
195
|
-
}
|
|
196
|
-
/>
|
|
159
|
+
description="The note above names the reason."
|
|
160
|
+
action={<RetryButton onClick={onRetry} />}
|
|
161
|
+
>
|
|
162
|
+
<span className="text-ink/40">
|
|
163
|
+
<Glyph path={ICON.warning} size={20} />
|
|
164
|
+
</span>
|
|
165
|
+
</ResultState>
|
|
197
166
|
) : data.items.length === 0 ? (
|
|
198
|
-
<
|
|
199
|
-
icon={ICON.inbox}
|
|
167
|
+
<ResultState
|
|
200
168
|
title={`No ${name} for this repository.`}
|
|
201
|
-
|
|
202
|
-
|
|
169
|
+
description={list.filter.state === 'open' ? 'Try the Closed or All filter.' : undefined}
|
|
170
|
+
>
|
|
171
|
+
<span className="text-ink/40">
|
|
172
|
+
<Glyph path={ICON.inbox} size={20} />
|
|
173
|
+
</span>
|
|
174
|
+
</ResultState>
|
|
203
175
|
) : (
|
|
204
176
|
<div
|
|
205
177
|
className="min-h-0 flex-1 overflow-y-auto scrollbar-overlay-container"
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* full timestamp: a compact `3d` is a scan aid, not the only copy of the date.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
+
import { ListRow } from '@kabmo-labs/kabmo-ui/components';
|
|
22
23
|
import type { ForgeItem } from '../protocol';
|
|
23
24
|
import { LabelChips, StateBadge } from './Badge';
|
|
24
25
|
import { Glyph, ICON } from './Glyph';
|
|
@@ -38,16 +39,13 @@ export function ItemRow({ item, selected, onOpen }: RowProps) {
|
|
|
38
39
|
// `Open`--cpu-prof` pins every sampled callee…30m#42377jdalton7bugperf+1`.
|
|
39
40
|
const accessibleName = `${STATE_LABEL[item.state]} ${itemIdLabel(item)}: ${item.title} by ${item.author}`;
|
|
40
41
|
return (
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
data-forge-row
|
|
42
|
+
<ListRow
|
|
43
|
+
data={{ 'data-forge-row': '' }}
|
|
44
44
|
onClick={onOpen}
|
|
45
|
+
selected={selected}
|
|
45
46
|
title={`${itemIdLabel(item)} ${item.title}`}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
className={`flex w-full cursor-pointer flex-col gap-1 border-b border-ink/8 px-2.5 py-2 text-left transition-colors focus-visible:outline-none ring-inset focus-visible:ring-2 focus-visible:ring-ink/20 ${
|
|
49
|
-
selected ? 'bg-ink/8' : 'hover:bg-ink/5'
|
|
50
|
-
}`}
|
|
47
|
+
ariaLabel={accessibleName}
|
|
48
|
+
className="gap-1"
|
|
51
49
|
>
|
|
52
50
|
<span aria-hidden="true" className="flex items-center gap-1.5">
|
|
53
51
|
<StateBadge state={item.state} />
|
|
@@ -69,6 +67,6 @@ export function ItemRow({ item, selected, onOpen }: RowProps) {
|
|
|
69
67
|
<LabelChips labels={item.labels} />
|
|
70
68
|
</span>
|
|
71
69
|
</span>
|
|
72
|
-
</
|
|
70
|
+
</ListRow>
|
|
73
71
|
);
|
|
74
72
|
}
|