@kabmo-labs/kabmo 0.45.0 → 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-z74weshk.js → CsvGrid-br4j001k.js} +2 -2
- package/dist/client/static/js/{DocxView-dpe5x9ab.js → DocxView-kmtkbmmw.js} +3 -3
- package/dist/client/static/js/{DrawioView-ftzwjf8v.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-vjec8z3z.js → PdfView-p5z7c7eg.js} +1 -1
- package/dist/client/static/js/{SessionsView-g7z3fxbp.js → SessionsView-t06h6zfx.js} +1 -1
- package/dist/client/static/js/{SheetView-hhtfkdhe.js → SheetView-agw459v2.js} +19 -19
- package/dist/client/static/js/{SvgPreview-48n3ex6p.js → SvgPreview-b9rfy1h6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-bpvzdara.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-xw62cr7j.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-x3a6cgar.js → blockDiagram-BEXU5L5S-v2nzp54a.js} +5 -5
- package/dist/client/static/js/c-acmn1zc9.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-katvaxbj.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-bjz4mqqh.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-fsn80psf.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-cfhbsnkm.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-j2wt7ns6.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-abrdj714.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
- package/dist/client/static/js/{diagram-3UASUU5V-dbn15bxn.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-y79pwf7w.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-f8ryt86n.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-ws7wn3q9.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-zmznrg13.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
- package/dist/client/static/js/{dockerfile-qgc921kw.js → dockerfile-00hqsk9c.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-y5q7hy1v.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-vddwbn6q.js → elk-276RUBZZ-dsq91er5.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-qdqcx4g4.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-763hk9rm.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-bgx1q5nw.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-w57zbym7.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-jpp0zm7t.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-szk3vk8h.js → index-5gf52a6d.js} +2 -2
- package/dist/client/static/js/{index-fqatn0vh.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-mwm8aptp.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-acphtw1r.js → index-9d3n04vb.js} +2 -2
- package/dist/client/static/js/{index-cj39b26c.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-xkwybnf3.js → index-amys498v.js} +198 -198
- package/dist/client/static/js/{index-vkerrwpa.js → index-bafe7hmd.js} +2 -2
- package/dist/client/static/js/{index-34ff2vq6.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-61j9qkck.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-x7rfmwg8.js → index-ex5dtdx2.js} +6 -6
- package/dist/client/static/js/{index-228yzebd.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-h0rmkz9n.js → index-j718pxb3.js} +2 -2
- package/dist/client/static/js/{index-3sqndc9n.js → index-jkay7aw7.js} +2 -2
- package/dist/client/static/js/{index-05hx4ftf.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-3d21hpk7.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-f7paep2f.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-dn6pqym4.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-dgjerk4w.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-5b2vsbcf.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-gmq5pbcv.js → index-x1fqhhpp.js} +64 -64
- package/dist/client/static/js/{index-p21mvqc2.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-mrw7qweg.js → index-zedt16w7.js} +1 -1
- package/dist/client/static/js/{index-r6e44vkx.js → index-zq0qxb17.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-e66pw8d9.js → infoDiagram-VRGFBTTK-7q58qdf1.js} +2 -2
- package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ehc0q24d.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-hye05qtd.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-vce614m8.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-gc79re5p.js → mermaid.core-hwhzw0wv.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-ft1whaf5.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-2s4ykhaa.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-7h8dp0z3.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-pteyxjxr.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-68z9wdt0.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-c08nmey6.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-ke5ec0w5.js → rust-1v8xbxn9.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2r3kvjs5.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-ctjycd88.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-97ndea95.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-aqnmsb96.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-v50cx1nx.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-1ggrtdcj.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-ybcwhpzs.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-p9ggrt07.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-v79nb9kx.js → wardleyDiagram-VNRHLVJA-3n2sm7rj.js} +3 -3
- package/dist/client/static/js/xml-3117mxd9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-43thqscz.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-vchn6wyq.js +0 -1
- package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +0 -2
- package/dist/client/static/js/Modal-tteg7vtb.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-nh2tb65b.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-0vk6v4y4.js +0 -2
- package/dist/client/static/js/index-47wn2gjx.js +0 -2
- package/dist/client/static/js/index-4b5b6g0k.js +0 -1
- package/dist/client/static/js/index-5mrqfs82.js +0 -12
- package/dist/client/static/js/index-6bm4pw90.css +0 -1
- package/dist/client/static/js/index-a11ptyzf.js +0 -1
- package/dist/client/static/js/index-f98dhbt4.js +0 -4
- package/dist/client/static/js/index-kg2sk8cf.js +0 -1
- package/dist/client/static/js/index-q76jfb54.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-rvg5xm1a.js +0 -1
- package/dist/client/static/js/one-light-2b5w3ksh.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-e227mz39.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
|
@@ -82,49 +82,44 @@ export function ShellUpdateModal({ download, phase, message, onConfirm, onClose
|
|
|
82
82
|
onClose={onClose}
|
|
83
83
|
maxWidthClass="max-w-sm"
|
|
84
84
|
header={<h2 className="text-sm font-semibold text-ink">{label}</h2>}
|
|
85
|
+
// ONE dismissal: `Modal`'s named close is the way out, exactly as in the
|
|
86
|
+
// notification dialog. The footer used to repeat it as a "Close" button in
|
|
87
|
+
// the `done` and `error` phases, both running the same `onClose` — two
|
|
88
|
+
// controls for one action, and two buttons a screen reader (or a strict
|
|
89
|
+
// locator) cannot tell apart. The footer keeps only the ACTIONS.
|
|
85
90
|
footer={
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{phase === 'working' && (
|
|
100
|
-
<button type="button" className={PRIMARY} disabled>
|
|
101
|
-
<Loader2 size={13} className="animate-spin motion-reduce:animate-none" />
|
|
102
|
-
<span>Installing…</span>
|
|
103
|
-
</button>
|
|
104
|
-
)}
|
|
105
|
-
|
|
106
|
-
{phase === 'done' && (
|
|
107
|
-
<button type="button" className={PRIMARY} onClick={onClose}>
|
|
108
|
-
<Check size={13} />
|
|
109
|
-
<span>Close</span>
|
|
110
|
-
</button>
|
|
111
|
-
)}
|
|
91
|
+
phase === 'done' ? undefined : (
|
|
92
|
+
<div className="flex items-center justify-end gap-2 px-5 pb-4">
|
|
93
|
+
{phase === 'confirm' && (
|
|
94
|
+
<>
|
|
95
|
+
<button type="button" className={SECONDARY} onClick={onClose}>
|
|
96
|
+
Cancel
|
|
97
|
+
</button>
|
|
98
|
+
<button type="button" className={PRIMARY} onClick={onConfirm}>
|
|
99
|
+
<Download size={13} />
|
|
100
|
+
<span>Install update</span>
|
|
101
|
+
</button>
|
|
102
|
+
</>
|
|
103
|
+
)}
|
|
112
104
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
105
|
+
{phase === 'working' && (
|
|
106
|
+
<button type="button" className={PRIMARY} disabled>
|
|
107
|
+
<Loader2 size={13} className="animate-spin motion-reduce:animate-none" />
|
|
108
|
+
<span>Installing…</span>
|
|
117
109
|
</button>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
110
|
+
)}
|
|
111
|
+
|
|
112
|
+
{phase === 'error' && (
|
|
113
|
+
// Retry re-runs the SAME offer: the release is still the one the
|
|
114
|
+
// console read, and a failure here is the shell's download or its
|
|
115
|
+
// verification, not a stale version.
|
|
121
116
|
<button type="button" className={PRIMARY} onClick={onConfirm}>
|
|
122
117
|
<Download size={13} />
|
|
123
118
|
<span>Try again</span>
|
|
124
119
|
</button>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
)}
|
|
121
|
+
</div>
|
|
122
|
+
)
|
|
128
123
|
}
|
|
129
124
|
>
|
|
130
125
|
<div className="px-5 py-4 space-y-3 text-[11px] leading-5 text-ink/70">
|
|
@@ -174,7 +174,10 @@ describe('a shell that can install its own update', () => {
|
|
|
174
174
|
|
|
175
175
|
expect(dialog()?.textContent).toContain('The downloaded file is not a signed Kabmo build.');
|
|
176
176
|
expect(buttonByText('Try again')).not.toBeNull();
|
|
177
|
-
|
|
177
|
+
// ONE dismissal: the shell's named close. A footer "Close" beside it was a
|
|
178
|
+
// second control for the same action (and made a role/name locator ambiguous).
|
|
179
|
+
expect(buttonByText('Close')).toBeNull();
|
|
180
|
+
expect(byName('Close')).not.toBeNull();
|
|
178
181
|
});
|
|
179
182
|
|
|
180
183
|
test('closing after a failure, then reopening, starts at the confirmation again', async () => {
|
|
@@ -184,7 +187,7 @@ describe('a shell that can install its own update', () => {
|
|
|
184
187
|
await mount(DESKTOP);
|
|
185
188
|
await click(byName('Update Kabmo 0.3.2 for macOS'));
|
|
186
189
|
await click(buttonByText('Install update'));
|
|
187
|
-
await click(
|
|
190
|
+
await click(byName('Close'));
|
|
188
191
|
expect(dialog()).toBeNull();
|
|
189
192
|
|
|
190
193
|
await click(byName('Update Kabmo 0.3.2 for macOS'));
|
|
@@ -43,6 +43,7 @@ import { LeftDockView } from '@/client/components/layout/LeftDock';
|
|
|
43
43
|
import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
|
|
44
44
|
import { usePanelCatalog } from '@/client/components/workspace/plugin-panel/catalog';
|
|
45
45
|
import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
|
|
46
|
+
import { useRevealEdge, useRevealPanelTab } from '@/client/hooks/workspace/panel-tabs-reveal';
|
|
46
47
|
import { SESSIONS_VIEW_ID } from '@/shared/lib/workspace/left-dock';
|
|
47
48
|
import type { PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
48
49
|
import { useLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
@@ -149,6 +150,20 @@ export function LeftColumn({
|
|
|
149
150
|
const known = useMemo(() => new Set(catalog.map((panel) => panel.id)), [catalog]);
|
|
150
151
|
const tabsState = usePanelTabs('left', known, SESSIONS_VIEW_ID);
|
|
151
152
|
const tabsMode = railEnabled && navStyle === 'tabs';
|
|
153
|
+
// The same reveal rule as the right column: the sidebar's expand toggle (and
|
|
154
|
+
// `⌘B`) brings the column back, so it must bring a VIEW back rather than the
|
|
155
|
+
// catalog the strip shows on a fresh session. The session list is pinned, so
|
|
156
|
+
// this is the one column where the answer is always its own view.
|
|
157
|
+
const revealed = useRevealEdge(open);
|
|
158
|
+
useRevealPanelTab({
|
|
159
|
+
enabled: tabsMode,
|
|
160
|
+
revealed,
|
|
161
|
+
view,
|
|
162
|
+
home: tabsState.home,
|
|
163
|
+
chosenHome: tabsState.chosenHome,
|
|
164
|
+
openTab: tabsState.open,
|
|
165
|
+
known,
|
|
166
|
+
});
|
|
152
167
|
|
|
153
168
|
/**
|
|
154
169
|
* A view opened from a card must reach the BODY, not only the strip, so the
|
|
@@ -41,6 +41,7 @@ import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
|
|
|
41
41
|
import { usePanelDropTarget } from '@/client/hooks/workspace/panel-drop-target';
|
|
42
42
|
import { useLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
43
43
|
import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
|
|
44
|
+
import { useRevealEdge, useRevealPanelTab } from '@/client/hooks/workspace/panel-tabs-reveal';
|
|
44
45
|
import { useSessionStateContext } from '@/client/hooks/workspace/session-state/context';
|
|
45
46
|
import { resolvePanelNav, type PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
46
47
|
|
|
@@ -119,6 +120,21 @@ export function RightColumn({
|
|
|
119
120
|
// stored tab instead of rendering an empty body.
|
|
120
121
|
const known = new Set(catalog.map((panel) => panel.id));
|
|
121
122
|
const tabsState = usePanelTabs('right', known, null);
|
|
123
|
+
// A column REVEALED from the navbar's toggle (or `⌥⌘J`) must show a view, not
|
|
124
|
+
// the catalog: the button's promise is "bring the panel back", and the home
|
|
125
|
+
// page is a fresh session's empty state rather than something the click asked
|
|
126
|
+
// for. The Stats readout, which names a panel, already opened one — this is
|
|
127
|
+
// the same answer for the click that names no view. See `panel-tabs-reveal`.
|
|
128
|
+
const revealed = useRevealEdge(open);
|
|
129
|
+
useRevealPanelTab({
|
|
130
|
+
enabled: tabsMode,
|
|
131
|
+
revealed,
|
|
132
|
+
view: shownPanel,
|
|
133
|
+
home: tabsState.home,
|
|
134
|
+
chosenHome: tabsState.chosenHome,
|
|
135
|
+
openTab: tabsState.open,
|
|
136
|
+
known,
|
|
137
|
+
});
|
|
122
138
|
// In tabs mode the OPEN set is the mounted set; under the rail it is the
|
|
123
139
|
// whole catalog (minus plugins, which were never kept mounted).
|
|
124
140
|
const openIds = new Set(tabsState.tabs);
|
|
@@ -87,7 +87,7 @@ export function ToolbarOverflowMenu({
|
|
|
87
87
|
onClick={() => setOpen(!open)}
|
|
88
88
|
className={`inline-flex items-center justify-center transition-colors cursor-pointer ${
|
|
89
89
|
mobile
|
|
90
|
-
? 'w-9.5 h-9.5 rounded-xl border
|
|
90
|
+
? 'w-9.5 h-9.5 rounded-xl border shadow-xs'
|
|
91
91
|
: 'w-7 h-7 rounded border'
|
|
92
92
|
} ${
|
|
93
93
|
open
|
|
@@ -19,7 +19,6 @@ import { useDialogBehaviour } from '@/client/hooks/ui/dialog-behaviour';
|
|
|
19
19
|
import { UPDATE_POPUP_OPEN_EVENT } from '@/shared/lib/updates/popup-state';
|
|
20
20
|
import type { UpdateTarget } from '@/shared/types/updates';
|
|
21
21
|
import { MAX_WIDTH as CARD_MAX_WIDTH } from '@/client/components/workspace/model-dropdown/popover-metrics';
|
|
22
|
-
import { safeAreaPadding } from '@/shared/lib/ui/safe-area';
|
|
23
22
|
|
|
24
23
|
export interface AboutModalProps {
|
|
25
24
|
isOpen: boolean;
|
|
@@ -101,12 +100,11 @@ export function AboutModal({ isOpen, onClose, updates, onToast }: AboutModalProp
|
|
|
101
100
|
|
|
102
101
|
Full-bleed on a phone was the bug: `h-full w-full` with no gutters put
|
|
103
102
|
the header at the viewport's top edge, which a `viewport-fit: cover`
|
|
104
|
-
surface draws UNDER the phone's status bar. The scrim's
|
|
105
|
-
`
|
|
106
|
-
desktop keeps its FIXED 880px two-column card. */}
|
|
103
|
+
surface draws UNDER the phone's status bar. The scrim's gutter is the
|
|
104
|
+
shared `.modal-safe` rule in `tailwind.css`, the same one every other
|
|
105
|
+
dialog takes. The desktop keeps its FIXED 880px two-column card. */}
|
|
107
106
|
<div
|
|
108
|
-
className="fixed inset-0 modal-scrim z-50 flex items-center justify-center md:backdrop-blur-[2px] animate-in fade-in duration-200"
|
|
109
|
-
style={safeAreaPadding()}
|
|
107
|
+
className="fixed inset-0 modal-scrim z-50 flex items-center justify-center modal-safe md:backdrop-blur-[2px] animate-in fade-in duration-200"
|
|
110
108
|
onClick={onClose}
|
|
111
109
|
>
|
|
112
110
|
<div
|
|
@@ -136,7 +136,7 @@ function NewWorkspaceForm({
|
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
return (
|
|
139
|
-
<div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center
|
|
139
|
+
<div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center modal-safe">
|
|
140
140
|
<div className="glass-overlay bg-paper border border-ink/10 rounded-lg shadow-xl w-[30rem] max-w-full max-h-full overflow-y-auto flex flex-col">
|
|
141
141
|
<div className="flex justify-between items-center px-4 pt-4 pb-2 border-b border-ink/10">
|
|
142
142
|
<h3 className="font-semibold text-sm">New Workspace</h3>
|
|
@@ -128,7 +128,7 @@ export function SchedulerModal({
|
|
|
128
128
|
|
|
129
129
|
return (
|
|
130
130
|
<div
|
|
131
|
-
className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center
|
|
131
|
+
className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center modal-safe"
|
|
132
132
|
onClick={busy ? undefined : onClose}
|
|
133
133
|
role="dialog"
|
|
134
134
|
aria-modal="true"
|
|
@@ -3,6 +3,7 @@ import { useSearchParams } from '@/client/lib/router/search-params';
|
|
|
3
3
|
import { clearBranchParams, newSessionParams } from '@/client/lib/router/branch-params';
|
|
4
4
|
import { useKabmoEvent } from '@/client/hooks/ui/window-event';
|
|
5
5
|
import { useMobileBackStack } from '@/client/hooks/workspace/mobile-back';
|
|
6
|
+
import { useMobileDrawerReveals, type MobileScreen } from '@/client/components/mobile/mobile-drawer-reveals';
|
|
6
7
|
import type { JournalDiffRef, SettingsCategoryId } from '@/shared/types';
|
|
7
8
|
import { MobileMainView } from '@/client/components/mobile/MainView';
|
|
8
9
|
import { WindowAura } from '@/client/components/layout/WindowAura';
|
|
@@ -24,19 +25,13 @@ import { PluginBootstrap } from '@/client/lib/plugins/bootstrap';
|
|
|
24
25
|
import { mobileEditorFileFrom, mobileProbeTabs, type MobileEditorFile } from '@/client/components/mobile/open-file-payload';
|
|
25
26
|
import { useLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
26
27
|
import { useSessionStateContext } from '@/client/hooks/workspace/session-state/context';
|
|
27
|
-
import { setSessionKey, getSessionValue } from '@/shared/lib/workspace/session-state/store';
|
|
28
|
-
import { DEFAULT_RIGHT_PANEL_TYPE } from '@/shared/lib/workspace/right-panels';
|
|
29
|
-
import { armTerminalSoftKeyboard } from '@/client/components/workspace/terminal-panel/soft-keyboard';
|
|
30
28
|
import { startWorktreeSession } from '@/client/components/mobile/worktree-session';
|
|
31
|
-
import { OPEN_PANEL_EVENT, phoneDrawerForPanel, type OpenPanelDetail } from '@/shared/lib/workspace/panel-open';
|
|
32
29
|
|
|
33
30
|
interface MobileLayoutWrapperProps {
|
|
34
31
|
onDesktopToggle?: () => void;
|
|
35
32
|
appSettings?: Record<string, any>;
|
|
36
33
|
}
|
|
37
34
|
|
|
38
|
-
export type MobileScreen = 'main' | 'session' | 'right';
|
|
39
|
-
|
|
40
35
|
export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: MobileLayoutWrapperProps) {
|
|
41
36
|
const { folders, isMock } = useSidebarData();
|
|
42
37
|
// The placement state the panel-open event resolves against, and the session
|
|
@@ -51,6 +46,10 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
51
46
|
const folderId = folderParam ? (Number.isNaN(Number(folderParam)) ? folderParam : Number(folderParam)) : null;
|
|
52
47
|
|
|
53
48
|
const [currentScreen, setCurrentScreen] = useState<MobileScreen>('main');
|
|
49
|
+
// The two drawers as SCREENS: which one a request opens, and whether that
|
|
50
|
+
// request was a header REVEAL (which must show a view, not the catalog). One
|
|
51
|
+
// hook, because a named open and a header press are the same two facts.
|
|
52
|
+
const drawers = useMobileDrawerReveals({ dock, sessionId: stateSessionId, currentScreen, setCurrentScreen });
|
|
54
53
|
const [mobileEditorFile, setMobileEditorFile] = useState<MobileEditorFile | null>(null);
|
|
55
54
|
const [mobileDiff, setMobileDiff] = useState<{ path: string; status?: string; staged?: boolean; repo?: string; root?: string; journal?: JournalDiffRef } | null>(null);
|
|
56
55
|
// Bumped whenever a write lands so the workspace panels (explorer, git,
|
|
@@ -149,32 +148,6 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
149
148
|
// transcript opens behind the drawer and the tap reads as a no-op.
|
|
150
149
|
useKabmoEvent('omp:view-subagent', () => setCurrentScreen('main'));
|
|
151
150
|
|
|
152
|
-
/**
|
|
153
|
-
* A plugin's navbar readout asking for its own panel. A phone has no rail, so
|
|
154
|
-
* "show this panel" is two decisions — which DRAWER reaches it and which chip
|
|
155
|
-
* inside it — both answered by `phoneDrawerForPanel` from the PLACEMENT, never
|
|
156
|
-
* from the panel's slot. The tab is written through the store because the
|
|
157
|
-
* drawer mounts on this screen change and reads the stored tab; an `editor`
|
|
158
|
-
* takeover resolves to null and the click does nothing rather than opening a
|
|
159
|
-
* drawer that cannot show it.
|
|
160
|
-
*/
|
|
161
|
-
useKabmoEvent(OPEN_PANEL_EVENT, (event) => {
|
|
162
|
-
const panelKey = (event as CustomEvent<OpenPanelDetail>).detail?.panelKey;
|
|
163
|
-
if (!panelKey) return;
|
|
164
|
-
const drawer = phoneDrawerForPanel(panelKey, dock);
|
|
165
|
-
if (!drawer) return;
|
|
166
|
-
// Same gesture rule as the header's button: arm the keyboard before the
|
|
167
|
-
// terminal mounts, but never for the view already on screen (it is focused).
|
|
168
|
-
const stored = getSessionValue<string>(stateSessionId, 'layout.mobileRightPanel');
|
|
169
|
-
if (drawer === 'right' && (currentScreen !== 'right' || stored !== panelKey)) {
|
|
170
|
-
armTerminalSoftKeyboard(panelKey);
|
|
171
|
-
}
|
|
172
|
-
// The phone's two drawers are SCREENS, not columns: the session screen
|
|
173
|
-
// draws the left dock and the right screen draws the panel drawer.
|
|
174
|
-
setSessionKey(stateSessionId, drawer === 'left' ? 'layout.mobileLeftPanel' : 'layout.mobileRightPanel', panelKey);
|
|
175
|
-
setCurrentScreen(drawer === 'left' ? 'session' : 'right');
|
|
176
|
-
});
|
|
177
|
-
|
|
178
151
|
// Settings requests (e.g. the model dropdown asking for Settings → Providers
|
|
179
152
|
// when no provider is configured) arrive on the same global channel the
|
|
180
153
|
// desktop layout listens on. SettingsModal itself only reads the payload and
|
|
@@ -235,15 +208,6 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
235
208
|
if (next) setMobileEditorFile(next);
|
|
236
209
|
}, [activeProjectPath]);
|
|
237
210
|
|
|
238
|
-
// The right drawer is a SCREEN: opening it is the tap that can summon the
|
|
239
|
-
// keyboard, but the terminal mounts after it. Arm it for the tab the drawer
|
|
240
|
-
// will open on; the drawer releases it if another view resolves.
|
|
241
|
-
const handleOpenRightSidebar = useCallback(() => {
|
|
242
|
-
const stored = getSessionValue<string>(stateSessionId, 'layout.mobileRightPanel') ?? DEFAULT_RIGHT_PANEL_TYPE;
|
|
243
|
-
armTerminalSoftKeyboard(stored);
|
|
244
|
-
setCurrentScreen('right');
|
|
245
|
-
}, [stateSessionId]);
|
|
246
|
-
|
|
247
211
|
return (
|
|
248
212
|
<div
|
|
249
213
|
data-testid="app-root"
|
|
@@ -274,8 +238,8 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
274
238
|
activeSessionId={sessionId}
|
|
275
239
|
onSelectSession={handleSelectSession}
|
|
276
240
|
onNewSession={handleNewSession}
|
|
277
|
-
onOpenSessionSidebar={
|
|
278
|
-
onOpenRightSidebar={
|
|
241
|
+
onOpenSessionSidebar={drawers.openSessionDrawer}
|
|
242
|
+
onOpenRightSidebar={drawers.openRightDrawer}
|
|
279
243
|
appSettings={appSettings}
|
|
280
244
|
/>
|
|
281
245
|
</div>
|
|
@@ -294,6 +258,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
294
258
|
refreshKey={refreshKey}
|
|
295
259
|
onRefresh={handleWorkspaceChanged}
|
|
296
260
|
onOpenFile={handleOpenFile}
|
|
261
|
+
revealSignal={drawers.left}
|
|
297
262
|
/>
|
|
298
263
|
</div>
|
|
299
264
|
|
|
@@ -312,6 +277,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
312
277
|
onRefresh={handleWorkspaceChanged}
|
|
313
278
|
onOpenFile={handleOpenFile}
|
|
314
279
|
onClose={() => setCurrentScreen('main')}
|
|
280
|
+
revealSignal={drawers.right}
|
|
315
281
|
/>
|
|
316
282
|
</div>
|
|
317
283
|
)}
|
|
@@ -15,14 +15,11 @@ import {
|
|
|
15
15
|
} from '@/client/components/workspace/terminal-panel/soft-keyboard';
|
|
16
16
|
import { releaseSoftKeyboard } from '@/client/lib/ui/soft-keyboard';
|
|
17
17
|
import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
DrawerCloseAction,
|
|
21
|
-
DrawerHeader,
|
|
22
|
-
drawerStripProps,
|
|
23
|
-
} from '@/client/components/mobile/mobile-right-sidebar/Chrome';
|
|
18
|
+
import { DrawerBody, DrawerHeader } from '@/client/components/mobile/mobile-right-sidebar/Chrome';
|
|
19
|
+
import { DrawerCloseAction, drawerStripProps } from '@/client/components/mobile/drawer-strip';
|
|
24
20
|
import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
|
|
25
|
-
import {
|
|
21
|
+
import { useRevealPanelTab, useRevealSignal } from '@/client/hooks/workspace/panel-tabs-reveal';
|
|
22
|
+
import { useMobilePanelNav } from '@/client/hooks/workspace/mobile-panel-nav';
|
|
26
23
|
import { VisibilityMenu } from '@/client/components/layout/VisibilityMenu';
|
|
27
24
|
import { usePanelVisibilityMenu } from '@/client/hooks/workspace/panel-visibility-menu';
|
|
28
25
|
|
|
@@ -34,6 +31,13 @@ interface MobileRightSidebarProps {
|
|
|
34
31
|
onRefresh?: () => void;
|
|
35
32
|
onOpenFile?: (file: unknown) => void;
|
|
36
33
|
onClose: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* A header control asked for this drawer. The drawer unmounts when it closes,
|
|
36
|
+
* so its mount is also what a screen change for any other reason produces —
|
|
37
|
+
* this counter is the only thing that can say "a reveal gesture landed", which
|
|
38
|
+
* is what makes it show a VIEW instead of its catalog (`panel-tabs-reveal`).
|
|
39
|
+
*/
|
|
40
|
+
revealSignal?: number;
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
/**
|
|
@@ -52,7 +56,8 @@ export function MobileRightSidebar({
|
|
|
52
56
|
refreshKey = 0,
|
|
53
57
|
onRefresh,
|
|
54
58
|
onOpenFile,
|
|
55
|
-
onClose
|
|
59
|
+
onClose,
|
|
60
|
+
revealSignal = 0
|
|
56
61
|
}: MobileRightSidebarProps) {
|
|
57
62
|
// The tab is persisted, and that is a performance decision as much as a
|
|
58
63
|
// convenience one: the drawer UNMOUNTS when it closes, so whichever view is
|
|
@@ -90,10 +95,22 @@ export function MobileRightSidebar({
|
|
|
90
95
|
* desktop right column writes (`layout.rightPanelTabs`) — one working set
|
|
91
96
|
* across the layouts, which is why switching device does not lose the tabs.
|
|
92
97
|
*/
|
|
93
|
-
const navStyle =
|
|
98
|
+
const navStyle = useMobilePanelNav('right');
|
|
94
99
|
const tabsMode = navStyle === 'tabs';
|
|
95
100
|
const known = useMemo(() => new Set(catalog.map((panel) => panel.id)), [catalog]);
|
|
96
101
|
const tabsState = usePanelTabs('right', known, null);
|
|
102
|
+
// The header's "Open Right Panel" is a reveal, so it must show a VIEW rather
|
|
103
|
+
// than the catalog — the same rule the desktop column follows, and the same
|
|
104
|
+
// one the Stats readout already satisfies by naming a panel.
|
|
105
|
+
useRevealPanelTab({
|
|
106
|
+
enabled: tabsMode,
|
|
107
|
+
revealed: useRevealSignal(revealSignal),
|
|
108
|
+
view: activeTab,
|
|
109
|
+
home: tabsState.home,
|
|
110
|
+
chosenHome: tabsState.chosenHome,
|
|
111
|
+
openTab: tabsState.open,
|
|
112
|
+
known,
|
|
113
|
+
});
|
|
97
114
|
const { open: openTab, tabs: openTabIds } = tabsState;
|
|
98
115
|
// Whether the session's blob actually holds a right-drawer view. Read through
|
|
99
116
|
// the store (not the hook's fallback), because "unset" and "set to the
|
|
@@ -264,7 +281,7 @@ export function MobileRightSidebar({
|
|
|
264
281
|
tabs={tabHandle}
|
|
265
282
|
homeTitle="Panel kanan"
|
|
266
283
|
stripProps={drawerStripProps(panelMenu.surfaceProps)}
|
|
267
|
-
actions={<DrawerCloseAction onClose={onClose} />}
|
|
284
|
+
actions={<DrawerCloseAction side="right" onClose={onClose} />}
|
|
268
285
|
>
|
|
269
286
|
<div className="h-full w-full">
|
|
270
287
|
<DrawerBody panel={activePanel} body={mobileBody} />
|