@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,6 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Mobile editor top bar: back/close, file identity, and the file actions.
|
|
8
|
+
*
|
|
9
|
+
* **Nine controls never fit one 390px row.** They used to try, at `p-1.5` each,
|
|
10
|
+
* which measured every control at **27x27** — under the 36px phone-chrome box
|
|
11
|
+
* the rest of the app uses and 17px under the 44px touch floor — and left five of
|
|
12
|
+
* them with a `title` but no accessible name. The row now draws the controls a
|
|
13
|
+
* reader reaches for mid-read (find, preview/review, the overflow) at the shared
|
|
14
|
+
* plate size, and folds the rest into a menu: wrap and the two zoom steps, which
|
|
15
|
+
* are settings a reader changes once, plus copy and download, which are
|
|
16
|
+
* one-shot exports.
|
|
17
|
+
*
|
|
18
|
+
* The fold is a WIDTH decision, not a device class — the same rule the header
|
|
19
|
+
* cluster and the sidebar toolbar follow — so a wider phone or a rotated one
|
|
20
|
+
* gets them back in the row.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
import { useMemo } from 'preact/hooks';
|
|
24
|
+
import {
|
|
25
|
+
ArrowLeft,
|
|
26
|
+
Check,
|
|
27
|
+
Copy,
|
|
28
|
+
Download,
|
|
29
|
+
Eye,
|
|
30
|
+
EyeOff,
|
|
31
|
+
MessageSquare,
|
|
32
|
+
Save,
|
|
33
|
+
Search,
|
|
34
|
+
WrapText,
|
|
35
|
+
ZoomIn,
|
|
36
|
+
ZoomOut,
|
|
37
|
+
} from 'lucide-preact';
|
|
2
38
|
import { FileIcon } from '@/client/components/common/file-icon';
|
|
3
|
-
import {
|
|
39
|
+
import { EditorAction, EDITOR_ACTION_GLYPH_PX } from '@/client/components/mobile/mobile-right-sidebar/Action';
|
|
40
|
+
import { EditorOverflowMenu } from '@/client/components/mobile/mobile-right-sidebar/Overflow';
|
|
41
|
+
import { phoneRowStyle } from '@/client/lib/ui/phone-row';
|
|
42
|
+
import { useViewportAtLeast } from '@/client/hooks/ui/media-query';
|
|
4
43
|
|
|
5
44
|
interface EditorHeaderProps {
|
|
6
45
|
fileName: string;
|
|
@@ -32,7 +71,16 @@ interface EditorHeaderProps {
|
|
|
32
71
|
onDownload: () => void;
|
|
33
72
|
}
|
|
34
73
|
|
|
35
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* The width below which the one-shot actions fold.
|
|
76
|
+
*
|
|
77
|
+
* Measured on the real bar: close (36) + name + find (36) + preview (36) +
|
|
78
|
+
* overflow (36) + the row's own padding fits a 360px phone with ~40px to spare
|
|
79
|
+
* for the file name. Copy and download are the two that never need to be one tap
|
|
80
|
+
* away — a reader who copies a file's contents is done reading it.
|
|
81
|
+
*/
|
|
82
|
+
const FOLD_BELOW_PX = 420;
|
|
83
|
+
|
|
36
84
|
export function EditorHeader({
|
|
37
85
|
fileName,
|
|
38
86
|
hasPreview,
|
|
@@ -55,143 +103,99 @@ export function EditorHeader({
|
|
|
55
103
|
onCopy,
|
|
56
104
|
onDownload,
|
|
57
105
|
}: EditorHeaderProps) {
|
|
106
|
+
// A hook, so it is called before any early return (there is none here, but the
|
|
107
|
+
// rule is the reason it sits at the top).
|
|
108
|
+
const roomy = useViewportAtLeast(FOLD_BELOW_PX);
|
|
109
|
+
|
|
110
|
+
const folded = useMemo(() => {
|
|
111
|
+
const actions = [];
|
|
112
|
+
if (!byteViewer) {
|
|
113
|
+
actions.push(
|
|
114
|
+
{ id: 'wrap', label: wordWrap ? 'Word wrap: on' : 'Word wrap: off', icon: WrapText, onSelect: onToggleWrap },
|
|
115
|
+
{ id: 'zoom-out', label: 'Decrease font size', icon: ZoomOut, onSelect: onZoomOut },
|
|
116
|
+
{ id: 'zoom-in', label: 'Increase font size', icon: ZoomIn, onSelect: onZoomIn },
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
if (!roomy) {
|
|
120
|
+
actions.push(
|
|
121
|
+
{ id: 'copy', label: copied ? 'Copied' : 'Copy content', icon: copied ? Check : Copy, onSelect: onCopy },
|
|
122
|
+
{ id: 'download', label: 'Download file', icon: Download, onSelect: onDownload },
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
return actions;
|
|
126
|
+
}, [byteViewer, roomy, wordWrap, copied, onToggleWrap, onZoomOut, onZoomIn, onCopy, onDownload]);
|
|
127
|
+
|
|
58
128
|
return (
|
|
59
129
|
<header
|
|
60
|
-
className="bg-canvas border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0"
|
|
61
|
-
style={
|
|
62
|
-
height: 'calc(3rem + env(safe-area-inset-top, 0px))',
|
|
63
|
-
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
64
|
-
paddingLeft: titlebarPaddingLeft('0.75rem', true),
|
|
65
|
-
paddingRight: titlebarPaddingRight('0.75rem', true),
|
|
66
|
-
}}
|
|
130
|
+
className="bg-canvas border-b border-ink/10 flex items-center justify-between gap-1 px-3 flex-shrink-0 titlebar-drag-region"
|
|
131
|
+
style={phoneRowStyle()}
|
|
67
132
|
>
|
|
68
|
-
<div className="flex items-center
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
className="p-1.5 rounded-lg hover:bg-ink/10 text-ink transition-colors active:scale-90 flex-shrink-0 cursor-pointer"
|
|
73
|
-
title="Close editor"
|
|
74
|
-
aria-label="Close editor"
|
|
75
|
-
>
|
|
76
|
-
<ArrowLeft size={18} strokeWidth={2} />
|
|
77
|
-
</button>
|
|
133
|
+
<div className="flex items-center gap-1 min-w-0 titlebar-no-drag">
|
|
134
|
+
<EditorAction label="Close editor" onClick={onClose}>
|
|
135
|
+
<ArrowLeft size={EDITOR_ACTION_GLYPH_PX} strokeWidth={2} />
|
|
136
|
+
</EditorAction>
|
|
78
137
|
|
|
79
|
-
<div className="flex items-center
|
|
138
|
+
<div className="flex min-w-0 items-center gap-1.5">
|
|
80
139
|
<FileIcon name={fileName} size={15} className={`flex-shrink-0${missing ? ' text-error' : ''}`} />
|
|
81
|
-
<span className={`font-semibold text-xs
|
|
140
|
+
<span className={`truncate font-semibold text-xs${missing ? ' text-error line-through' : ' text-ink'}`}>
|
|
141
|
+
{fileName}
|
|
142
|
+
</span>
|
|
82
143
|
</div>
|
|
83
144
|
</div>
|
|
84
145
|
|
|
85
|
-
<div className="flex items-center
|
|
146
|
+
<div className="flex flex-none items-center gap-0.5 text-ink/70 titlebar-no-drag">
|
|
86
147
|
{/* Only while the file is gone. With it present the debounced autosave
|
|
87
148
|
and the closing flush already own every write, and a Save here would
|
|
88
149
|
be a second way to do what typing already did. Missing is the one
|
|
89
150
|
state where autosave stands down, so the explicit Save is the only
|
|
90
151
|
route back — it opens the confirmation. */}
|
|
91
152
|
{missing && onSave && (
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
className="p-1.5 rounded bg-error text-canvas hover:bg-error/90 transition-colors cursor-pointer"
|
|
96
|
-
title="Save and recreate the file"
|
|
97
|
-
aria-label="Save and recreate the file"
|
|
98
|
-
>
|
|
99
|
-
<Save size={15} />
|
|
100
|
-
</button>
|
|
153
|
+
<EditorAction label="Save and recreate the file" onClick={onSave} danger>
|
|
154
|
+
<Save size={EDITOR_ACTION_GLYPH_PX} />
|
|
155
|
+
</EditorAction>
|
|
101
156
|
)}
|
|
102
157
|
|
|
103
158
|
{!byteViewer && (
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
className={`p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer ${findOpen ? 'bg-ink text-canvas' : ''}`}
|
|
108
|
-
title={findOpen ? 'Close find' : 'Find in file'}
|
|
109
|
-
aria-label={findOpen ? 'Close find' : 'Find in file'}
|
|
110
|
-
aria-pressed={findOpen}
|
|
111
|
-
>
|
|
112
|
-
<Search size={15} />
|
|
113
|
-
</button>
|
|
159
|
+
<EditorAction label={findOpen ? 'Close find' : 'Find in file'} onClick={onToggleFind} active={findOpen}>
|
|
160
|
+
<Search size={EDITOR_ACTION_GLYPH_PX} />
|
|
161
|
+
</EditorAction>
|
|
114
162
|
)}
|
|
115
163
|
|
|
116
164
|
{/* Beside the eye, and only while the RENDERED document is on screen:
|
|
117
165
|
reviewing the source has no blocks to judge. */}
|
|
118
166
|
{hasReview && (
|
|
119
|
-
<
|
|
120
|
-
|
|
167
|
+
<EditorAction
|
|
168
|
+
label={isReviewing ? 'Exit review mode' : 'Review this document'}
|
|
121
169
|
onClick={onToggleReview}
|
|
122
|
-
|
|
123
|
-
title={isReviewing ? 'Exit review mode' : 'Review this document'}
|
|
124
|
-
aria-label={isReviewing ? 'Exit review mode' : 'Review this document'}
|
|
125
|
-
aria-pressed={isReviewing}
|
|
170
|
+
active={isReviewing}
|
|
126
171
|
>
|
|
127
|
-
<MessageSquare size={
|
|
128
|
-
</
|
|
172
|
+
<MessageSquare size={EDITOR_ACTION_GLYPH_PX} />
|
|
173
|
+
</EditorAction>
|
|
129
174
|
)}
|
|
130
175
|
|
|
131
176
|
{hasPreview && (
|
|
132
|
-
<
|
|
133
|
-
|
|
177
|
+
<EditorAction
|
|
178
|
+
label={isPreview ? 'View source' : 'Show preview'}
|
|
134
179
|
onClick={onTogglePreview}
|
|
135
|
-
|
|
136
|
-
// The rendered form is not always markdown (a CSV grid, an SVG
|
|
137
|
-
// picture), so the words name the TOGGLE rather than one document
|
|
138
|
-
// kind — and the icon-only button carries an aria-label for the
|
|
139
|
-
// same reason every toolbar action does.
|
|
140
|
-
title={isPreview ? 'View source' : 'Show preview'}
|
|
141
|
-
aria-label={isPreview ? 'View source' : 'Show preview'}
|
|
180
|
+
active={isPreview}
|
|
142
181
|
>
|
|
143
|
-
{isPreview ? <EyeOff size={
|
|
144
|
-
</
|
|
182
|
+
{isPreview ? <EyeOff size={EDITOR_ACTION_GLYPH_PX} /> : <Eye size={EDITOR_ACTION_GLYPH_PX} />}
|
|
183
|
+
</EditorAction>
|
|
145
184
|
)}
|
|
146
185
|
|
|
147
|
-
{
|
|
186
|
+
{/* The one-shot exports, only while the row can hold them. */}
|
|
187
|
+
{roomy && (
|
|
148
188
|
<>
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
>
|
|
155
|
-
<WrapText size={15} />
|
|
156
|
-
</button>
|
|
157
|
-
|
|
158
|
-
<button
|
|
159
|
-
type="button"
|
|
160
|
-
onClick={onZoomOut}
|
|
161
|
-
className="p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer"
|
|
162
|
-
title="Decrease font size"
|
|
163
|
-
>
|
|
164
|
-
<ZoomOut size={15} />
|
|
165
|
-
</button>
|
|
166
|
-
|
|
167
|
-
<button
|
|
168
|
-
type="button"
|
|
169
|
-
onClick={onZoomIn}
|
|
170
|
-
className="p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer"
|
|
171
|
-
title="Increase font size"
|
|
172
|
-
>
|
|
173
|
-
<ZoomIn size={15} />
|
|
174
|
-
</button>
|
|
189
|
+
<EditorAction label="Copy content" onClick={onCopy}>
|
|
190
|
+
{copied ? <Check size={EDITOR_ACTION_GLYPH_PX} className="text-success" /> : <Copy size={EDITOR_ACTION_GLYPH_PX} />}
|
|
191
|
+
</EditorAction>
|
|
192
|
+
<EditorAction label="Download file" onClick={onDownload}>
|
|
193
|
+
<Download size={EDITOR_ACTION_GLYPH_PX} />
|
|
194
|
+
</EditorAction>
|
|
175
195
|
</>
|
|
176
196
|
)}
|
|
177
197
|
|
|
178
|
-
<
|
|
179
|
-
type="button"
|
|
180
|
-
onClick={onCopy}
|
|
181
|
-
className="p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer"
|
|
182
|
-
title="Copy content"
|
|
183
|
-
>
|
|
184
|
-
{copied ? <Check size={15} className="text-success" /> : <Copy size={15} />}
|
|
185
|
-
</button>
|
|
186
|
-
|
|
187
|
-
<button
|
|
188
|
-
type="button"
|
|
189
|
-
onClick={onDownload}
|
|
190
|
-
className="p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer"
|
|
191
|
-
title="Download file"
|
|
192
|
-
>
|
|
193
|
-
<Download size={15} />
|
|
194
|
-
</button>
|
|
198
|
+
{folded.length > 0 && <EditorOverflowMenu actions={folded} />}
|
|
195
199
|
</div>
|
|
196
200
|
</header>
|
|
197
201
|
);
|
|
@@ -79,7 +79,7 @@ export function MobileOutlineButton({ path, symbols, total, truncated, emptyNoti
|
|
|
79
79
|
onClick={() => setOpen(true)}
|
|
80
80
|
aria-label={`Outline (${total} symbols)`}
|
|
81
81
|
title="Outline"
|
|
82
|
-
className="flex h-9 w-9 items-center justify-center rounded-full border border-ink/20 bg-paper text-ink/60 shadow-sm transition-all hover:bg-ink/5 hover:text-ink
|
|
82
|
+
className="flex h-9 w-9 items-center justify-center rounded-full border border-ink/20 bg-paper text-ink/60 shadow-sm transition-all hover:bg-ink/5 hover:text-ink"
|
|
83
83
|
>
|
|
84
84
|
<ListTree size={16} />
|
|
85
85
|
</button>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The phone editor's `⋯` menu: the actions that do not need a standing slot.
|
|
8
|
+
*
|
|
9
|
+
* The title bar had nine controls in one 390px row, each measured at 27x27 —
|
|
10
|
+
* under the 36px phone-chrome plate and 17px under the 44px touch floor. Word
|
|
11
|
+
* wrap and the two zoom steps are settings a reader changes once; copy and
|
|
12
|
+
* download are one-shot exports. Behind `⋯` they cost 36px ONCE instead of
|
|
13
|
+
* 180px standing in the row, and each is named in words rather than as a glyph.
|
|
14
|
+
*
|
|
15
|
+
* This is the same answer `header-controls/MoreMenu` and the sidebar toolbar's
|
|
16
|
+
* `ToolbarOverflowMenu` reached: hiding a control outright makes it unreachable
|
|
17
|
+
* at one width, and letting the row overflow hides it behind a scroll with
|
|
18
|
+
* nothing on screen to say so.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { useEffect, useRef, useState } from 'preact/hooks';
|
|
22
|
+
import { Ellipsis, type LucideIcon } from 'lucide-preact';
|
|
23
|
+
import { useOnClickOutside } from '@/client/hooks/ui/on-click-outside';
|
|
24
|
+
import { CONTROL_BOX, CONTROL_GLYPH_PX } from '@/client/lib/ui/control-plate';
|
|
25
|
+
|
|
26
|
+
/** One row: what it says, its glyph, what it does. */
|
|
27
|
+
export interface EditorOverflowAction {
|
|
28
|
+
id: string;
|
|
29
|
+
label: string;
|
|
30
|
+
icon: LucideIcon;
|
|
31
|
+
onSelect: () => void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function EditorOverflowMenu({ actions }: { actions: EditorOverflowAction[] }) {
|
|
35
|
+
const [open, setOpen] = useState(false);
|
|
36
|
+
const ref = useRef<HTMLDivElement>(null);
|
|
37
|
+
useOnClickOutside(ref, () => setOpen(false), open);
|
|
38
|
+
|
|
39
|
+
// Escape closes, like every other menu in the app.
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (!open) return;
|
|
42
|
+
const onKey = (event: KeyboardEvent) => {
|
|
43
|
+
if (event.key === 'Escape') setOpen(false);
|
|
44
|
+
};
|
|
45
|
+
window.addEventListener('keydown', onKey);
|
|
46
|
+
return () => window.removeEventListener('keydown', onKey);
|
|
47
|
+
}, [open]);
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<div className="relative flex-none" ref={ref}>
|
|
51
|
+
{/* The menu OWNS its trigger. The row used to pass one in wrapped by a
|
|
52
|
+
click handler, which left the button's own `onClick` a no-op — a
|
|
53
|
+
control whose handler is a lie, and the one thing a test cannot catch
|
|
54
|
+
because the wrapper still opens the menu. */}
|
|
55
|
+
<button
|
|
56
|
+
type="button"
|
|
57
|
+
onClick={() => setOpen((prev) => !prev)}
|
|
58
|
+
title="More file actions"
|
|
59
|
+
aria-label="More file actions"
|
|
60
|
+
aria-haspopup="menu"
|
|
61
|
+
aria-expanded={open}
|
|
62
|
+
className={`${CONTROL_BOX.mobile} flex-none cursor-pointer rounded-lg text-ink/70 transition-colors hover:bg-ink/10 hover:text-ink`}
|
|
63
|
+
>
|
|
64
|
+
<Ellipsis size={CONTROL_GLYPH_PX.mobile} />
|
|
65
|
+
</button>
|
|
66
|
+
|
|
67
|
+
{open ? (
|
|
68
|
+
<div
|
|
69
|
+
role="menu"
|
|
70
|
+
aria-label="File actions"
|
|
71
|
+
className="absolute right-0 top-full z-50 mt-1 w-52 overflow-hidden rounded-xl border border-ink/15 bg-paper py-1 text-xs shadow-lg"
|
|
72
|
+
>
|
|
73
|
+
{actions.map((action) => {
|
|
74
|
+
const Icon = action.icon;
|
|
75
|
+
return (
|
|
76
|
+
<button
|
|
77
|
+
key={action.id}
|
|
78
|
+
type="button"
|
|
79
|
+
role="menuitem"
|
|
80
|
+
onClick={() => {
|
|
81
|
+
setOpen(false);
|
|
82
|
+
action.onSelect();
|
|
83
|
+
}}
|
|
84
|
+
className="flex w-full items-center gap-2 px-3 py-2.5 text-left text-ink/80 transition-colors hover:bg-ink/5 hover:text-ink"
|
|
85
|
+
>
|
|
86
|
+
<Icon size={15} className="flex-none text-ink/60" />
|
|
87
|
+
<span className="truncate">{action.label}</span>
|
|
88
|
+
</button>
|
|
89
|
+
);
|
|
90
|
+
})}
|
|
91
|
+
</div>
|
|
92
|
+
) : null}
|
|
93
|
+
</div>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The phone left drawer's VIEW STACK — the list, the batch bar, and a placed
|
|
8
|
+
* panel's body.
|
|
9
|
+
*
|
|
10
|
+
* Extracted from `SessionSidebar` when that file crossed the 350-line ceiling,
|
|
11
|
+
* and the split is by question: the drawer owns the controller, the dialogs and
|
|
12
|
+
* the chrome; this owns the one node the chrome draws. It exists as a component
|
|
13
|
+
* rather than inline JSX because the SAME node is used by both chromes — under
|
|
14
|
+
* `classic` it sits below the chip row, under `tabs` it is `PanelTabsColumn`'s
|
|
15
|
+
* body — and a second copy per mode is how one of them would lose the mounted
|
|
16
|
+
* session list (its folder expansion, scroll position and batch selection).
|
|
17
|
+
*
|
|
18
|
+
* Two rules, both inherited from the desktop dock (`LeftDockView`):
|
|
19
|
+
*
|
|
20
|
+
* - **The session list is hidden, never unmounted**, while a placed panel is on
|
|
21
|
+
* screen. A re-mount would re-seed every folder expansion from the server.
|
|
22
|
+
* - **A placed panel's body is drawn only while it is the view on screen.**
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
import { ClassicDrawer } from '@/client/components/mobile/mobile-session-sidebar/ClassicDrawer';
|
|
26
|
+
import { ModernSidebarView } from '@/client/components/layout/session-sidebar/modern';
|
|
27
|
+
import { MobileDockBody } from '@/client/components/mobile/mobile-session-sidebar/Dock';
|
|
28
|
+
import { BatchActionBar } from '@/client/components/common/batch-selection/BatchActionBar';
|
|
29
|
+
import type { SessionSidebarVariantProps } from '@/client/components/layout/session-sidebar/variant-props';
|
|
30
|
+
import type { ToastTone } from '@/shared/lib/ui/toast-duration';
|
|
31
|
+
import type { DrawerState } from '@/client/components/mobile/mobile-session-sidebar/use-drawer';
|
|
32
|
+
|
|
33
|
+
export interface DrawerBodyProps {
|
|
34
|
+
sidebarStyle: 'classic' | 'modern';
|
|
35
|
+
controller: DrawerState['controller'];
|
|
36
|
+
batch: DrawerState['batch'];
|
|
37
|
+
dock: DrawerState['dock'];
|
|
38
|
+
dockBody: DrawerState['dockBody'];
|
|
39
|
+
expandedFolders: DrawerState['expandedFolders'];
|
|
40
|
+
optionsRef: DrawerState['optionsRef'];
|
|
41
|
+
activeSessionId: number | string | null;
|
|
42
|
+
scheduledCount: number;
|
|
43
|
+
onToggleFolder: (folderId: number) => void;
|
|
44
|
+
onNewSession: () => void;
|
|
45
|
+
onNewWorkspace: () => void;
|
|
46
|
+
onScheduler: () => void;
|
|
47
|
+
onToggleArchived: () => void;
|
|
48
|
+
onNewSessionForFolder: (folderId: number) => void;
|
|
49
|
+
onNewWorktreeSession?: (folderId: number, worktreePath: string) => void;
|
|
50
|
+
onToast: (message: string, tone?: ToastTone) => void;
|
|
51
|
+
onArchiveSelected: () => void;
|
|
52
|
+
onCancelWait: (waitId: string) => void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DrawerBody({
|
|
56
|
+
sidebarStyle,
|
|
57
|
+
controller,
|
|
58
|
+
batch,
|
|
59
|
+
dock,
|
|
60
|
+
dockBody,
|
|
61
|
+
expandedFolders,
|
|
62
|
+
optionsRef,
|
|
63
|
+
activeSessionId,
|
|
64
|
+
scheduledCount,
|
|
65
|
+
onToggleFolder,
|
|
66
|
+
onNewSession,
|
|
67
|
+
onNewWorkspace,
|
|
68
|
+
onScheduler,
|
|
69
|
+
onToggleArchived,
|
|
70
|
+
onNewSessionForFolder,
|
|
71
|
+
onNewWorktreeSession,
|
|
72
|
+
onToast,
|
|
73
|
+
onArchiveSelected,
|
|
74
|
+
onCancelWait,
|
|
75
|
+
}: DrawerBodyProps) {
|
|
76
|
+
const {
|
|
77
|
+
initializing,
|
|
78
|
+
failed,
|
|
79
|
+
refreshNow,
|
|
80
|
+
isRefreshing,
|
|
81
|
+
searchQuery,
|
|
82
|
+
setSearchQuery,
|
|
83
|
+
showArchived,
|
|
84
|
+
setShowArchived,
|
|
85
|
+
optionsOpen,
|
|
86
|
+
setOptionsOpen,
|
|
87
|
+
sortOption,
|
|
88
|
+
handleSortChange,
|
|
89
|
+
harnessFilter,
|
|
90
|
+
setHarnessFilter,
|
|
91
|
+
harnessOptions,
|
|
92
|
+
processedFolders,
|
|
93
|
+
sessionStatus,
|
|
94
|
+
handleSelectSession,
|
|
95
|
+
} = controller;
|
|
96
|
+
const { selection, deleteRun, archiveRun, binding: batchBinding, scopeFolder, available, selected } = batch;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The same contract the desktop dispatcher hands its two styles, so the phone
|
|
100
|
+
* and the desktop cannot describe a folder, a row or an action differently.
|
|
101
|
+
*
|
|
102
|
+
* Built HERE rather than by the drawer: every field is derived from the
|
|
103
|
+
* controller and the props this component already has, and the drawer that
|
|
104
|
+
* only forwards them is a second place for the two to disagree.
|
|
105
|
+
*/
|
|
106
|
+
const modernProps: SessionSidebarVariantProps = {
|
|
107
|
+
// Fills the drawer between the header and the batch bar, the same way the
|
|
108
|
+
// desktop dispatcher sizes its chrome.
|
|
109
|
+
className: 'flex-1 min-h-0 w-full',
|
|
110
|
+
folders: processedFolders,
|
|
111
|
+
initializing,
|
|
112
|
+
failed,
|
|
113
|
+
activeSessionId,
|
|
114
|
+
sessionStatus,
|
|
115
|
+
searchQuery,
|
|
116
|
+
onSearchChange: setSearchQuery,
|
|
117
|
+
showArchived,
|
|
118
|
+
onToggleArchived: onToggleArchived,
|
|
119
|
+
sortOption,
|
|
120
|
+
optionsOpen,
|
|
121
|
+
onToggleOptions: () => setOptionsOpen(!optionsOpen),
|
|
122
|
+
onCloseOptions: () => setOptionsOpen(false),
|
|
123
|
+
onSortChange: handleSortChange,
|
|
124
|
+
harnessFilter,
|
|
125
|
+
onHarnessFilterChange: setHarnessFilter,
|
|
126
|
+
harnessOptions,
|
|
127
|
+
onRefresh: refreshNow,
|
|
128
|
+
refreshing: isRefreshing,
|
|
129
|
+
scheduledCount,
|
|
130
|
+
onNewSession,
|
|
131
|
+
onNewWorkspace,
|
|
132
|
+
onScheduler,
|
|
133
|
+
onSelectSession: handleSelectSession,
|
|
134
|
+
onNewSessionForFolder,
|
|
135
|
+
onNewWorktreeSession,
|
|
136
|
+
onToast,
|
|
137
|
+
onCancelWait,
|
|
138
|
+
batch: batchBinding,
|
|
139
|
+
onSelectWorkspaces: batch.toggleWorkspaceSelection,
|
|
140
|
+
onStartSessionSelection: (folderId) => selection.begin('session', folderId),
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
return (
|
|
144
|
+
<>
|
|
145
|
+
<div className={dock.showingSessions ? 'contents' : 'hidden'}>
|
|
146
|
+
{sidebarStyle === 'modern' ? (
|
|
147
|
+
<ModernSidebarView {...modernProps} touch />
|
|
148
|
+
) : (
|
|
149
|
+
<ClassicDrawer
|
|
150
|
+
folders={processedFolders}
|
|
151
|
+
initializing={initializing}
|
|
152
|
+
failed={failed}
|
|
153
|
+
activeSessionId={activeSessionId}
|
|
154
|
+
expandedFolders={expandedFolders}
|
|
155
|
+
sessionStatus={sessionStatus}
|
|
156
|
+
searchQuery={searchQuery}
|
|
157
|
+
sortOption={sortOption}
|
|
158
|
+
optionsOpen={optionsOpen}
|
|
159
|
+
showArchived={showArchived}
|
|
160
|
+
harnessFilter={harnessFilter}
|
|
161
|
+
onHarnessFilterChange={setHarnessFilter}
|
|
162
|
+
harnessOptions={harnessOptions}
|
|
163
|
+
optionsRef={optionsRef}
|
|
164
|
+
scheduledCount={scheduledCount}
|
|
165
|
+
refreshing={isRefreshing}
|
|
166
|
+
selecting={selection.mode !== null}
|
|
167
|
+
batch={batchBinding}
|
|
168
|
+
onNewSession={onNewSession}
|
|
169
|
+
onNewWorkspace={onNewWorkspace}
|
|
170
|
+
onScheduler={onScheduler}
|
|
171
|
+
onRefresh={refreshNow}
|
|
172
|
+
onToggleOptions={() => setOptionsOpen(!optionsOpen)}
|
|
173
|
+
onSortChange={handleSortChange}
|
|
174
|
+
onResetSort={() => handleSortChange('A-Z')}
|
|
175
|
+
onToggleArchived={onToggleArchived}
|
|
176
|
+
onHideArchived={() => setShowArchived(false)}
|
|
177
|
+
onSearchChange={setSearchQuery}
|
|
178
|
+
onClearSearch={() => setSearchQuery('')}
|
|
179
|
+
onSelectWorkspaces={batch.toggleWorkspaceSelection}
|
|
180
|
+
onSelectSession={handleSelectSession}
|
|
181
|
+
onNewSessionForFolder={onNewSessionForFolder}
|
|
182
|
+
onNewWorktreeSession={onNewWorktreeSession}
|
|
183
|
+
onToggleFolder={onToggleFolder}
|
|
184
|
+
onToast={onToast}
|
|
185
|
+
onStartSessionSelection={(folderId) => selection.begin('session', folderId)}
|
|
186
|
+
onCancelWait={onCancelWait}
|
|
187
|
+
/>
|
|
188
|
+
)}
|
|
189
|
+
|
|
190
|
+
{selection.mode && (
|
|
191
|
+
<BatchActionBar
|
|
192
|
+
drawer
|
|
193
|
+
mode={selection.mode}
|
|
194
|
+
count={selected.length}
|
|
195
|
+
total={available.length}
|
|
196
|
+
busy={deleteRun.isDeleting}
|
|
197
|
+
archiving={archiveRun.isArchiving}
|
|
198
|
+
scopeLabel={scopeFolder?.name}
|
|
199
|
+
onSelectAll={() => selection.selectAllOf(available)}
|
|
200
|
+
onUnselectAll={() => selection.unselectAllOf(available)}
|
|
201
|
+
onDelete={() => deleteRun.request(selected)}
|
|
202
|
+
onArchive={onArchiveSelected}
|
|
203
|
+
onCancel={selection.end}
|
|
204
|
+
/>
|
|
205
|
+
)}
|
|
206
|
+
</div>
|
|
207
|
+
{dock.showingSessions ? null : (
|
|
208
|
+
<MobileDockBody panelKey={dock.activeView} panel={dock.activePanel} body={dockBody} />
|
|
209
|
+
)}
|
|
210
|
+
</>
|
|
211
|
+
);
|
|
212
|
+
}
|
|
@@ -2,8 +2,8 @@ import { X } from 'lucide-preact';
|
|
|
2
2
|
import { BrandWordmark } from '@/client/components/common/brand-wordmark';
|
|
3
3
|
import { ServerControl } from '@/client/components/common/server-control';
|
|
4
4
|
import type { VisibilityMenuSurfaceProps } from '@/client/hooks/ui/visibility-menu-trigger';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { dragRegionProps } from '@/client/lib/desktop/titlebar';
|
|
6
|
+
import { phoneRowStyle } from '@/client/lib/ui/phone-row';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The session drawer's title bar.
|
|
@@ -42,17 +42,15 @@ export function MobileSessionHeader({
|
|
|
42
42
|
{...dragRegionProps()}
|
|
43
43
|
{...menuProps}
|
|
44
44
|
style={{
|
|
45
|
-
height: 'calc(3.5rem + env(safe-area-inset-top, 0px))',
|
|
46
45
|
// `px-3`, the toolbar's own inset: the wordmark above and the New
|
|
47
46
|
// Session button below share one left edge, which the header's old
|
|
48
47
|
// 14px did not — and the SHELL's own inset, because a desktop shell
|
|
49
48
|
// window narrowed past the layout breakpoint shows this drawer, whose
|
|
50
|
-
// wordmark would otherwise sit under macOS's traffic lights.
|
|
51
|
-
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
|
|
55
|
-
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
49
|
+
// wordmark would otherwise sit under macOS's traffic lights. The row's
|
|
50
|
+
// height, notch and window insets are the ONE phone-row fact
|
|
51
|
+
// (`lib/ui/phone-row`), so this drawer cannot drift from the chat
|
|
52
|
+
// header it is opened from.
|
|
53
|
+
...phoneRowStyle(),
|
|
56
54
|
}}
|
|
57
55
|
>
|
|
58
56
|
<div className="flex items-center space-x-2.5 titlebar-no-drag min-w-0">
|
|
@@ -39,7 +39,7 @@ export interface MobileSessionToolbarProps {
|
|
|
39
39
|
|
|
40
40
|
/** One phone control's box — `w-9.5 h-9.5` with the toolbar's own border/shadow. */
|
|
41
41
|
const CONTROL_CLASS =
|
|
42
|
-
'w-9.5 h-9.5 rounded-xl border
|
|
42
|
+
'w-9.5 h-9.5 rounded-xl border flex items-center justify-center transition-all flex-shrink-0 cursor-pointer shadow-xs';
|
|
43
43
|
const CONTROL_IDLE = 'border-ink/15 bg-paper hover:bg-ink/5 text-ink/80 hover:text-ink';
|
|
44
44
|
const CONTROL_ACTIVE = 'bg-ink/10 text-ink border-ink/30';
|
|
45
45
|
|
|
@@ -123,7 +123,7 @@ export function MobileSessionToolbar({
|
|
|
123
123
|
onClick={onNewSession}
|
|
124
124
|
aria-label="New Session"
|
|
125
125
|
title="New Session"
|
|
126
|
-
className="flex-1 min-w-0 h-9.5 flex items-center justify-center space-x-2 px-3.5 rounded-xl bg-ink text-canvas hover:bg-ink/90
|
|
126
|
+
className="flex-1 min-w-0 h-9.5 flex items-center justify-center space-x-2 px-3.5 rounded-xl bg-ink text-canvas hover:bg-ink/90 text-xs font-semibold transition-all shadow-xs"
|
|
127
127
|
>
|
|
128
128
|
<Plus size={15} strokeWidth={2.4} className="shrink-0" />
|
|
129
129
|
<span className="min-w-0 truncate">New Session</span>
|