@kabmo-labs/kabmo 0.59.1 → 0.61.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/dist/client/index.html +1 -1
- package/dist/client/index.js +397 -397
- package/dist/client/static/js/{Body-5yedtmnk.js → Body-ab8wswhm.js} +3 -3
- package/dist/client/static/js/{CsvGrid-39m8pp1c.js → CsvGrid-czssywvz.js} +2 -2
- package/dist/client/static/js/{DocxView-vd99cv12.js → DocxView-ke0dwdmt.js} +3 -3
- package/dist/client/static/js/{DrawioView-6nq4412n.js → DrawioView-a1whhy84.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-cs51gszy.js → HtmlPreview-dr32dwjy.js} +1 -1
- package/dist/client/static/js/ImageView-zf4kh5wp.js +1 -0
- package/dist/client/static/js/LayoutWrapper-dncbzcea.js +2 -0
- package/dist/client/static/js/MergeDiffView-btdx9yb9.js +1 -0
- package/dist/client/static/js/Modal-5cxfw2rv.js +60 -0
- package/dist/client/static/js/{PdfView-0zab721q.js → PdfView-2kdn91f9.js} +1 -1
- package/dist/client/static/js/SessionsView-vbn0nvx4.js +1 -0
- package/dist/client/static/js/{SheetView-2wdn5hkd.js → SheetView-ettr9pdw.js} +9 -9
- package/dist/client/static/js/{SvgPreview-fmrfxd7z.js → SvgPreview-hzcejjry.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-41scfh9v.js → abnfDiagram-O67JEVCF-kdmv4y72.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-fp6etjvt.js → architectureDiagram-NJMV4G6O-qyrwaq0x.js} +11 -11
- package/dist/client/static/js/{astro-ryr2ajmg.js → astro-yphdvdty.js} +1 -1
- package/dist/client/static/js/bash-bcbct9gc.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-pespk9mt.js → blockDiagram-BEXU5L5S-tszxy2g7.js} +8 -8
- package/dist/client/static/js/c-fn9jz26e.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rt4z91dx.js → c4Diagram-YGBWAQC7-0ye36hhv.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-6bzaq8sd.js → classDiagram-v2-NBCMYWYE-szgk1shv.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-z3fhgcba.js → cose-bilkent-JH36ORCC-0s9s4mmv.js} +1 -1
- package/dist/client/static/js/cpp-a1q64mke.js +1 -0
- package/dist/client/static/js/css-b92azee8.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-8endeh4p.js → cynefinDiagram-VND7K2PF-664g28ze.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-2a2f32dv.js → dagre-6A5THRUB-ga4rp1jx.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-wgbyr6b7.js → diagram-22UHCM2B-aagj46ty.js} +15 -15
- package/dist/client/static/js/{diagram-3UASUU5V-5122b41x.js → diagram-3UASUU5V-20qk6whk.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-1gt9fr7e.js → diagram-ATOU4E4O-1vg1tfca.js} +2 -2
- package/dist/client/static/js/{diagram-CDSNMT55-v6hs59jb.js → diagram-CDSNMT55-90d6jrqs.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-yey2m5nm.js → diagram-MLGK6HIB-8je4z8m1.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-hg4f3q4d.js → diagram-MPIPVDR6-0kzpexsj.js} +2 -2
- package/dist/client/static/js/{dockerfile-56tfnp5r.js → dockerfile-5nrbr0ef.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2mhc9aar.js → ebnfDiagram-ZINNZB2B-47yg36zx.js} +1 -1
- package/dist/client/static/js/{elixir-fyxw6d70.js → elixir-3nwnd9yw.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-wedtvz9y.js → elk-276RUBZZ-5hqp6r2d.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-1kysnby9.js → erDiagram-OPXOYQCR-bt9te7r0.js} +3 -3
- package/dist/client/static/js/{erlang-97ayje6m.js → erlang-p5c4n3t0.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-500fcx2a.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4g65rpm.js → ganttDiagram-FUAMR5RP-kzc13swm.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-vcwmj4b3.js → gitGraphDiagram-X574FWY7-bjf8aa3j.js} +14 -14
- package/dist/client/static/js/graphql-8d8bn59j.js +1 -0
- package/dist/client/static/js/html-6hdrwtz2.js +1 -0
- package/dist/client/static/js/{index-5e4e18tg.js → index-025s3fp8.js} +2 -2
- package/dist/client/static/js/{index-jaf968hx.js → index-0kcnghxn.js} +4 -4
- package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
- package/dist/client/static/js/{index-sqyvj03y.js → index-1fmjhm2d.js} +9 -9
- package/dist/client/static/js/{index-42q5gg7t.js → index-24a40rw8.js} +1 -1
- package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
- package/dist/client/static/js/{index-wkxsypj1.js → index-2zhmmtye.js} +2 -2
- package/dist/client/static/js/{index-m62sf9wn.js → index-3x7cbxwq.js} +1 -1
- package/dist/client/static/js/{index-fg0ne74z.js → index-475dc6h9.js} +2 -2
- package/dist/client/static/js/{index-1mkn5fbf.js → index-4vtc4xct.js} +197 -197
- package/dist/client/static/js/{index-spnrx2c0.js → index-5srvxsht.js} +1 -1
- package/dist/client/static/js/{index-tz5ewsza.js → index-653x8zdq.js} +9 -9
- package/dist/client/static/js/index-6c1s0v4b.js +1 -0
- package/dist/client/static/js/{index-hgzf4ask.js → index-776n5n29.js} +5 -5
- package/dist/client/static/js/{index-a70sk36c.js → index-85jfn1fz.js} +2 -2
- package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
- package/dist/client/static/js/{index-csxnqgzw.js → index-9g2nzgpx.js} +6 -6
- package/dist/client/static/js/{index-y4cx8cqf.js → index-a145x0w2.js} +2 -2
- package/dist/client/static/js/{index-mhrkjbjq.js → index-bdtftrym.js} +2 -2
- package/dist/client/static/js/{index-db6s66jr.js → index-bkn6jtn1.js} +2 -2
- package/dist/client/static/js/{index-kt77dwsg.js → index-bq9f0mxp.js} +7 -7
- package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
- package/dist/client/static/js/index-cvm2ha01.js +1 -0
- package/dist/client/static/js/index-d11mbz2q.js +4 -0
- package/dist/client/static/js/{index-3kedv94b.js → index-dabnbvbc.js} +2 -2
- package/dist/client/static/js/{index-sg65xdey.js → index-enm77k5z.js} +2 -2
- package/dist/client/static/js/{index-nf4hq5tg.js → index-excgtjhx.js} +14 -14
- package/dist/client/static/js/{index-51rbgeh9.js → index-fb2fjndj.js} +5 -5
- package/dist/client/static/js/index-fen0x3qh.js +1 -0
- package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
- package/dist/client/static/js/{index-xqz7bqcn.js → index-gwgh27h3.js} +87 -87
- package/dist/client/static/js/{index-2h7xh93h.js → index-h7agc069.js} +1 -1
- package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
- package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
- package/dist/client/static/js/{index-s7p2wdr1.js → index-jz4012t5.js} +1 -1
- package/dist/client/static/js/{index-gajpd90b.js → index-k9yf2txw.js} +2 -2
- package/dist/client/static/js/{index-dw9epydj.js → index-kj70d2q9.js} +2 -2
- package/dist/client/static/js/{index-7enfdvh0.js → index-krdz5vby.js} +2 -2
- package/dist/client/static/js/{index-42k78whj.js → index-kyr612aa.js} +1 -1
- package/dist/client/static/js/{index-fvphmwkf.js → index-m24sebb0.js} +2 -2
- package/dist/client/static/js/{index-d9sfavx1.js → index-mtav0rpf.js} +2 -2
- package/dist/client/static/js/{index-58z2hatp.js → index-n8r7r86r.js} +1 -1
- package/dist/client/static/js/index-pg87cgpy.js +2 -0
- package/dist/client/static/js/{index-r42f3r1p.js → index-q1a40v20.js} +2 -2
- package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
- package/dist/client/static/js/index-qmvstmvh.js +1 -0
- package/dist/client/static/js/{index-pn0ja904.js → index-r38e0rya.js} +2 -2
- package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
- package/dist/client/static/js/index-sr14vwn5.js +2 -0
- package/dist/client/static/js/{index-z82nd2bd.js → index-sx83ans2.js} +2 -2
- package/dist/client/static/js/index-t6nqy2n5.css +1 -0
- package/dist/client/static/js/{index-fsa18ns9.js → index-twwsn91p.js} +2 -2
- package/dist/client/static/js/{index-nwbr15b3.js → index-v88m5sva.js} +2 -2
- package/dist/client/static/js/{index-qc3de995.js → index-vgcw01yk.js} +1 -1
- package/dist/client/static/js/{index-pr8wsq24.js → index-vn59zz0k.js} +2 -2
- package/dist/client/static/js/{index-hrez92pw.js → index-wf5j0009.js} +7 -7
- package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
- package/dist/client/static/js/{index-d201jvs9.js → index-xy0m8te9.js} +1 -1
- package/dist/client/static/js/index-y6zbkh4p.js +2 -0
- package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
- package/dist/client/static/js/{index-y5pkqrga.js → index-z5s9tmj8.js} +2 -2
- package/dist/client/static/js/{index-vs3g6njv.js → index-zr3965k9.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-7craq9x2.js → infoDiagram-VRGFBTTK-jy5zvvj8.js} +1 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ncjty2re.js → ishikawaDiagram-OU5B5YK6-pfky1nnf.js} +3 -3
- package/dist/client/static/js/java-n596am4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-yx222bzt.js → journeyDiagram-ZHPQQLJL-mvaf7rfh.js} +4 -4
- package/dist/client/static/js/json-7k70qbkj.js +1 -0
- package/dist/client/static/js/jsx-sndenqrc.js +1 -0
- package/dist/client/static/js/{julia-agc5kfvg.js → julia-rpd1y9vh.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-a2f84qmn.js → kanban-definition-PNTS6WVX-hw2xwe6e.js} +5 -5
- package/dist/client/static/js/lua-djd3g9q5.js +1 -0
- package/dist/client/static/js/markdown-r2tpvxpn.js +1 -0
- package/dist/client/static/js/{mermaid.core-9vfwthw3.js → mermaid.core-hsw87hmq.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-fsxysg6f.js → mindmap-definition-NLK3R4M7-wfe4d846.js} +7 -7
- package/dist/client/static/js/one-dark-pro-ckq5capv.js +1 -0
- package/dist/client/static/js/one-light-a908z398.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-77wxmp9g.js → pegDiagram-GJSIUBJH-cvnmxgst.js} +1 -1
- package/dist/client/static/js/{perl-v5vbtzgf.js → perl-kmtz9dnv.js} +1 -1
- package/dist/client/static/js/{php-83qwy98t.js → php-bttrsbxy.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-gvgfhez0.js → pieDiagram-5QR66LMP-0n3gz7sv.js} +2 -2
- package/dist/client/static/js/properties-brn72zdk.js +1 -0
- package/dist/client/static/js/python-g9mghwgm.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-9zkbt5h8.js → quadrantDiagram-O4NWA36T-9qqh6xvv.js} +4 -4
- package/dist/client/static/js/r-e247x4mw.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-w55bsyw6.js → railroadDiagram-XR7U4H2S-5f3x3762.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-828s1e5g.js → requirementDiagram-PLB6GJNP-a68bv6kh.js} +12 -12
- package/dist/client/static/js/{ruby-994n5j6e.js → ruby-dve3y59w.js} +1 -1
- package/dist/client/static/js/{rust-csv5f258.js → rust-qjhdt4b0.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-34f3fyvg.js → sankeyDiagram-IPEJSGJF-ry7xcphh.js} +4 -4
- package/dist/client/static/js/{sass-p6g7qdv2.js → sass-emxqt5p2.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nnta2hn0.js → sequenceDiagram-PO4LG4MO-mekzzhet.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-gpcramga.js → sizeCapture-INFHLROL-pvc16ame.js} +1 -1
- package/dist/client/static/js/sql-0kar81jy.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-3f2en220.js → stateDiagram-v2-GCMORJYK-3ytxby83.js} +3 -3
- package/dist/client/static/js/{svelte-bek3h1sz.js → svelte-dbsx1ehx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-jgqt12z9.js → swimlanes-2SLR337P-c2zfp416.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-9gm67sq4.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-sgchcs11.js → timeline-definition-EJHVYXUP-xtvv4za2.js} +6 -6
- package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +1 -0
- package/dist/client/static/js/typescript-bm89v3gk.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-znkg9pkq.js → usecaseDiagram-POWQR4AR-sz6b7bnv.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-dncg96ej.js → vennDiagram-UO4OBE2U-56q0qs51.js} +5 -5
- package/dist/client/static/js/{vue-y44m889c.js → vue-hyr58df9.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-77xz2d49.js → wardleyDiagram-VNRHLVJA-xvtyvde9.js} +5 -5
- package/dist/client/static/js/xml-b7824nx0.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-40j1aqyf.js → xychartDiagram-PMCCYNJV-jcs20s84.js} +6 -6
- package/dist/client/static/js/yaml-kqqktdv1.js +1 -0
- package/package.json +4 -4
- package/src/client/borders.css +28 -15
- package/src/client/components/common/Modal.tsx +10 -2
- package/src/client/components/common/Toast.tsx +8 -3
- package/src/client/components/common/anchored-menu/index.tsx +10 -3
- package/src/client/components/common/command-palette/index.tsx +9 -3
- package/src/client/components/common/fullscreen-viewer/index.tsx +1 -1
- package/src/client/components/common/header-controls/index.test.tsx +40 -3
- package/src/client/components/common/header-controls/index.tsx +106 -56
- package/src/client/components/common/search-select/search-select.test.tsx +10 -1
- package/src/client/components/common/workspace-mark/index.test.tsx +67 -0
- package/src/client/components/common/workspace-mark/index.tsx +48 -0
- package/src/client/components/layout/ActivityBar.test.ts +1 -1
- package/src/client/components/layout/ActivityBarDrag.test.ts +1 -1
- package/src/client/components/layout/LeftActivityBar.test.ts +48 -3
- package/src/client/components/layout/LeftDock.tsx +33 -14
- package/src/client/components/layout/PanelButton.test.tsx +119 -0
- package/src/client/components/layout/PanelButton.tsx +2 -4
- package/src/client/components/layout/activity-bar/Row.tsx +125 -0
- package/src/client/components/layout/{ActivityBar.tsx → activity-bar/index.tsx} +81 -20
- package/src/client/components/layout/controls-bar/index.tsx +183 -0
- package/src/client/components/layout/desktop-layout/BarSlot.tsx +18 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.test.tsx +187 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +81 -64
- package/src/client/components/layout/desktop-layout/LeftRail.tsx +60 -0
- package/src/client/components/layout/desktop-layout/LeftTabsColumn.tsx +91 -0
- package/src/client/components/layout/desktop-layout/ResizeHandle.tsx +19 -3
- package/src/client/components/layout/desktop-layout/RightColumn.test.tsx +60 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +77 -28
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +114 -104
- package/src/client/components/layout/desktop-layout/index.tsx +48 -45
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +25 -83
- package/src/client/components/layout/desktop-layout/resizer/panel-motion.ts +61 -0
- package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +40 -2
- package/src/client/components/layout/desktop-layout/resizer/separator.tsx +89 -0
- package/src/client/components/layout/left-bar/index.tsx +88 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +5 -2
- package/src/client/components/layout/session-sidebar/Footer.tsx +28 -11
- package/src/client/components/layout/session-sidebar/FooterHost.tsx +167 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +2 -2
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +8 -3
- package/src/client/components/layout/session-sidebar/footer-host.test.tsx +133 -0
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +5 -2
- package/src/client/components/layout/session-title-bar/index.tsx +199 -0
- package/src/client/components/layout/top-bars.test.tsx +338 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +13 -2
- package/src/client/components/mobile/SessionSidebar.tsx +10 -8
- package/src/client/components/mobile/drawer-layout.test.tsx +67 -0
- package/src/client/components/mobile/drawer-strip.tsx +37 -14
- package/src/client/components/mobile/left-drawer-nav.test.tsx +19 -127
- package/src/client/components/settings/LazyModal.tsx +8 -2
- package/src/client/components/settings/Modal.tsx +6 -2
- package/src/client/components/settings/apply-side-effects.ts +5 -0
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +1 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +6 -5
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +105 -0
- package/src/client/components/settings/categories/appearance-settings/groups.ts +3 -2
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/voice-settings/SpeechSettings.test.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +8 -1
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +8 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +9 -2
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -25
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
- package/src/client/components/workspace/editor/Tab.tsx +160 -0
- package/src/client/components/workspace/editor/Tabs.test.ts +40 -0
- package/src/client/components/workspace/editor/Tabs.tsx +52 -102
- package/src/client/components/workspace/editor/index.tsx +2 -0
- package/src/client/components/workspace/editor/props.ts +6 -0
- package/src/client/components/workspace/file-explorer/OutlineResize.test.tsx +225 -0
- package/src/client/components/workspace/file-explorer/OutlineSection.tsx +43 -3
- package/src/client/components/workspace/file-explorer/index.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +50 -20
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +172 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +18 -9
- package/src/client/components/workspace/search-panel/Body.tsx +3 -3
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +205 -9
- package/src/client/floating.css +276 -0
- package/src/client/floating.test.ts +151 -0
- package/src/client/hooks/chat/timeline/session-pagination.ts +13 -9
- package/src/client/hooks/editor/use-outline-resize.ts +145 -0
- package/src/client/hooks/ui/border-style.test.ts +19 -7
- package/src/client/hooks/ui/border-style.ts +2 -3
- package/src/client/hooks/ui/chrome-style.test.ts +140 -0
- package/src/client/hooks/ui/chrome-style.ts +75 -0
- package/src/client/hooks/ui/media-query.ts +29 -0
- package/src/client/hooks/ui/presence.test.ts +104 -0
- package/src/client/hooks/ui/presence.ts +62 -0
- package/src/client/hooks/ui/style-attributes.test.ts +7 -6
- package/src/client/hooks/ui/surface-style.ts +2 -2
- package/src/client/hooks/ui/titlebar-inset.test.ts +56 -0
- package/src/client/hooks/ui/titlebar-inset.ts +31 -0
- package/src/client/hooks/workspace/available-width.ts +25 -1
- package/src/client/hooks/workspace/panel-peek.test.ts +124 -0
- package/src/client/hooks/workspace/panel-peek.ts +151 -0
- package/src/client/hooks/workspace/panel-rail.test.ts +86 -0
- package/src/client/hooks/workspace/panel-rail.ts +108 -0
- package/src/client/hooks/workspace/panel-resize.ts +8 -2
- package/src/client/hooks/workspace/rail-peek.test.ts +119 -0
- package/src/client/hooks/workspace/rail-peek.ts +68 -0
- package/src/client/hooks/workspace/right-panel-card.test.ts +71 -0
- package/src/client/hooks/workspace/right-panel-card.ts +69 -0
- package/src/client/hooks/workspace/right-panel-geometry.ts +172 -0
- package/src/client/hooks/workspace/right-side.ts +7 -0
- package/src/client/lib/desktop/titlebar.test.ts +6 -0
- package/src/client/lib/desktop/titlebar.ts +16 -0
- package/src/client/main.tsx +11 -0
- package/src/client/motion.test.ts +36 -0
- package/src/client/tailwind.css +67 -0
- package/src/server/lib/assets/shell-attributes.server.ts +14 -4
- package/src/server/lib/assets/shell-attributes.test.ts +35 -21
- package/src/server/lib/bundler/titlebar-css.test.ts +3 -2
- package/src/server/lib/realtime/topics/peer-relay.server.test.ts +19 -3
- package/src/server/lib/updates/omp.test.ts +40 -1
- package/src/server/lib/updates/omp.ts +29 -2
- package/src/server/plugins/ssr.ts +2 -0
- package/src/server/routes/settings/mcp.test.ts +16 -0
- package/src/server/routes/settings/mcp.ts +4 -0
- package/src/shared/lib/code/outline/resize.test.ts +57 -0
- package/src/shared/lib/code/outline/resize.ts +67 -0
- package/src/shared/lib/models/provider/glyph.test.ts +3 -1
- package/src/shared/lib/models/provider/glyph.ts +1 -0
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +103 -3
- package/src/shared/lib/omp/config/schema.test.ts +9 -0
- package/src/shared/lib/omp/config/schema.ts +8 -0
- package/src/shared/lib/settings/defaults.ts +2 -0
- package/src/shared/lib/theme/border-style.test.ts +12 -14
- package/src/shared/lib/theme/border-style.ts +25 -18
- package/src/shared/lib/theme/chrome-style.test.ts +31 -0
- package/src/shared/lib/theme/chrome-style.ts +74 -0
- package/src/shared/lib/theme/surface-style.test.ts +4 -5
- package/src/shared/lib/theme/surface-style.ts +6 -5
- package/src/shared/lib/ui/motion.ts +29 -0
- package/src/shared/lib/workspace/floating-chrome.ts +23 -0
- package/src/shared/lib/workspace/session-state/store.ts +3 -0
- package/src/shared/lib/workspace/workspace-panel-widths.test.ts +73 -0
- package/src/shared/lib/workspace/workspace-panel-widths.ts +79 -17
- package/src/shared/types/settings/state.ts +10 -9
- package/src/test-support/left-drawer-harness.test-util.ts +169 -0
- package/src/test-support/peer-harness.ts +44 -36
- package/dist/client/static/js/ImageView-nc2n0w6s.js +0 -1
- package/dist/client/static/js/LayoutWrapper-j7786frq.js +0 -2
- package/dist/client/static/js/MergeDiffView-0rn5zsy5.js +0 -1
- package/dist/client/static/js/Modal-7ag7a9qq.js +0 -60
- package/dist/client/static/js/SessionsView-t9rhx472.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-bwn1drdz.js +0 -1
- package/dist/client/static/js/bash-zknkkwkw.js +0 -1
- package/dist/client/static/js/c-0w02jkxb.js +0 -1
- package/dist/client/static/js/cpp-p5b4vean.js +0 -1
- package/dist/client/static/js/css-9jzbvdyz.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-jbc50ks8.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-b37ey01t.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-vd4z6bvy.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-mvqq7tcs.js +0 -1
- package/dist/client/static/js/graphql-xzykn0ba.js +0 -1
- package/dist/client/static/js/html-2zc3shky.js +0 -1
- package/dist/client/static/js/index-6vbra7p9.js +0 -1
- package/dist/client/static/js/index-9mgpbwfr.js +0 -1
- package/dist/client/static/js/index-c5401dqs.js +0 -4
- package/dist/client/static/js/index-dbsy29gn.js +0 -2
- package/dist/client/static/js/index-e39m185a.js +0 -2
- package/dist/client/static/js/index-fnaq8baz.js +0 -1
- package/dist/client/static/js/index-mttx9327.css +0 -1
- package/dist/client/static/js/index-n7bmqeqz.js +0 -1
- package/dist/client/static/js/index-skp6991n.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-zkv4crz7.js +0 -1
- package/dist/client/static/js/ini-62r3vxaf.js +0 -1
- package/dist/client/static/js/java-kacycary.js +0 -1
- package/dist/client/static/js/json-yrwpn6bd.js +0 -1
- package/dist/client/static/js/jsx-b40ag8q1.js +0 -1
- package/dist/client/static/js/lua-bk961f37.js +0 -1
- package/dist/client/static/js/markdown-b7rgzgd6.js +0 -1
- package/dist/client/static/js/one-dark-pro-7v4by00h.js +0 -1
- package/dist/client/static/js/one-light-5rfzh8p4.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-dgpge627.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-b8pgsqrd.js +0 -1
- package/dist/client/static/js/properties-k8gbzggp.js +0 -1
- package/dist/client/static/js/python-343tspad.js +0 -1
- package/dist/client/static/js/r-ycdwmv8g.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-fmfe5y27.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-b5tks4ce.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-0sf4m0ze.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pjfy3pt7.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-nr8ngt42.js +0 -1
- package/dist/client/static/js/sql-kwpd5w07.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xx1z57df.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-23r9fa68.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-mxxzdrj6.js +0 -1
- package/dist/client/static/js/typescript-4dchbnya.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-cbqtax1x.js +0 -1
- package/dist/client/static/js/xml-xs6qz3ya.js +0 -1
- package/dist/client/static/js/yaml-174nk5bn.js +0 -1
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +0 -238
- package/src/client/components/layout/session-sidebar/Header.test.ts +0 -98
- package/src/client/components/layout/session-sidebar/Header.tsx +0 -60
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { createContext,
|
|
1
|
+
import { createContext, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'preact/compat';
|
|
2
2
|
import { useRef as useRefBase } from 'preact/hooks';
|
|
3
3
|
import type { ComponentChildren, RefObject } from 'preact';
|
|
4
4
|
import type { CSSProperties } from 'preact';
|
|
5
5
|
import { clamp, toPx } from '@/client/components/layout/desktop-layout/resizer/utils';
|
|
6
|
-
import {
|
|
6
|
+
import { usePanelMotion } from '@/client/components/layout/desktop-layout/resizer/panel-motion';
|
|
7
|
+
import { PANEL_EASING, PANEL_TRANSITION_MS } from '@/shared/lib/ui/motion';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Hand-rolled resizable panel group (the Preact-native replacement for
|
|
@@ -64,7 +65,7 @@ interface GroupContextValue {
|
|
|
64
65
|
onLayoutChanged: { current: LayoutChangedHandler | null };
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
const GroupContext = createContext<GroupContextValue | null>(null);
|
|
68
|
+
export const GroupContext = createContext<GroupContextValue | null>(null);
|
|
68
69
|
|
|
69
70
|
export function Group(props: {
|
|
70
71
|
orientation: GroupOrientation;
|
|
@@ -128,7 +129,7 @@ export function Panel(props: {
|
|
|
128
129
|
style?: CSSProperties;
|
|
129
130
|
children: ComponentChildren;
|
|
130
131
|
}) {
|
|
131
|
-
const { id, panelRef, defaultSize, minSize = 0, maxSize, collapsed = false, transitionMs =
|
|
132
|
+
const { id, panelRef, defaultSize, minSize = 0, maxSize, collapsed = false, transitionMs = PANEL_TRANSITION_MS, filler = false, className, style, children } = props;
|
|
132
133
|
const group = useContext(GroupContext);
|
|
133
134
|
if (!group) {
|
|
134
135
|
throw new Error(`<Panel id="${id}"> must be rendered inside a <Group>`);
|
|
@@ -154,6 +155,8 @@ export function Panel(props: {
|
|
|
154
155
|
return () => cancelAnimationFrame(frame);
|
|
155
156
|
}, []);
|
|
156
157
|
|
|
158
|
+
const { durationMs, settling } = usePanelMotion(collapsed, defaultSize, transitionMs, filler);
|
|
159
|
+
|
|
157
160
|
/**
|
|
158
161
|
* The ONE way a size is applied: the ref and the state move together.
|
|
159
162
|
*
|
|
@@ -207,7 +210,10 @@ export function Panel(props: {
|
|
|
207
210
|
// `defaultSize` once the drag commits, and that value is the size the drag
|
|
208
211
|
// already applied.
|
|
209
212
|
const lastDefaultPxRef = useRef<number | null>(null);
|
|
210
|
-
|
|
213
|
+
// Layout effect: a toggle changes `defaultSize` and the constraints in one
|
|
214
|
+
// commit, so the width must land before paint or the min-width transition
|
|
215
|
+
// starts a frame before the width it is supposed to travel with.
|
|
216
|
+
useLayoutEffect(() => {
|
|
211
217
|
if (filler || defaultSize == null) return;
|
|
212
218
|
const nextPx = toPx(defaultSize, minPx);
|
|
213
219
|
if (lastDefaultPxRef.current === nextPx) return;
|
|
@@ -248,16 +254,25 @@ export function Panel(props: {
|
|
|
248
254
|
flex: '0 1 auto',
|
|
249
255
|
width: orientation === 'horizontal' ? (collapsed ? 0 : sizePx ?? undefined) : undefined,
|
|
250
256
|
height: orientation === 'horizontal' ? undefined : collapsed ? 0 : sizePx ?? undefined,
|
|
257
|
+
// The view's floor is a real CSS floor while OPEN (it is what pushes a
|
|
258
|
+
// shrinking window into the panel instead of collapsing the filler).
|
|
259
|
+
// During a toggle it must not beat the width it is animating, so it is
|
|
260
|
+
// interpolated with the same duration and easing as the width.
|
|
251
261
|
minWidth: orientation === 'horizontal' ? (collapsed ? 0 : minPx) : undefined,
|
|
252
262
|
minHeight: orientation === 'horizontal' ? undefined : collapsed ? 0 : minPx,
|
|
253
|
-
|
|
263
|
+
// A max clamps DOWN. Keeping the open max through the toggle is what
|
|
264
|
+
// lets the width travel; it is re-applied once the motion settles.
|
|
265
|
+
maxWidth: maxSize != null && !settling ? maxPx : undefined,
|
|
254
266
|
// A drag re-applies the real width at most every RESIZE_FOLLOW_INTERVAL_MS
|
|
255
267
|
// (see useSeparatorDrag), and this transition is what makes those steps
|
|
256
268
|
// read as one movement. It also carries a panel to its remembered width
|
|
257
269
|
// on a view switch, and to zero on collapse, instead of snapping.
|
|
258
|
-
transition:
|
|
259
|
-
|
|
260
|
-
|
|
270
|
+
transition:
|
|
271
|
+
transitionReady && durationMs > 0
|
|
272
|
+
? `${orientation === 'horizontal' ? 'width' : 'height'} ${durationMs}ms ${PANEL_EASING}, ${
|
|
273
|
+
orientation === 'horizontal' ? 'min-width' : 'min-height'
|
|
274
|
+
} ${durationMs}ms ${PANEL_EASING}`
|
|
275
|
+
: 'none',
|
|
261
276
|
overflow: 'hidden',
|
|
262
277
|
position: 'relative',
|
|
263
278
|
};
|
|
@@ -268,6 +283,7 @@ export function Panel(props: {
|
|
|
268
283
|
data-panel=""
|
|
269
284
|
data-panel-id={id}
|
|
270
285
|
data-panel-collapsed={collapsed ? '' : undefined}
|
|
286
|
+
data-panel-settling={settling ? '' : undefined}
|
|
271
287
|
className={className}
|
|
272
288
|
style={{ ...baseStyle, ...style }}
|
|
273
289
|
>
|
|
@@ -275,77 +291,3 @@ export function Panel(props: {
|
|
|
275
291
|
</div>
|
|
276
292
|
);
|
|
277
293
|
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* The drag handle between two panels. Dragging transfers pixels from the
|
|
281
|
-
* previous sibling panel to the next sibling panel, clamped by both sides,
|
|
282
|
-
* and commits one `onLayoutChanged(_, { isUserInteraction: true })` per drag.
|
|
283
|
-
*
|
|
284
|
-
* While a drag is active, a fixed overlay blocks pointer capture — most
|
|
285
|
-
* importantly the browser panel's iframe, which would otherwise swallow
|
|
286
|
-
* pointermove events mid-drag.
|
|
287
|
-
*/
|
|
288
|
-
export function Separator(props: {
|
|
289
|
-
className?: string;
|
|
290
|
-
style?: CSSProperties;
|
|
291
|
-
children?: ComponentChildren;
|
|
292
|
-
/** The host element, for a caller that needs to observe it (hover, measurement). */
|
|
293
|
-
hostRef?: RefObject<HTMLDivElement | null>;
|
|
294
|
-
}) {
|
|
295
|
-
const { className, style, children, hostRef: externalHostRef } = props;
|
|
296
|
-
const group = useContext(GroupContext);
|
|
297
|
-
const hostRef = useRef<HTMLDivElement | null>(null);
|
|
298
|
-
const setHost = useCallback(
|
|
299
|
-
(node: HTMLDivElement | null) => {
|
|
300
|
-
hostRef.current = node;
|
|
301
|
-
if (externalHostRef) externalHostRef.current = node;
|
|
302
|
-
},
|
|
303
|
-
[externalHostRef],
|
|
304
|
-
);
|
|
305
|
-
|
|
306
|
-
if (!group) {
|
|
307
|
-
throw new Error('<Separator> must be rendered inside a <Group>');
|
|
308
|
-
}
|
|
309
|
-
const { orientation, panels, onLayoutChanged } = group;
|
|
310
|
-
const { dragging, guidePx, onPointerDown } = useSeparatorDrag(hostRef, orientation, panels, onLayoutChanged);
|
|
311
|
-
|
|
312
|
-
return (
|
|
313
|
-
<div
|
|
314
|
-
ref={setHost}
|
|
315
|
-
data-separator=""
|
|
316
|
-
role="separator"
|
|
317
|
-
aria-orientation={orientation === 'horizontal' ? 'vertical' : 'horizontal'}
|
|
318
|
-
className={className}
|
|
319
|
-
style={style}
|
|
320
|
-
onPointerDown={onPointerDown}
|
|
321
|
-
onDragStart={(e: DragEvent) => e.preventDefault()}
|
|
322
|
-
>
|
|
323
|
-
{children}
|
|
324
|
-
{dragging && (
|
|
325
|
-
<div
|
|
326
|
-
style={{
|
|
327
|
-
position: 'fixed',
|
|
328
|
-
inset: 0,
|
|
329
|
-
zIndex: 9999,
|
|
330
|
-
cursor: orientation === 'horizontal' ? 'col-resize' : 'row-resize',
|
|
331
|
-
} as CSSProperties}
|
|
332
|
-
/>
|
|
333
|
-
)}
|
|
334
|
-
{guidePx !== null && (
|
|
335
|
-
<div
|
|
336
|
-
aria-hidden="true"
|
|
337
|
-
style={{
|
|
338
|
-
position: 'fixed',
|
|
339
|
-
...(orientation === 'horizontal'
|
|
340
|
-
? { left: `${guidePx}px`, top: 0, bottom: 0, width: '1px' }
|
|
341
|
-
: { top: `${guidePx}px`, left: 0, right: 0, height: '1px' }),
|
|
342
|
-
zIndex: 9998,
|
|
343
|
-
pointerEvents: 'none',
|
|
344
|
-
background: 'var(--theme-ink)',
|
|
345
|
-
opacity: 0.35,
|
|
346
|
-
} as CSSProperties}
|
|
347
|
-
/>
|
|
348
|
-
)}
|
|
349
|
-
</div>
|
|
350
|
-
);
|
|
351
|
-
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The close/open motion state of one panel.
|
|
8
|
+
*
|
|
9
|
+
* Kept out of `Panel` because the rule is a small contract with three facts:
|
|
10
|
+
*
|
|
11
|
+
* - A collapse is a WIDTH transition, not a display toggle. `min-width` and
|
|
12
|
+
* `max-width` clamp the used width the moment they change, so they are
|
|
13
|
+
* interpolated alongside the width and `max-width` is dropped while closed.
|
|
14
|
+
* Measured in Chromium: a 400px panel whose width, min and max all moved to
|
|
15
|
+
* 0 read 0px at 60ms, while the same panel with only its width animated was
|
|
16
|
+
* still at 266px.
|
|
17
|
+
* - `data-panel-collapsed` lands on the first frame (the separator walk reads
|
|
18
|
+
* it), but the floating card is only hidden once the motion has settled.
|
|
19
|
+
* - Reduced motion finishes the toggle in the same frame, so a reader who asked
|
|
20
|
+
* for less motion never gets a 200ms layout animation.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
import { useEffect, useRef, useState } from 'preact/hooks';
|
|
24
|
+
import { usePrefersReducedMotion } from '@/client/hooks/ui/media-query';
|
|
25
|
+
|
|
26
|
+
export interface PanelMotion {
|
|
27
|
+
durationMs: number;
|
|
28
|
+
/** The collapse/restore transition is running; the card must stay visible. */
|
|
29
|
+
settling: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function usePanelMotion(
|
|
33
|
+
collapsed: boolean,
|
|
34
|
+
defaultSize: number | string | undefined,
|
|
35
|
+
transitionMs: number,
|
|
36
|
+
filler: boolean,
|
|
37
|
+
): PanelMotion {
|
|
38
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
39
|
+
const durationMs = reducedMotion ? 0 : transitionMs;
|
|
40
|
+
const [settling, setSettling] = useState(false);
|
|
41
|
+
const previous = useRef({ collapsed, defaultSize });
|
|
42
|
+
const changed = previous.current.collapsed !== collapsed || previous.current.defaultSize !== defaultSize;
|
|
43
|
+
previous.current = { collapsed, defaultSize };
|
|
44
|
+
const initialized = useRef(false);
|
|
45
|
+
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (!initialized.current) {
|
|
48
|
+
initialized.current = true;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (durationMs <= 0 || filler) {
|
|
52
|
+
setSettling(false);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
setSettling(true);
|
|
56
|
+
const timer = setTimeout(() => setSettling(false), durationMs);
|
|
57
|
+
return () => clearTimeout(timer);
|
|
58
|
+
}, [collapsed, defaultSize, durationMs, filler]);
|
|
59
|
+
|
|
60
|
+
return { durationMs, settling: changed ? durationMs > 0 && !filler : settling };
|
|
61
|
+
}
|
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
* Rendered with `h()` (no JSX) against happy-dom.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { afterAll, afterEach, describe, expect, test } from 'bun:test';
|
|
22
|
+
import { afterAll, afterEach, describe, expect, jest, test } from 'bun:test';
|
|
23
23
|
import { Window } from 'happy-dom';
|
|
24
24
|
import { h, render } from 'preact';
|
|
25
25
|
import { act } from 'preact/test-utils';
|
|
26
|
-
import { Group, Panel,
|
|
26
|
+
import { Group, Panel, type LayoutChangedHandler } from '@/client/components/layout/desktop-layout/resizer';
|
|
27
|
+
import { Separator } from '@/client/components/layout/desktop-layout/resizer/separator';
|
|
27
28
|
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
28
29
|
|
|
29
30
|
let container: HTMLElement;
|
|
@@ -98,6 +99,7 @@ afterEach(() => {
|
|
|
98
99
|
container.remove();
|
|
99
100
|
}
|
|
100
101
|
layouts = [];
|
|
102
|
+
jest.useRealTimers();
|
|
101
103
|
});
|
|
102
104
|
|
|
103
105
|
async function mount() {
|
|
@@ -111,6 +113,42 @@ async function mount() {
|
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
describe('panel sizing', () => {
|
|
116
|
+
test('a collapse keeps the card visible until the width motion settles', async () => {
|
|
117
|
+
// The floating card is hidden by `[data-panel-collapsed]`, so applying that
|
|
118
|
+
// marker on the first frame is what made every close a one-frame
|
|
119
|
+
// disappearance. `data-panel-settling` holds it visible for the transition.
|
|
120
|
+
jest.useFakeTimers();
|
|
121
|
+
const Layout = ({ collapsed }: { collapsed: boolean }) =>
|
|
122
|
+
h(Group, {
|
|
123
|
+
orientation: 'horizontal',
|
|
124
|
+
children: [
|
|
125
|
+
h(Panel, { id: 'probe', defaultSize: 300, minSize: 100, maxSize: 600, collapsed, transitionMs: 20, children: h('div', null, 'panel') }),
|
|
126
|
+
h(Panel, { id: 'filler', filler: true, children: h('div', null, 'fill') }),
|
|
127
|
+
],
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
installDomGlobals(new Window({ url: 'http://localhost' }));
|
|
131
|
+
container = document.createElement('div');
|
|
132
|
+
document.body.appendChild(container);
|
|
133
|
+
await act(async () => {
|
|
134
|
+
render(h(Layout, { collapsed: false }), container);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
const panel = container.querySelector<HTMLElement>('[data-panel-id="probe"]');
|
|
138
|
+
expect(panel?.hasAttribute('data-panel-collapsed')).toBe(false);
|
|
139
|
+
|
|
140
|
+
await act(async () => {
|
|
141
|
+
render(h(Layout, { collapsed: true }), container);
|
|
142
|
+
});
|
|
143
|
+
expect(panel?.hasAttribute('data-panel-collapsed')).toBe(true);
|
|
144
|
+
expect(panel?.hasAttribute('data-panel-settling')).toBe(true);
|
|
145
|
+
|
|
146
|
+
act(() => {
|
|
147
|
+
jest.advanceTimersByTime(20);
|
|
148
|
+
});
|
|
149
|
+
expect(panel?.hasAttribute('data-panel-settling')).toBe(false);
|
|
150
|
+
});
|
|
151
|
+
|
|
114
152
|
test('a panel switched to the filler stretches in place, and keeps its node and width on return', async () => {
|
|
115
153
|
// The editor column takes the freed chat width by BECOMING the group's
|
|
116
154
|
// filler (compact/full view). A filler is sized by flexbox, so its own px
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The drag handle between two panels. Dragging transfers pixels from the
|
|
8
|
+
* previous sibling panel to the next sibling panel, clamped by both sides,
|
|
9
|
+
* and commits one `onLayoutChanged(_, { isUserInteraction: true })` per drag.
|
|
10
|
+
*
|
|
11
|
+
* While a drag is active, a fixed overlay blocks pointer capture — most
|
|
12
|
+
* importantly the browser panel's iframe, which would otherwise swallow
|
|
13
|
+
* pointermove events mid-drag.
|
|
14
|
+
*
|
|
15
|
+
* Split out of `index.tsx` for the per-file ceiling; the `Group` context is the
|
|
16
|
+
* same one the panels register in, so the handle resolves its neighbours
|
|
17
|
+
* exactly as before.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { useCallback, useContext, useRef } from 'preact/compat';
|
|
21
|
+
import type { ComponentChildren, RefObject } from 'preact';
|
|
22
|
+
import type { CSSProperties } from 'preact';
|
|
23
|
+
import { GroupContext } from '@/client/components/layout/desktop-layout/resizer';
|
|
24
|
+
import { useSeparatorDrag } from '@/client/components/layout/desktop-layout/resizer/separator-drag';
|
|
25
|
+
|
|
26
|
+
export function Separator(props: {
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: CSSProperties;
|
|
29
|
+
children?: ComponentChildren;
|
|
30
|
+
/** The host element, for a caller that needs to observe it (hover, measurement). */
|
|
31
|
+
hostRef?: RefObject<HTMLDivElement | null>;
|
|
32
|
+
}) {
|
|
33
|
+
const { className, style, children, hostRef: externalHostRef } = props;
|
|
34
|
+
const group = useContext(GroupContext);
|
|
35
|
+
const hostRef = useRef<HTMLDivElement | null>(null);
|
|
36
|
+
const setHost = useCallback(
|
|
37
|
+
(node: HTMLDivElement | null) => {
|
|
38
|
+
hostRef.current = node;
|
|
39
|
+
if (externalHostRef) externalHostRef.current = node;
|
|
40
|
+
},
|
|
41
|
+
[externalHostRef],
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
if (!group) {
|
|
45
|
+
throw new Error('<Separator> must be rendered inside a <Group>');
|
|
46
|
+
}
|
|
47
|
+
const { orientation, panels, onLayoutChanged } = group;
|
|
48
|
+
const { dragging, guidePx, onPointerDown } = useSeparatorDrag(hostRef, orientation, panels, onLayoutChanged);
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<div
|
|
52
|
+
ref={setHost}
|
|
53
|
+
data-separator=""
|
|
54
|
+
role="separator"
|
|
55
|
+
aria-orientation={orientation === 'horizontal' ? 'vertical' : 'horizontal'}
|
|
56
|
+
className={className}
|
|
57
|
+
style={style}
|
|
58
|
+
onPointerDown={onPointerDown}
|
|
59
|
+
onDragStart={(e: DragEvent) => e.preventDefault()}
|
|
60
|
+
>
|
|
61
|
+
{children}
|
|
62
|
+
{dragging && (
|
|
63
|
+
<div
|
|
64
|
+
style={{
|
|
65
|
+
position: 'fixed',
|
|
66
|
+
inset: 0,
|
|
67
|
+
zIndex: 9999,
|
|
68
|
+
cursor: orientation === 'horizontal' ? 'col-resize' : 'row-resize',
|
|
69
|
+
} as CSSProperties}
|
|
70
|
+
/>
|
|
71
|
+
)}
|
|
72
|
+
{guidePx !== null && (
|
|
73
|
+
<div
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
style={{
|
|
76
|
+
position: 'fixed',
|
|
77
|
+
...(orientation === 'horizontal'
|
|
78
|
+
? { left: `${guidePx}px`, top: 0, bottom: 0, width: '1px' }
|
|
79
|
+
: { top: `${guidePx}px`, left: 0, right: 0, height: '1px' }),
|
|
80
|
+
zIndex: 9998,
|
|
81
|
+
pointerEvents: 'none',
|
|
82
|
+
background: 'var(--theme-ink)',
|
|
83
|
+
opacity: 0.35,
|
|
84
|
+
} as CSSProperties}
|
|
85
|
+
/>
|
|
86
|
+
)}
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The left column's bar above the dock: the sidebar toggle and, while the panel
|
|
8
|
+
* is open, the app name.
|
|
9
|
+
*
|
|
10
|
+
* The toggle is a RAIL ROW, not a 28px header control: it is the first item in
|
|
11
|
+
* the same 44px column the dock's marks sit in, with the same 40px ROW the
|
|
12
|
+
* dock's rows occupy (a 36px mark + its 4px gap) and the same hover — a
|
|
13
|
+
* full-width `bg-ink/5` that fades an idle mark to ink. That
|
|
14
|
+
* is what makes it read as part of the dock and keeps its centre on the rail's
|
|
15
|
+
* axis instead of floating at the far end of a wide bar.
|
|
16
|
+
*
|
|
17
|
+
* Collapsed, this bar is only the rail's width, so the app name moves to the
|
|
18
|
+
* left of the session title (`SessionTitleBar`) and the toggle is the whole bar.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { PanelLeft } from 'lucide-preact';
|
|
22
|
+
import { BrandWordmark } from '@/client/components/common/brand-wordmark';
|
|
23
|
+
import { StreamStatusDot } from '@/client/components/common/StreamStatusDot';
|
|
24
|
+
import type { AgentStreamStatus } from '@/shared/lib/chat/omp/status';
|
|
25
|
+
import { withChord } from '@/client/lib/ui/with-chord';
|
|
26
|
+
import { dragRegionProps } from '@/client/lib/desktop/titlebar';
|
|
27
|
+
|
|
28
|
+
export function LeftBar({
|
|
29
|
+
showLeftPanel,
|
|
30
|
+
streamStatus,
|
|
31
|
+
onToggleLeftPanel,
|
|
32
|
+
}: {
|
|
33
|
+
/** The panel is open, so the bar has room for the wordmark and an active mark. */
|
|
34
|
+
showLeftPanel: boolean;
|
|
35
|
+
streamStatus?: AgentStreamStatus;
|
|
36
|
+
onToggleLeftPanel: () => void;
|
|
37
|
+
}) {
|
|
38
|
+
const label = withChord('toggleSidebar', showLeftPanel ? 'Collapse Sidebar' : 'Expand Sidebar');
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<div
|
|
42
|
+
data-float-bar="app"
|
|
43
|
+
// The app name is the one content a FLOATING card cannot share with the
|
|
44
|
+
// shell's own window controls: `floating.css` starts the card after them
|
|
45
|
+
// only while this bar carries the name. A collapsed column keeps its
|
|
46
|
+
// narrow bar under them rather than shifting the way back out of reach.
|
|
47
|
+
{...(showLeftPanel ? { 'data-app-name': '' } : {})}
|
|
48
|
+
className={`flex h-10 items-center titlebar-drag-region select-none ${
|
|
49
|
+
// Open, the toggle takes the right edge of the card. The sidebar's
|
|
50
|
+
// Select is 28px wide and ends 13px from the card edge, so its centre
|
|
51
|
+
// is 27px in; the bar's own 1px border plus a 4px inset (`pr-1`) centres
|
|
52
|
+
// the 44px rail row on that same line. Collapsed, the bar IS the rail
|
|
53
|
+
// and the toggle leads it.
|
|
54
|
+
showLeftPanel ? 'justify-between pr-1' : ''
|
|
55
|
+
}`}
|
|
56
|
+
{...dragRegionProps()}
|
|
57
|
+
>
|
|
58
|
+
{showLeftPanel ? (
|
|
59
|
+
<span
|
|
60
|
+
className="left-bar-wordmark relative flex items-center text-sm font-bold tracking-tight titlebar-no-drag"
|
|
61
|
+
// The K is the app icon, so its centre sits on the rail's axis like
|
|
62
|
+
// every dock mark: the 44px rail centres a 16.5px mark at 28px, which
|
|
63
|
+
// is a 14px inset from the card's content edge. The shell's own inset
|
|
64
|
+
// is a CSS decision (`floating.css`): a flat bar only pads its content
|
|
65
|
+
// past the window controls, a floating card starts after them whole.
|
|
66
|
+
>
|
|
67
|
+
<BrandWordmark glow />
|
|
68
|
+
<span className="absolute -top-0.5 -right-1.5 flex">
|
|
69
|
+
<StreamStatusDot status={streamStatus} />
|
|
70
|
+
</span>
|
|
71
|
+
</span>
|
|
72
|
+
) : null}
|
|
73
|
+
{/* The same row the dock's marks draw: 44px wide, 40px tall, one hover. */}
|
|
74
|
+
<button
|
|
75
|
+
type="button"
|
|
76
|
+
onClick={onToggleLeftPanel}
|
|
77
|
+
className={`flex h-10 w-11 flex-shrink-0 cursor-pointer items-center justify-center transition-colors titlebar-no-drag ${
|
|
78
|
+
showLeftPanel ? 'text-ink' : 'text-ink/40 hover:bg-ink/5 hover:text-ink'
|
|
79
|
+
}`}
|
|
80
|
+
title={label}
|
|
81
|
+
aria-label={label}
|
|
82
|
+
aria-pressed={showLeftPanel}
|
|
83
|
+
>
|
|
84
|
+
<PanelLeft size={16} />
|
|
85
|
+
</button>
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useRef, useState } from 'preact/hooks';
|
|
18
|
-
import {
|
|
18
|
+
import { ChevronRight, FolderOpen, MoreHorizontal, Pin, Plus } from 'lucide-preact';
|
|
19
19
|
import { AnchoredMenu } from '@/client/components/common/anchored-menu';
|
|
20
20
|
import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
|
|
21
21
|
import { NewWorktreeModal } from '@/client/components/workspace/worktree-modal/index';
|
|
@@ -136,7 +136,10 @@ export function CategoryHeader({
|
|
|
136
136
|
)}
|
|
137
137
|
</span>
|
|
138
138
|
<span className="absolute inset-0 flex items-center justify-center text-ink/60 opacity-0 transition-opacity group-hover:opacity-100 touch-visible">
|
|
139
|
-
|
|
139
|
+
<ChevronRight
|
|
140
|
+
size={13}
|
|
141
|
+
className={`transition-transform duration-150 ${isOpen ? 'rotate-90' : ''}`}
|
|
142
|
+
/>
|
|
140
143
|
</span>
|
|
141
144
|
</span>
|
|
142
145
|
<span className="w-2 shrink-0" />
|
|
@@ -3,7 +3,7 @@ import packageJson from '@/../package.json';
|
|
|
3
3
|
import type { ShellDownload } from '@/client/hooks/ui/updates/shell-download';
|
|
4
4
|
import { ShellUpdateButton } from '@/client/components/common/shell-update-button';
|
|
5
5
|
|
|
6
|
-
interface SessionSidebarFooterProps {
|
|
6
|
+
export interface SessionSidebarFooterProps {
|
|
7
7
|
onSettings: () => void;
|
|
8
8
|
/** The shortcut sheet: every chord this build answers to. */
|
|
9
9
|
onKeyBindings: () => void;
|
|
@@ -20,6 +20,13 @@ interface SessionSidebarFooterProps {
|
|
|
20
20
|
* both layouts. Dev-only — `App` passes it only outside a production build.
|
|
21
21
|
*/
|
|
22
22
|
onMobileToggle?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* The collapsed FOOTER DOCK's face: only the Settings mark, so the strip fits
|
|
25
|
+
* the rail's 44px card. Hovering (or focusing) that dock expands it to the
|
|
26
|
+
* full strip. The row is the same component either way, so the controls can
|
|
27
|
+
* never drift between the dock and the open column.
|
|
28
|
+
*/
|
|
29
|
+
compact?: boolean;
|
|
23
30
|
}
|
|
24
31
|
|
|
25
32
|
/**
|
|
@@ -32,19 +39,29 @@ interface SessionSidebarFooterProps {
|
|
|
32
39
|
* is unreachable by keyboard"). It is also what lets a browser spec address
|
|
33
40
|
* these controls by role and name instead of by their position in the DOM.
|
|
34
41
|
*/
|
|
35
|
-
export function SessionSidebarFooter({ onSettings, onKeyBindings, onInfo, onMobileToggle, updateAvailable, onUpdateClick, shellDownload }: SessionSidebarFooterProps) {
|
|
42
|
+
export function SessionSidebarFooter({ onSettings, onKeyBindings, onInfo, onMobileToggle, updateAvailable, onUpdateClick, shellDownload, compact = false }: SessionSidebarFooterProps) {
|
|
43
|
+
const settingsButton = (
|
|
44
|
+
<button
|
|
45
|
+
type="button"
|
|
46
|
+
onClick={onSettings}
|
|
47
|
+
title="Settings"
|
|
48
|
+
aria-label="Settings"
|
|
49
|
+
className="p-1 rounded hover:text-ink hover:bg-ink/5 cursor-pointer transition-colors"
|
|
50
|
+
>
|
|
51
|
+
<Settings size={16} />
|
|
52
|
+
</button>
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
if (compact) {
|
|
56
|
+
// The dock's 44px face. It is the SAME Settings button, not a second copy:
|
|
57
|
+
// the collapsed dock's mark and the open strip's first control must agree.
|
|
58
|
+
return <div className="flex h-full items-center justify-center text-ink/60">{settingsButton}</div>;
|
|
59
|
+
}
|
|
60
|
+
|
|
36
61
|
return (
|
|
37
62
|
<div className="h-10 px-3 border-t border-ink/10 flex items-center justify-between text-ink/60 shrink-0">
|
|
38
63
|
<div className="flex space-x-1">
|
|
39
|
-
|
|
40
|
-
type="button"
|
|
41
|
-
onClick={onSettings}
|
|
42
|
-
title="Settings"
|
|
43
|
-
aria-label="Settings"
|
|
44
|
-
className="p-1 rounded hover:text-ink hover:bg-ink/5 cursor-pointer transition-colors"
|
|
45
|
-
>
|
|
46
|
-
<Settings size={16} />
|
|
47
|
-
</button>
|
|
64
|
+
{settingsButton}
|
|
48
65
|
<button
|
|
49
66
|
type="button"
|
|
50
67
|
onClick={onKeyBindings}
|