@kabmo-labs/kabmo 0.45.1 → 0.46.1
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 +412 -412
- package/dist/client/static/js/{CsvGrid-eqmctwyq.js → CsvGrid-qdkmv8bj.js} +2 -2
- package/dist/client/static/js/{DocxView-rjrshmzf.js → DocxView-k84ns803.js} +3 -3
- package/dist/client/static/js/{DrawioView-za569srw.js → DrawioView-r1n717f7.js} +2 -2
- package/dist/client/static/js/ImageView-jkrdrq8v.js +1 -0
- package/dist/client/static/js/LayoutWrapper-sh634350.js +2 -0
- package/dist/client/static/js/Modal-xe6h99jn.js +59 -0
- package/dist/client/static/js/{PdfView-2m78d4jz.js → PdfView-ffg4mccg.js} +1 -1
- package/dist/client/static/js/{SessionsView-54awmse0.js → SessionsView-cdcbsee9.js} +1 -1
- package/dist/client/static/js/{SheetView-xfvjdh24.js → SheetView-89sscpz6.js} +19 -19
- package/dist/client/static/js/{SvgPreview-yfjrfb40.js → SvgPreview-68c0ccbv.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-tmsa3b36.js → abnfDiagram-O67JEVCF-h3a5s259.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-pvb4d65d.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-a5effrpz.js → architectureDiagram-NJMV4G6O-983p0jgn.js} +3 -3
- package/dist/client/static/js/{astro-56b0as3q.js → astro-hyj5wege.js} +1 -1
- package/dist/client/static/js/bash-8d8z8zrg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-3q2kf22c.js → blockDiagram-BEXU5L5S-16pse5mh.js} +5 -5
- package/dist/client/static/js/c-acmn1zc9.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-mkw3jvf6.js → c4Diagram-YGBWAQC7-mvnb00zt.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fw9bs1za.js → classDiagram-v2-NBCMYWYE-kmpd91xb.js} +7 -7
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-eqjrpps4.js → cose-bilkent-JH36ORCC-3ek5r5se.js} +1 -1
- package/dist/client/static/js/cpp-620mvjkk.js +1 -0
- package/dist/client/static/js/css-bt76kxbq.js +1 -0
- package/dist/client/static/js/css-drfs4n12.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-gmx4vean.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-4w61hq3e.js → cynefinDiagram-VND7K2PF-jkbh84zn.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-t52jdfr1.js → dagre-6A5THRUB-4fdc0sgn.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-448hyxaz.js → diagram-22UHCM2B-hbk61nq9.js} +18 -18
- package/dist/client/static/js/{diagram-3UASUU5V-350k213a.js → diagram-3UASUU5V-hfpbr9qh.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-9davjeyb.js → diagram-ATOU4E4O-fn0nt71a.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-034wwghk.js → diagram-CDSNMT55-ssswxjeb.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-kzzd4ecm.js → diagram-MLGK6HIB-whnzxv6f.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-rsky4e3s.js → diagram-MPIPVDR6-hk1chzxk.js} +2 -2
- package/dist/client/static/js/{dockerfile-68b0e6b6.js → dockerfile-zmsj8r4g.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-7bm1e394.js → ebnfDiagram-ZINNZB2B-q1vkg5mr.js} +1 -1
- package/dist/client/static/js/{elixir-12pgbgtq.js → elixir-80wq7gak.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-4xjp4rgh.js → elk-276RUBZZ-kt98vg8j.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-v52qmcrv.js → erDiagram-OPXOYQCR-ey3avsn9.js} +9 -9
- package/dist/client/static/js/{erlang-811btv6p.js → erlang-814e8qy5.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-vrnheyh7.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7gvtpn3d.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1r1fn18p.js → ganttDiagram-FUAMR5RP-a9k1at43.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-n6wnc8st.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-zt5cwg83.js → gitGraphDiagram-X574FWY7-gnekjfym.js} +13 -13
- package/dist/client/static/js/graphql-j1a6zp7m.js +1 -0
- package/dist/client/static/js/html-m0megrvb.js +1 -0
- package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
- package/dist/client/static/js/{index-0gmw2bt3.js → index-1ax52p0q.js} +2 -2
- package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
- package/dist/client/static/js/index-2a6qp9y6.js +2 -0
- package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
- package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
- package/dist/client/static/js/{index-bcpyxt97.js → index-3x7h2eqj.js} +2 -2
- package/dist/client/static/js/{index-q36gq3yz.js → index-4cag7w6k.js} +198 -198
- package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
- package/dist/client/static/js/{index-m9s7r4z9.js → index-5ka2tyf9.js} +3 -3
- package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
- package/dist/client/static/js/{index-frqq7yen.js → index-60v30k5h.js} +64 -64
- package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
- package/dist/client/static/js/{index-xgv501v0.js → index-65afr75v.js} +2 -2
- package/dist/client/static/js/index-83rkg916.js +2 -0
- package/dist/client/static/js/{index-ga6492qc.js → index-84fyq5a6.js} +1 -1
- package/dist/client/static/js/{index-2tmnqqzt.js → index-8g7q8mz4.js} +3 -3
- package/dist/client/static/js/{index-mnh8nptt.js → index-9vv7wr1n.js} +2 -2
- package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
- package/dist/client/static/js/{index-j50y0z44.js → index-amsa0tfs.js} +1 -1
- package/dist/client/static/js/index-atq9q1s7.js +1 -0
- package/dist/client/static/js/{index-8ps5gdwz.js → index-b2e5pwx7.js} +5 -5
- package/dist/client/static/js/{index-cza9mnxx.js → index-b5dfvget.js} +6 -6
- package/dist/client/static/js/{index-zwx3vbf0.js → index-bsr7wmj2.js} +1 -1
- package/dist/client/static/js/{index-ex3w7t7s.js → index-c9e417cs.js} +2 -2
- package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
- package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
- package/dist/client/static/js/index-dpy3ewrn.css +1 -0
- package/dist/client/static/js/index-dt6q3rws.js +12 -0
- package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
- package/dist/client/static/js/{index-127se1a3.js → index-e9cxje00.js} +19 -19
- package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
- package/dist/client/static/js/{index-c7vbr57m.js → index-fzngzhww.js} +2 -2
- package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
- package/dist/client/static/js/{index-x0kgnkv3.js → index-hgzntg2j.js} +2 -2
- package/dist/client/static/js/{index-jaqjvk22.js → index-hkz2mz34.js} +2 -2
- package/dist/client/static/js/{index-gzp4j2h5.js → index-hnb66d3s.js} +2 -2
- package/dist/client/static/js/{index-9zwtpazh.js → index-kb14dhrx.js} +2 -2
- package/dist/client/static/js/{index-snjtkfkq.js → index-kbhrvep8.js} +6 -6
- package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
- package/dist/client/static/js/index-m4k054wz.js +4 -0
- package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
- package/dist/client/static/js/index-pavvxrsz.js +1 -0
- package/dist/client/static/js/index-q9ytjey8.js +1 -0
- package/dist/client/static/js/{index-8dtp7mt0.js → index-qf3y3ahx.js} +2 -2
- package/dist/client/static/js/{index-as1wptfa.js → index-qfxn7yh5.js} +2 -2
- package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
- package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
- package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
- package/dist/client/static/js/index-vkqb4dnt.js +1 -0
- package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
- package/dist/client/static/js/{index-528x5x8c.js → index-wrcdc9vz.js} +1 -1
- package/dist/client/static/js/{index-2zntn964.js → index-x9r7zfp4.js} +2 -2
- package/dist/client/static/js/{index-mhnwyra0.js → index-xq5f3nxa.js} +2 -2
- package/dist/client/static/js/index-xwjbq003.js +2 -0
- package/dist/client/static/js/{index-2gbfke1a.js → index-yf93db65.js} +1 -1
- package/dist/client/static/js/{index-tkfxnnr5.js → index-ykm7a3cp.js} +2 -2
- package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
- package/dist/client/static/js/{index-84vmdg3k.js → index-z25ss7xj.js} +1 -1
- package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-yd4zwrtv.js → infoDiagram-VRGFBTTK-r1p25738.js} +2 -2
- package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-7sjp09d4.js → ishikawaDiagram-OU5B5YK6-afgrqdrt.js} +3 -3
- package/dist/client/static/js/java-jj41mty3.js +1 -0
- package/dist/client/static/js/javascript-n9w9p97f.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-qh9jk7qk.js → journeyDiagram-ZHPQQLJL-hepa4wk7.js} +5 -5
- package/dist/client/static/js/json-rnh2h17x.js +1 -0
- package/dist/client/static/js/jsx-4gecrt29.js +1 -0
- package/dist/client/static/js/{julia-mgsev9df.js → julia-yv2j8qd0.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-cjc8k0jk.js → kanban-definition-PNTS6WVX-jysft8ya.js} +5 -5
- package/dist/client/static/js/lua-zszaw2f7.js +1 -0
- package/dist/client/static/js/markdown-nm6gw4v4.js +1 -0
- package/dist/client/static/js/{mermaid.core-vw0b7r0k.js → mermaid.core-0m90b0s8.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jyhtpt1z.js → mindmap-definition-NLK3R4M7-x2rrzpvr.js} +8 -8
- package/dist/client/static/js/one-dark-pro-09d8p5vy.js +1 -0
- package/dist/client/static/js/one-light-g3ednt6p.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-zm1r82x5.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-80ygdd29.js → pegDiagram-GJSIUBJH-z7vb7f1z.js} +1 -1
- package/dist/client/static/js/{perl-6n93vjsa.js → perl-917pjq5a.js} +1 -1
- package/dist/client/static/js/{php-w23nmbtc.js → php-hwz75qzt.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-sqa7321j.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6vgh7ntn.js → pieDiagram-5QR66LMP-jqv6v4e6.js} +3 -3
- package/dist/client/static/js/properties-rkptax7r.js +1 -0
- package/dist/client/static/js/python-qf1se1mj.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-k5byajmm.js → quadrantDiagram-O4NWA36T-w2h8yxrv.js} +6 -6
- package/dist/client/static/js/r-ms0cygq2.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-z3z82syp.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-z6swcqq2.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-33km6py4.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zbf1xmq.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-wte1xzzy.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-qffrkk7g.js → railroadDiagram-XR7U4H2S-nd09yac3.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-r80w7tdp.js → requirementDiagram-PLB6GJNP-t61zxh5v.js} +10 -10
- package/dist/client/static/js/{ruby-ag3b3t9t.js → ruby-er7ayhte.js} +1 -1
- package/dist/client/static/js/{rust-a9jcfy2e.js → rust-avnkhh0p.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-g9qdy74b.js → sankeyDiagram-IPEJSGJF-2f7h2cmw.js} +4 -4
- package/dist/client/static/js/{sass-x0eez0kp.js → sass-n47tt136.js} +1 -1
- package/dist/client/static/js/{scss-qycakpjn.js → scss-kvev49ga.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nywg1eq3.js → sequenceDiagram-PO4LG4MO-kfb5d7zd.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-m5pks027.js → sizeCapture-INFHLROL-amfg19se.js} +1 -1
- package/dist/client/static/js/sql-hd42h8wx.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-xzzv780w.js → stateDiagram-v2-GCMORJYK-k5hx7btx.js} +3 -3
- package/dist/client/static/js/{svelte-tg19by0f.js → svelte-2pmz35vx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-n4q5ad13.js → swimlanes-2SLR337P-wv3rp8kk.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-6y8zdbm4.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-j9pde7sa.js → timeline-definition-EJHVYXUP-0re95wtn.js} +6 -6
- package/dist/client/static/js/treeView-Q6P3EWNA-pvgx6n22.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-3n9zm628.js +1 -0
- package/dist/client/static/js/tsx-gx7td06z.js +1 -0
- package/dist/client/static/js/typescript-1a808spn.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ehnc0600.js → usecaseDiagram-POWQR4AR-yrje14qp.js} +44 -44
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-cp4kj6kw.js → vennDiagram-UO4OBE2U-jxkmrfy5.js} +7 -7
- package/dist/client/static/js/{vue-mhj4sme0.js → vue-d5gpjfgn.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-7m07ewc4.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-eegf1jpw.js → wardleyDiagram-VNRHLVJA-d3v2m9b1.js} +3 -3
- package/dist/client/static/js/xml-3117mxd9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-zkkqfyex.js → xychartDiagram-PMCCYNJV-9a1s1rjt.js} +5 -5
- package/dist/client/static/js/yaml-dmvh8vyt.js +1 -0
- package/extensions/kabmo-modes/index.ts +1 -1
- package/extensions/kabmo-modes/parked.test.ts +2 -2
- package/extensions/kabmo-modes/parked.ts +10 -9
- package/extensions/kabmo-modes/plan.test.ts +4 -4
- package/extensions/kabmo-modes/plan.ts +6 -6
- package/extensions/kabmo-modes/session.ts +2 -2
- package/package.json +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/Modal.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.test.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.tsx +7 -9
- package/src/client/components/common/PWAInstallButton.tsx +1 -1
- package/src/client/components/common/header-panel-buttons/index.tsx +5 -1
- package/src/client/components/common/shell-update-button/Modal.tsx +31 -36
- package/src/client/components/common/shell-update-button/index.test.tsx +5 -2
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +16 -0
- package/src/client/components/layout/desktop-layout/RightColumn.test.tsx +204 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +52 -15
- package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
- package/src/client/components/mobile/RightSidebar.tsx +31 -12
- package/src/client/components/mobile/SessionSidebar.tsx +112 -137
- package/src/client/components/mobile/drawer-strip.tsx +85 -0
- package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
- package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
- package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
- package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
- package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
- package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
- package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +97 -0
- package/src/client/components/settings/Band.test.tsx +83 -0
- package/src/client/components/settings/Band.tsx +96 -0
- package/src/client/components/settings/Modal.tsx +44 -69
- package/src/client/components/settings/apply-side-effects.ts +15 -4
- package/src/client/components/settings/band-height.test.tsx +16 -3
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
- package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
- package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
- package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
- package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
- package/src/client/components/settings/drill.tsx +113 -0
- package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
- package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
- package/src/client/components/settings/master-detail/index.tsx +45 -25
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +11 -0
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +29 -21
- package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
- package/src/client/components/workspace/diff-panel/index.tsx +1 -1
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
- package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
- package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
- package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
- package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
- package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +103 -42
- package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
- package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
- package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
- package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
- package/src/client/hooks/chat/timeline/row-measure.ts +75 -0
- package/src/client/hooks/chat/timeline/row-window.test.ts +41 -21
- package/src/client/hooks/chat/timeline/row-window.ts +6 -24
- package/src/client/hooks/workspace/left-dock.ts +19 -0
- package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
- package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
- package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +286 -0
- package/src/client/hooks/workspace/panel-tabs-reveal.ts +174 -0
- package/src/client/hooks/workspace/panel-tabs.ts +22 -4
- package/src/client/hooks/workspace/session-state/index.test.tsx +145 -0
- package/src/client/hooks/workspace/session-state/index.ts +28 -16
- package/src/client/lib/ui/phone-row.test.ts +52 -0
- package/src/client/lib/ui/phone-row.ts +71 -0
- package/src/client/press-state.test.ts +179 -0
- package/src/client/tailwind.css +146 -0
- package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
- package/src/server/lib/omp/rpc/constants.test.ts +6 -1
- package/src/shared/lib/chat/ask-form/data.ts +155 -0
- package/src/shared/lib/chat/ask-form/fields.ts +4 -0
- package/src/shared/lib/chat/ask-form/index.ts +8 -0
- package/src/shared/lib/chat/ask-form/types.ts +12 -0
- package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
- package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
- package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
- package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
- package/src/shared/lib/omp/dialog-methods.ts +6 -0
- package/src/shared/lib/omp/session/wait-idle.ts +7 -3
- package/src/shared/lib/settings/defaults.ts +3 -2
- package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
- package/src/shared/lib/workspace/panel-nav.ts +20 -9
- package/src/shared/types/omp/agent.ts +20 -3
- package/src/shared/types/settings/state.ts +17 -5
- package/dist/client/static/js/ImageView-6ksvyzqv.js +0 -1
- package/dist/client/static/js/LayoutWrapper-px60417t.js +0 -2
- package/dist/client/static/js/Modal-yv1718s1.js +0 -59
- package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
- package/dist/client/static/js/bash-mevzaywf.js +0 -1
- package/dist/client/static/js/c-y1y6v00q.js +0 -1
- package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
- package/dist/client/static/js/css-3w3p9s67.js +0 -1
- package/dist/client/static/js/css-g85rwzty.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-hekt0qsb.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
- package/dist/client/static/js/graphql-027z8sc0.js +0 -1
- package/dist/client/static/js/html-fqda6wxx.js +0 -1
- package/dist/client/static/js/index-252br0k2.js +0 -1
- package/dist/client/static/js/index-6bm4pw90.css +0 -1
- package/dist/client/static/js/index-80qxk9hx.js +0 -1
- package/dist/client/static/js/index-9674dxb4.js +0 -1
- package/dist/client/static/js/index-9k4121z4.js +0 -4
- package/dist/client/static/js/index-b6454rme.js +0 -12
- package/dist/client/static/js/index-ck0fd3aj.js +0 -2
- package/dist/client/static/js/index-jdf1tks1.js +0 -2
- package/dist/client/static/js/index-q58e8x6j.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
- package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
- package/dist/client/static/js/java-zs6qh1dm.js +0 -1
- package/dist/client/static/js/javascript-b9mkygak.js +0 -1
- package/dist/client/static/js/json-qn73s8xb.js +0 -1
- package/dist/client/static/js/jsx-gahhfczw.js +0 -1
- package/dist/client/static/js/lua-d8enp14s.js +0 -1
- package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
- package/dist/client/static/js/one-dark-pro-axkq0m3s.js +0 -1
- package/dist/client/static/js/one-light-pncb08qd.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
- package/dist/client/static/js/properties-g6tpq003.js +0 -1
- package/dist/client/static/js/python-cy06fzhg.js +0 -1
- package/dist/client/static/js/r-vw8berfv.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
- package/dist/client/static/js/sql-bwnasywx.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-253nz20y.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
- package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
- package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
- package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
- package/dist/client/static/js/yaml-avewh7n5.js +0 -1
- package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
- package/src/shared/lib/ui/safe-area.test.ts +0 -28
- package/src/shared/lib/ui/safe-area.ts +0 -42
|
@@ -84,6 +84,16 @@ function installScroller(top: number): HTMLDivElement {
|
|
|
84
84
|
return el;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
/** Mount `ROWS` stubbed row nodes, each reporting the rect `rectFor` returns. */
|
|
88
|
+
function installRows(scroller: HTMLDivElement, rectFor: (index: number, id: string) => DOMRect): void {
|
|
89
|
+
for (let i = 0; i < ROWS; i += 1) {
|
|
90
|
+
const node = document.createElement('div');
|
|
91
|
+
node.dataset.rowId = `r-${i}`;
|
|
92
|
+
node.getBoundingClientRect = () => rectFor(i, node.dataset.rowId!);
|
|
93
|
+
scroller.appendChild(node);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
87
97
|
interface JumpStub {
|
|
88
98
|
active: { current: boolean };
|
|
89
99
|
behavior: { current: ScrollBehavior };
|
|
@@ -236,12 +246,7 @@ describe('useTimelineRowWindow', () => {
|
|
|
236
246
|
// is what lands the open in the commit that measured the rows instead of
|
|
237
247
|
// one rAF later (measured in the browser: one painted frame 2 044 px short).
|
|
238
248
|
const scroller = installScroller(20_000);
|
|
239
|
-
|
|
240
|
-
const node = document.createElement('div');
|
|
241
|
-
node.dataset.rowId = `r-${i}`;
|
|
242
|
-
node.getBoundingClientRect = () => ({ height: ROW_HEIGHT }) as DOMRect;
|
|
243
|
-
scroller.appendChild(node);
|
|
244
|
-
}
|
|
249
|
+
installRows(scroller, () => ({ height: ROW_HEIGHT }) as DOMRect);
|
|
245
250
|
const tail = ROWS * ROW_HEIGHT - VIEWPORT;
|
|
246
251
|
await mount(scroller, { active: { current: true }, behavior: { current: 'instant' } });
|
|
247
252
|
await act(async () => {});
|
|
@@ -266,12 +271,7 @@ describe('useTimelineRowWindow', () => {
|
|
|
266
271
|
// snapping shut).
|
|
267
272
|
const scroller = installScroller(20_000);
|
|
268
273
|
const heights = new Map<string, number>();
|
|
269
|
-
|
|
270
|
-
const node = document.createElement('div');
|
|
271
|
-
node.dataset.rowId = `r-${i}`;
|
|
272
|
-
node.getBoundingClientRect = () => ({ height: heights.get(node.dataset.rowId!) ?? ROW_HEIGHT }) as DOMRect;
|
|
273
|
-
scroller.appendChild(node);
|
|
274
|
-
}
|
|
274
|
+
installRows(scroller, (_i, id) => ({ height: heights.get(id) ?? ROW_HEIGHT }) as DOMRect);
|
|
275
275
|
await mount(scroller);
|
|
276
276
|
await act(async () => {});
|
|
277
277
|
const opened = rowWindow!.start;
|
|
@@ -298,15 +298,10 @@ describe('useTimelineRowWindow', () => {
|
|
|
298
298
|
// must win, and the geometry pin must stand down for that delivery.
|
|
299
299
|
const scroller = installScroller(ROWS * ROW_HEIGHT - VIEWPORT);
|
|
300
300
|
const heights = new Map<string, number>();
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
const height = heights.get(node.dataset.rowId!) ?? ROW_HEIGHT;
|
|
306
|
-
return { height, bottom: i * ROW_HEIGHT + height - scroller.scrollTop } as DOMRect;
|
|
307
|
-
};
|
|
308
|
-
scroller.appendChild(node);
|
|
309
|
-
}
|
|
301
|
+
installRows(scroller, (i, id) => {
|
|
302
|
+
const height = heights.get(id) ?? ROW_HEIGHT;
|
|
303
|
+
return { height, bottom: i * ROW_HEIGHT + height - scroller.scrollTop } as DOMRect;
|
|
304
|
+
});
|
|
310
305
|
const skip = { current: false };
|
|
311
306
|
const jump = { active: { current: true }, behavior: { current: 'instant' as ScrollBehavior } };
|
|
312
307
|
await mount(scroller, jump, skip);
|
|
@@ -324,4 +319,29 @@ describe('useTimelineRowWindow', () => {
|
|
|
324
319
|
expect(scroller.scrollTop).toBe(before + 1_000);
|
|
325
320
|
expect(skip.current).toBe(true);
|
|
326
321
|
});
|
|
322
|
+
|
|
323
|
+
test('a run footer is measured into the slot of the row it closes', async () => {
|
|
324
|
+
// The reported up/down flicker at the end of a stream: the footer is a
|
|
325
|
+
// SIBLING of the row group (the rail must not run through it), so its
|
|
326
|
+
// height is outside the row's rect. Left out of the layout, the content
|
|
327
|
+
// height depended on the mounted window — the row at its edge pulled the
|
|
328
|
+
// footer in with it, the total grew by the footer's height, the tail pin
|
|
329
|
+
// followed, and the next frame's window started one row later and dropped
|
|
330
|
+
// it again (measured in Chromium: scrollTop 1938 → 1968 → 1938 with
|
|
331
|
+
// scrollHeight 2236 → 2266 → 2236). The spacer must carry it instead.
|
|
332
|
+
const scroller = installScroller(20_000);
|
|
333
|
+
installRows(scroller, () => ({ height: ROW_HEIGHT }) as DOMRect);
|
|
334
|
+
const footer = document.createElement('div');
|
|
335
|
+
footer.dataset.rowFooterFor = 'r-150';
|
|
336
|
+
footer.getBoundingClientRect = () => ({ height: 30 }) as DOMRect;
|
|
337
|
+
scroller.appendChild(footer);
|
|
338
|
+
|
|
339
|
+
await mount(scroller);
|
|
340
|
+
await act(async () => {});
|
|
341
|
+
|
|
342
|
+
// `r-150` is above the mounted window, so its slot (row + footer) is
|
|
343
|
+
// inside `padTop`: the spacer describes the session, not the window.
|
|
344
|
+
expect(rowWindow!.start).toBeGreaterThan(150);
|
|
345
|
+
expect(rowWindow!.padTop).toBe(rowWindow!.start * ROW_HEIGHT + 30);
|
|
346
|
+
});
|
|
327
347
|
});
|
|
@@ -33,9 +33,7 @@ import type { RefObject } from 'preact/compat';
|
|
|
33
33
|
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'preact/hooks';
|
|
34
34
|
import { layoutTimelineRows, rowIndex, timelineWindow } from '@/shared/lib/chat/timeline/row-window';
|
|
35
35
|
import { createRevealRow, writeScrollTop } from '@/client/hooks/chat/timeline/row-window-reveal';
|
|
36
|
-
|
|
37
|
-
/** A measurement is only adopted when it differs by more than this. */
|
|
38
|
-
const MEASURE_EPSILON_PX = 0.5;
|
|
36
|
+
import { measureRows } from '@/client/hooks/chat/timeline/row-measure';
|
|
39
37
|
|
|
40
38
|
/** Distance from the bottom, in px, that makes a reader "at the tail". Mirrors
|
|
41
39
|
* `FOLLOW_BOTTOM_THRESHOLD_PX` in `scroll.ts`: below it, follow mode is on. */
|
|
@@ -206,30 +204,14 @@ export function useTimelineRowWindow({
|
|
|
206
204
|
// row every frame, an accordion expands, an image decodes — and a stale height
|
|
207
205
|
// there is a scrollbar that describes a session shorter than it is, which is
|
|
208
206
|
// what makes a jump land short. `range` is a dependency because a new window
|
|
209
|
-
// means a new set of nodes to observe.
|
|
207
|
+
// means a new set of nodes to observe. The run footers are observed for the
|
|
208
|
+
// same reason: `changedFiles` lands in one a second after the turn, and its
|
|
209
|
+
// growth belongs to the row's slot (see `row-measure.ts`).
|
|
210
210
|
useLayoutEffect(() => {
|
|
211
211
|
if (!enabled) return;
|
|
212
212
|
const el = element;
|
|
213
213
|
if (!el) return;
|
|
214
|
-
const measure = ()
|
|
215
|
-
let changed = false;
|
|
216
|
-
let above = false;
|
|
217
|
-
for (const node of el.querySelectorAll<HTMLElement>('[data-row-id]')) {
|
|
218
|
-
const id = node.dataset.rowId;
|
|
219
|
-
if (!id) continue;
|
|
220
|
-
const rect = node.getBoundingClientRect();
|
|
221
|
-
const height = rect.height;
|
|
222
|
-
if (height <= 0) continue;
|
|
223
|
-
const previous = measuredRef.current.get(id);
|
|
224
|
-
if (previous !== undefined && Math.abs(previous - height) <= MEASURE_EPSILON_PX) continue;
|
|
225
|
-
measuredRef.current.set(id, height);
|
|
226
|
-
// A row at or above the viewport's top moves the content ABOVE the
|
|
227
|
-
// reader; the tail pin must not follow it (see `skipTailPinRef`).
|
|
228
|
-
if (rect.bottom <= 0) above = true;
|
|
229
|
-
changed = true;
|
|
230
|
-
}
|
|
231
|
-
return { changed, above };
|
|
232
|
-
};
|
|
214
|
+
const measure = () => measureRows(el, measuredRef.current);
|
|
233
215
|
const adopt = (above: boolean): void => {
|
|
234
216
|
// Which row the reader is looking at, under the geometry they are still
|
|
235
217
|
// seeing: `el.scrollTop` has not moved yet (a browser does not adjust it
|
|
@@ -309,7 +291,7 @@ export function useTimelineRowWindow({
|
|
|
309
291
|
if (result.changed) adopt(result.above);
|
|
310
292
|
});
|
|
311
293
|
});
|
|
312
|
-
for (const node of el.querySelectorAll('[data-row-id]')) observer.observe(node);
|
|
294
|
+
for (const node of el.querySelectorAll('[data-row-id], [data-row-footer-for]')) observer.observe(node);
|
|
313
295
|
return () => {
|
|
314
296
|
observer.disconnect();
|
|
315
297
|
if (frame !== null) cancelAnimationFrame(frame);
|
|
@@ -57,6 +57,25 @@ function publish(): void {
|
|
|
57
57
|
for (const listener of listeners) listener();
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Turn the rail on because a setting just made it load-bearing.
|
|
62
|
+
*
|
|
63
|
+
* The phone's LEFT drawer only has a strip while the rail is on
|
|
64
|
+
* (`use-dock.ts` mirrors `LeftColumn`'s `railEnabled && style === 'tabs'`), so
|
|
65
|
+
* choosing `tabs` with the rail off produced a card that said "active" over a
|
|
66
|
+
* drawer that drew nothing — the switch had no effect and the setting looked
|
|
67
|
+
* broken. The coupling lives here, with the store, for the same reason
|
|
68
|
+
* `persistPanelSide` does: a second caller must not be able to produce a style
|
|
69
|
+
* nobody can see.
|
|
70
|
+
*
|
|
71
|
+
* A no-op when the rail is already on, so it cannot publish a spurious change.
|
|
72
|
+
*/
|
|
73
|
+
export function revealLeftDock(): void {
|
|
74
|
+
if (readLeftDock().enabled) return;
|
|
75
|
+
writeLeftDock({ enabled: true });
|
|
76
|
+
publish();
|
|
77
|
+
}
|
|
78
|
+
|
|
60
79
|
export interface LeftDockHandle extends LeftDockState {
|
|
61
80
|
/** Draw the dock's activity bar. Off by default. */
|
|
62
81
|
setEnabled: (enabled: boolean) => void;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The one reader/writer of a PHONE drawer's navigation style.
|
|
8
|
+
*
|
|
9
|
+
* One module for BOTH drawers, keyed by side, because the fact is the same for
|
|
10
|
+
* each and the desktop columns already state it that way
|
|
11
|
+
* (`client/hooks/workspace/panel-nav.ts` carries `left` and `right`). A second
|
|
12
|
+
* copy for the left drawer is how the two would drift about which event they
|
|
13
|
+
* announce or which key they persist under.
|
|
14
|
+
*
|
|
15
|
+
* The drawer is mounted only while it is a screen, so the value has to survive
|
|
16
|
+
* its own unmount — `appSettings` is a boot-time prop and would only show a new
|
|
17
|
+
* style after a reload. The settings modal calls `applyMobilePanelNav` when the
|
|
18
|
+
* value moves, which announces the event; `useMobilePanelNav` is the one
|
|
19
|
+
* subscriber, in the drawer.
|
|
20
|
+
*
|
|
21
|
+
* Deliberately NOT folded into `applyPanelNav(side, style)`: that event carries
|
|
22
|
+
* a desktop SIDE, and a phone change must not repaint a desktop column into a
|
|
23
|
+
* tree it was not asked for.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { useCallback, useState } from 'preact/hooks';
|
|
27
|
+
import { readKabmoSetting } from '@/shared/lib/settings/client';
|
|
28
|
+
import { useKabmoEvent } from '@/client/hooks/ui/window-event';
|
|
29
|
+
import type { SettingsState } from '@/shared/types';
|
|
30
|
+
import {
|
|
31
|
+
MOBILE_PANEL_NAV_KEYS,
|
|
32
|
+
resolveMobilePanelNav,
|
|
33
|
+
type MobilePanelNav,
|
|
34
|
+
type PanelNavSide,
|
|
35
|
+
} from '@/shared/lib/workspace/panel-nav';
|
|
36
|
+
|
|
37
|
+
/** The key, checked against the settings field it must match to persist at all. */
|
|
38
|
+
export const MOBILE_PANEL_NAV_SETTING_KEY: Record<PanelNavSide, keyof SettingsState> = {
|
|
39
|
+
left: MOBILE_PANEL_NAV_KEYS.left satisfies keyof SettingsState,
|
|
40
|
+
right: MOBILE_PANEL_NAV_KEYS.right satisfies keyof SettingsState,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** Window event carrying `{ side, style }` as `detail`. */
|
|
44
|
+
export const MOBILE_PANEL_NAV_CHANGED_EVENT = 'omp:mobile-panel-nav-changed';
|
|
45
|
+
|
|
46
|
+
/** The stored style for one drawer, resolved against what this build can draw. */
|
|
47
|
+
export function currentMobilePanelNav(
|
|
48
|
+
side: PanelNavSide,
|
|
49
|
+
appSettings?: Record<string, any>,
|
|
50
|
+
): MobilePanelNav {
|
|
51
|
+
return resolveMobilePanelNav(
|
|
52
|
+
readKabmoSetting<unknown>(MOBILE_PANEL_NAV_SETTING_KEY[side], appSettings),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Announce a new style for one drawer; the persisted copy is the settings
|
|
58
|
+
* modal's own write.
|
|
59
|
+
*
|
|
60
|
+
* The SIDE travels in the detail, so a change to one drawer cannot repaint the
|
|
61
|
+
* other — the same rule `applyPanelNav` follows for the desktop columns, and the
|
|
62
|
+
* reason a single drawer-wide event would be wrong now that both have a style.
|
|
63
|
+
*/
|
|
64
|
+
export function applyMobilePanelNav(side: PanelNavSide, style: unknown): void {
|
|
65
|
+
if (typeof window === 'undefined') return;
|
|
66
|
+
window.dispatchEvent(
|
|
67
|
+
new CustomEvent(MOBILE_PANEL_NAV_CHANGED_EVENT, {
|
|
68
|
+
detail: { side, style: resolveMobilePanelNav(style) },
|
|
69
|
+
}),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** The style one drawer should draw, kept live across settings edits. */
|
|
74
|
+
export function useMobilePanelNav(side: PanelNavSide): MobilePanelNav {
|
|
75
|
+
const [style, setStyle] = useState<MobilePanelNav>(() => currentMobilePanelNav(side));
|
|
76
|
+
useKabmoEvent(MOBILE_PANEL_NAV_CHANGED_EVENT, (event) => {
|
|
77
|
+
const detail = (event as CustomEvent<{ side?: unknown; style?: unknown }>).detail;
|
|
78
|
+
// A change addressed to the other drawer is not this drawer's news: an
|
|
79
|
+
// unconditional set would repaint both, and a drawer that re-mounts its
|
|
80
|
+
// tree loses whatever the user had open in it.
|
|
81
|
+
if (detail?.side !== side) return;
|
|
82
|
+
setStyle(resolveMobilePanelNav(detail.style));
|
|
83
|
+
});
|
|
84
|
+
return style;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** A writer the settings modal can hand one drawer's change to. */
|
|
88
|
+
export function useMobilePanelNavApply(): (side: PanelNavSide, style: unknown) => void {
|
|
89
|
+
return useCallback((side: PanelNavSide, style: unknown) => applyMobilePanelNav(side, style), []);
|
|
90
|
+
}
|
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
currentPanelNav,
|
|
30
30
|
} from '@/client/hooks/workspace/panel-nav';
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from '@/client/hooks/workspace/mobile-
|
|
32
|
+
MOBILE_PANEL_NAV_CHANGED_EVENT,
|
|
33
|
+
MOBILE_PANEL_NAV_SETTING_KEY,
|
|
34
|
+
applyMobilePanelNav,
|
|
35
|
+
currentMobilePanelNav,
|
|
36
|
+
} from '@/client/hooks/workspace/mobile-panel-nav';
|
|
37
37
|
|
|
38
38
|
/** The events dispatched while the current test ran; `detail` may be absent. */
|
|
39
39
|
const dispatched: unknown[] = [];
|
|
@@ -110,31 +110,52 @@ describe('applyPanelNav', () => {
|
|
|
110
110
|
describe('the phone drawer setting', () => {
|
|
111
111
|
afterEach(() => dispatched.length = 0);
|
|
112
112
|
|
|
113
|
-
test('reads its own key, so
|
|
114
|
-
primeKabmoSettings({
|
|
115
|
-
|
|
113
|
+
test('reads each drawer from its own key, so neither can answer for the other', () => {
|
|
114
|
+
primeKabmoSettings({
|
|
115
|
+
leftPanelNav: 'tabs',
|
|
116
|
+
rightPanelNav: 'tabs',
|
|
117
|
+
mobileLeftPanelNav: 'classic',
|
|
118
|
+
mobileRightPanelNav: 'tabs',
|
|
119
|
+
});
|
|
120
|
+
expect(currentMobilePanelNav('left')).toBe('classic');
|
|
121
|
+
expect(currentMobilePanelNav('right')).toBe('tabs');
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
test('a desktop column cannot answer for a drawer', () => {
|
|
125
|
+
primeKabmoSettings({ leftPanelNav: 'tabs', rightPanelNav: 'tabs' });
|
|
126
|
+
expect(currentMobilePanelNav('left')).toBe('classic');
|
|
127
|
+
expect(currentMobilePanelNav('right')).toBe('classic');
|
|
116
128
|
});
|
|
117
129
|
|
|
118
130
|
test('an unset or unreadable value is the shipped default', () => {
|
|
119
|
-
primeKabmoSettings({
|
|
120
|
-
expect(
|
|
131
|
+
primeKabmoSettings({ mobileLeftPanelNav: 'from-a-newer-build', mobileRightPanelNav: null });
|
|
132
|
+
expect(currentMobilePanelNav('left')).toBe('classic');
|
|
133
|
+
expect(currentMobilePanelNav('right')).toBe('classic');
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
test('the keys match the settings fields they persist under', () => {
|
|
137
|
+
expect(MOBILE_PANEL_NAV_SETTING_KEY.left).toBe('mobileLeftPanelNav');
|
|
138
|
+
expect(MOBILE_PANEL_NAV_SETTING_KEY.right).toBe('mobileRightPanelNav');
|
|
121
139
|
});
|
|
122
140
|
|
|
123
|
-
test('
|
|
124
|
-
|
|
141
|
+
test('it announces on its OWN event, carrying the side', () => {
|
|
142
|
+
applyMobilePanelNav('left', 'tabs');
|
|
143
|
+
expect(dispatched).toEqual([{ side: 'left', style: 'tabs' }]);
|
|
144
|
+
expect(MOBILE_PANEL_NAV_CHANGED_EVENT).toBe('omp:mobile-panel-nav-changed');
|
|
145
|
+
expect(MOBILE_PANEL_NAV_CHANGED_EVENT).not.toBe(PANEL_NAV_CHANGED_EVENT);
|
|
125
146
|
});
|
|
126
147
|
|
|
127
|
-
test('
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
148
|
+
test('two changes addressed to different drawers stay separate events', () => {
|
|
149
|
+
applyMobilePanelNav('left', 'tabs');
|
|
150
|
+
applyMobilePanelNav('right', 'classic');
|
|
151
|
+
expect(dispatched).toEqual([
|
|
152
|
+
{ side: 'left', style: 'tabs' },
|
|
153
|
+
{ side: 'right', style: 'classic' },
|
|
154
|
+
]);
|
|
134
155
|
});
|
|
135
156
|
|
|
136
157
|
test('an unreadable value is announced as the default, never as itself', () => {
|
|
137
|
-
|
|
138
|
-
expect(dispatched).toEqual(['classic']);
|
|
158
|
+
applyMobilePanelNav('right', 'whatever');
|
|
159
|
+
expect(dispatched).toEqual([{ side: 'right', style: 'classic' }]);
|
|
139
160
|
});
|
|
140
161
|
});
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Revealing a tab-style column must show a VIEW, and only a reveal counts.
|
|
8
|
+
*
|
|
9
|
+
* The reported defect: with `rightPanelNav: tabs`, a fresh session put the side
|
|
10
|
+
* away and the navbar's toggle brought back the catalog card grid (`Panel
|
|
11
|
+
* kanan`) — while the Stats navbar readout, which names a panel, opened its
|
|
12
|
+
* view. Two clicks that both promise "show me the panel" gave two different
|
|
13
|
+
* answers, and the one the user pressed second looked broken.
|
|
14
|
+
*
|
|
15
|
+
* The cases below pin both halves of the rule: the EDGE (closed → open, on the
|
|
16
|
+
* home page, with a drawable view) and the four things that must NOT count — a
|
|
17
|
+
* column that mounts open, a column already showing a tab, a rail column, and a
|
|
18
|
+
* view this build cannot draw.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
|
|
22
|
+
import { Window } from 'happy-dom';
|
|
23
|
+
import { h, render } from 'preact';
|
|
24
|
+
import { act } from 'preact/test-utils';
|
|
25
|
+
import { SessionStateProvider } from '@/client/components/common/session-state-provider/index';
|
|
26
|
+
import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
|
|
27
|
+
import {
|
|
28
|
+
revealTabId,
|
|
29
|
+
useRevealEdge,
|
|
30
|
+
useRevealPanelTab,
|
|
31
|
+
useRevealSignal,
|
|
32
|
+
type RevealTabInput,
|
|
33
|
+
} from '@/client/hooks/workspace/panel-tabs-reveal';
|
|
34
|
+
import {
|
|
35
|
+
getSessionState,
|
|
36
|
+
getSessionValue,
|
|
37
|
+
hydrateSession,
|
|
38
|
+
resetSessionStateStore,
|
|
39
|
+
} from '@/shared/lib/workspace/session-state/store';
|
|
40
|
+
|
|
41
|
+
const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'Event', 'MouseEvent', 'KeyboardEvent'] as const;
|
|
42
|
+
const nativeGlobals: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
|
|
43
|
+
const nativeFetch = Bun.fetch;
|
|
44
|
+
|
|
45
|
+
let container: HTMLElement;
|
|
46
|
+
|
|
47
|
+
/** The column's props, driven from outside by the hook cases. */
|
|
48
|
+
let column = { open: false, storedView: 'files' as string | null, enabled: true, known: new Set(['files', 'git', 'todo']) };
|
|
49
|
+
/** What the probe last rendered. */
|
|
50
|
+
let seen: { tabs: readonly string[]; active: string | null; home: boolean; chosenHome: boolean } | null = null;
|
|
51
|
+
/** The probe's writer, so a test can close a tab the way the strip does. */
|
|
52
|
+
let actions: { open: (id: string) => void; close: (id: string) => void } | null = null;
|
|
53
|
+
|
|
54
|
+
function Probe() {
|
|
55
|
+
const tabs = usePanelTabs('right', column.known, null);
|
|
56
|
+
useRevealPanelTab({
|
|
57
|
+
enabled: column.enabled,
|
|
58
|
+
revealed: useRevealEdge(column.open),
|
|
59
|
+
storedView: column.storedView,
|
|
60
|
+
home: tabs.home,
|
|
61
|
+
chosenHome: tabs.chosenHome,
|
|
62
|
+
openTab: tabs.open,
|
|
63
|
+
known: column.known,
|
|
64
|
+
});
|
|
65
|
+
seen = { tabs: tabs.tabs, active: tabs.active, home: tabs.home, chosenHome: tabs.chosenHome };
|
|
66
|
+
actions = { open: tabs.open, close: tabs.close };
|
|
67
|
+
return h('div', null, JSON.stringify(seen));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function mount(sessionId: string) {
|
|
71
|
+
container = document.createElement('div');
|
|
72
|
+
document.body.appendChild(container);
|
|
73
|
+
act(() => {
|
|
74
|
+
render(h(SessionStateProvider, { sessionId, children: h(Probe, null) }), container);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Apply a prop change the way the layout would, then let the effects land. */
|
|
79
|
+
async function rerender() {
|
|
80
|
+
await act(async () => {
|
|
81
|
+
render(h(SessionStateProvider, { sessionId: currentSession, children: h(Probe, null) }), container);
|
|
82
|
+
});
|
|
83
|
+
await act(async () => {});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let currentSession = '';
|
|
87
|
+
|
|
88
|
+
beforeAll(() => {
|
|
89
|
+
const win = new Window({ url: 'http://localhost' });
|
|
90
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
91
|
+
for (const key of DOM_GLOBALS) {
|
|
92
|
+
if (!(key in nativeGlobals)) nativeGlobals[key] = target[key];
|
|
93
|
+
target[key] = (win as unknown as Record<string, unknown>)[key];
|
|
94
|
+
}
|
|
95
|
+
// The stub answers what was persisted, so a load landing mid-test cannot
|
|
96
|
+
// adopt an empty blob over the value `hydrateSession` seeded.
|
|
97
|
+
target.fetch = async (input: unknown, init?: { method?: string; body?: unknown }) => {
|
|
98
|
+
const method = init?.method ?? 'GET';
|
|
99
|
+
const sessionId = String(input).split('/sessions/')[1]?.split('/')[0] ?? 'x';
|
|
100
|
+
if (method === 'POST') return new Response(JSON.stringify({ success: true }), { status: 200 });
|
|
101
|
+
return new Response(JSON.stringify({ sessionId, state: { ...(getSessionState(sessionId) ?? {}) } }), { status: 200 });
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
afterAll(() => {
|
|
106
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
107
|
+
for (const key of DOM_GLOBALS) {
|
|
108
|
+
if (nativeGlobals[key] === undefined) delete target[key];
|
|
109
|
+
else target[key] = nativeGlobals[key];
|
|
110
|
+
}
|
|
111
|
+
target.fetch = nativeFetch;
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
beforeEach(() => {
|
|
115
|
+
// The store is a module singleton: a tab left by one case would seed the next.
|
|
116
|
+
resetSessionStateStore();
|
|
117
|
+
column = { open: false, storedView: 'files', enabled: true, known: new Set(['files', 'git', 'todo']) };
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
afterEach(() => {
|
|
121
|
+
if (container) {
|
|
122
|
+
render(null, container);
|
|
123
|
+
container.remove();
|
|
124
|
+
}
|
|
125
|
+
seen = null;
|
|
126
|
+
actions = null;
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
/** The rule, as data: only the reveal edge on a home page with a view the session picked. */
|
|
130
|
+
describe('revealTabId', () => {
|
|
131
|
+
const base: RevealTabInput = {
|
|
132
|
+
revealed: true,
|
|
133
|
+
home: true,
|
|
134
|
+
chosenHome: false,
|
|
135
|
+
storedView: 'files',
|
|
136
|
+
known: new Set(['files', 'git']),
|
|
137
|
+
enabled: true,
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
test('a reveal on the home page opens the stored view', () => {
|
|
141
|
+
expect(revealTabId(base)).toBe('files');
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
test('a home page the user closed a tab down to is not reopened', () => {
|
|
145
|
+
// The reported defect: closing the right panel's tab and then toggling the
|
|
146
|
+
// panel brought that tab back. A close is an answer; the reveal must not
|
|
147
|
+
// read the resulting catalog as "nothing was ever open".
|
|
148
|
+
expect(revealTabId({ ...base, chosenHome: true })).toBeNull();
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
test('a column that was already open is not a reveal', () => {
|
|
152
|
+
// The `+` control puts the column on its catalog ON PURPOSE; a rule keyed on
|
|
153
|
+
// "open and on the home page" would undo that on the next render.
|
|
154
|
+
expect(revealTabId({ ...base, revealed: false })).toBeNull();
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
test('a column already showing a tab needs nothing opened', () => {
|
|
158
|
+
expect(revealTabId({ ...base, home: false })).toBeNull();
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
test('a rail column has no home page to leave', () => {
|
|
162
|
+
expect(revealTabId({ ...base, enabled: false })).toBeNull();
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
test('a view this build cannot draw is not opened', () => {
|
|
166
|
+
// Opening it would write an id `visiblePanelTabs` filters back out — a write
|
|
167
|
+
// loop disguised as a sync.
|
|
168
|
+
expect(revealTabId({ ...base, storedView: 'ghost' })).toBeNull();
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
test('a session that never picked a view keeps its catalog', () => {
|
|
172
|
+
// The reported defect: a new chat's right drawer showed a `Files` tab on
|
|
173
|
+
// both layouts. The resolved fallback is not a pick.
|
|
174
|
+
expect(revealTabId({ ...base, storedView: null })).toBeNull();
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* A phone drawer unmounts on close, so its mount is also what a screen change for
|
|
180
|
+
* any other reason produces. The counter the header bumps is what tells it apart.
|
|
181
|
+
*/
|
|
182
|
+
describe('useRevealSignal', () => {
|
|
183
|
+
test('the first value is not a reveal, a bump is', async () => {
|
|
184
|
+
const seen: boolean[] = [];
|
|
185
|
+
function ProbeSignal({ signal }: { signal: number }) {
|
|
186
|
+
seen.push(useRevealSignal(signal));
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
const host = document.createElement('div');
|
|
190
|
+
document.body.appendChild(host);
|
|
191
|
+
await act(async () => {
|
|
192
|
+
render(h(ProbeSignal, { signal: 0 }), host);
|
|
193
|
+
});
|
|
194
|
+
await act(async () => {
|
|
195
|
+
render(h(ProbeSignal, { signal: 1 }), host);
|
|
196
|
+
});
|
|
197
|
+
// A CLEARED counter is the layout saying "nobody asked for a reveal here" —
|
|
198
|
+
// the named open that clears it (the Stats readout) is what the drawer opens
|
|
199
|
+
// on, so the drop must not read as a gesture of its own.
|
|
200
|
+
await act(async () => {
|
|
201
|
+
render(h(ProbeSignal, { signal: 0 }), host);
|
|
202
|
+
});
|
|
203
|
+
render(null, host);
|
|
204
|
+
host.remove();
|
|
205
|
+
expect(seen).toEqual([false, true, false]);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
describe('the column, mounted and toggled', () => {
|
|
210
|
+
test('a column that MOUNTS open stays on its home page', async () => {
|
|
211
|
+
// A restored selection is not a request (`useRightOpenRequest` owns that),
|
|
212
|
+
// and a fresh tab-style install must not open Files by itself.
|
|
213
|
+
currentSession = 'reveal-mount-open';
|
|
214
|
+
hydrateSession(currentSession, {});
|
|
215
|
+
column.open = true;
|
|
216
|
+
mount(currentSession);
|
|
217
|
+
expect(seen).toEqual({ tabs: [], active: null, home: true, chosenHome: false });
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
test('a session that never picked a view stays on its catalog', async () => {
|
|
221
|
+
// A fresh chat: the empty strip is its home page. Revealing the panel must
|
|
222
|
+
// not turn the `files` fallback into a tab — the reported defect on both
|
|
223
|
+
// layouts.
|
|
224
|
+
currentSession = 'reveal-edge';
|
|
225
|
+
hydrateSession(currentSession, {});
|
|
226
|
+
column.storedView = null;
|
|
227
|
+
mount(currentSession);
|
|
228
|
+
expect(seen).toEqual({ tabs: [], active: null, home: true, chosenHome: false });
|
|
229
|
+
|
|
230
|
+
column.open = true;
|
|
231
|
+
await rerender();
|
|
232
|
+
|
|
233
|
+
expect(seen).toEqual({ tabs: [], active: null, home: true, chosenHome: false });
|
|
234
|
+
expect(getSessionValue(currentSession, 'layout.rightPanelTabs')).toBeUndefined();
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
test('a tab closed by the user stays closed across a toggle', async () => {
|
|
238
|
+
// The reported defect: closing the right panel's last tab and toggling the
|
|
239
|
+
// panel back brought that tab out of the catalog, because the empty strip
|
|
240
|
+
// was read as "this session never opened one".
|
|
241
|
+
currentSession = 'reveal-closed';
|
|
242
|
+
hydrateSession(currentSession, {});
|
|
243
|
+
mount(currentSession);
|
|
244
|
+
|
|
245
|
+
column.open = true;
|
|
246
|
+
await rerender();
|
|
247
|
+
expect(seen?.tabs).toEqual(['files']);
|
|
248
|
+
|
|
249
|
+
act(() => actions!.close('files'));
|
|
250
|
+
expect(seen).toEqual({ tabs: [], active: null, home: true, chosenHome: true });
|
|
251
|
+
|
|
252
|
+
column.open = false;
|
|
253
|
+
await rerender();
|
|
254
|
+
column.open = true;
|
|
255
|
+
await rerender();
|
|
256
|
+
|
|
257
|
+
expect(seen).toEqual({ tabs: [], active: null, home: true, chosenHome: true });
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
test('a column that already had a tab is only revealed, never re-opened', async () => {
|
|
261
|
+
currentSession = 'reveal-existing';
|
|
262
|
+
hydrateSession(currentSession, { 'layout.rightPanelTabs': { tabs: ['git'], active: 'git', home: false } });
|
|
263
|
+
column.storedView = 'git';
|
|
264
|
+
mount(currentSession);
|
|
265
|
+
expect(seen?.tabs).toEqual(['git']);
|
|
266
|
+
|
|
267
|
+
column.open = true;
|
|
268
|
+
await rerender();
|
|
269
|
+
|
|
270
|
+
// Nothing appended, nothing selected differently: revealing a column that
|
|
271
|
+
// already shows a view is the whole of the click.
|
|
272
|
+
expect(seen).toEqual({ tabs: ['git'], active: 'git', home: false, chosenHome: false });
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
test('a rail column ignores the toggle entirely', async () => {
|
|
276
|
+
currentSession = 'reveal-rail';
|
|
277
|
+
hydrateSession(currentSession, {});
|
|
278
|
+
column.enabled = false;
|
|
279
|
+
mount(currentSession);
|
|
280
|
+
|
|
281
|
+
column.open = true;
|
|
282
|
+
await rerender();
|
|
283
|
+
|
|
284
|
+
expect(seen).toEqual({ tabs: [], active: null, home: true, chosenHome: false });
|
|
285
|
+
});
|
|
286
|
+
});
|