@kabmo-labs/kabmo 0.45.1 → 0.46.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 +412 -412
- package/dist/client/static/js/{CsvGrid-eqmctwyq.js → CsvGrid-br4j001k.js} +2 -2
- package/dist/client/static/js/{DocxView-rjrshmzf.js → DocxView-kmtkbmmw.js} +3 -3
- package/dist/client/static/js/{DrawioView-za569srw.js → DrawioView-3df0g3jr.js} +2 -2
- package/dist/client/static/js/ImageView-2r8p5z3y.js +1 -0
- package/dist/client/static/js/LayoutWrapper-rq3d2a4e.js +2 -0
- package/dist/client/static/js/Modal-tmxhxd6q.js +59 -0
- package/dist/client/static/js/{PdfView-2m78d4jz.js → PdfView-p5z7c7eg.js} +1 -1
- package/dist/client/static/js/{SessionsView-54awmse0.js → SessionsView-t06h6zfx.js} +1 -1
- package/dist/client/static/js/{SheetView-xfvjdh24.js → SheetView-agw459v2.js} +19 -19
- package/dist/client/static/js/{SvgPreview-yfjrfb40.js → SvgPreview-b9rfy1h6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-tmsa3b36.js → abnfDiagram-O67JEVCF-wbnhzcnj.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-t2sgevea.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-v2nzp54a.js} +5 -5
- package/dist/client/static/js/c-acmn1zc9.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-mkw3jvf6.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fw9bs1za.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-eqjrpps4.js → cose-bilkent-JH36ORCC-c4tnh4mg.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-mjf6njey.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-t52jdfr1.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-448hyxaz.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
- package/dist/client/static/js/{diagram-3UASUU5V-350k213a.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-9davjeyb.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-034wwghk.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-kzzd4ecm.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-rsky4e3s.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
- package/dist/client/static/js/{dockerfile-68b0e6b6.js → dockerfile-00hqsk9c.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-7bm1e394.js → ebnfDiagram-ZINNZB2B-bsk7dvm4.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-dsq91er5.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-v52qmcrv.js → erDiagram-OPXOYQCR-p7p13mbh.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-7b4w6phx.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1r1fn18p.js → ganttDiagram-FUAMR5RP-bwgnttyk.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-ca0gj5am.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-064vdkrs.js +2 -0
- package/dist/client/static/js/{index-x0kgnkv3.js → index-16sd19f0.js} +2 -2
- package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
- package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
- package/dist/client/static/js/{index-127se1a3.js → index-29npynva.js} +19 -19
- 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-3bf7r7z4.js +12 -0
- package/dist/client/static/js/index-3qnjdjg2.js +1 -0
- package/dist/client/static/js/index-4bqssvt6.js +2 -0
- package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
- package/dist/client/static/js/{index-xgv501v0.js → index-5gf52a6d.js} +2 -2
- package/dist/client/static/js/{index-84vmdg3k.js → index-5h8y54t6.js} +1 -1
- package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
- package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
- package/dist/client/static/js/{index-528x5x8c.js → index-7055hdx1.js} +1 -1
- package/dist/client/static/js/index-8pksqzwq.js +1 -0
- package/dist/client/static/js/index-95kese1h.js +1 -0
- package/dist/client/static/js/{index-tkfxnnr5.js → index-9d3n04vb.js} +2 -2
- package/dist/client/static/js/{index-ga6492qc.js → index-aagt3382.js} +1 -1
- package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
- package/dist/client/static/js/{index-q36gq3yz.js → index-amys498v.js} +198 -198
- package/dist/client/static/js/{index-9zwtpazh.js → index-bafe7hmd.js} +2 -2
- package/dist/client/static/js/{index-mnh8nptt.js → index-bjv5ga2e.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-2tmnqqzt.js → index-dr5hca5b.js} +3 -3
- package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
- package/dist/client/static/js/index-eqhjs1yv.js +4 -0
- package/dist/client/static/js/{index-cza9mnxx.js → index-ex5dtdx2.js} +6 -6
- package/dist/client/static/js/{index-8ps5gdwz.js → index-f7te27n5.js} +5 -5
- package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
- package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
- package/dist/client/static/js/index-gq5w5w8x.js +2 -0
- 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-bcpyxt97.js → index-j718pxb3.js} +2 -2
- package/dist/client/static/js/{index-0gmw2bt3.js → index-jkay7aw7.js} +2 -2
- package/dist/client/static/js/{index-ex3w7t7s.js → index-k5zfzgez.js} +2 -2
- package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
- package/dist/client/static/js/{index-2zntn964.js → index-ncpwteyt.js} +2 -2
- package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
- package/dist/client/static/js/{index-j50y0z44.js → index-pwe6chtp.js} +1 -1
- 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-snjtkfkq.js → index-qn200x1b.js} +6 -6
- package/dist/client/static/js/index-red856x6.js +1 -0
- package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
- package/dist/client/static/js/{index-m9s7r4z9.js → index-ta6gpcpw.js} +3 -3
- package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
- package/dist/client/static/js/{index-2gbfke1a.js → index-twsbv1yn.js} +1 -1
- package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
- package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
- package/dist/client/static/js/{index-frqq7yen.js → index-x1fqhhpp.js} +64 -64
- package/dist/client/static/js/{index-mhnwyra0.js → index-y2z8nsvw.js} +2 -2
- package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
- package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
- package/dist/client/static/js/{index-zwx3vbf0.js → index-zedt16w7.js} +1 -1
- package/dist/client/static/js/{index-c7vbr57m.js → index-zq0qxb17.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-7q58qdf1.js} +2 -2
- package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-7sjp09d4.js → ishikawaDiagram-OU5B5YK6-9jmeszag.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-0d7xe845.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-7p83rwdn.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-hwhzw0wv.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jyhtpt1z.js → mindmap-definition-NLK3R4M7-hy0rtr7t.js} +8 -8
- package/dist/client/static/js/one-dark-pro-4b8er03c.js +1 -0
- package/dist/client/static/js/one-light-e6r3vsz4.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-kd8t53tx.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-h3x03f80.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-y2b1ncbg.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-x188rcxf.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-r80w7tdp.js → requirementDiagram-PLB6GJNP-g5e9fk17.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-1v8xbxn9.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-g9qdy74b.js → sankeyDiagram-IPEJSGJF-y9ht91gf.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-pp8s63rt.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-m5pks027.js → sizeCapture-INFHLROL-k6dhfxex.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-y3akpsm4.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-89081dr3.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-3q2a15wc.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-j9pde7sa.js → timeline-definition-EJHVYXUP-tz6r8g3q.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-yq2y1b09.js} +44 -44
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-cp4kj6kw.js → vennDiagram-UO4OBE2U-qdmjf6x3.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-3n2sm7rj.js} +3 -3
- package/dist/client/static/js/xml-3117mxd9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-zkkqfyex.js → xychartDiagram-PMCCYNJV-d7n2av2t.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 +15 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +16 -0
- 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 +27 -10
- 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 +96 -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/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/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 +283 -0
- package/src/client/hooks/workspace/panel-tabs-reveal.ts +162 -0
- package/src/client/hooks/workspace/panel-tabs.ts +19 -2
- 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
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useState } from 'preact/hooks';
|
|
2
2
|
import { MobileSessionHeader } from '@/client/components/mobile/mobile-session-sidebar/Header';
|
|
3
|
-
import { ClassicDrawer } from '@/client/components/mobile/mobile-session-sidebar/ClassicDrawer';
|
|
4
|
-
import { ModernSidebarView } from '@/client/components/layout/session-sidebar/modern';
|
|
5
3
|
import { MobileSessionFooter } from '@/client/components/mobile/mobile-session-sidebar/Footer';
|
|
6
4
|
import { useMobileUpdateFlow } from '@/client/hooks/ui/updates/mobile-flow';
|
|
7
5
|
import { useToasts } from '@/client/hooks/ui/toasts';
|
|
@@ -11,14 +9,17 @@ import { useSidebarStyle } from '@/client/hooks/workspace/sidebar-style';
|
|
|
11
9
|
import { openKeyBindingHelp } from '@/client/lib/commands/overlays';
|
|
12
10
|
import { useScheduledTaskCount } from '@/client/hooks/workspace/scheduled-tasks';
|
|
13
11
|
import { phoneLeftStripVisible } from '@/shared/lib/workspace/mobile-dock';
|
|
14
|
-
import {
|
|
12
|
+
import { SESSIONS_VIEW_ID } from '@/shared/lib/workspace/left-dock';
|
|
13
|
+
import { MobileDockStrip } from '@/client/components/mobile/mobile-session-sidebar/Dock';
|
|
14
|
+
import { DrawerBody } from '@/client/components/mobile/mobile-session-sidebar/Body';
|
|
15
|
+
import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
|
|
16
|
+
import { useMobileDrawerTabs } from '@/client/components/mobile/mobile-session-sidebar/use-drawer-tabs';
|
|
17
|
+
import { drawerStripProps } from '@/client/components/mobile/drawer-strip';
|
|
15
18
|
import { MobileDrawerDialogs } from '@/client/components/mobile/mobile-session-sidebar/Dialogs';
|
|
16
19
|
import { useDrawerState } from '@/client/components/mobile/mobile-session-sidebar/use-drawer';
|
|
17
20
|
import { archiveOutcomeMessage } from '@/client/hooks/workspace/batch-archive';
|
|
18
|
-
import { BatchActionBar } from '@/client/components/common/batch-selection/BatchActionBar';
|
|
19
21
|
import { VisibilityMenu } from '@/client/components/layout/VisibilityMenu';
|
|
20
22
|
import { usePanelVisibilityMenu } from '@/client/hooks/workspace/panel-visibility-menu';
|
|
21
|
-
import type { SessionSidebarVariantProps } from '@/client/components/layout/session-sidebar/variant-props';
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
25
|
* The phone's session drawer — the dispatcher, exactly like the desktop
|
|
@@ -56,6 +57,16 @@ interface MobileSessionSidebarProps {
|
|
|
56
57
|
refreshKey?: number;
|
|
57
58
|
onRefresh?: () => void;
|
|
58
59
|
onOpenFile?: (file: unknown) => void;
|
|
60
|
+
/**
|
|
61
|
+
* A header control asked for this drawer.
|
|
62
|
+
*
|
|
63
|
+
* The session screen stays MOUNTED while the chat is on screen (its status-ack
|
|
64
|
+
* effect must run), so the drawer has no mount edge to read — this counter,
|
|
65
|
+
* bumped only by the header's own control, is what says "a reveal gesture
|
|
66
|
+
* landed". Without it the reopen drew the catalog (`Panel kiri`) over a chat
|
|
67
|
+
* the user had just asked to see the panel beside.
|
|
68
|
+
*/
|
|
69
|
+
revealSignal?: number;
|
|
59
70
|
}
|
|
60
71
|
|
|
61
72
|
export function MobileSessionSidebar({
|
|
@@ -71,6 +82,7 @@ export function MobileSessionSidebar({
|
|
|
71
82
|
refreshKey = 0,
|
|
72
83
|
onRefresh,
|
|
73
84
|
onOpenFile,
|
|
85
|
+
revealSignal = 0,
|
|
74
86
|
}: MobileSessionSidebarProps) {
|
|
75
87
|
const { controller, batch, expandedFolders, toggleFolder, optionsRef, dock, dockBody } = useDrawerState({
|
|
76
88
|
appSettings,
|
|
@@ -81,27 +93,11 @@ export function MobileSessionSidebar({
|
|
|
81
93
|
onRefresh,
|
|
82
94
|
onOpenFile,
|
|
83
95
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
searchQuery,
|
|
90
|
-
setSearchQuery,
|
|
91
|
-
showArchived,
|
|
92
|
-
setShowArchived,
|
|
93
|
-
optionsOpen,
|
|
94
|
-
setOptionsOpen,
|
|
95
|
-
sortOption,
|
|
96
|
-
handleSortChange,
|
|
97
|
-
harnessFilter,
|
|
98
|
-
setHarnessFilter,
|
|
99
|
-
harnessOptions,
|
|
100
|
-
processedFolders,
|
|
101
|
-
sessionStatus,
|
|
102
|
-
handleSelectSession,
|
|
103
|
-
} = controller;
|
|
104
|
-
const { selection, deleteRun, archiveRun, binding: batchBinding, scopeFolder, available, selected } = batch;
|
|
96
|
+
// Only what the CHROME needs: the list's own fields belong to `DrawerBody`,
|
|
97
|
+
// which reads the controller itself. Re-destructuring them here is how the
|
|
98
|
+
// two would drift about which of them the drawer owns.
|
|
99
|
+
const { showArchived, setShowArchived } = controller;
|
|
100
|
+
const { selection, deleteRun, archiveRun, selected, scopeFolder } = batch;
|
|
105
101
|
const sidebarStyle = useSidebarStyle();
|
|
106
102
|
|
|
107
103
|
// The phone's right-click: a long press on the drawer's title or its chip
|
|
@@ -124,6 +120,10 @@ export function MobileSessionSidebar({
|
|
|
124
120
|
pushToast,
|
|
125
121
|
});
|
|
126
122
|
|
|
123
|
+
// The strip's state machine, including the reveal a header press asks for and
|
|
124
|
+
// the flag that keeps a close from being read as a request.
|
|
125
|
+
const { tabs: tabHandle } = useMobileDrawerTabs(dock, revealSignal);
|
|
126
|
+
|
|
127
127
|
const handleNewSessionAndClose = () => {
|
|
128
128
|
onNewSession();
|
|
129
129
|
onClose();
|
|
@@ -165,57 +165,63 @@ export function MobileSessionSidebar({
|
|
|
165
165
|
|
|
166
166
|
// The same contract the desktop dispatcher hands its two styles, so the phone
|
|
167
167
|
// and the desktop cannot describe a folder, a row or an action differently.
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
batch: batchBinding,
|
|
201
|
-
onSelectWorkspaces: batch.toggleWorkspaceSelection,
|
|
202
|
-
onStartSessionSelection: (folderId) => selection.begin('session', folderId),
|
|
203
|
-
};
|
|
168
|
+
/**
|
|
169
|
+
* The view stack, built once and handed to whichever chrome is drawing.
|
|
170
|
+
*
|
|
171
|
+
* A COMPONENT rather than inline JSX (`mobile-session-sidebar/Body`): the same
|
|
172
|
+
* node is the screen under `classic` and the body of `PanelTabsColumn` under
|
|
173
|
+
* `tabs`, and the session list inside it must stay MOUNTED while another view
|
|
174
|
+
* is on screen — its folder expansion, scroll position and batch selection
|
|
175
|
+
* live in it.
|
|
176
|
+
*/
|
|
177
|
+
const drawerBody = (
|
|
178
|
+
<DrawerBody
|
|
179
|
+
sidebarStyle={sidebarStyle}
|
|
180
|
+
controller={controller}
|
|
181
|
+
batch={batch}
|
|
182
|
+
dock={dock}
|
|
183
|
+
dockBody={dockBody}
|
|
184
|
+
expandedFolders={expandedFolders}
|
|
185
|
+
optionsRef={optionsRef}
|
|
186
|
+
activeSessionId={activeSessionId}
|
|
187
|
+
scheduledCount={scheduledCount}
|
|
188
|
+
onToggleFolder={toggleFolder}
|
|
189
|
+
onNewSession={handleNewSessionAndClose}
|
|
190
|
+
onNewWorkspace={() => setNewWorkspaceOpen(true)}
|
|
191
|
+
onScheduler={() => setSchedulerOpen(true)}
|
|
192
|
+
onToggleArchived={handleToggleArchived}
|
|
193
|
+
onNewSessionForFolder={handleNewSessionForFolderAndClose}
|
|
194
|
+
{...(closeAfterWorktree ? { onNewWorktreeSession: closeAfterWorktree } : {})}
|
|
195
|
+
onToast={pushToast}
|
|
196
|
+
onArchiveSelected={handleArchiveSelected}
|
|
197
|
+
onCancelWait={cancelWait}
|
|
198
|
+
/>
|
|
199
|
+
);
|
|
204
200
|
|
|
205
201
|
return (
|
|
206
202
|
<div className="flex flex-col h-full w-full bg-canvas text-ink relative select-none">
|
|
207
203
|
|
|
204
|
+
{/* The title bar is drawn in BOTH chromes, because the LEFT column's is
|
|
205
|
+
not the strip: it carries the wordmark, the server chip and the close
|
|
206
|
+
control, and the desktop column draws exactly the same pair — a title
|
|
207
|
+
row across the column, then the strip under it (`LeftColumn`:
|
|
208
|
+
40 + 38 + 40). Removing it under `tabs` left the drawer with no way
|
|
209
|
+
back to the chat except the Android back gesture, and no wordmark at
|
|
210
|
+
all; the RIGHT drawer is the one that has no header, because there the
|
|
211
|
+
strip is the whole chrome. */}
|
|
208
212
|
<MobileSessionHeader
|
|
209
213
|
onClose={onClose}
|
|
210
214
|
viewLabel={dock.showingSessions ? 'Sessions' : dock.activePanel?.label ?? 'Panel'}
|
|
211
215
|
menuProps={panelMenu.surfaceProps}
|
|
212
216
|
/>
|
|
213
217
|
|
|
214
|
-
{/*
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
{/* Under `tabs` the strip is the drawer's whole chrome (`PanelTabsColumn`
|
|
219
|
+
below), so the classic chip row is not drawn on top of it. Under
|
|
220
|
+
`classic` the strip is the phone's RAIL and follows the switch: with the
|
|
221
|
+
rail on it always draws, exactly like the desktop column's rail (which
|
|
222
|
+
always holds Sessions). Requiring a second destination made the Settings
|
|
223
|
+
switch a no-op on a phone with nothing placed. */}
|
|
224
|
+
{!dock.tabsMode && phoneLeftStripVisible(dock.enabled) ? (
|
|
219
225
|
<MobileDockStrip
|
|
220
226
|
panels={dock.catalog}
|
|
221
227
|
activeId={dock.activeView}
|
|
@@ -224,6 +230,42 @@ export function MobileSessionSidebar({
|
|
|
224
230
|
/>
|
|
225
231
|
) : null}
|
|
226
232
|
|
|
233
|
+
{/* The desktop column's shape, on a phone: the strip and its home page are
|
|
234
|
+
the drawer's chrome, and the view stack is the body under them. The
|
|
235
|
+
session list is the PINNED first chip (`usePanelTabs` is given
|
|
236
|
+
`SESSIONS_VIEW_ID`), so closing every other tab lands back on the
|
|
237
|
+
catalog with Sessions still one tap away — the same dead-end rule the
|
|
238
|
+
desktop column follows. */}
|
|
239
|
+
{/* No trailing action. A refresh here is either redundant or dead:
|
|
240
|
+
the four views that read `refreshKey` (Files, GIT, Context, WIKI) each
|
|
241
|
+
draw their own refresh control in their own toolbar — where it sits
|
|
242
|
+
beside the repo picker it re-reads — and the other five (Search,
|
|
243
|
+
Terminal, Usage, Todos, Plan) ignore `refreshKey` entirely, so the
|
|
244
|
+
button would do nothing at all. The session list has its own too
|
|
245
|
+
(`MobileSessionToolbar`'s "Refresh sessions"). Measured on the running
|
|
246
|
+
drawer with Files open: one click issued zero requests.
|
|
247
|
+
The desktop column keeps its strip refresh because the desktop's
|
|
248
|
+
session list does NOT draw one; the phone's does. */}
|
|
249
|
+
{dock.tabsMode && tabHandle ? (
|
|
250
|
+
<div className="flex-1 min-h-0 flex flex-col">
|
|
251
|
+
<PanelTabsColumn
|
|
252
|
+
catalog={dock.catalog}
|
|
253
|
+
tabs={tabHandle}
|
|
254
|
+
pinned={SESSIONS_VIEW_ID}
|
|
255
|
+
homeTitle="Panel kiri"
|
|
256
|
+
// The strip is this drawer's title bar, so it carries the WINDOW
|
|
257
|
+
// contract the header used to: the drag region the shells hit-test,
|
|
258
|
+
// the notch as height AND padding, and the shell's traffic-light
|
|
259
|
+
// inset. The right drawer states the same thing through the same
|
|
260
|
+
// helper; without it here a narrowed shell window lost its drag
|
|
261
|
+
// handle and a phone put the chips under the status bar.
|
|
262
|
+
stripProps={drawerStripProps(panelMenu.surfaceProps)}
|
|
263
|
+
>
|
|
264
|
+
<div className="h-full w-full">{drawerBody}</div>
|
|
265
|
+
</PanelTabsColumn>
|
|
266
|
+
</div>
|
|
267
|
+
) : null}
|
|
268
|
+
|
|
227
269
|
{panelMenu.anchor ? (
|
|
228
270
|
<VisibilityMenu
|
|
229
271
|
anchor={panelMenu.anchor}
|
|
@@ -234,76 +276,9 @@ export function MobileSessionSidebar({
|
|
|
234
276
|
/>
|
|
235
277
|
) : null}
|
|
236
278
|
|
|
237
|
-
{/* The
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
another view, and a re-mount would also re-seed every expansion from
|
|
241
|
-
the server's flags. */}
|
|
242
|
-
<div className={dock.showingSessions ? 'contents' : 'hidden'}>
|
|
243
|
-
{sidebarStyle === 'modern' ? (
|
|
244
|
-
<ModernSidebarView {...modernProps} touch />
|
|
245
|
-
) : (
|
|
246
|
-
<ClassicDrawer
|
|
247
|
-
folders={processedFolders}
|
|
248
|
-
initializing={initializing}
|
|
249
|
-
failed={failed}
|
|
250
|
-
activeSessionId={activeSessionId}
|
|
251
|
-
expandedFolders={expandedFolders}
|
|
252
|
-
sessionStatus={sessionStatus}
|
|
253
|
-
searchQuery={searchQuery}
|
|
254
|
-
sortOption={sortOption}
|
|
255
|
-
optionsOpen={optionsOpen}
|
|
256
|
-
showArchived={showArchived}
|
|
257
|
-
harnessFilter={harnessFilter}
|
|
258
|
-
onHarnessFilterChange={setHarnessFilter}
|
|
259
|
-
harnessOptions={harnessOptions}
|
|
260
|
-
optionsRef={optionsRef}
|
|
261
|
-
scheduledCount={scheduledCount}
|
|
262
|
-
refreshing={isRefreshing}
|
|
263
|
-
selecting={selection.mode !== null}
|
|
264
|
-
batch={batchBinding}
|
|
265
|
-
onNewSession={handleNewSessionAndClose}
|
|
266
|
-
onNewWorkspace={() => setNewWorkspaceOpen(true)}
|
|
267
|
-
onScheduler={() => setSchedulerOpen(true)}
|
|
268
|
-
onRefresh={refreshNow}
|
|
269
|
-
onToggleOptions={() => setOptionsOpen(!optionsOpen)}
|
|
270
|
-
onSortChange={handleSortChange}
|
|
271
|
-
onResetSort={() => handleSortChange('A-Z')}
|
|
272
|
-
onToggleArchived={handleToggleArchived}
|
|
273
|
-
onHideArchived={() => setShowArchived(false)}
|
|
274
|
-
onSearchChange={setSearchQuery}
|
|
275
|
-
onClearSearch={() => setSearchQuery('')}
|
|
276
|
-
onSelectWorkspaces={batch.toggleWorkspaceSelection}
|
|
277
|
-
onSelectSession={handleSelectSession}
|
|
278
|
-
onNewSessionForFolder={handleNewSessionForFolderAndClose}
|
|
279
|
-
onNewWorktreeSession={closeAfterWorktree}
|
|
280
|
-
onToggleFolder={toggleFolder}
|
|
281
|
-
onToast={pushToast}
|
|
282
|
-
onStartSessionSelection={(folderId) => selection.begin('session', folderId)}
|
|
283
|
-
onCancelWait={cancelWait}
|
|
284
|
-
/>
|
|
285
|
-
)}
|
|
286
|
-
|
|
287
|
-
{selection.mode && (
|
|
288
|
-
<BatchActionBar
|
|
289
|
-
drawer
|
|
290
|
-
mode={selection.mode}
|
|
291
|
-
count={selected.length}
|
|
292
|
-
total={available.length}
|
|
293
|
-
busy={deleteRun.isDeleting}
|
|
294
|
-
archiving={archiveRun.isArchiving}
|
|
295
|
-
scopeLabel={scopeFolder?.name}
|
|
296
|
-
onSelectAll={() => selection.selectAllOf(available)}
|
|
297
|
-
onUnselectAll={() => selection.unselectAllOf(available)}
|
|
298
|
-
onDelete={() => deleteRun.request(selected)}
|
|
299
|
-
onArchive={handleArchiveSelected}
|
|
300
|
-
onCancel={selection.end}
|
|
301
|
-
/>
|
|
302
|
-
)}
|
|
303
|
-
</div>
|
|
304
|
-
{dock.showingSessions ? null : (
|
|
305
|
-
<MobileDockBody panelKey={dock.activeView} panel={dock.activePanel} body={dockBody} />
|
|
306
|
-
)}
|
|
279
|
+
{/* The `classic` chrome: the chip row above is the rail, so the stack is
|
|
280
|
+
the whole remaining screen. */}
|
|
281
|
+
{dock.tabsMode ? null : <div className="contents">{drawerBody}</div>}
|
|
307
282
|
|
|
308
283
|
<MobileSessionFooter
|
|
309
284
|
onSettings={() => window.dispatchEvent(new CustomEvent('omp:open-settings', { detail: {} }))}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The chrome a PHONE drawer's tab strip carries, and the control that closes it.
|
|
8
|
+
*
|
|
9
|
+
* One module for both drawers: under the tab style the strip IS the drawer's
|
|
10
|
+
* title bar, so it inherits the window contract the removed header carried
|
|
11
|
+
* (`data-drag-region`, the shell's traffic-light inset, the safe-area notch) and
|
|
12
|
+
* it owns the close control. A second copy in the left drawer is how the two
|
|
13
|
+
* would drift about which of those three the strip reserves.
|
|
14
|
+
*
|
|
15
|
+
* The row's height, inset and control box are NOT stated here — they come from
|
|
16
|
+
* `control-plate.ts` (`CONTROL_ROW_HEIGHT` / `CONTROL_ROW_INSET`), which is what
|
|
17
|
+
* makes a phone strip line up with the phone header above the chat. Measured
|
|
18
|
+
* before that was stated once: strip 40px with 28px controls against a 56px
|
|
19
|
+
* header with 36px ones.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import type { CSSProperties } from 'preact/compat';
|
|
23
|
+
import { PanelLeft, PanelRight } from 'lucide-preact';
|
|
24
|
+
import { dragRegionProps, titlebarInsetLeft } from '@/client/lib/desktop/titlebar';
|
|
25
|
+
import type { VisibilityMenuSurfaceProps } from '@/client/hooks/ui/visibility-menu-trigger';
|
|
26
|
+
import { titlebarPaddingLeft, titlebarPaddingRight } from '@/shared/lib/ui/titlebar';
|
|
27
|
+
import { CONTROL_BOX, CONTROL_GLYPH_PX } from '@/client/lib/ui/control-plate';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The strip props a phone drawer passes to `PanelTabsColumn`.
|
|
31
|
+
*
|
|
32
|
+
* `layout: 'mobile'` is stated rather than inferred from `dragRegion`: this
|
|
33
|
+
* drawer is the phone layout's own screen, and its row must match the phone
|
|
34
|
+
* header above the chat. A desktop shell window narrowed past the layout
|
|
35
|
+
* breakpoint can be a drag region while still being the desktop layout.
|
|
36
|
+
*/
|
|
37
|
+
export function drawerStripProps(menuProps: VisibilityMenuSurfaceProps): {
|
|
38
|
+
dragRegion: boolean;
|
|
39
|
+
layout: 'mobile';
|
|
40
|
+
rootProps: Record<string, unknown>;
|
|
41
|
+
style: CSSProperties;
|
|
42
|
+
} {
|
|
43
|
+
return {
|
|
44
|
+
dragRegion: true,
|
|
45
|
+
layout: 'mobile',
|
|
46
|
+
// The ATTRIBUTE the shells hit-test, plus the drawer's long-press menu
|
|
47
|
+
// handlers: this row is what the header used to be, so it inherits both
|
|
48
|
+
// jobs. `dragRegionProps` is empty in a browser tab, where nothing may be
|
|
49
|
+
// dragged.
|
|
50
|
+
rootProps: { ...dragRegionProps(), ...menuProps } as unknown as Record<string, unknown>,
|
|
51
|
+
// The row's height and the notch live in the strip's own classes
|
|
52
|
+
// (`TabStrip`): a `padding-top: env()` written here is dropped by
|
|
53
|
+
// happy-dom, and the two values belong together with the height they
|
|
54
|
+
// modify. Only the HORIZONTAL insets are this caller's business.
|
|
55
|
+
style: {
|
|
56
|
+
paddingLeft: titlebarInsetLeft(titlebarPaddingLeft('0.75rem', true)),
|
|
57
|
+
paddingRight: titlebarPaddingRight('0.75rem', true),
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The drawer's close control, for the strip's trailing edge.
|
|
64
|
+
*
|
|
65
|
+
* The plain panel mark, NOT `PanelRightClose` / `PanelLeftClose`: those draw a
|
|
66
|
+
* chevron inside the panel (`m8 9 3 3-3 3`), which reads as "collapse this
|
|
67
|
+
* column" — a second meaning on a strip whose chips each carry their own `X`.
|
|
68
|
+
*/
|
|
69
|
+
export function DrawerCloseAction({ side, onClose }: { side: 'left' | 'right'; onClose: () => void }) {
|
|
70
|
+
const Icon = side === 'left' ? PanelLeft : PanelRight;
|
|
71
|
+
return (
|
|
72
|
+
<button
|
|
73
|
+
type="button"
|
|
74
|
+
onClick={onClose}
|
|
75
|
+
/* The SAME box and glyph as every other control in the phone header row:
|
|
76
|
+
a 28px box here sits 4px off the header's 36px one, which is the
|
|
77
|
+
misalignment a reader sees as a strip that does not line up. */
|
|
78
|
+
className={`${CONTROL_BOX.mobile} flex-none cursor-pointer rounded-lg text-ink/60 transition-colors hover:bg-ink/5 hover:text-ink titlebar-no-drag`}
|
|
79
|
+
title={side === 'left' ? 'Tutup panel kiri' : 'Tutup panel kanan'}
|
|
80
|
+
aria-label={side === 'left' ? 'Close left sidebar' : 'Close right sidebar'}
|
|
81
|
+
>
|
|
82
|
+
<Icon size={CONTROL_GLYPH_PX.mobile} strokeWidth={1.8} />
|
|
83
|
+
</button>
|
|
84
|
+
);
|
|
85
|
+
}
|