@kabmo-labs/kabmo 0.59.0 → 0.60.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-jqq4654r.js → Body-p82s28sj.js} +3 -3
- package/dist/client/static/js/{CsvGrid-avw0taqb.js → CsvGrid-erc5mcvc.js} +2 -2
- package/dist/client/static/js/{DocxView-d221vr6g.js → DocxView-x3faj0jv.js} +3 -3
- package/dist/client/static/js/{DrawioView-gjsy7p01.js → DrawioView-t7fh3ens.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-949393v1.js → HtmlPreview-zy7x7jmm.js} +1 -1
- package/dist/client/static/js/ImageView-xc90jc1c.js +1 -0
- package/dist/client/static/js/LayoutWrapper-wyqe98kf.js +2 -0
- package/dist/client/static/js/MergeDiffView-bng34cpr.js +1 -0
- package/dist/client/static/js/Modal-89jk7wff.js +60 -0
- package/dist/client/static/js/{PdfView-dzj2s6rj.js → PdfView-kqx472q7.js} +1 -1
- package/dist/client/static/js/SessionsView-6bpz1faj.js +1 -0
- package/dist/client/static/js/{SheetView-jpc178g5.js → SheetView-0n9fze50.js} +9 -9
- package/dist/client/static/js/{SvgPreview-94fap32p.js → SvgPreview-6xc6ts46.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-a6eyfzrj.js → abnfDiagram-O67JEVCF-2xdkkqwg.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-pgmyfncy.js → architectureDiagram-NJMV4G6O-ja8cx19z.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-rf51jyb2.js → blockDiagram-BEXU5L5S-ytf7s99c.js} +8 -8
- package/dist/client/static/js/c-fn9jz26e.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-0faj48jp.js → c4Diagram-YGBWAQC7-5a0kdx0z.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-bvzsws8x.js → classDiagram-v2-NBCMYWYE-hd98dvjw.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-j1amnd3m.js → cose-bilkent-JH36ORCC-man3fqcj.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-f73w6zzz.js → cynefinDiagram-VND7K2PF-2f0kbbv2.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-a5vgvjsg.js → dagre-6A5THRUB-k7pyhgzn.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-6y9efamp.js → diagram-22UHCM2B-qx0afa2m.js} +15 -15
- package/dist/client/static/js/{diagram-3UASUU5V-2mycy7xm.js → diagram-3UASUU5V-ydpe77sv.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-10zgjb66.js → diagram-ATOU4E4O-e63v984n.js} +2 -2
- package/dist/client/static/js/{diagram-CDSNMT55-bewa52yf.js → diagram-CDSNMT55-8c765h3a.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-mh3b7gd3.js → diagram-MLGK6HIB-3pq0n7v8.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-gvdrbdm5.js → diagram-MPIPVDR6-638atzxz.js} +2 -2
- package/dist/client/static/js/{dockerfile-6bn19kg0.js → dockerfile-yehc914q.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2prre93c.js → ebnfDiagram-ZINNZB2B-3gv43zvm.js} +1 -1
- package/dist/client/static/js/{elixir-fyxw6d70.js → elixir-3nwnd9yw.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-9t6t9kc6.js → elk-276RUBZZ-6s5pggfc.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-etcggr5n.js → erDiagram-OPXOYQCR-x7cqyb89.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-7sn6nwjv.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-cdc4mwhs.js → ganttDiagram-FUAMR5RP-g97te4v1.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-55d0fa7x.js → gitGraphDiagram-X574FWY7-sw4f94tc.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-pgy7ree5.js → index-0ze5bwvw.js} +5 -5
- package/dist/client/static/js/{index-f13ern5e.js → index-111bq6rs.js} +1 -1
- package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
- package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
- package/dist/client/static/js/index-2n2evsg0.js +2 -0
- package/dist/client/static/js/{index-trq7bdvk.js → index-37apvxgj.js} +2 -2
- package/dist/client/static/js/{index-6bsez5n6.js → index-43gmn7yb.js} +1 -1
- package/dist/client/static/js/index-4h2zkrk1.js +2 -0
- package/dist/client/static/js/{index-xe447cw3.js → index-4xbc0j7t.js} +1 -1
- package/dist/client/static/js/index-5nm8hm4k.js +2 -0
- package/dist/client/static/js/{index-mx5y9vt9.js → index-6qn9kygb.js} +7 -7
- package/dist/client/static/js/{index-jpvng27a.js → index-8zct30zd.js} +1 -1
- package/dist/client/static/js/{index-eggbcdwx.js → index-95jfphx5.js} +197 -197
- package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
- package/dist/client/static/js/{index-8z9aqgf3.js → index-9pw441wc.js} +4 -4
- package/dist/client/static/js/{index-27gwghmp.js → index-9rz6kzsv.js} +1 -1
- 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-bjz54ht6.js +1 -0
- package/dist/client/static/js/{index-db6s66jr.js → index-bkn6jtn1.js} +2 -2
- package/dist/client/static/js/{index-rw84kefb.js → index-bpcg34jp.js} +2 -2
- package/dist/client/static/js/{index-f6t91mpp.js → index-bqapt2e8.js} +1 -1
- package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
- package/dist/client/static/js/{index-fyt8m8ah.js → index-cf69bhjx.js} +2 -2
- package/dist/client/static/js/{index-yh7gngsh.js → index-cfvc1zpk.js} +2 -2
- package/dist/client/static/js/{index-nnwcbp2d.js → index-ddkjgv5h.js} +2 -2
- package/dist/client/static/js/{index-60cxxnpk.js → index-dekvtt2a.js} +87 -87
- package/dist/client/static/js/{index-ax8gaayq.js → index-dv01prse.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-fnwaxc6r.js +1 -0
- package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
- package/dist/client/static/js/index-h65zrhva.js +1 -0
- package/dist/client/static/js/{index-fr91ghwb.js → index-hgfyx8dt.js} +2 -2
- package/dist/client/static/js/{index-gcad7b6g.js → index-hwdkxe4n.js} +2 -2
- package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
- package/dist/client/static/js/index-hxsqw7sz.js +4 -0
- package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
- package/dist/client/static/js/{index-c253x7vt.js → index-ja0ajnvq.js} +7 -7
- package/dist/client/static/js/{index-2f6afhze.js → index-jfqd838j.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-j1ksa4x2.js → index-pdgc9ccr.js} +1 -1
- package/dist/client/static/js/{index-s9ts6qbj.js → index-pdz6j2g2.js} +2 -2
- package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
- package/dist/client/static/js/{index-yg38s8t3.js → index-qkqkygrf.js} +1 -1
- package/dist/client/static/js/index-qkyy563e.js +1 -0
- package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
- 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-a5ecn5yx.js → index-vcq6zfxx.js} +6 -6
- package/dist/client/static/js/{index-3akjcs82.js → index-vec7m1yd.js} +2 -2
- package/dist/client/static/js/{index-mngpcca7.js → index-vejz38qt.js} +9 -9
- package/dist/client/static/js/{index-9rvjegmy.js → index-wrk99kks.js} +2 -2
- package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
- package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
- package/dist/client/static/js/{index-pa70qj4p.js → index-ywp0sd1e.js} +1 -1
- package/dist/client/static/js/{index-njhrm5qa.js → index-z8k42dwz.js} +9 -9
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-9xph6cr5.js → infoDiagram-VRGFBTTK-pw2qaa27.js} +1 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-3gshs3v8.js → ishikawaDiagram-OU5B5YK6-d13jhvxy.js} +3 -3
- package/dist/client/static/js/java-n596am4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-fa8x56mf.js → journeyDiagram-ZHPQQLJL-20gb8a04.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-fybp2hh4.js → kanban-definition-PNTS6WVX-s78e158c.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-jjh5ggp0.js → mermaid.core-xbm27k28.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-gtfbg619.js → mindmap-definition-NLK3R4M7-6y7xe2zm.js} +7 -7
- package/dist/client/static/js/one-dark-pro-7bgqnyhm.js +1 -0
- package/dist/client/static/js/one-light-47y6etng.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-1a51sbqv.js → pegDiagram-GJSIUBJH-dmvewetf.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-zd9svyyn.js → pieDiagram-5QR66LMP-1q9e7rcm.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-5gtw2m6s.js → quadrantDiagram-O4NWA36T-mvrem3n6.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-3ccwpfzz.js → railroadDiagram-XR7U4H2S-axttcfhw.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-sasndrrp.js → requirementDiagram-PLB6GJNP-5qx7erta.js} +12 -12
- package/dist/client/static/js/{ruby-994n5j6e.js → ruby-dve3y59w.js} +1 -1
- package/dist/client/static/js/{rust-n9z2c9m3.js → rust-b3ckax3e.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2ahb4sda.js → sankeyDiagram-IPEJSGJF-es87a3j6.js} +4 -4
- package/dist/client/static/js/{sass-p6g7qdv2.js → sass-emxqt5p2.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-bfj90kz1.js → sequenceDiagram-PO4LG4MO-dgpnjrtk.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-5tygxmtc.js → sizeCapture-INFHLROL-kyw0p86n.js} +1 -1
- package/dist/client/static/js/sql-0kar81jy.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-533xw76e.js → stateDiagram-v2-GCMORJYK-vnsbw8y9.js} +3 -3
- package/dist/client/static/js/{svelte-bek3h1sz.js → svelte-dbsx1ehx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-gd3d04pk.js → swimlanes-2SLR337P-060q1rep.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y77g9dq0.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-fvqvgqvg.js → timeline-definition-EJHVYXUP-8a3yqmx0.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-tm1f0m4x.js → usecaseDiagram-POWQR4AR-18sp73v7.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-2vdvv1hd.js → vennDiagram-UO4OBE2U-gf4y1r3s.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-7avcjznx.js → wardleyDiagram-VNRHLVJA-q0kwmbzh.js} +5 -5
- package/dist/client/static/js/xml-b7824nx0.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-g39y526n.js → xychartDiagram-PMCCYNJV-y0gpmg6m.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/session-row/TrailingSlot.tsx +8 -1
- package/src/client/components/common/session-row/index.tsx +4 -0
- package/src/client/components/common/session-row/session-row.test.tsx +5 -0
- 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/RevealRow.tsx +36 -5
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +5 -2
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +1 -0
- package/src/client/components/layout/session-sidebar/modern/reveal-row.test.tsx +28 -1
- 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/CloseButton.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +10 -1
- package/src/client/components/workspace/model-dropdown/Header.tsx +27 -20
- package/src/client/components/workspace/model-dropdown/Panel.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +18 -0
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +34 -4
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +48 -20
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +163 -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-pan9pqtm.js +0 -1
- package/dist/client/static/js/LayoutWrapper-p0qmghgt.js +0 -2
- package/dist/client/static/js/MergeDiffView-swt467g7.js +0 -1
- package/dist/client/static/js/Modal-4spmcn44.js +0 -60
- package/dist/client/static/js/SessionsView-b6szjdg5.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-7c2ncsw7.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-537m8a3x.js +0 -2
- package/dist/client/static/js/index-me0b6wkw.js +0 -1
- package/dist/client/static/js/index-mttx9327.css +0 -1
- package/dist/client/static/js/index-pe5f2gmn.js +0 -1
- package/dist/client/static/js/index-pzwf6hwe.js +0 -4
- package/dist/client/static/js/index-skvfxcd8.js +0 -1
- package/dist/client/static/js/index-sx2yz2wx.js +0 -1
- package/dist/client/static/js/index-wwyjzhgs.js +0 -2
- package/dist/client/static/js/index-y09de44h.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-vht9rv39.js +0 -1
- package/dist/client/static/js/one-light-arxc5whh.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-xxmvdyg4.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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { describe, expect, test } from 'bun:test';
|
|
7
|
+
import {
|
|
8
|
+
CHROME_STYLE_WITHOUT_ATTRIBUTE,
|
|
9
|
+
DEFAULT_CHROME_STYLE,
|
|
10
|
+
resolveChromeStyle,
|
|
11
|
+
} from '@/shared/lib/theme/chrome-style';
|
|
12
|
+
|
|
13
|
+
describe('chrome style', () => {
|
|
14
|
+
test('a value this build cannot draw falls to the shipping default', () => {
|
|
15
|
+
expect(resolveChromeStyle('floating')).toBe('floating');
|
|
16
|
+
expect(resolveChromeStyle('classic')).toBe('classic');
|
|
17
|
+
expect(resolveChromeStyle(undefined)).toBe(DEFAULT_CHROME_STYLE);
|
|
18
|
+
expect(resolveChromeStyle('nonsense')).toBe(DEFAULT_CHROME_STYLE);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
test('classic is the state CSS paints with no attribute', () => {
|
|
22
|
+
// The writer removes the attribute for this value, so `:root` (classic)
|
|
23
|
+
// and a document carrying nothing are the same state.
|
|
24
|
+
expect(CHROME_STYLE_WITHOUT_ATTRIBUTE).toBe('classic');
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
test('a fresh install ships floating, while classic is the absent attribute', () => {
|
|
28
|
+
expect(DEFAULT_CHROME_STYLE).toBe('floating');
|
|
29
|
+
expect(CHROME_STYLE_WITHOUT_ATTRIBUTE).toBe('classic');
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* How the DESKTOP chrome is arranged, as ONE of two styles.
|
|
8
|
+
*
|
|
9
|
+
* This is a PRESENTATION choice over one shell:
|
|
10
|
+
*
|
|
11
|
+
* - `classic` — flat chrome. The app bar, session title bar and controls bar
|
|
12
|
+
* sit at the top of their columns, and the panels are flat surfaces, exactly
|
|
13
|
+
* as an upgrade expects.
|
|
14
|
+
* - `floating` — every chrome surface is its own card with a 1px border,
|
|
15
|
+
* 12px radius, gutter and shadow, while the chat timeline stays the ground.
|
|
16
|
+
* The pixels live in `src/client/floating.css`, keyed by `[data-chrome]`.
|
|
17
|
+
*
|
|
18
|
+
* The style reaches the document as `data-chrome` on `<html>`, never as a prop:
|
|
19
|
+
* the top bars, the panels and the footer are separate subtrees, and a prop
|
|
20
|
+
* would be one call site each. The CSS is scoped to `.app-window[data-desktop]`,
|
|
21
|
+
* so the phone (whose drawers already own the screen) is untouched.
|
|
22
|
+
*
|
|
23
|
+
* `classic` is what CSS paints with no attribute; `floating` is the shipped
|
|
24
|
+
* default, so a fresh install starts with its chrome as cards.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
export type ChromeStyle = 'classic' | 'floating';
|
|
28
|
+
|
|
29
|
+
/** The style a fresh install — or any stored value this build cannot draw — resolves to. */
|
|
30
|
+
export const DEFAULT_CHROME_STYLE: ChromeStyle = 'floating';
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The style CSS paints when `data-chrome` is absent. `classic` is the absence
|
|
34
|
+
* of the attribute, so a writer REMOVES it rather than writing `classic`. This
|
|
35
|
+
* is deliberately not the shipped default (`floating`).
|
|
36
|
+
*/
|
|
37
|
+
export const CHROME_STYLE_WITHOUT_ATTRIBUTE: ChromeStyle = 'classic';
|
|
38
|
+
|
|
39
|
+
/** Document attribute carrying the style. Read by CSS only. */
|
|
40
|
+
export const CHROME_ATTRIBUTE = 'data-chrome';
|
|
41
|
+
|
|
42
|
+
/** `app_settings` key holding the style, in the `kabmo_settings` blob. */
|
|
43
|
+
export const CHROME_STYLE_SETTING_KEY = 'chromeStyle';
|
|
44
|
+
|
|
45
|
+
/** Every style, in the order the settings control lists them. */
|
|
46
|
+
export const CHROME_STYLES = ['classic', 'floating'] as const;
|
|
47
|
+
|
|
48
|
+
export function isChromeStyle(value: unknown): value is ChromeStyle {
|
|
49
|
+
return value === 'classic' || value === 'floating';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function resolveChromeStyle(value: unknown): ChromeStyle {
|
|
53
|
+
return isChromeStyle(value) ? value : DEFAULT_CHROME_STYLE;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ChromeStyleCopy {
|
|
57
|
+
label: string;
|
|
58
|
+
description: string;
|
|
59
|
+
caption: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export const CHROME_STYLE_COPY: Record<ChromeStyle, ChromeStyleCopy> = {
|
|
63
|
+
classic: {
|
|
64
|
+
label: 'Classic',
|
|
65
|
+
description: 'Flat chrome. The bars sit on the panel edges and every surface is one plane.',
|
|
66
|
+
caption: 'Flat · no gutters',
|
|
67
|
+
},
|
|
68
|
+
floating: {
|
|
69
|
+
label: 'Floating',
|
|
70
|
+
description:
|
|
71
|
+
'Every chrome surface is its own card with a border, radius and gutter. The chat stays the ground.',
|
|
72
|
+
caption: 'Cards · 5px gutter',
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* The rule that matters is the FALLBACK and the DEFAULT: a stored value this
|
|
10
10
|
* build cannot draw must resolve to the shipped default, and that default
|
|
11
|
-
* (`
|
|
12
|
-
*
|
|
13
|
-
* document showed opaque panels.
|
|
11
|
+
* (`classic`) coincides with the style CSS paints with no attribute (`classic`),
|
|
12
|
+
* so a writer that compares against the default still clears the attribute.
|
|
14
13
|
*/
|
|
15
14
|
|
|
16
15
|
import { describe, expect, test } from 'bun:test';
|
|
@@ -50,8 +49,8 @@ describe('resolveSurfaceStyle', () => {
|
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
describe('the style table', () => {
|
|
53
|
-
test('a fresh install resolves to
|
|
54
|
-
expect(DEFAULT_SURFACE_STYLE).toBe('
|
|
52
|
+
test('a fresh install resolves to classic, which is also the absent attribute', () => {
|
|
53
|
+
expect(DEFAULT_SURFACE_STYLE).toBe('classic');
|
|
55
54
|
expect(SURFACE_STYLE_WITHOUT_ATTRIBUTE).toBe('classic');
|
|
56
55
|
expect(SURFACE_STYLES).toContain(DEFAULT_SURFACE_STYLE);
|
|
57
56
|
});
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* - `classic` — opaque paper over the palette's canvas. Rendered when the
|
|
16
16
|
* attribute is ABSENT, which is why `SURFACE_STYLE_WITHOUT_ATTRIBUTE` is
|
|
17
|
-
* `classic
|
|
17
|
+
* `classic`: CSS states the opaque look once, in `:root`. The shipped
|
|
18
|
+
* default a fresh install resolves to.
|
|
18
19
|
* - `glass` — one frosted plane over a palette-coloured aura, with the
|
|
19
20
|
* panels above it as translucent tints. The plane owns the blur (a single
|
|
20
21
|
* `backdrop-filter` per window), so the panel count does not decide the
|
|
21
|
-
* frame budget.
|
|
22
|
+
* frame budget.
|
|
22
23
|
*
|
|
23
24
|
* The style reaches the document as `data-surface` on `<html>`, never as a
|
|
24
25
|
* prop: the sidebar, the navbar, the composer and every modal are separate
|
|
@@ -36,15 +37,15 @@ export type SurfaceStyle = 'classic' | 'glass';
|
|
|
36
37
|
* The style a fresh install — or any stored value this build cannot draw —
|
|
37
38
|
* resolves to.
|
|
38
39
|
*/
|
|
39
|
-
export const DEFAULT_SURFACE_STYLE: SurfaceStyle = '
|
|
40
|
+
export const DEFAULT_SURFACE_STYLE: SurfaceStyle = 'classic';
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* The style CSS paints when `data-surface` is absent.
|
|
43
44
|
*
|
|
44
45
|
* Two facts, kept apart on purpose: the DEFAULT is what a fresh install picks,
|
|
45
46
|
* while the ABSENT state is what `:root` in `tailwind.css` paints. They
|
|
46
|
-
* coincide
|
|
47
|
-
*
|
|
47
|
+
* coincide today, but every writer must still compare against THIS constant
|
|
48
|
+
* when deciding whether the attribute can be omitted.
|
|
48
49
|
*/
|
|
49
50
|
export const SURFACE_STYLE_WITHOUT_ATTRIBUTE: SurfaceStyle = 'classic';
|
|
50
51
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The app's open/close motion, as numbers stated once.
|
|
8
|
+
*
|
|
9
|
+
* A panel and the overlay inside it used to state their own durations (200ms in
|
|
10
|
+
* the resizer, 150/200ms in dialog class names, 180ms in the toast policy), and
|
|
11
|
+
* a surface that changed one without the other read as a two-step animation.
|
|
12
|
+
* The CSS counterpart lives in `src/client/tailwind.css`; `motion.test.ts` keeps
|
|
13
|
+
* the two equal.
|
|
14
|
+
*
|
|
15
|
+
* The easing is the panel's own: fast out of the gate, settling at the end. It
|
|
16
|
+
* is also what makes a width transition read as a deliberate slide instead of
|
|
17
|
+
* a linear shrink.
|
|
18
|
+
*/
|
|
19
|
+
export const PANEL_TRANSITION_MS = 200;
|
|
20
|
+
|
|
21
|
+
/** Width transition easing. Kept as one string so the panel and the CSS agree. */
|
|
22
|
+
export const PANEL_EASING = 'cubic-bezier(0.22, 1, 0.36, 1)';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Overlay enter and exit. Shorter than the panel on purpose: a menu or dialog
|
|
26
|
+
* that takes as long as a column slide feels stuck behind the click.
|
|
27
|
+
*/
|
|
28
|
+
export const OVERLAY_ENTER_MS = 160;
|
|
29
|
+
export const OVERLAY_EXIT_MS = 160;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The floating chrome card's geometry, in pixels.
|
|
8
|
+
*
|
|
9
|
+
* The stylesheet states the same gutter as `--float-gutter`; these constants
|
|
10
|
+
* are what the panel arithmetic reserves around a view's body, so the CSS and
|
|
11
|
+
* the width solver cannot disagree (`floating.test.ts` pins the pair).
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/** The gap between a floating card and the panel edge it sits in. */
|
|
15
|
+
export const FLOATING_GUTTER_PX = 5;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Everything a card takes out of its panel's outer box: one gutter (the card is
|
|
19
|
+
* `100% - gutter` wide, with half a gutter on each side) plus the card's own 1px
|
|
20
|
+
* border on each side. A 44px rail inside a 51px panel is exactly this much
|
|
21
|
+
* chrome plus the rail.
|
|
22
|
+
*/
|
|
23
|
+
export const FLOATING_CARD_INSET_PX = FLOATING_GUTTER_PX + 2;
|
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
* id and drops entries against those ids.
|
|
46
46
|
* - files.expandedPaths string[]
|
|
47
47
|
* - files.searchQuery string
|
|
48
|
+
* - files.outlineExpanded boolean — the Files panel's outline is open
|
|
49
|
+
* - files.outlineHeight number — that outline's body height in px, as
|
|
50
|
+
* dragged (clamped against the panel's height)
|
|
48
51
|
* - browser.zoomLevel number
|
|
49
52
|
* - userBrowser.history string[]
|
|
50
53
|
* - userBrowser.historyIndex number
|
|
@@ -105,6 +105,54 @@ describe('resolveWorkspacePanelWidths and the right panel', () => {
|
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
+
describe('a rail hover preview', () => {
|
|
109
|
+
const base = {
|
|
110
|
+
panelWidths: {},
|
|
111
|
+
editorWidthMode: 'editor' as const,
|
|
112
|
+
activeRightPanel: 'files',
|
|
113
|
+
activePanel: { defaultWidth: 268, defaultFraction: 0.3, minWidth: 200 },
|
|
114
|
+
previewPanel: { id: 'resources', defaultWidth: 300, defaultFraction: 0.3, minWidth: 200 },
|
|
115
|
+
chatHidden: false,
|
|
116
|
+
available: 1023,
|
|
117
|
+
showEditor: false,
|
|
118
|
+
showRightPanel: false,
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
test('draws the previewed view at its own width, without opening the column', () => {
|
|
122
|
+
const resolved = resolveWorkspacePanelWidths({
|
|
123
|
+
...base,
|
|
124
|
+
panelWidths: { right: { resources: { px: 280 } } },
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
expect(resolved.previewShown).toBe(true);
|
|
128
|
+
// The stored pick was never opened: no separator, no "shown" report, and
|
|
129
|
+
// nothing that could be mistaken for a persisted choice.
|
|
130
|
+
expect(resolved.rightShown).toBe(false);
|
|
131
|
+
expect(resolved.handleCount).toBe(0);
|
|
132
|
+
expect(resolved.rightSuppressed).toBe(false);
|
|
133
|
+
// The preview uses the HOVERED view's slot (280), not the selected one.
|
|
134
|
+
expect(resolved.right).toBe(280);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
test('a preview that cannot fit simply does not happen — and is not a refusal', () => {
|
|
138
|
+
const resolved = resolveWorkspacePanelWidths({ ...base, available: 400 });
|
|
139
|
+
|
|
140
|
+
expect(resolved.previewShown).toBe(false);
|
|
141
|
+
expect(resolved.right).toBe(0);
|
|
142
|
+
expect(resolved.handleCount).toBe(0);
|
|
143
|
+
// "Suppressed" makes the toggle explain itself; a hover must stay silent.
|
|
144
|
+
expect(resolved.rightSuppressed).toBe(false);
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
test('an OPEN panel wins over a preview of the same render', () => {
|
|
148
|
+
const resolved = resolveWorkspacePanelWidths({ ...base, showRightPanel: true });
|
|
149
|
+
|
|
150
|
+
expect(resolved.previewShown).toBe(false);
|
|
151
|
+
expect(resolved.rightShown).toBe(true);
|
|
152
|
+
expect(resolved.right).toBeGreaterThanOrEqual(200);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
108
156
|
describe('railShown', () => {
|
|
109
157
|
test('a panel closed by its own control keeps the rail, which is the way back', () => {
|
|
110
158
|
// The regression this pins: the rail was rendered from `rightPanelShown`,
|
|
@@ -122,3 +170,28 @@ describe('railShown', () => {
|
|
|
122
170
|
expect(railShown({ sideShown: true, nav: 'tabs', rightSuppressed: false })).toBe(false);
|
|
123
171
|
});
|
|
124
172
|
});
|
|
173
|
+
|
|
174
|
+
describe('floating chrome is reserved inside the panels', () => {
|
|
175
|
+
const base = {
|
|
176
|
+
panelWidths: {},
|
|
177
|
+
editorWidthMode: 'editor' as const,
|
|
178
|
+
activeRightPanel: 'files',
|
|
179
|
+
activePanel: { defaultWidth: 268, defaultFraction: 0.3, minWidth: 200 },
|
|
180
|
+
chatHidden: false,
|
|
181
|
+
available: 1023,
|
|
182
|
+
showEditor: true,
|
|
183
|
+
showRightPanel: true,
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
test('the right rail and card gutters lift the view floor and default', () => {
|
|
187
|
+
const resolved = resolveWorkspacePanelWidths({ ...base, rightChromeWidth: 58 });
|
|
188
|
+
// 44px rail + 6px gutter each side + the card's 1px borders.
|
|
189
|
+
expect(resolved.rightMin).toBe(200 + 58);
|
|
190
|
+
expect(resolved.right).toBeGreaterThanOrEqual(200 + 58);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
test('the editor document keeps its 320px floor beside the card gutters', () => {
|
|
194
|
+
const resolved = resolveWorkspacePanelWidths({ ...base, editorChromeWidth: 14 });
|
|
195
|
+
expect(resolved.editor).toBeGreaterThanOrEqual(MIN_EDITOR_PANEL_WIDTH + 14);
|
|
196
|
+
});
|
|
197
|
+
});
|
|
@@ -61,10 +61,29 @@ export interface WorkspacePanelWidthsArgs {
|
|
|
61
61
|
activeRightPanel: string;
|
|
62
62
|
/** The active view's own defaults and floor, when it has them. */
|
|
63
63
|
activePanel?: { defaultFraction?: number; defaultWidth?: number; minWidth?: number };
|
|
64
|
+
/**
|
|
65
|
+
* A rail hover preview: draw this view in the right column without opening
|
|
66
|
+
* it. Ignored while the panel is actually requested, and never reported as a
|
|
67
|
+
* suppression — a preview that does not fit simply does not happen.
|
|
68
|
+
*/
|
|
69
|
+
previewPanel?: { id: string; defaultFraction?: number; defaultWidth?: number; minWidth?: number } | null;
|
|
64
70
|
showEditor: boolean;
|
|
65
71
|
showRightPanel: boolean;
|
|
66
72
|
/** The chat column is collapsed, so it holds no floor and no pair share. */
|
|
67
73
|
chatHidden: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Pixels inside the right panel's outer box that are NOT the view body: the
|
|
76
|
+
* activity rail when it lives in the card, plus the floating card's two
|
|
77
|
+
* gutters. The view's own floor and default grow by this much so the BODY
|
|
78
|
+
* keeps the width the view declared.
|
|
79
|
+
*/
|
|
80
|
+
rightChromeWidth?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Pixels inside the editor panel's outer box that are NOT the document: the
|
|
83
|
+
* floating card's two gutters. The editor's floor grows by this much so the
|
|
84
|
+
* DOCUMENT keeps the 320px it declares.
|
|
85
|
+
*/
|
|
86
|
+
editorChromeWidth?: number;
|
|
68
87
|
}
|
|
69
88
|
|
|
70
89
|
export interface WorkspacePanelWidths {
|
|
@@ -77,6 +96,12 @@ export interface WorkspacePanelWidths {
|
|
|
77
96
|
* rail beside a panel that is not there.
|
|
78
97
|
*/
|
|
79
98
|
rightShown: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* A hover preview is on screen in the right column. Separate from
|
|
101
|
+
* `rightShown` because the preview draws no separator and must not be
|
|
102
|
+
* reported as the panel being open.
|
|
103
|
+
*/
|
|
104
|
+
previewShown: boolean;
|
|
80
105
|
/**
|
|
81
106
|
* The right panel was ASKED for and there is no room for it. The caller says
|
|
82
107
|
* so (a refusal names its reason) instead of leaving a toggle that flips a
|
|
@@ -130,19 +155,48 @@ export function rightPanelFits(args: {
|
|
|
130
155
|
}
|
|
131
156
|
|
|
132
157
|
export function resolveWorkspacePanelWidths(args: WorkspacePanelWidthsArgs): WorkspacePanelWidths {
|
|
133
|
-
const {
|
|
158
|
+
const {
|
|
159
|
+
available,
|
|
160
|
+
panelWidths,
|
|
161
|
+
editorWidthMode,
|
|
162
|
+
activeRightPanel,
|
|
163
|
+
activePanel,
|
|
164
|
+
showEditor,
|
|
165
|
+
showRightPanel,
|
|
166
|
+
chatHidden,
|
|
167
|
+
rightChromeWidth = 0,
|
|
168
|
+
editorChromeWidth = 0,
|
|
169
|
+
} = args;
|
|
134
170
|
|
|
135
|
-
|
|
171
|
+
// A hover preview draws in place of the request, never beside it: the pointer
|
|
172
|
+
// can only be on one rail, and a preview must not fight a panel the user
|
|
173
|
+
// already opened.
|
|
174
|
+
const preview = showRightPanel ? null : args.previewPanel ?? null;
|
|
175
|
+
// The rail and the floating card's gutters sit inside this panel, so the
|
|
176
|
+
// view's floor/default are lifted by them. The stored width is already an
|
|
177
|
+
// OUTER width; the body is the part that gives way when the mode changes.
|
|
178
|
+
const rightMin = (activePanel?.minWidth ?? MIN_EDITOR_PANEL_WIDTH) + rightChromeWidth;
|
|
179
|
+
const previewMin = (preview?.minWidth ?? MIN_EDITOR_PANEL_WIDTH) + rightChromeWidth;
|
|
180
|
+
const baseHandleCount = showEditor && !chatHidden ? 1 : 0;
|
|
136
181
|
// The fit question is asked with the handles the row WOULD have, because the
|
|
137
182
|
// answer decides whether one of them exists.
|
|
138
|
-
const requestedHandleCount =
|
|
183
|
+
const requestedHandleCount = baseHandleCount + 1;
|
|
139
184
|
const rightFits =
|
|
140
185
|
showRightPanel && rightPanelFits({ available, showEditor, chatHidden, rightMin, handleCount: requestedHandleCount });
|
|
186
|
+
// A preview is not draggable, so it adds no separator: it must fit with the
|
|
187
|
+
// handles the row already has.
|
|
188
|
+
const previewFits =
|
|
189
|
+
preview !== null &&
|
|
190
|
+
rightPanelFits({ available, showEditor, chatHidden, rightMin: previewMin, handleCount: baseHandleCount });
|
|
141
191
|
// The separator before the editor is gone while the chat is collapsed: there
|
|
142
192
|
// is nothing on its left to transfer width to, and the drag's neighbour walk
|
|
143
193
|
// skips a collapsed panel, so it would render a handle that does nothing.
|
|
144
|
-
const handleCount =
|
|
194
|
+
const handleCount = baseHandleCount + (rightFits ? 1 : 0);
|
|
145
195
|
const showRight = rightFits;
|
|
196
|
+
// What actually occupies the column's width this render: the open panel, or
|
|
197
|
+
// the preview. The editor reserves it either way, or a preview would make the
|
|
198
|
+
// row overflow and flexbox would squeeze both panels.
|
|
199
|
+
const rightOccupies = showRight || previewFits;
|
|
146
200
|
|
|
147
201
|
// The editor and the right panel are a COUPLED pair: the right panel is
|
|
148
202
|
// resolved first, reserving the editor's WANTED share (the editor has no
|
|
@@ -152,16 +206,22 @@ export function resolveWorkspacePanelWidths(args: WorkspacePanelWidthsArgs): Wor
|
|
|
152
206
|
const editorFraction = panelFraction(panelWidths[editorWidthMode], DEFAULT_EDITOR_FRACTIONS[editorWidthMode], available);
|
|
153
207
|
const editorReservePx = available != null && available > 0 ? Math.round(editorFraction * available) : 0;
|
|
154
208
|
|
|
155
|
-
|
|
209
|
+
// Whichever view the column DRAWS is the one whose slot, defaults and floor
|
|
210
|
+
// apply — the open panel's, or the preview's.
|
|
211
|
+
const drawnPanel = preview ?? activePanel;
|
|
212
|
+
const drawnId = preview?.id ?? activeRightPanel;
|
|
213
|
+
const drawnMin = preview ? previewMin : rightMin;
|
|
214
|
+
|
|
215
|
+
const right = rightOccupies
|
|
156
216
|
? resolvePanelWidth({
|
|
157
|
-
stored: panelWidths.right?.[
|
|
158
|
-
defaultFraction:
|
|
159
|
-
defaultPx:
|
|
217
|
+
stored: panelWidths.right?.[drawnId],
|
|
218
|
+
defaultFraction: drawnPanel?.defaultFraction ?? DEFAULT_RIGHT_PANEL_FRACTION,
|
|
219
|
+
defaultPx: (drawnPanel?.defaultWidth ?? MIN_EDITOR_PANEL_WIDTH) + rightChromeWidth,
|
|
160
220
|
available,
|
|
161
|
-
min:
|
|
221
|
+
min: drawnMin,
|
|
162
222
|
pairReservePx: showEditor ? editorReservePx : 0,
|
|
163
223
|
// The editor has not been resolved yet, so only its floor can be reserved.
|
|
164
|
-
siblingWidth: showEditor ? MIN_EDITOR_PANEL_WIDTH : 0,
|
|
224
|
+
siblingWidth: showEditor ? MIN_EDITOR_PANEL_WIDTH + editorChromeWidth : 0,
|
|
165
225
|
handleCount,
|
|
166
226
|
chatHidden,
|
|
167
227
|
})
|
|
@@ -171,11 +231,12 @@ export function resolveWorkspacePanelWidths(args: WorkspacePanelWidthsArgs): Wor
|
|
|
171
231
|
// separators do not. Resolving from its remembered FRACTION would leave the
|
|
172
232
|
// freed width as an empty gap, which is the opposite of what the mode
|
|
173
233
|
// promises; the remembered width is untouched, so leaving restores it.
|
|
234
|
+
const editorFloor = MIN_EDITOR_PANEL_WIDTH + editorChromeWidth;
|
|
174
235
|
const editor = chatHidden
|
|
175
236
|
? Math.max(
|
|
176
|
-
|
|
237
|
+
editorFloor,
|
|
177
238
|
available != null && available > 0
|
|
178
|
-
? Math.floor(available - (
|
|
239
|
+
? Math.floor(available - (rightOccupies ? right : 0) - handleCount * HANDLE_WIDTH)
|
|
179
240
|
: DEFAULT_EDITOR_WIDTHS[editorWidthMode],
|
|
180
241
|
)
|
|
181
242
|
: resolvePanelWidth({
|
|
@@ -183,9 +244,9 @@ export function resolveWorkspacePanelWidths(args: WorkspacePanelWidthsArgs): Wor
|
|
|
183
244
|
defaultFraction: DEFAULT_EDITOR_FRACTIONS[editorWidthMode],
|
|
184
245
|
defaultPx: DEFAULT_EDITOR_WIDTHS[editorWidthMode],
|
|
185
246
|
available,
|
|
186
|
-
min:
|
|
187
|
-
pairReservePx:
|
|
188
|
-
siblingWidth:
|
|
247
|
+
min: editorFloor,
|
|
248
|
+
pairReservePx: rightOccupies ? right : 0,
|
|
249
|
+
siblingWidth: rightOccupies ? right : 0,
|
|
189
250
|
handleCount,
|
|
190
251
|
});
|
|
191
252
|
|
|
@@ -193,13 +254,14 @@ export function resolveWorkspacePanelWidths(args: WorkspacePanelWidthsArgs): Wor
|
|
|
193
254
|
right,
|
|
194
255
|
editor,
|
|
195
256
|
rightShown: showRight,
|
|
257
|
+
previewShown: previewFits,
|
|
196
258
|
rightSuppressed: showRightPanel && !showRight,
|
|
197
259
|
// `resolvePanelWidth` caps what it HANDS to `defaultSize`, but a separator
|
|
198
260
|
// drag bypasses it — the resizer transfers pixels between two panels clamped
|
|
199
261
|
// only by their own `maxSize`. Each max is its own cap and the pair total
|
|
200
262
|
// minus the sibling's FLOOR (it gives way down to its minimum mid-drag).
|
|
201
|
-
editorMax: pairMaxSize({ available, siblingMin:
|
|
202
|
-
rightMax: pairMaxSize({ available, siblingMin: MIN_EDITOR_PANEL_WIDTH, siblingOpen: showEditor, chatHidden }),
|
|
263
|
+
editorMax: pairMaxSize({ available, siblingMin: drawnMin, siblingOpen: rightOccupies, chatHidden }),
|
|
264
|
+
rightMax: pairMaxSize({ available, siblingMin: MIN_EDITOR_PANEL_WIDTH + editorChromeWidth, siblingOpen: showEditor, chatHidden }),
|
|
203
265
|
handleCount,
|
|
204
266
|
rightMin,
|
|
205
267
|
};
|
|
@@ -8,6 +8,7 @@ import type { RightSideHiddenScope } from '@/shared/lib/workspace/right-side-hid
|
|
|
8
8
|
import type { ComposerStyle } from '@/shared/lib/chat/composer/style';
|
|
9
9
|
import type { SurfaceStyle } from '@/shared/lib/theme/surface-style';
|
|
10
10
|
import type { BorderStyle } from '@/shared/lib/theme/border-style';
|
|
11
|
+
import type { ChromeStyle } from '@/shared/lib/theme/chrome-style';
|
|
11
12
|
import type { IconStyle } from '@/shared/lib/theme/icon-style';
|
|
12
13
|
import type { TrayIconStyle } from '@/shared/lib/theme/tray-icon-style';
|
|
13
14
|
import type { SettingsSection } from '@/shared/lib/settings/sections';
|
|
@@ -266,10 +267,8 @@ export interface SettingsState {
|
|
|
266
267
|
mobileRightPanelNav: MobilePanelNav;
|
|
267
268
|
/**
|
|
268
269
|
* How the chat composer is drawn (`classic` | `calm` | `console` | `stage`).
|
|
269
|
-
* A PRESENTATION choice
|
|
270
|
-
*
|
|
271
|
-
* send, the `@`/`/` picker — and only their ORDER and frame change. The
|
|
272
|
-
* table lives in `shared/lib/chat/composer/style.ts`.
|
|
270
|
+
* A PRESENTATION choice: every style renders the same controls, and only
|
|
271
|
+
* their ORDER and frame change. The table lives in `shared/lib/chat/composer/style.ts`.
|
|
273
272
|
*
|
|
274
273
|
* Global and shared by desktop and phone, like the chat width and the tool
|
|
275
274
|
* style. `classic` is the default so an upgrade rearranges nothing.
|
|
@@ -287,13 +286,15 @@ export interface SettingsState {
|
|
|
287
286
|
* call site each. `classic` is the default so an upgrade restyles nothing.
|
|
288
287
|
*/
|
|
289
288
|
surfaceStyle: SurfaceStyle;
|
|
289
|
+
/** How the desktop chrome is arranged (`classic` | `floating`); pixels in `src/client/floating.css`. */
|
|
290
|
+
chromeStyle: ChromeStyle;
|
|
290
291
|
/**
|
|
291
292
|
* How the app's HAIRLINES are drawn (`hairline` | `borderless`). A
|
|
292
|
-
* presentation choice over one shell: both
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
* ring, because those are facts and affordances rather than decoration.
|
|
296
|
-
* table lives in `shared/lib/theme/border-style.ts`; the pixels are the
|
|
293
|
+
* presentation choice over one shell: both draw the same panels and rows, and
|
|
294
|
+
* `borderless` removes only the 1px rules between layout regions — never a
|
|
295
|
+
* badge's or a control's own edge, a validation colour, a drop zone or a
|
|
296
|
+
* focus ring, because those are facts and affordances rather than decoration.
|
|
297
|
+
* The table lives in `shared/lib/theme/border-style.ts`; the pixels are the
|
|
297
298
|
* `[data-borders="borderless"]` block in `src/client/borders.css`.
|
|
298
299
|
*
|
|
299
300
|
* It reaches the document as `data-borders` on `<html>`, for the same reason
|