@kabmo-labs/kabmo 0.59.1 → 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-5yedtmnk.js → Body-p82s28sj.js} +3 -3
- package/dist/client/static/js/{CsvGrid-39m8pp1c.js → CsvGrid-erc5mcvc.js} +2 -2
- package/dist/client/static/js/{DocxView-vd99cv12.js → DocxView-x3faj0jv.js} +3 -3
- package/dist/client/static/js/{DrawioView-6nq4412n.js → DrawioView-t7fh3ens.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-cs51gszy.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-0zab721q.js → PdfView-kqx472q7.js} +1 -1
- package/dist/client/static/js/SessionsView-6bpz1faj.js +1 -0
- package/dist/client/static/js/{SheetView-2wdn5hkd.js → SheetView-0n9fze50.js} +9 -9
- package/dist/client/static/js/{SvgPreview-fmrfxd7z.js → SvgPreview-6xc6ts46.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-41scfh9v.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-fp6etjvt.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-pespk9mt.js → blockDiagram-BEXU5L5S-ytf7s99c.js} +8 -8
- package/dist/client/static/js/c-fn9jz26e.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rt4z91dx.js → c4Diagram-YGBWAQC7-5a0kdx0z.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-6bzaq8sd.js → classDiagram-v2-NBCMYWYE-hd98dvjw.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-z3fhgcba.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-8endeh4p.js → cynefinDiagram-VND7K2PF-2f0kbbv2.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-2a2f32dv.js → dagre-6A5THRUB-k7pyhgzn.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-wgbyr6b7.js → diagram-22UHCM2B-qx0afa2m.js} +15 -15
- package/dist/client/static/js/{diagram-3UASUU5V-5122b41x.js → diagram-3UASUU5V-ydpe77sv.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-1gt9fr7e.js → diagram-ATOU4E4O-e63v984n.js} +2 -2
- package/dist/client/static/js/{diagram-CDSNMT55-v6hs59jb.js → diagram-CDSNMT55-8c765h3a.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-yey2m5nm.js → diagram-MLGK6HIB-3pq0n7v8.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-hg4f3q4d.js → diagram-MPIPVDR6-638atzxz.js} +2 -2
- package/dist/client/static/js/{dockerfile-56tfnp5r.js → dockerfile-yehc914q.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2mhc9aar.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-wedtvz9y.js → elk-276RUBZZ-6s5pggfc.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-1kysnby9.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-j4g65rpm.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-vcwmj4b3.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-hgzf4ask.js → index-0ze5bwvw.js} +5 -5
- package/dist/client/static/js/{index-s7p2wdr1.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-y5pkqrga.js → index-37apvxgj.js} +2 -2
- package/dist/client/static/js/{index-vs3g6njv.js → index-43gmn7yb.js} +1 -1
- package/dist/client/static/js/index-4h2zkrk1.js +2 -0
- package/dist/client/static/js/{index-42k78whj.js → index-4xbc0j7t.js} +1 -1
- package/dist/client/static/js/index-5nm8hm4k.js +2 -0
- package/dist/client/static/js/{index-kt77dwsg.js → index-6qn9kygb.js} +7 -7
- package/dist/client/static/js/{index-d201jvs9.js → index-8zct30zd.js} +1 -1
- package/dist/client/static/js/{index-1mkn5fbf.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-jaf968hx.js → index-9pw441wc.js} +4 -4
- package/dist/client/static/js/{index-m62sf9wn.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-dw9epydj.js → index-bpcg34jp.js} +2 -2
- package/dist/client/static/js/{index-spnrx2c0.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-a70sk36c.js → index-cf69bhjx.js} +2 -2
- package/dist/client/static/js/{index-fg0ne74z.js → index-cfvc1zpk.js} +2 -2
- package/dist/client/static/js/{index-wkxsypj1.js → index-ddkjgv5h.js} +2 -2
- package/dist/client/static/js/{index-xqz7bqcn.js → index-dekvtt2a.js} +87 -87
- package/dist/client/static/js/{index-pr8wsq24.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-fvphmwkf.js → index-hgfyx8dt.js} +2 -2
- package/dist/client/static/js/{index-7enfdvh0.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-hrez92pw.js → index-ja0ajnvq.js} +7 -7
- package/dist/client/static/js/{index-3kedv94b.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-2h7xh93h.js → index-pdgc9ccr.js} +1 -1
- package/dist/client/static/js/{index-gajpd90b.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-42q5gg7t.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-csxnqgzw.js → index-vcq6zfxx.js} +6 -6
- package/dist/client/static/js/{index-pn0ja904.js → index-vec7m1yd.js} +2 -2
- package/dist/client/static/js/{index-sqyvj03y.js → index-vejz38qt.js} +9 -9
- package/dist/client/static/js/{index-r42f3r1p.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-qc3de995.js → index-ywp0sd1e.js} +1 -1
- package/dist/client/static/js/{index-tz5ewsza.js → index-z8k42dwz.js} +9 -9
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-7craq9x2.js → infoDiagram-VRGFBTTK-pw2qaa27.js} +1 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ncjty2re.js → ishikawaDiagram-OU5B5YK6-d13jhvxy.js} +3 -3
- package/dist/client/static/js/java-n596am4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-yx222bzt.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-a2f84qmn.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-9vfwthw3.js → mermaid.core-xbm27k28.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-fsxysg6f.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-77wxmp9g.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-gvgfhez0.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-9zkbt5h8.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-w55bsyw6.js → railroadDiagram-XR7U4H2S-axttcfhw.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-828s1e5g.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-csv5f258.js → rust-b3ckax3e.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-34f3fyvg.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-nnta2hn0.js → sequenceDiagram-PO4LG4MO-dgpnjrtk.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-gpcramga.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-3f2en220.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-jgqt12z9.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-sgchcs11.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-znkg9pkq.js → usecaseDiagram-POWQR4AR-18sp73v7.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-dncg96ej.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-77xz2d49.js → wardleyDiagram-VNRHLVJA-q0kwmbzh.js} +5 -5
- package/dist/client/static/js/xml-b7824nx0.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-40j1aqyf.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/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 +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-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
|
@@ -55,10 +55,110 @@ describe('OMP_SCHEMA release rows (19.4.0+)', () => {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// The other two additions carry no `ui` block, so neither omp's panel nor
|
|
58
|
-
// this schema offers them
|
|
59
|
-
// schema stuck at 662 is one release behind the binary.
|
|
58
|
+
// this schema offers them.
|
|
60
59
|
expect(OMP_SCHEMA.entries['toolInterceptor.rules']).toBeUndefined();
|
|
61
60
|
expect(OMP_SCHEMA.entries['hindsight.mentalModelMaxTokens']).toBeUndefined();
|
|
62
|
-
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
test("19.4.2's exit gate, prewalk timeout, web-access and image-size rows are offered", () => {
|
|
64
|
+
// Measured against `omp config list --json` on 19.4.2: 669 keys, the same
|
|
65
|
+
// 669 the panel enumerates (this release adds no config-only key). The
|
|
66
|
+
// image row is a RENAME with an inverted default — `images.autoResize`
|
|
67
|
+
// (true) is gone in favour of `images.noAutoResize` (false) — so an old
|
|
68
|
+
// row would write a key the binary no longer reads.
|
|
69
|
+
const expected: Record<string, { type: SchemaEntry['type']; tab: string; group: string; default: unknown }> = {
|
|
70
|
+
'images.noAutoResize': { type: 'boolean', tab: 'appearance', group: 'Images', default: false },
|
|
71
|
+
'input.confirmExit': { type: 'enum', tab: 'interaction', group: 'Input', default: 'off' },
|
|
72
|
+
'prewalk.escalateTimeoutMs': { type: 'number', tab: 'model', group: 'Prewalk', default: 1000 },
|
|
73
|
+
'providers.openaiExternalWebAccess': { type: 'boolean', tab: 'providers', group: 'Services', default: true },
|
|
74
|
+
};
|
|
75
|
+
for (const [key, want] of Object.entries(expected)) {
|
|
76
|
+
const entry = OMP_SCHEMA.entries[key];
|
|
77
|
+
expect({ key, entry: entry && { type: entry.type, tab: entry.ui.tab, group: entry.ui.group, default: entry.default } }).toEqual({
|
|
78
|
+
key,
|
|
79
|
+
entry: want,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
expect(OMP_SCHEMA.entries['input.confirmExit']?.values).toEqual(['off', 'double', 'confirm']);
|
|
83
|
+
expect(OMP_SCHEMA.entries['images.autoResize']).toBeUndefined();
|
|
84
|
+
|
|
85
|
+
// `secrets.enabled` moved from boolean/false to a three-value enum, and
|
|
86
|
+
// `auto` is now the default; the panel renders the schema's `values`.
|
|
87
|
+
const secrets = OMP_SCHEMA.entries['secrets.enabled'];
|
|
88
|
+
expect({ type: secrets?.type, default: secrets?.default, values: secrets?.values }).toEqual({
|
|
89
|
+
type: 'enum',
|
|
90
|
+
default: 'auto',
|
|
91
|
+
values: ['auto', 'on', 'off'],
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
test("19.4.3's input-gate, LSP, approval and subagent rows are offered", () => {
|
|
96
|
+
// Measured against `omp config list --json` on 19.4.3: 686 keys, of which
|
|
97
|
+
// 518 reach the panel. The `lsp.*` trio is gated upstream on a scope that
|
|
98
|
+
// Kabmo never edits (project settings), so `isConditionMet` treats those
|
|
99
|
+
// guards as always true — pinned in `schema.test.ts`.
|
|
100
|
+
const expected: Record<
|
|
101
|
+
string,
|
|
102
|
+
{ type: SchemaEntry['type']; tab: string; group: string; default: unknown; condition?: string }
|
|
103
|
+
> = {
|
|
104
|
+
'tui.titlePrefix': { type: 'string', tab: 'appearance', group: 'Display', default: '' },
|
|
105
|
+
'input.confirmClear': { type: 'enum', tab: 'interaction', group: 'Input', default: 'off' },
|
|
106
|
+
'input.confirmInterrupt': { type: 'boolean', tab: 'interaction', group: 'Input', default: false },
|
|
107
|
+
thinkingProgressUpdates: { type: 'boolean', tab: 'model', group: 'Thinking', default: false },
|
|
108
|
+
'providers.anthropic.cacheKeepalive': { type: 'boolean', tab: 'model', group: 'Retry & Fallback', default: false },
|
|
109
|
+
'live.sleepPrevention': { type: 'enum', tab: 'providers', group: 'Services', default: 'off' },
|
|
110
|
+
'tools.approvalKeys': { type: 'enum', tab: 'interaction', group: 'Approvals', default: 'default' },
|
|
111
|
+
'lsp.projectConfig': {
|
|
112
|
+
type: 'boolean',
|
|
113
|
+
tab: 'files',
|
|
114
|
+
group: 'LSP',
|
|
115
|
+
default: true,
|
|
116
|
+
condition: 'lspProjectConfigNotProject',
|
|
117
|
+
},
|
|
118
|
+
'lsp.localBinaries': {
|
|
119
|
+
type: 'boolean',
|
|
120
|
+
tab: 'files',
|
|
121
|
+
group: 'LSP',
|
|
122
|
+
default: true,
|
|
123
|
+
condition: 'lspLocalBinariesNotProject',
|
|
124
|
+
},
|
|
125
|
+
'lsp.workspaceDiagnostics': {
|
|
126
|
+
type: 'boolean',
|
|
127
|
+
tab: 'files',
|
|
128
|
+
group: 'LSP',
|
|
129
|
+
default: true,
|
|
130
|
+
condition: 'lspWorkspaceDiagnosticsNotProject',
|
|
131
|
+
},
|
|
132
|
+
'task.peerMessaging': { type: 'boolean', tab: 'tasks', group: 'Subagents', default: true },
|
|
133
|
+
};
|
|
134
|
+
for (const [key, want] of Object.entries(expected)) {
|
|
135
|
+
const entry = OMP_SCHEMA.entries[key];
|
|
136
|
+
expect({
|
|
137
|
+
key,
|
|
138
|
+
entry: entry && {
|
|
139
|
+
type: entry.type,
|
|
140
|
+
tab: entry.ui.tab,
|
|
141
|
+
group: entry.ui.group,
|
|
142
|
+
default: entry.default,
|
|
143
|
+
...(want.condition ? { condition: entry.ui.condition } : {}),
|
|
144
|
+
},
|
|
145
|
+
}).toEqual({ key, entry: want });
|
|
146
|
+
}
|
|
147
|
+
expect(OMP_SCHEMA.entries['input.confirmClear']?.values).toEqual(['off', 'double', 'confirm']);
|
|
148
|
+
expect(OMP_SCHEMA.entries['live.sleepPrevention']?.values).toEqual(['off', 'idle', 'display']);
|
|
149
|
+
expect(OMP_SCHEMA.entries['tools.approvalKeys']?.values).toEqual(['default', 'strict']);
|
|
150
|
+
|
|
151
|
+
// Config-only additions move the source total but carry no `ui` block.
|
|
152
|
+
for (const key of [
|
|
153
|
+
'launch.ownerNotifications',
|
|
154
|
+
'eval.envPassthrough.names',
|
|
155
|
+
'eval.envPassthrough.prefixes',
|
|
156
|
+
'task.maxEffortByModel',
|
|
157
|
+
'mcp.allowedServers',
|
|
158
|
+
'mcp.acpServers',
|
|
159
|
+
]) {
|
|
160
|
+
expect(OMP_SCHEMA.entries[key]).toBeUndefined();
|
|
161
|
+
}
|
|
162
|
+
expect(OMP_SCHEMA.source).toContain('686 settings');
|
|
63
163
|
});
|
|
64
164
|
});
|
|
@@ -136,6 +136,15 @@ describe('isConditionMet', () => {
|
|
|
136
136
|
expect(isConditionMet('hasImageProtocol', {})).toBe(true);
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
+
test('omp 19.4.3 project-scope guards never hide a row from the user-scope writer', () => {
|
|
140
|
+
// Upstream hides these `lsp.*` rows when the settings view edits a project
|
|
141
|
+
// scope. Kabmo's `omp config set` has no scope flag (user file), so the
|
|
142
|
+
// rows are always settable and must render.
|
|
143
|
+
expect(isConditionMet('lspProjectConfigNotProject', {})).toBe(true);
|
|
144
|
+
expect(isConditionMet('lspLocalBinariesNotProject', {})).toBe(true);
|
|
145
|
+
expect(isConditionMet('lspWorkspaceDiagnosticsNotProject', {})).toBe(true);
|
|
146
|
+
});
|
|
147
|
+
|
|
139
148
|
test('the prediction-alternatives row follows composer predictions (omp 18.16.0)', () => {
|
|
140
149
|
// Upstream: `cfgComposerPredictionAlternatives` is gated on
|
|
141
150
|
// `cfgComposerPredictions.get(s) === true`. Falling through to the default
|
|
@@ -68,6 +68,14 @@ export function isConditionMet(condition: string | undefined, entries: Record<st
|
|
|
68
68
|
case 'macOS':
|
|
69
69
|
case 'hasImageProtocol':
|
|
70
70
|
return true;
|
|
71
|
+
// omp 19.4.3's `lsp.*` hardening rows are hidden upstream when the settings
|
|
72
|
+
// view is scoped to a PROJECT, because project settings cannot set them.
|
|
73
|
+
// Kabmo writes through `omp config set` with no scope flag (the user file),
|
|
74
|
+
// so the row is always settable here and must never disappear.
|
|
75
|
+
case 'lspProjectConfigNotProject':
|
|
76
|
+
case 'lspLocalBinariesNotProject':
|
|
77
|
+
case 'lspWorkspaceDiagnosticsNotProject':
|
|
78
|
+
return true;
|
|
71
79
|
default:
|
|
72
80
|
return true;
|
|
73
81
|
}
|
|
@@ -29,6 +29,7 @@ import { DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE } from '@/shared/lib/workspace/right-si
|
|
|
29
29
|
import { DEFAULT_COMPOSER_STYLE } from '@/shared/lib/chat/composer/style';
|
|
30
30
|
import { DEFAULT_SURFACE_STYLE } from '@/shared/lib/theme/surface-style';
|
|
31
31
|
import { DEFAULT_BORDER_STYLE } from '@/shared/lib/theme/border-style';
|
|
32
|
+
import { DEFAULT_CHROME_STYLE } from '@/shared/lib/theme/chrome-style';
|
|
32
33
|
import { DEFAULT_ICON_STYLE } from '@/shared/lib/theme/icon-style';
|
|
33
34
|
import { DEFAULT_TRAY_ICON_STYLE } from '@/shared/lib/theme/tray-icon-style';
|
|
34
35
|
import { EDITOR_DEFAULT_FONT_FAMILY } from '@/shared/lib/code/editor/typography';
|
|
@@ -70,6 +71,7 @@ export const DEFAULT_SETTINGS = {
|
|
|
70
71
|
mobileRightPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
71
72
|
composerStyle: DEFAULT_COMPOSER_STYLE,
|
|
72
73
|
surfaceStyle: DEFAULT_SURFACE_STYLE,
|
|
74
|
+
chromeStyle: DEFAULT_CHROME_STYLE,
|
|
73
75
|
borderStyle: DEFAULT_BORDER_STYLE,
|
|
74
76
|
iconStyle: DEFAULT_ICON_STYLE,
|
|
75
77
|
trayIconStyle: DEFAULT_TRAY_ICON_STYLE,
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
* The border style's contract.
|
|
8
8
|
*
|
|
9
9
|
* The rule that matters is the FALLBACK and the ABSENT state: a stored value
|
|
10
|
-
* this build cannot draw must resolve to `
|
|
11
|
-
*
|
|
12
|
-
* and `hairline` is exactly the state CSS paints with no attribute.
|
|
10
|
+
* this build cannot draw must resolve to `borderless` (the shipped default),
|
|
11
|
+
* while `hairline` is exactly the state CSS paints with no attribute.
|
|
13
12
|
*/
|
|
14
13
|
|
|
15
14
|
import { describe, expect, test } from 'bun:test';
|
|
@@ -42,19 +41,18 @@ describe('resolveBorderStyle', () => {
|
|
|
42
41
|
expect(resolveBorderStyle('borderless')).toBe('borderless');
|
|
43
42
|
});
|
|
44
43
|
|
|
45
|
-
test('an unknown value lands on
|
|
44
|
+
test('an unknown value lands on borderless, never on a rule set that does not exist', () => {
|
|
46
45
|
expect(resolveBorderStyle('naked')).toBe(DEFAULT_BORDER_STYLE);
|
|
47
46
|
expect(resolveBorderStyle(undefined)).toBe(DEFAULT_BORDER_STYLE);
|
|
48
47
|
expect(resolveBorderStyle(null)).toBe(DEFAULT_BORDER_STYLE);
|
|
49
48
|
});
|
|
50
49
|
|
|
51
|
-
test('
|
|
52
|
-
// The
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
expect(DEFAULT_BORDER_STYLE).toBe('hairline');
|
|
50
|
+
test('a fresh install ships borderless, while the absent attribute stays hairline', () => {
|
|
51
|
+
// The shipped default is the look a fresh install gets; the ABSENT state is
|
|
52
|
+
// what CSS paints with no attribute. They diverge on purpose, so a writer
|
|
53
|
+
// that compared against the default would clear `borderless` and paint
|
|
54
|
+
// rules.
|
|
55
|
+
expect(DEFAULT_BORDER_STYLE).toBe('borderless');
|
|
58
56
|
expect(BORDER_STYLE_WITHOUT_ATTRIBUTE).toBe('hairline');
|
|
59
57
|
});
|
|
60
58
|
});
|
|
@@ -76,8 +74,8 @@ describe('the style table', () => {
|
|
|
76
74
|
|
|
77
75
|
test('the borderless copy promises exactly what the CSS removes', () => {
|
|
78
76
|
// The description is the contract a user reads: it says the separators go
|
|
79
|
-
// and
|
|
80
|
-
// split, this sentence is the thing that becomes a lie.
|
|
81
|
-
expect(BORDER_STYLE_COPY.borderless.description).toContain('
|
|
77
|
+
// and badges and controls keep their edges. If the CSS ever stops honouring
|
|
78
|
+
// that split, this sentence is the thing that becomes a lie.
|
|
79
|
+
expect(BORDER_STYLE_COPY.borderless.description).toContain('Badges, fields and switches keep their edge');
|
|
82
80
|
});
|
|
83
81
|
});
|
|
@@ -20,21 +20,28 @@
|
|
|
20
20
|
* `.glass-chrome` / `.glass-overlay` / `.glass-popover`. A setting cannot
|
|
21
21
|
* rewrite 403 files, so it has to OVERRIDE the utilities in one place.
|
|
22
22
|
*
|
|
23
|
-
* 2. **A
|
|
24
|
-
* first may vanish.** The
|
|
25
|
-
*
|
|
23
|
+
* 2. **A layout rule and a control's edge are different facts, and only the
|
|
24
|
+
* first may vanish.** The split is by SHAPE, not by the line's weight: a
|
|
25
|
+
* one-sided `border-t`/`-b`/`-l`/`-r`/`-x`/`-y` rule or a `divide-*` rule
|
|
26
|
+
* separates two regions, while the bare `border` utility closes a card, a
|
|
27
|
+
* chip, a badge or a field. `.border` is exempt in `borders.css`, so a
|
|
28
|
+
* badge keeps its outline in a borderless shell.
|
|
26
29
|
*
|
|
27
|
-
*
|
|
30
|
+
* The rung still decides how VISIBLE the line it would draw is, measured
|
|
31
|
+
* per class string:
|
|
32
|
+
*
|
|
33
|
+
* | Rung | Count | What it usually draws |
|
|
28
34
|
* |-------------|-------|------------------------------------------------------|
|
|
29
|
-
* | `/5`–`/12` | 175 | separators: `border-b` under a header, a column's `border-r
|
|
30
|
-
* | `/15` | 313 |
|
|
35
|
+
* | `/5`–`/12` | 175 | separators: `border-b` under a header, a column's `border-r` |
|
|
36
|
+
* | `/15` | 313 | a panel's outer edge and a chip's edge |
|
|
31
37
|
* | `/20` | 256 | a card's outline, a chip's outline, an input's edge |
|
|
32
38
|
* | `/25`–`/60` | 371 | interaction: hover, focus, focus-within, an active chip |
|
|
33
39
|
*
|
|
34
|
-
* So `borderless` clears `/5`–`/20` and keeps everything
|
|
35
|
-
* focus ring that no longer appears is a WCAG failure
|
|
36
|
-
* a field with no edge is not a calmer field — the
|
|
37
|
-
* by tag in `borders.css`, not by leaving their
|
|
40
|
+
* So `borderless` clears `/5`–`/20` on one-sided rules and keeps everything
|
|
41
|
+
* from `/25` up. A focus ring that no longer appears is a WCAG failure
|
|
42
|
+
* (`DESIGN.md` §7), and a field with no edge is not a calmer field — the
|
|
43
|
+
* form controls are exempted by tag in `borders.css`, not by leaving their
|
|
44
|
+
* rung painted.
|
|
38
45
|
*
|
|
39
46
|
* `border-dashed`, `border-error`/`-warning`/`-success`/`-info`, `ring-*`,
|
|
40
47
|
* `divide-*` and `.kabmo-checkbox` are deliberately untouched: a drop zone, a
|
|
@@ -50,7 +57,7 @@
|
|
|
50
57
|
export type BorderStyle = 'hairline' | 'borderless';
|
|
51
58
|
|
|
52
59
|
/** The style a fresh install — or any stored value this build cannot draw — resolves to. */
|
|
53
|
-
export const DEFAULT_BORDER_STYLE: BorderStyle = '
|
|
60
|
+
export const DEFAULT_BORDER_STYLE: BorderStyle = 'borderless';
|
|
54
61
|
|
|
55
62
|
/**
|
|
56
63
|
* The style CSS paints when `data-borders` is absent.
|
|
@@ -58,9 +65,9 @@ export const DEFAULT_BORDER_STYLE: BorderStyle = 'hairline';
|
|
|
58
65
|
* `hairline` is what every rule in `tailwind.css` already states, so its writer
|
|
59
66
|
* REMOVES the attribute rather than writing it: a document carrying
|
|
60
67
|
* `data-borders="hairline"` and a document carrying nothing are the same state.
|
|
61
|
-
* Kept as its own constant because it is NOT the default
|
|
62
|
-
*
|
|
63
|
-
*
|
|
68
|
+
* Kept as its own constant because it is deliberately NOT the shipped default
|
|
69
|
+
* (`borderless` is): every writer must compare against the state CSS actually
|
|
70
|
+
* paints, never against `DEFAULT_BORDER_STYLE`.
|
|
64
71
|
*/
|
|
65
72
|
export const BORDER_STYLE_WITHOUT_ATTRIBUTE: BorderStyle = 'hairline';
|
|
66
73
|
|
|
@@ -89,9 +96,9 @@ export function isBorderStyle(value: unknown): value is BorderStyle {
|
|
|
89
96
|
* The style to APPLY for a stored value.
|
|
90
97
|
*
|
|
91
98
|
* Anything this build cannot draw — a value from a newer build, a corrupted
|
|
92
|
-
* blob, `undefined` on
|
|
93
|
-
*
|
|
94
|
-
*
|
|
99
|
+
* blob, `undefined` on a fresh install — resolves to `borderless`, the shipped
|
|
100
|
+
* look. A stored `hairline` is still honoured: the fallback never rewrites a
|
|
101
|
+
* preference this build can draw.
|
|
95
102
|
*/
|
|
96
103
|
export function resolveBorderStyle(value: unknown): BorderStyle {
|
|
97
104
|
return isBorderStyle(value) ? value : DEFAULT_BORDER_STYLE;
|
|
@@ -116,7 +123,7 @@ export const BORDER_STYLE_COPY: Record<BorderStyle, BorderStyleCopy> = {
|
|
|
116
123
|
borderless: {
|
|
117
124
|
label: 'Borderless',
|
|
118
125
|
description:
|
|
119
|
-
'The rules between panels, columns
|
|
126
|
+
'The rules between panels, columns and rows are removed; spacing and the panel tints carry the structure. The chat transcript keeps its own rules. Badges, fields and switches keep their edge.',
|
|
120
127
|
caption: 'Rules off',
|
|
121
128
|
},
|
|
122
129
|
};
|
|
@@ -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
|
+
});
|