@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,19 +1,19 @@
|
|
|
1
|
-
import { useEffect, useRef } from 'preact/hooks';
|
|
2
1
|
import { lazy } from 'preact/compat';
|
|
3
|
-
import type { RefObject } from 'preact/compat';
|
|
2
|
+
import type { ReactNode, RefObject } from 'preact/compat';
|
|
4
3
|
import { Group, Panel, type PanelImperativeHandle } from '@/client/components/layout/desktop-layout/resizer';
|
|
5
4
|
import { PanelSuspense } from '@/client/components/layout/desktop-layout/PanelSuspense';
|
|
6
5
|
import { ChatTimeline } from '@/client/components/workspace/chat-timeline/index';
|
|
7
|
-
import { usePanelCatalog, usePanelSlotPlugins } from '@/client/components/workspace/plugin-panel/resolve';
|
|
8
6
|
import { EditorPluginRail } from '@/client/components/workspace/editor/PluginRail';
|
|
9
|
-
import { ActivityBar } from '@/client/components/layout/
|
|
7
|
+
import { ActivityBar } from '@/client/components/layout/activity-bar';
|
|
10
8
|
import { useEditorDrop, type EditorDropResult } from '@/client/hooks/editor/use-editor-drop';
|
|
11
9
|
import { EditorDropOverlay } from '@/client/components/workspace/editor/EditorDropOverlay';
|
|
12
10
|
import { ResizeHandle } from '@/client/components/layout/desktop-layout/ResizeHandle';
|
|
13
11
|
import { RightColumn } from '@/client/components/layout/desktop-layout/RightColumn';
|
|
14
12
|
import type { PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { usePanelPeek } from '@/client/hooks/workspace/panel-peek';
|
|
14
|
+
import { useChromeStyle } from '@/client/hooks/ui/chrome-style';
|
|
15
|
+
import { useRightPanelGeometry } from '@/client/hooks/workspace/right-panel-geometry';
|
|
16
|
+
import { readPanelWidths } from '@/client/hooks/workspace/panel-resize';
|
|
17
17
|
import {
|
|
18
18
|
HANDLE_WIDTH,
|
|
19
19
|
MIN_EDITOR_PANEL_WIDTH,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
type EditorWidthMode,
|
|
22
22
|
type PanelWidths,
|
|
23
23
|
} from '@/shared/lib/workspace/panel-widths';
|
|
24
|
-
import {
|
|
24
|
+
import { FLOATING_CARD_INSET_PX } from '@/shared/lib/workspace/floating-chrome';
|
|
25
25
|
|
|
26
26
|
const Editor = lazy(() => import('@/client/components/workspace/editor/index').then((m) => ({ default: m.Editor })));
|
|
27
27
|
|
|
@@ -43,6 +43,8 @@ interface WorkspacePanelsProps {
|
|
|
43
43
|
* collapsed columns is a column of marks that switches nothing.
|
|
44
44
|
*/
|
|
45
45
|
showRightSide: boolean;
|
|
46
|
+
/** The side is running its close motion; its chrome stays until it lands. */
|
|
47
|
+
rightSideLeaving: boolean;
|
|
46
48
|
/** A built-in view id or a plugin panel key (`plugin:<id>/<panel>`). */
|
|
47
49
|
activeRightPanel: string;
|
|
48
50
|
/** The `plugin:<id>` whose panel owns the editor column, or null. */
|
|
@@ -84,6 +86,8 @@ interface WorkspacePanelsProps {
|
|
|
84
86
|
rightOpenRequest?: { panelKey: string; nonce: number } | null;
|
|
85
87
|
/** The editor panel's corner control: put the editor column away. */
|
|
86
88
|
onHideEditor: () => void;
|
|
89
|
+
/** Bring the sidebar back from full view (the chat title bar is collapsed there). */
|
|
90
|
+
onExpandSidebar?: () => void;
|
|
87
91
|
onSessionTitle: (title: string | null) => void;
|
|
88
92
|
onPanelWidths: (patch: PanelWidths) => void;
|
|
89
93
|
/**
|
|
@@ -94,6 +98,10 @@ interface WorkspacePanelsProps {
|
|
|
94
98
|
* owner of the flag is the one that has to explain the refusal.
|
|
95
99
|
*/
|
|
96
100
|
onRightPanelSuppressed?: (suppressed: boolean | null) => void;
|
|
101
|
+
/** The session title bar, spanning the chat column's width. */
|
|
102
|
+
chatTopBar: ReactNode;
|
|
103
|
+
/** The controls bar, spanning the right panel's width. */
|
|
104
|
+
rightTopBar: ReactNode;
|
|
97
105
|
}
|
|
98
106
|
|
|
99
107
|
export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
@@ -104,6 +112,7 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
|
104
112
|
editorPanelRef,
|
|
105
113
|
showRightPanel,
|
|
106
114
|
showRightSide,
|
|
115
|
+
rightSideLeaving,
|
|
107
116
|
activeRightPanel,
|
|
108
117
|
activeEditorPanelKey,
|
|
109
118
|
onSelectEditorPanel,
|
|
@@ -130,92 +139,61 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
|
130
139
|
rightNav,
|
|
131
140
|
rightOpenRequest,
|
|
132
141
|
onHideEditor,
|
|
142
|
+
onExpandSidebar,
|
|
133
143
|
onSessionTitle,
|
|
134
144
|
onPanelWidths,
|
|
135
145
|
onRightPanelSuppressed,
|
|
146
|
+
chatTopBar,
|
|
147
|
+
rightTopBar,
|
|
136
148
|
} = props;
|
|
137
149
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
*
|
|
141
|
-
* The handlers sit on those two panels' own boxes, so a drop over the sidebar
|
|
142
|
-
* or the right panel never reaches them: the event bubbles past to the window
|
|
143
|
-
* and is ignored. A layout-wide target was the previous shape and it accepted
|
|
144
|
-
* a drop over both of those, where "open this file" is not what the surface
|
|
145
|
-
* means.
|
|
146
|
-
*
|
|
147
|
-
* `enabled` is gated on a workspace being active: a path resolves through the
|
|
148
|
-
* server's allow-list, so a drop with no workspace can only be refused, and a
|
|
149
|
-
* target that lights up to refuse is worse than one that stays dark.
|
|
150
|
-
*/
|
|
151
|
-
const drop = useEditorDrop({ enabled: hasActiveContext, onResult: onDropResult });
|
|
150
|
+
// Drops open a file over the CHAT or the EDITOR only; with no workspace they
|
|
151
|
+
// can only be refused.
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
//
|
|
155
|
-
|
|
156
|
-
//
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
//
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
// ONE catalog for both kinds of panel. The list is memoised per render pass
|
|
164
|
-
// and the components inside it are `lazy()` at module scope, so switching the
|
|
165
|
-
// right panel toggles CSS visibility instead of unmounting: a view's state
|
|
166
|
-
// (tree expansion, search results, terminal buffer) survives switches and no
|
|
167
|
-
// panel re-fetches its data just because the user looked away.
|
|
168
|
-
const catalog = usePanelCatalog();
|
|
169
|
-
// A stored selection can name a view the user has just placed on the LEFT
|
|
170
|
-
// rail — the right column then holds no such panel. Falling back to the first
|
|
171
|
-
// view it does hold is what the phone's drawer already does, and it keeps a
|
|
172
|
-
// move from leaving a "not available" notice in a column that has views. A
|
|
173
|
-
// PANEL THAT DOES NOT EXIST still gets the notice, which is a different fact.
|
|
174
|
-
const allPanels = usePanelCatalog('all');
|
|
175
|
-
const movedToLeft = allPanels.some((panel) => panel.id === activeRightPanel && panel.side === 'left');
|
|
176
|
-
const activePanel = catalog.find((panel) => panel.id === activeRightPanel) ?? (movedToLeft ? catalog[0] : undefined);
|
|
177
|
-
const shownRightPanel = activePanel?.id ?? activeRightPanel;
|
|
178
|
-
// The EDITOR column's plugin slot (`panel`): a takeover, so it has no tab in
|
|
179
|
-
// the strip and this rail is its only switch. Empty until a plugin registers
|
|
180
|
-
// one, which is why a Kabmo without one looks exactly as it did.
|
|
181
|
-
const editorPlugins = usePanelSlotPlugins();
|
|
153
|
+
const drop = useEditorDrop({ enabled: hasActiveContext, onResult: onDropResult });
|
|
154
|
+
// Hover preview of the right rail; pointer state only (see `panel-peek`).
|
|
155
|
+
const peek = usePanelPeek({ dismissed: showRightPanel });
|
|
156
|
+
// The chrome style is the document attribute CSS paints from, so it is read
|
|
157
|
+
// here rather than threaded down as a prop: the floating shell is the one
|
|
158
|
+
// that keeps the controls bar on screen while the side it names is put away.
|
|
159
|
+
const floatingChrome = useChromeStyle() === 'floating';
|
|
160
|
+
// `rightSideLeaving` comes from the layout, which owns the side's presence:
|
|
161
|
+
// the controls bar itself needs the same flag to pin over the shrinking card.
|
|
182
162
|
|
|
183
|
-
// The
|
|
184
|
-
//
|
|
185
|
-
|
|
186
|
-
|
|
163
|
+
// The column's geometry — width, card, catalog, and the rail's hover preview
|
|
164
|
+
// — is one decision, owned by one hook. See `right-panel-geometry.ts`.
|
|
165
|
+
const geometry = useRightPanelGeometry({
|
|
166
|
+
panelWidths,
|
|
167
|
+
editorWidthMode,
|
|
168
|
+
showEditor,
|
|
169
|
+
showRightPanel,
|
|
170
|
+
showRightSide,
|
|
171
|
+
chatHidden,
|
|
172
|
+
activeRightPanel,
|
|
173
|
+
rightNav,
|
|
174
|
+
preview: peek.peek?.side === 'right' ? peek.peek.view : null,
|
|
175
|
+
onSuppressed: onRightPanelSuppressed,
|
|
176
|
+
});
|
|
187
177
|
const {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
178
|
+
groupRef,
|
|
179
|
+
available,
|
|
180
|
+
snapResize,
|
|
181
|
+
catalog,
|
|
182
|
+
editorPlugins,
|
|
183
|
+
activePanel,
|
|
184
|
+
shownRightPanel,
|
|
185
|
+
previewPanel,
|
|
186
|
+
previewShown,
|
|
187
|
+
editorWidth,
|
|
188
|
+
rightWidth,
|
|
189
|
+
rightPanelShown,
|
|
190
|
+
editorMaxSize,
|
|
195
191
|
handleCount,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
panelWidths,
|
|
199
|
-
editorWidthMode,
|
|
200
|
-
activeRightPanel: shownRightPanel,
|
|
201
|
-
activePanel,
|
|
202
|
-
showEditor,
|
|
203
|
-
showRightPanel,
|
|
204
|
-
chatHidden,
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
// The owner of the flag is the navbar's toggle, so the refusal travels up:
|
|
208
|
-
// a click that changes nothing visible is the defect this exists to prevent.
|
|
209
|
-
// `null` before the group is measured, so the first suppression of a load can
|
|
210
|
-
// be told apart from a panel being taken away.
|
|
211
|
-
useEffect(() => {
|
|
212
|
-
// `0` is the pre-measurement area as much as `null` is: the observer reports
|
|
213
|
-
// it on the first frame, and the resolver answers "fits" for both.
|
|
214
|
-
onRightPanelSuppressed?.(available == null || available <= 0 ? null : rightSuppressed);
|
|
215
|
-
}, [available, rightSuppressed, onRightPanelSuppressed]);
|
|
192
|
+
rightCard,
|
|
193
|
+
} = geometry;
|
|
216
194
|
|
|
217
195
|
return (
|
|
218
|
-
<div className="flex flex-1 overflow-hidden">
|
|
196
|
+
<div className="float-row float-row-inner flex flex-1 overflow-hidden">
|
|
219
197
|
<Group
|
|
220
198
|
orientation="horizontal"
|
|
221
199
|
id="kabmo-layout"
|
|
@@ -226,7 +204,15 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
|
226
204
|
// recomputes would otherwise rewrite the saved widths with the
|
|
227
205
|
// clamped sizes they just derived from them.
|
|
228
206
|
onPanelWidths(
|
|
229
|
-
readPanelWidths({
|
|
207
|
+
readPanelWidths({
|
|
208
|
+
editorPanelRef,
|
|
209
|
+
rightPanelRef,
|
|
210
|
+
available,
|
|
211
|
+
chatHidden,
|
|
212
|
+
editorWidthMode,
|
|
213
|
+
shownRightPanel,
|
|
214
|
+
rightPanelOpen: rightPanelShown,
|
|
215
|
+
}),
|
|
230
216
|
);
|
|
231
217
|
}}
|
|
232
218
|
>
|
|
@@ -240,21 +226,36 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
|
240
226
|
available,
|
|
241
227
|
reservedPx:
|
|
242
228
|
(showEditor ? editorWidth : 0) +
|
|
243
|
-
(rightPanelShown ? rightWidth : 0) +
|
|
229
|
+
(rightPanelShown ? rightWidth : rightCard.railVisible ? rightCard.width : 0) +
|
|
244
230
|
handleCount * HANDLE_WIDTH,
|
|
245
231
|
})}
|
|
246
232
|
>
|
|
247
|
-
<div className="relative w-full
|
|
248
|
-
|
|
249
|
-
|
|
233
|
+
<div data-float-stack className="relative flex h-full w-full flex-col">
|
|
234
|
+
{/* The title overlays the transcript; the timeline's top padding keeps messages below it.
|
|
235
|
+
The bar's SIBLING is the right side's controls card, drawn only while
|
|
236
|
+
the floating chrome has that side hidden: the title is the flex column
|
|
237
|
+
that gives way, so a long session name truncates before the card
|
|
238
|
+
instead of running under it. `z-30` beats the later grip (`z-10`) and rail (`z-20`). */}
|
|
239
|
+
<div className="chat-title-overlay pointer-events-none absolute inset-x-0 top-0 z-30 flex">
|
|
240
|
+
<div className="min-w-0 flex-1">{chatTopBar}</div>
|
|
241
|
+
{floatingChrome && !showRightSide && !rightSideLeaving ? (
|
|
242
|
+
<div data-float-right-bar="" className="presence-fade">
|
|
243
|
+
{rightTopBar}
|
|
244
|
+
</div>
|
|
245
|
+
) : null}
|
|
246
|
+
</div>
|
|
247
|
+
<div data-editor-drop="" className="relative h-full min-h-0" {...drop.dropProps} {...drop.captureDropProps} inert={chatHidden}>
|
|
248
|
+
<EditorDropOverlay visible={drop.isDragging} />
|
|
249
|
+
<ChatTimeline className="float-chat w-full h-full" appSettings={appSettings} onSessionTitle={onSessionTitle} />
|
|
250
|
+
</div>
|
|
250
251
|
</div>
|
|
251
252
|
</Panel>
|
|
252
|
-
{showEditor && !chatHidden
|
|
253
|
+
<ResizeHandle open={showEditor && !chatHidden} />
|
|
253
254
|
<Panel
|
|
254
255
|
panelRef={editorPanelRef}
|
|
255
256
|
id="editor-panel"
|
|
256
257
|
defaultSize={editorWidth}
|
|
257
|
-
minSize={MIN_EDITOR_PANEL_WIDTH}
|
|
258
|
+
minSize={MIN_EDITOR_PANEL_WIDTH + FLOATING_CARD_INSET_PX}
|
|
258
259
|
maxSize={editorMaxSize}
|
|
259
260
|
collapsed={!showEditor}
|
|
260
261
|
// With the chat collapsed the editor is the surface that takes the
|
|
@@ -268,7 +269,7 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
|
268
269
|
filler={chatHidden}
|
|
269
270
|
transitionMs={snapResize ? 0 : undefined}
|
|
270
271
|
>
|
|
271
|
-
<div className="flex w-full h-full" {...drop.dropProps} {...drop.captureDropProps}>
|
|
272
|
+
<div data-float-card="editor" className="flex w-full h-full" {...drop.dropProps} {...drop.captureDropProps}>
|
|
272
273
|
<EditorDropOverlay visible={drop.isDragging} />
|
|
273
274
|
<EditorPluginRail
|
|
274
275
|
activeKey={activeEditorPanelKey}
|
|
@@ -296,24 +297,27 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
|
296
297
|
onCopyPath={onCopyPath}
|
|
297
298
|
onRevealInFiles={onRevealInFiles}
|
|
298
299
|
onHidePanel={onHideEditor}
|
|
300
|
+
onExpandSidebar={onExpandSidebar}
|
|
299
301
|
/>
|
|
300
302
|
</PanelSuspense>
|
|
301
303
|
</div>
|
|
302
304
|
</div>
|
|
303
305
|
</Panel>
|
|
304
306
|
|
|
305
|
-
{rightPanelShown
|
|
307
|
+
<ResizeHandle open={rightPanelShown} />
|
|
306
308
|
<RightColumn
|
|
307
309
|
panelRef={rightPanelRef}
|
|
308
310
|
transitionMs={snapResize ? 0 : undefined}
|
|
309
311
|
open={rightPanelShown}
|
|
310
|
-
width={
|
|
311
|
-
minWidth={
|
|
312
|
-
maxWidth={
|
|
312
|
+
width={rightCard.width}
|
|
313
|
+
minWidth={rightCard.minWidth}
|
|
314
|
+
maxWidth={rightCard.maxWidth}
|
|
313
315
|
catalog={catalog}
|
|
314
316
|
shownPanel={shownRightPanel}
|
|
315
317
|
selectedPanel={activeRightPanel}
|
|
316
318
|
activePanelFound={Boolean(activePanel)}
|
|
319
|
+
preview={previewShown && previewPanel ? previewPanel.id : null}
|
|
320
|
+
peek={peek}
|
|
317
321
|
hasActiveContext={hasActiveContext}
|
|
318
322
|
activeProjectPath={activeProjectPath}
|
|
319
323
|
refreshKey={refreshKey}
|
|
@@ -323,18 +327,24 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
|
|
|
323
327
|
navStyle={rightNav}
|
|
324
328
|
onSelectPanel={onChangeRightPanel}
|
|
325
329
|
{...(rightOpenRequest ? { openRequest: rightOpenRequest } : {})}
|
|
330
|
+
topBar={rightPanelShown || rightSideLeaving ? rightTopBar : null}
|
|
331
|
+
rail={
|
|
332
|
+
rightCard.railVisible || rightSideLeaving ? (
|
|
333
|
+
<ActivityBar
|
|
334
|
+
side="right"
|
|
335
|
+
activePanel={shownRightPanel}
|
|
336
|
+
preview={previewShown && previewPanel ? previewPanel.id : null}
|
|
337
|
+
onChangePanel={onChangeRightPanel}
|
|
338
|
+
isPanelOpen={rightPanelShown}
|
|
339
|
+
hasActiveContext={hasActiveContext}
|
|
340
|
+
activeProjectPath={activeProjectPath}
|
|
341
|
+
onPeekIntent={(panel) => peek.intent('right', panel)}
|
|
342
|
+
onPeekIntentCancel={peek.cancelIntent}
|
|
343
|
+
/>
|
|
344
|
+
) : null
|
|
345
|
+
}
|
|
326
346
|
/>
|
|
327
347
|
</Group>
|
|
328
|
-
|
|
329
|
-
{/* The rail is how a view is CHOSEN, so it goes only where choosing one
|
|
330
|
-
can still put something on screen: a rail beside a SUPPRESSED panel is
|
|
331
|
-
a column of marks that switches nothing (and 44px the chat cannot
|
|
332
|
-
spare). A panel closed by its own control is not suppressed — the rail
|
|
333
|
-
is then the way back, and hiding it with the column left the column
|
|
334
|
-
unreachable except through the navbar's chord. */}
|
|
335
|
-
{railShown({ sideShown: showRightSide, nav: rightNav, rightSuppressed }) && (
|
|
336
|
-
<ActivityBar side="right" activePanel={shownRightPanel} onChangePanel={onChangeRightPanel} isPanelOpen={rightPanelShown} hasActiveContext={hasActiveContext} activeProjectPath={activeProjectPath} />
|
|
337
|
-
)}
|
|
338
348
|
</div>
|
|
339
349
|
);
|
|
340
350
|
}
|
|
@@ -4,7 +4,9 @@ import { LeftColumn } from '@/client/components/layout/desktop-layout/LeftColumn
|
|
|
4
4
|
import { DesktopOverlays } from '@/client/components/layout/desktop-layout/DesktopOverlays';
|
|
5
5
|
import { useFileTabs } from '@/client/hooks/workspace/file-tabs';
|
|
6
6
|
import { useSessionState } from '@/client/hooks/workspace/session-state';
|
|
7
|
-
import {
|
|
7
|
+
import { LeftBar } from '@/client/components/layout/left-bar';
|
|
8
|
+
import { SessionTitleBar } from '@/client/components/layout/session-title-bar';
|
|
9
|
+
import { ControlsBar } from '@/client/components/layout/controls-bar';
|
|
8
10
|
import { WorkspacePanels } from '@/client/components/layout/desktop-layout/WorkspacePanels';
|
|
9
11
|
import { WindowAura } from '@/client/components/layout/WindowAura';
|
|
10
12
|
import { ShellNotice } from '@/client/components/layout/ShellNotice';
|
|
@@ -69,16 +71,13 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
69
71
|
// column's own. Resolved through the width module so the resizer, the stored
|
|
70
72
|
// width and the initial size cannot disagree.
|
|
71
73
|
const leftDockMinWidth = resolveLeftDockMinWidth(leftView);
|
|
72
|
-
|
|
73
74
|
const editorPanelRef = useRef<PanelImperativeHandle | null>(null);
|
|
74
75
|
const rightPanelRef = useRef<PanelImperativeHandle | null>(null);
|
|
75
76
|
const leftPanelRef = useRef<PanelImperativeHandle | null>(null);
|
|
76
|
-
|
|
77
77
|
// The workspace the session belongs to, its root, and whether one exists —
|
|
78
78
|
// one hook, because a worktree session reading its folder's path is how the
|
|
79
79
|
// panels ended up on the wrong checkout.
|
|
80
|
-
const { folder:
|
|
81
|
-
|
|
80
|
+
const { folder: activeFolder, path: activeProjectPath, hasActiveContext } = useActiveWorkspaceProject(folders, sessionId);
|
|
82
81
|
// Opening a file must show the column (and the side it lives on). The hook
|
|
83
82
|
// that owns that flag is built below, after the tab list exists — a tab is
|
|
84
83
|
// one of the things that gives the column content — so the callback reaches
|
|
@@ -127,23 +126,14 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
127
126
|
});
|
|
128
127
|
rightSideRef.current = rightSide;
|
|
129
128
|
const { showRightPanel, showEditor } = rightSide;
|
|
130
|
-
|
|
129
|
+
useWorkspacePanelsMode({ sessionId, revealPanel: rightSide.revealRightPanel, requestPanel: requestRightPanel });
|
|
131
130
|
// ONE flag for the whole side, read by the navbar's control AND by the rail:
|
|
132
131
|
// a second "is anything visible" spelling would let the button read one state
|
|
133
132
|
// while the rail draws another.
|
|
134
133
|
const rightSideShown = !rightSide.hidden;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
*
|
|
139
|
-
* It collapses columns around the editor and is resolved here, not in the
|
|
140
|
-
* panels, because the sidebar is a sibling of the whole workspace group: a
|
|
141
|
-
* full view that left it standing would not be the width it promises.
|
|
142
|
-
*
|
|
143
|
-
* The mode is derived from `showEditor`, so closing the column returns the
|
|
144
|
-
* chat and the sidebar without writing anything — reopening it comes back to
|
|
145
|
-
* the width the user chose.
|
|
146
|
-
*/
|
|
134
|
+
// The editor's WIDTH mode (`compact` / `full`), entered from either toolbar.
|
|
135
|
+
// Resolved here because the sidebar is a sibling of the whole group, and
|
|
136
|
+
// derived from `showEditor`, so closing the column restores the widths.
|
|
147
137
|
const editorView = useEditorViewLayout(showEditor);
|
|
148
138
|
const sidebarOpen = showLeftPanel && !editorView.sidebarHidden;
|
|
149
139
|
|
|
@@ -170,18 +160,12 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
170
160
|
toggleSide: rightSide.toggleRightSide,
|
|
171
161
|
});
|
|
172
162
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
*
|
|
176
|
-
* Full view hides the sidebar, so asking for it must leave that mode —
|
|
177
|
-
* otherwise the toggle flips a stored flag the layout is ignoring and the
|
|
178
|
-
* click does nothing. `compact` is the mode that keeps the wider editor.
|
|
179
|
-
*/
|
|
163
|
+
// Ask for the sidebar (or put it away). Full view hides it, so asking for it
|
|
164
|
+
// must leave that mode first, or the click flips a flag the layout ignores.
|
|
180
165
|
const handleToggleLeftPanel = (show: boolean) => {
|
|
181
166
|
if (show) editorView.revealSidebar();
|
|
182
167
|
setShowLeftPanel(show);
|
|
183
168
|
};
|
|
184
|
-
|
|
185
169
|
// The workspace shortcuts, from the shared keymap so the toggles' tooltips
|
|
186
170
|
// name the bound chord. `⌘S` is absent: the editor owns it, and binding it
|
|
187
171
|
// twice would save the file twice.
|
|
@@ -233,6 +217,7 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
233
217
|
return (
|
|
234
218
|
<div
|
|
235
219
|
data-testid="app-root"
|
|
220
|
+
data-desktop=""
|
|
236
221
|
className="app-window relative flex flex-col h-screen w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas"
|
|
237
222
|
>
|
|
238
223
|
<WindowAura />
|
|
@@ -240,7 +225,7 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
240
225
|
|
|
241
226
|
{/* Main Workspace: the resizable LEFT dock (rail + view, see
|
|
242
227
|
`LeftColumn`) plus the right stack. */}
|
|
243
|
-
<div className="flex flex-1 overflow-hidden">
|
|
228
|
+
<div className="float-row flex flex-1 overflow-hidden">
|
|
244
229
|
<Group
|
|
245
230
|
orientation="horizontal"
|
|
246
231
|
id="kabmo-main"
|
|
@@ -256,9 +241,10 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
256
241
|
navStyle={leftNav}
|
|
257
242
|
view={leftView}
|
|
258
243
|
onSelectView={(panel) => {
|
|
259
|
-
// A
|
|
260
|
-
//
|
|
261
|
-
//
|
|
244
|
+
// A programmatic selection (a drop, `omp:open-panel`) shows the
|
|
245
|
+
// view and opens the column. The RAIL's own toggle lives in
|
|
246
|
+
// `LeftColumn`: clicking the active mark collapsed the dock there,
|
|
247
|
+
// while a drop must not.
|
|
262
248
|
setActiveLeftView(panel);
|
|
263
249
|
if (!sidebarOpen) handleToggleLeftPanel(true);
|
|
264
250
|
}}
|
|
@@ -274,26 +260,20 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
274
260
|
onRefresh={handleRefreshWorkspace}
|
|
275
261
|
onOpenFile={(file) => handleOpenFile(file as Parameters<typeof handleOpenFile>[0])}
|
|
276
262
|
onMobileToggle={onMobileToggle}
|
|
263
|
+
topBar={
|
|
264
|
+
<LeftBar
|
|
265
|
+
showLeftPanel={sidebarOpen}
|
|
266
|
+
streamStatus={streamStatus}
|
|
267
|
+
onToggleLeftPanel={() => handleToggleLeftPanel(!sidebarOpen)}
|
|
268
|
+
/>
|
|
269
|
+
}
|
|
277
270
|
/>
|
|
278
271
|
|
|
279
|
-
{/* Right stack:
|
|
280
|
-
|
|
281
|
-
landmark: a screen reader could otherwise jump only between the
|
|
282
|
-
sidebar's `aside` and the header's `nav`, with everything the app
|
|
283
|
-
exists for unreachable by landmark. */}
|
|
272
|
+
{/* Right stack: the group's filler and the document's `main` landmark,
|
|
273
|
+
so the chat is reachable by landmark rather than only `aside`/`nav`. */}
|
|
284
274
|
<Panel id="main-right-stack" filler minSize={0}>
|
|
285
275
|
<main className="flex flex-col h-full">
|
|
286
276
|
<PluginBootstrap workspacePath={activeProjectPath} />
|
|
287
|
-
<TopNavbar
|
|
288
|
-
sessionTitle={workspace.active ? activeProjectFolder?.name ?? null : sessionTitle}
|
|
289
|
-
sessionId={sessionId}
|
|
290
|
-
showLeftPanel={sidebarOpen}
|
|
291
|
-
showRightSide={rightSideShown && rightPanel.sideVisible}
|
|
292
|
-
streamStatus={streamStatus}
|
|
293
|
-
onToggleRightSide={rightPanel.toggle}
|
|
294
|
-
onToggleLeftPanel={() => handleToggleLeftPanel(!sidebarOpen)}
|
|
295
|
-
sessionActions={workspace.active ? undefined : sessionActions}
|
|
296
|
-
/>
|
|
297
277
|
|
|
298
278
|
<WorkspacePanels
|
|
299
279
|
appSettings={appSettings}
|
|
@@ -302,6 +282,7 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
302
282
|
editorPanelRef={editorPanelRef}
|
|
303
283
|
showRightPanel={showRightPanel}
|
|
304
284
|
showRightSide={rightSideShown}
|
|
285
|
+
rightSideLeaving={rightSide.leaving}
|
|
305
286
|
rightNav={rightNav}
|
|
306
287
|
rightOpenRequest={rightOpenRequest}
|
|
307
288
|
activeRightPanel={activeRightPanel}
|
|
@@ -332,9 +313,31 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
|
|
|
332
313
|
onChangeRightPanel={handleChangeRightPanel}
|
|
333
314
|
onCloseRightPanel={rightSide.closeRightPanel}
|
|
334
315
|
onHideEditor={rightSide.hideEditor}
|
|
316
|
+
onExpandSidebar={editorView.sidebarHidden ? () => handleToggleLeftPanel(true) : undefined}
|
|
335
317
|
onSessionTitle={setSessionTitle}
|
|
336
318
|
onPanelWidths={commitWidths}
|
|
337
319
|
onRightPanelSuppressed={rightPanel.report}
|
|
320
|
+
chatTopBar={
|
|
321
|
+
<SessionTitleBar
|
|
322
|
+
sessionTitle={sessionTitle} folder={activeFolder}
|
|
323
|
+
sessionId={sessionId}
|
|
324
|
+
sessionActions={sessionActions}
|
|
325
|
+
streamStatus={streamStatus}
|
|
326
|
+
sidebarOpen={sidebarOpen}
|
|
327
|
+
leftBarVisible={sidebarOpen || /* the bar is collapsed with the chat */ editorView.chatHidden || (dock.enabled && leftNav === 'rail')}
|
|
328
|
+
onExpandSidebar={() => handleToggleLeftPanel(true)}
|
|
329
|
+
rightSideHidden={!rightSideShown}
|
|
330
|
+
onToggleRightSide={rightPanel.toggle}
|
|
331
|
+
/>
|
|
332
|
+
}
|
|
333
|
+
rightTopBar={
|
|
334
|
+
<ControlsBar
|
|
335
|
+
sessionId={sessionId}
|
|
336
|
+
showRightSide={rightSideShown && rightPanel.sideVisible}
|
|
337
|
+
onToggleRightSide={rightPanel.toggle}
|
|
338
|
+
pinned={rightSide.leaving}
|
|
339
|
+
/>
|
|
340
|
+
}
|
|
338
341
|
/>
|
|
339
342
|
</main>
|
|
340
343
|
</Panel>
|