@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
|
@@ -95,6 +95,17 @@ export interface PanelTabStripProps {
|
|
|
95
95
|
* background between them is the handle.
|
|
96
96
|
*/
|
|
97
97
|
dragRegion?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Draw the DESKTOP connected tab language: a full-height tab on the body's
|
|
100
|
+
* surface, one hover plate, 8px top corners.
|
|
101
|
+
*
|
|
102
|
+
* Default true, because every desktop column and the phone's LEFT drawer
|
|
103
|
+
* (an interior 40px row under its wordmark header) use it. The phone's RIGHT
|
|
104
|
+
* drawer is the title bar and keeps the 36px chip, so its `drawerStripProps`
|
|
105
|
+
* passes `false`. A phone drawer's side is a caller fact, not a layout fact:
|
|
106
|
+
* both drawers report `layout="mobile"`.
|
|
107
|
+
*/
|
|
108
|
+
connected?: boolean;
|
|
98
109
|
/** Style for the strip's own row (the phone passes its titlebar insets). */
|
|
99
110
|
style?: CSSProperties;
|
|
100
111
|
/**
|
|
@@ -118,6 +129,7 @@ export function PanelTabStrip({
|
|
|
118
129
|
onReorder,
|
|
119
130
|
dragRegion = false,
|
|
120
131
|
layout = 'desktop',
|
|
132
|
+
connected = true,
|
|
121
133
|
style,
|
|
122
134
|
rootProps,
|
|
123
135
|
}: PanelTabStripProps) {
|
|
@@ -269,7 +281,7 @@ export function PanelTabStrip({
|
|
|
269
281
|
<div
|
|
270
282
|
ref={stripRef}
|
|
271
283
|
className={`relative z-10 flex min-w-0 flex-1 gap-0.5 overflow-x-auto no-scrollbar ${
|
|
272
|
-
|
|
284
|
+
connected ? 'items-stretch' : 'items-center'
|
|
273
285
|
}`}
|
|
274
286
|
>
|
|
275
287
|
{order.map((id) => {
|
|
@@ -286,6 +298,7 @@ export function PanelTabStrip({
|
|
|
286
298
|
dragging={reorder.draggingId === id}
|
|
287
299
|
noDrag={dragRegion}
|
|
288
300
|
layout={layout}
|
|
301
|
+
connected={connected}
|
|
289
302
|
chipRef={(element) => {
|
|
290
303
|
if (element) chipRefs.current.set(id, element);
|
|
291
304
|
else chipRefs.current.delete(id);
|
|
@@ -53,7 +53,7 @@ interface PanelTabsColumnProps {
|
|
|
53
53
|
* window's own title bar. The phone's right drawer passes its insets and the
|
|
54
54
|
* drag region here; a desktop column passes nothing and keeps its defaults.
|
|
55
55
|
*/
|
|
56
|
-
stripProps?: Pick<PanelTabStripProps, 'dragRegion' | 'layout' | 'style' | 'rootProps'>;
|
|
56
|
+
stripProps?: Pick<PanelTabStripProps, 'dragRegion' | 'layout' | 'style' | 'rootProps' | 'connected'>;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export function PanelTabsColumn({
|
|
@@ -39,6 +39,7 @@ import { usePanelOrder } from '@/client/hooks/workspace/panel-order';
|
|
|
39
39
|
import { useLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
40
40
|
import { PluginIdProvider } from '@kabmo-labs/kabmo-ui';
|
|
41
41
|
import { PluginRenderBoundary } from '@/client/components/common/plugin-render-boundary';
|
|
42
|
+
import { PluginPanelChrome } from '@/client/components/workspace/plugin-panel/chrome';
|
|
42
43
|
import { rightPanelOf } from '@/client/lib/plugins/slots';
|
|
43
44
|
import { pluginEnablementKey, pluginPanelKey } from '@/shared/lib/workspace/panel-ids';
|
|
44
45
|
import { SESSIONS_VIEW_ID, panelSideOf, type PanelSide } from '@/shared/lib/workspace/left-dock';
|
|
@@ -197,13 +198,29 @@ export function usePanelCatalog(side: PanelCatalogSide = 'right'): ResolvedPanel
|
|
|
197
198
|
// its panel renders — the scope is what `useRpc`/`useRealtime` read.
|
|
198
199
|
// The boundary is the other half: a plugin component that throws must
|
|
199
200
|
// fail inside its own column, never in the host's root diff.
|
|
200
|
-
render: (props) =>
|
|
201
|
-
<
|
|
201
|
+
render: (props) => {
|
|
202
|
+
const body = <Component sessionId={props.sessionId ?? null} workspacePath={null} />;
|
|
203
|
+
// A plugin that opted into host chrome gets the title row drawn for
|
|
204
|
+
// it; one that did not keeps owning its own surface.
|
|
205
|
+
const hosted = entry?.chrome?.rightPanel === 'host';
|
|
206
|
+
return (
|
|
202
207
|
<PluginRenderBoundary pluginId={panel.pluginId} surface="its panel">
|
|
203
|
-
|
|
208
|
+
{hosted ? (
|
|
209
|
+
<PluginPanelChrome
|
|
210
|
+
panelId={key}
|
|
211
|
+
title={panel.name}
|
|
212
|
+
{...(panel.iconUrl ? { iconUrl: panel.iconUrl } : {})}
|
|
213
|
+
{...(panel.color ? { color: panel.color } : {})}
|
|
214
|
+
showTitle={props.showHeader !== false}
|
|
215
|
+
>
|
|
216
|
+
<PluginIdProvider pluginId={panel.pluginId}>{body}</PluginIdProvider>
|
|
217
|
+
</PluginPanelChrome>
|
|
218
|
+
) : (
|
|
219
|
+
<PluginIdProvider pluginId={panel.pluginId}>{body}</PluginIdProvider>
|
|
220
|
+
)}
|
|
204
221
|
</PluginRenderBoundary>
|
|
205
|
-
|
|
206
|
-
|
|
222
|
+
);
|
|
223
|
+
},
|
|
207
224
|
};
|
|
208
225
|
// `editor` is not a column this catalog draws: the takeover has its own
|
|
209
226
|
// list (`usePanelSlotPlugins`) and its own rail in the editor column.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The host chrome a `chrome: 'host'` panel is rendered inside.
|
|
8
|
+
*
|
|
9
|
+
* The property under test is ownership: the TITLE row is the host's, and the
|
|
10
|
+
* plugin component is only the body below it. A wrapper that let the plugin
|
|
11
|
+
* draw another title would put two headers on the panel; one that dropped the
|
|
12
|
+
* child would render chrome over nothing.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { afterEach, beforeEach, describe, expect, test } from 'bun:test';
|
|
16
|
+
import { Window } from 'happy-dom';
|
|
17
|
+
import { h, render } from 'preact';
|
|
18
|
+
import { PluginPanelChrome } from '@/client/components/workspace/plugin-panel/chrome';
|
|
19
|
+
|
|
20
|
+
const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'Event'] as const;
|
|
21
|
+
const nativeGlobals: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
|
|
22
|
+
let window_: Window | null = null;
|
|
23
|
+
let container: HTMLDivElement;
|
|
24
|
+
|
|
25
|
+
function installDom(): void {
|
|
26
|
+
window_ = new Window();
|
|
27
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
28
|
+
const source = window_ as unknown as Record<string, unknown>;
|
|
29
|
+
for (const key of DOM_GLOBALS) {
|
|
30
|
+
if (!(key in nativeGlobals)) nativeGlobals[key] = target[key];
|
|
31
|
+
target[key] = source[key];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function restoreDom(): void {
|
|
36
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
37
|
+
for (const key of DOM_GLOBALS) {
|
|
38
|
+
const value = nativeGlobals[key];
|
|
39
|
+
if (value === undefined) delete target[key];
|
|
40
|
+
else target[key] = value;
|
|
41
|
+
}
|
|
42
|
+
window_ = null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
beforeEach(() => {
|
|
46
|
+
installDom();
|
|
47
|
+
container = document.createElement('div');
|
|
48
|
+
document.body.appendChild(container);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
afterEach(() => {
|
|
52
|
+
render(null, container);
|
|
53
|
+
container.remove();
|
|
54
|
+
restoreDom();
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
describe('PluginPanelChrome', () => {
|
|
58
|
+
test('draws the title once and gives the component the body', () => {
|
|
59
|
+
render(
|
|
60
|
+
h(PluginPanelChrome, {
|
|
61
|
+
panelId: 'plugin:demo:rightPanel',
|
|
62
|
+
title: 'Demo',
|
|
63
|
+
showTitle: true,
|
|
64
|
+
children: h('p', { id: 'plugin-body' }, 'body'),
|
|
65
|
+
}),
|
|
66
|
+
container,
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
const headers = container.querySelectorAll('header');
|
|
70
|
+
expect(headers).toHaveLength(1);
|
|
71
|
+
expect(headers[0]?.textContent).toContain('Demo');
|
|
72
|
+
expect(container.querySelector('#plugin-body')).not.toBeNull();
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
test('the phone hides only the name row, not the body', () => {
|
|
76
|
+
render(
|
|
77
|
+
h(PluginPanelChrome, {
|
|
78
|
+
panelId: 'plugin:demo:rightPanel',
|
|
79
|
+
title: 'Demo',
|
|
80
|
+
showTitle: false,
|
|
81
|
+
children: h('p', { id: 'plugin-body' }, 'body'),
|
|
82
|
+
}),
|
|
83
|
+
container,
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
expect(container.textContent).not.toContain('Demo');
|
|
87
|
+
expect(container.querySelector('#plugin-body')).not.toBeNull();
|
|
88
|
+
});
|
|
89
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The host's chrome around a plugin panel that opted into it.
|
|
8
|
+
*
|
|
9
|
+
* A plugin that registers `chrome: 'host'` does not draw a title row: the host
|
|
10
|
+
* draws the plugin's mark and name, then gives the component the rest of the
|
|
11
|
+
* column. That is what makes the title identical across plugins — a kit
|
|
12
|
+
* primitive can be ignored, a host-drawn header cannot.
|
|
13
|
+
*
|
|
14
|
+
* The header is the kit's `PanelHeader`, not a second implementation here. The
|
|
15
|
+
* host and a `chrome: 'plugin'` surface therefore render the same row from the
|
|
16
|
+
* same code, and the metrics cannot drift between the two contracts.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import type { ComponentChildren } from 'preact';
|
|
20
|
+
import { PanelHeader } from '@kabmo-labs/kabmo-ui/components';
|
|
21
|
+
import { PanelMark } from '@/client/components/common/panel-mark';
|
|
22
|
+
|
|
23
|
+
interface PluginPanelChromeProps {
|
|
24
|
+
/** The panel key (`plugin:<id>:<slot>`), which is what `PanelMark` hues by. */
|
|
25
|
+
panelId: string;
|
|
26
|
+
title: string;
|
|
27
|
+
iconUrl?: string;
|
|
28
|
+
color?: string;
|
|
29
|
+
/** False in the phone's drawer, which already draws a tab strip above it. */
|
|
30
|
+
showTitle: boolean;
|
|
31
|
+
children: ComponentChildren;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function PluginPanelChrome({
|
|
35
|
+
panelId,
|
|
36
|
+
title,
|
|
37
|
+
iconUrl,
|
|
38
|
+
color,
|
|
39
|
+
showTitle,
|
|
40
|
+
children,
|
|
41
|
+
}: PluginPanelChromeProps) {
|
|
42
|
+
return (
|
|
43
|
+
<div data-plugin-chrome="" class="flex h-full min-h-0 w-full flex-col bg-paper text-ink">
|
|
44
|
+
<PanelHeader
|
|
45
|
+
title={title}
|
|
46
|
+
show={showTitle}
|
|
47
|
+
icon={
|
|
48
|
+
<PanelMark
|
|
49
|
+
className="inline-flex flex-none"
|
|
50
|
+
panelId={panelId}
|
|
51
|
+
builtin={false}
|
|
52
|
+
name={title}
|
|
53
|
+
{...(iconUrl ? { iconUrl } : {})}
|
|
54
|
+
{...(color ? { color } : {})}
|
|
55
|
+
size={14}
|
|
56
|
+
/>
|
|
57
|
+
}
|
|
58
|
+
/>
|
|
59
|
+
<div class="flex min-h-0 flex-1 flex-col">{children}</div>
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "@oh-my-pi/pi-coding-agent 10 tabs /
|
|
2
|
+
"source": "@oh-my-pi/pi-coding-agent 10 tabs / 688 settings",
|
|
3
3
|
"tabs": [
|
|
4
4
|
{
|
|
5
5
|
"id": "appearance",
|
|
@@ -139,6 +139,41 @@
|
|
|
139
139
|
"condition": "unpausedProvidersNotProject"
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
|
+
"usage.refreshInterval": {
|
|
143
|
+
"type": "enum",
|
|
144
|
+
"default": "5m",
|
|
145
|
+
"values": [
|
|
146
|
+
"30s",
|
|
147
|
+
"1m",
|
|
148
|
+
"5m",
|
|
149
|
+
"off"
|
|
150
|
+
],
|
|
151
|
+
"ui": {
|
|
152
|
+
"tab": "providers",
|
|
153
|
+
"group": "Services",
|
|
154
|
+
"label": "Usage Refresh",
|
|
155
|
+
"description": "How often omp polls provider usage endpoints for the status-line quota and account ranking. Off: no background polls; usage comes from response headers, /usage and resets. An auth broker polls on its own schedule",
|
|
156
|
+
"options": [
|
|
157
|
+
{
|
|
158
|
+
"value": "30s",
|
|
159
|
+
"label": "30 seconds"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value": "1m",
|
|
163
|
+
"label": "1 minute"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"value": "5m",
|
|
167
|
+
"label": "5 minutes"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"value": "off",
|
|
171
|
+
"label": "Off",
|
|
172
|
+
"description": "Never poll usage endpoints in the background"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
142
177
|
"modelRoleStorage": {
|
|
143
178
|
"type": "enum",
|
|
144
179
|
"default": "global",
|
|
@@ -1470,8 +1505,9 @@
|
|
|
1470
1505
|
},
|
|
1471
1506
|
"treeFilterMode": {
|
|
1472
1507
|
"type": "enum",
|
|
1473
|
-
"default": "
|
|
1508
|
+
"default": "branches",
|
|
1474
1509
|
"values": [
|
|
1510
|
+
"branches",
|
|
1475
1511
|
"default",
|
|
1476
1512
|
"no-tools",
|
|
1477
1513
|
"user-only",
|
|
@@ -6966,7 +7002,7 @@
|
|
|
6966
7002
|
"tab": "tools",
|
|
6967
7003
|
"group": "Todos",
|
|
6968
7004
|
"label": "Todo Reminders",
|
|
6969
|
-
"description": "Remind the agent
|
|
7005
|
+
"description": "Remind the agent about open todos before stopping and mid-run; off also disables mid-run nudges"
|
|
6970
7006
|
}
|
|
6971
7007
|
},
|
|
6972
7008
|
"todo.remindersMax": {
|
|
@@ -7009,7 +7045,7 @@
|
|
|
7009
7045
|
"tab": "tools",
|
|
7010
7046
|
"group": "Todos",
|
|
7011
7047
|
"label": "Mid-Run Todo Nudges",
|
|
7012
|
-
"description": "How often a long turn is reminded to update its todo list while it keeps changing things",
|
|
7048
|
+
"description": "Requires Todo Reminders. How often a long turn is reminded to update its todo list while it keeps changing things",
|
|
7013
7049
|
"options": [
|
|
7014
7050
|
{
|
|
7015
7051
|
"value": "off",
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The phone floating chrome: the right drawer is one card, the left drawer and
|
|
8
|
+
* the chat header are three, and the settings sheet and editor carry their
|
|
9
|
+
* own chrome on the card. Same contract as the desktop's (`floating.test.ts`) —
|
|
10
|
+
* each claim is a stylesheet rule a component marker selects.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { describe, expect, test } from 'bun:test';
|
|
14
|
+
import { readClientCss, ruleBody } from '@/test-support/glass-css';
|
|
15
|
+
|
|
16
|
+
describe('the phone floating chrome', () => {
|
|
17
|
+
test('the right drawer stays one card; the left drawer is three cards', async () => {
|
|
18
|
+
const css = await readClientCss('floating.css');
|
|
19
|
+
const [drawer, left, rightChrome, footer] = await Promise.all([
|
|
20
|
+
Bun.file(new URL('./components/mobile/SessionSidebar.tsx', import.meta.url)).text(),
|
|
21
|
+
Bun.file(new URL('./components/mobile/mobile-session-sidebar/Header.tsx', import.meta.url)).text(),
|
|
22
|
+
Bun.file(new URL('./components/mobile/mobile-right-sidebar/Chrome.tsx', import.meta.url)).text(),
|
|
23
|
+
Bun.file(new URL('./components/mobile/mobile-session-sidebar/Footer.tsx', import.meta.url)).text(),
|
|
24
|
+
]);
|
|
25
|
+
// The right drawer is the one group with no header of its own, so the whole
|
|
26
|
+
// drawer is a single card.
|
|
27
|
+
const right = ruleBody(
|
|
28
|
+
css,
|
|
29
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-float='drawer']",
|
|
30
|
+
);
|
|
31
|
+
expect(right).toContain('border: 1px solid var(--float-hairline)');
|
|
32
|
+
expect(right).toContain('border-radius: var(--float-radius)');
|
|
33
|
+
expect(right).toContain('overflow: hidden');
|
|
34
|
+
// Both shapes of the right drawer's chrome (the classic header and the
|
|
35
|
+
// tabs strip) are the chat header's 40px, with the notch on the card.
|
|
36
|
+
expect(right).toContain('--mobile-right-drawer-header-height: 2.5rem');
|
|
37
|
+
expect(right).toContain('padding-top: env(safe-area-inset-top, 0px)');
|
|
38
|
+
expect(
|
|
39
|
+
ruleBody(
|
|
40
|
+
css,
|
|
41
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-float='drawer'] [data-mobile-drawer-strip]",
|
|
42
|
+
),
|
|
43
|
+
).toContain('height: 2.5rem');
|
|
44
|
+
expect(rightChrome).toContain('var(--mobile-right-drawer-header-height');
|
|
45
|
+
|
|
46
|
+
// The left drawer is a scrollless column holding three cards: the app-name
|
|
47
|
+
// header, the panel body, and the footer.
|
|
48
|
+
const root = ruleBody(
|
|
49
|
+
css,
|
|
50
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer='left']",
|
|
51
|
+
);
|
|
52
|
+
expect(root).toContain('background: transparent');
|
|
53
|
+
expect(root).toContain('gap: var(--float-gutter)');
|
|
54
|
+
expect(root).not.toContain('border: 1px solid');
|
|
55
|
+
const card = ruleBody(
|
|
56
|
+
css,
|
|
57
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card]",
|
|
58
|
+
);
|
|
59
|
+
expect(card).toContain('border: 1px solid var(--float-hairline)');
|
|
60
|
+
expect(card).toContain('border-radius: var(--float-radius)');
|
|
61
|
+
expect(card).toContain('overflow: hidden');
|
|
62
|
+
expect(
|
|
63
|
+
ruleBody(
|
|
64
|
+
css,
|
|
65
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card='panel']",
|
|
66
|
+
),
|
|
67
|
+
).toContain('flex: 1 1 0%');
|
|
68
|
+
|
|
69
|
+
// The left drawer's header card is EXACTLY as tall as the chat header's
|
|
70
|
+
// cards; the notch is paid for by the drawer root, not by the card.
|
|
71
|
+
expect(
|
|
72
|
+
ruleBody(
|
|
73
|
+
css,
|
|
74
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card='header']",
|
|
75
|
+
),
|
|
76
|
+
).toContain('--mobile-drawer-header-height: 2.5rem');
|
|
77
|
+
expect(root).toContain('padding-top: env(safe-area-inset-top, 0px)');
|
|
78
|
+
expect(left).toContain('var(--mobile-drawer-header-height');
|
|
79
|
+
expect(left).toContain('var(--mobile-drawer-header-padding-top');
|
|
80
|
+
|
|
81
|
+
expect(drawer).toContain('data-mobile-drawer="left"');
|
|
82
|
+
expect(drawer).not.toContain('data-mobile-float="drawer"');
|
|
83
|
+
expect(drawer.match(/data-mobile-drawer-card=/g)?.length).toBe(2);
|
|
84
|
+
expect(left).toContain('data-mobile-drawer-card="header"');
|
|
85
|
+
// The header row must NOT paint a canvas well of its own. The well rule in
|
|
86
|
+
// `glass.css` is (0,6,0) and the card fill is (0,4,1), so `bg-canvas` on
|
|
87
|
+
// this row won the cascade under the glass surface and left the header card
|
|
88
|
+
// transparent while the panel card beside it painted `--glass-card`. The
|
|
89
|
+
// row inherits the drawer's canvas in the flat chrome and the card marker
|
|
90
|
+
// owns the fill in the floating one.
|
|
91
|
+
const headerTag = left.slice(left.indexOf('data-mobile-drawer-card="header"'));
|
|
92
|
+
expect(headerTag.match(/className="([^"]*)"/)?.[1] ?? '').not.toContain('bg-canvas');
|
|
93
|
+
// Same rule for the footer card's row: an opaque canvas row painted over
|
|
94
|
+
// the card made the footer `rgb(33,37,43)` against the header and list
|
|
95
|
+
// card's `rgb(40,44,52)` in the classic surface — the card's own
|
|
96
|
+
// `--float-surface` must be the only fill.
|
|
97
|
+
expect(footer.match(/className="([^"]*)"/)?.[1] ?? '').not.toContain('bg-canvas');
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
test('the chat header is three groups and the title is not a card', async () => {
|
|
101
|
+
const css = await readClientCss('floating.css');
|
|
102
|
+
const row = ruleBody(
|
|
103
|
+
css,
|
|
104
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-header-row]",
|
|
105
|
+
);
|
|
106
|
+
expect(row).toContain('background: transparent');
|
|
107
|
+
expect(row).toContain('border-bottom: 0');
|
|
108
|
+
expect(row).toContain('--mobile-header-inset: var(--float-gutter)');
|
|
109
|
+
// The drawer cards start at the window gutter; the header cards take the
|
|
110
|
+
// same line rather than the drag row's vertical centre.
|
|
111
|
+
expect(row).toContain('align-items: flex-start');
|
|
112
|
+
expect(
|
|
113
|
+
ruleBody(
|
|
114
|
+
css,
|
|
115
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-header-card]",
|
|
116
|
+
),
|
|
117
|
+
).toContain('margin-top: var(--float-gutter)');
|
|
118
|
+
const card = ruleBody(
|
|
119
|
+
css,
|
|
120
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-header-card]",
|
|
121
|
+
);
|
|
122
|
+
expect(card).toContain('border: 1px solid var(--float-hairline)');
|
|
123
|
+
expect(card).toContain('border-radius: var(--float-radius)');
|
|
124
|
+
const title = ruleBody(
|
|
125
|
+
css,
|
|
126
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-header-title]",
|
|
127
|
+
);
|
|
128
|
+
expect(title).not.toContain('border:');
|
|
129
|
+
expect(title).toContain('var(--theme-canvas) 75%');
|
|
130
|
+
expect(title).toContain('transparent 100%');
|
|
131
|
+
|
|
132
|
+
const header = await Bun.file(
|
|
133
|
+
new URL('./components/mobile/mobile-main-view/Header.tsx', import.meta.url),
|
|
134
|
+
).text();
|
|
135
|
+
expect(header).toContain('data-mobile-header-card="menu"');
|
|
136
|
+
expect(header).toContain('data-mobile-header-title');
|
|
137
|
+
expect(header).toContain('data-mobile-header-card="tools"');
|
|
138
|
+
expect(header).not.toContain('data-mobile-float="header"');
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
test('the settings sheet and the editor are cards too, with their chrome on the card', async () => {
|
|
142
|
+
const css = await readClientCss('floating.css');
|
|
143
|
+
const sheet = ruleBody(
|
|
144
|
+
css,
|
|
145
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings]",
|
|
146
|
+
);
|
|
147
|
+
expect(sheet).toContain('padding: var(--float-gutter)');
|
|
148
|
+
// The scrim stays: it is the ground the card is lifted off, not the card.
|
|
149
|
+
expect(sheet).not.toContain('background-color: transparent');
|
|
150
|
+
|
|
151
|
+
const card = ruleBody(
|
|
152
|
+
css,
|
|
153
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-card]",
|
|
154
|
+
);
|
|
155
|
+
expect(card).toContain('border: 1px solid var(--float-hairline)');
|
|
156
|
+
expect(card).toContain('border-radius: var(--float-radius)');
|
|
157
|
+
expect(card).toContain('--settings-band-height: 4rem');
|
|
158
|
+
expect(sheet).toContain('padding-top: calc(var(--float-gutter) + env(safe-area-inset-top, 0px))');
|
|
159
|
+
// The band is the card's own top edge.
|
|
160
|
+
expect(
|
|
161
|
+
ruleBody(
|
|
162
|
+
css,
|
|
163
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-band],\nhtml[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-list],\nhtml[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-sidebar],\nhtml[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-footer]",
|
|
164
|
+
),
|
|
165
|
+
).toContain('background-color: transparent');
|
|
166
|
+
|
|
167
|
+
const surface = ruleBody(
|
|
168
|
+
css,
|
|
169
|
+
"html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-editor],\nhtml[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-diff]",
|
|
170
|
+
);
|
|
171
|
+
expect(surface).toContain('top: calc(var(--float-gutter) + env(safe-area-inset-top, 0px))');
|
|
172
|
+
expect(surface).toContain('bottom: var(--float-gutter)');
|
|
173
|
+
expect(surface).toContain('height: auto');
|
|
174
|
+
expect(surface).toContain('--mobile-editor-header-height: 2.5rem');
|
|
175
|
+
expect(surface).toContain('border: 1px solid var(--float-hairline)');
|
|
176
|
+
|
|
177
|
+
const [modal, band, editor, diff] = await Promise.all([
|
|
178
|
+
Bun.file(new URL('./components/settings/Modal.tsx', import.meta.url)).text(),
|
|
179
|
+
Bun.file(new URL('./components/settings/Band.tsx', import.meta.url)).text(),
|
|
180
|
+
Bun.file(new URL('./components/mobile/mobile-right-sidebar/FullEditor.tsx', import.meta.url)).text(),
|
|
181
|
+
Bun.file(new URL('./components/mobile/mobile-right-sidebar/FullDiff.tsx', import.meta.url)).text(),
|
|
182
|
+
]);
|
|
183
|
+
expect(modal).toContain('data-mobile-settings-card=""');
|
|
184
|
+
expect(modal).toContain('data-mobile-settings-band=""');
|
|
185
|
+
expect(band).toContain('var(--settings-band-height');
|
|
186
|
+
expect(editor).toContain('data-mobile-editor=""');
|
|
187
|
+
expect(diff).toContain('data-mobile-diff=""');
|
|
188
|
+
});
|
|
189
|
+
});
|