@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
|
@@ -14,8 +14,8 @@ import { VisibilityMenu } from '@/client/components/layout/VisibilityMenu';
|
|
|
14
14
|
import { NAVBAR_CONTROL, navbarControlItems, useNavbarControls } from '@/client/hooks/ui/navbar-controls';
|
|
15
15
|
import { useVisibilityMenuTrigger } from '@/client/hooks/ui/visibility-menu-trigger';
|
|
16
16
|
import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { dragRegionProps } from '@/client/lib/desktop/titlebar';
|
|
18
|
+
import { phoneRowStyle } from '@/client/lib/ui/phone-row';
|
|
19
19
|
import { CONTROL_CLUSTER_GAP } from '@/client/lib/ui/control-plate';
|
|
20
20
|
|
|
21
21
|
interface MobileHeaderProps {
|
|
@@ -105,19 +105,7 @@ export function MobileHeader({
|
|
|
105
105
|
className={`flex-shrink-0 bg-canvas border-b border-ink/10 flex items-center justify-between ${CONTROL_CLUSTER_GAP} px-3 z-20 titlebar-drag-region select-none`}
|
|
106
106
|
{...dragRegionProps()}
|
|
107
107
|
{...visibility.surfaceProps}
|
|
108
|
-
style={
|
|
109
|
-
height: 'calc(3.5rem + env(safe-area-inset-top, 0px))',
|
|
110
|
-
// The shell's own inset, not only the PWA's. `titlebarPaddingLeft` reads
|
|
111
|
-
// `env(titlebar-area-x)`, which a native WKWebView never defines — so on
|
|
112
|
-
// macOS this header's hamburger and wordmark were drawn UNDER the
|
|
113
|
-
// traffic lights, in the 76px the shell reserves for them. `titlebarInsetLeft`
|
|
114
|
-
// is what the desktop navbar and the sidebar header already use; a
|
|
115
|
-
// desktop shell window narrowed past the layout breakpoint lands on this
|
|
116
|
-
// header, which is why it needs the same treatment.
|
|
117
|
-
paddingLeft: titlebarInsetLeft(titlebarPaddingLeft('0.75rem', true)),
|
|
118
|
-
paddingRight: titlebarPaddingRight('0.75rem', true),
|
|
119
|
-
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
120
|
-
}}
|
|
108
|
+
style={phoneRowStyle()}
|
|
121
109
|
>
|
|
122
110
|
{/* Left: hamburger, app title & session dropdown.
|
|
123
111
|
`flex-1 min-w-0` is what makes the title the ONLY part that gives up
|
|
@@ -126,14 +114,14 @@ export function MobileHeader({
|
|
|
126
114
|
inside it. Without `flex-1` the row kept its max-content width and
|
|
127
115
|
the picker's 150px button spilled over the reload control.
|
|
128
116
|
|
|
129
|
-
The wordmark
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
59px at 360
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
The wordmark is drawn at EVERY width, and the width it needs is paid
|
|
118
|
+
for by the control cluster rather than by the title: reload and sign
|
|
119
|
+
out live in the `⋯` menu (`HeaderControls`), which is what keeps this
|
|
120
|
+
row to the panel control plus that menu. Measured with a password set
|
|
121
|
+
the cluster is 140px wide, leaving the title `vw − 285px` — 89px at
|
|
122
|
+
390, 59px at 360. The earlier rule dropped the wordmark below 420px
|
|
123
|
+
and kept reload/lock in the row instead; the brand was drawn on every
|
|
124
|
+
other surface, so a phone read as a different app. */}
|
|
137
125
|
<div className="flex items-center space-x-2 flex-1 min-w-0 titlebar-no-drag">
|
|
138
126
|
<button
|
|
139
127
|
type="button"
|
|
@@ -200,7 +188,7 @@ export function MobileHeader({
|
|
|
200
188
|
<button
|
|
201
189
|
type="button"
|
|
202
190
|
onClick={() => { setPickerAnchor(null); onNewSession(); }}
|
|
203
|
-
className="w-full text-left px-3 py-2 rounded-lg bg-ink text-canvas flex items-center space-x-2 font-medium mb-1.5
|
|
191
|
+
className="w-full text-left px-3 py-2 rounded-lg bg-ink text-canvas flex items-center space-x-2 font-medium mb-1.5"
|
|
204
192
|
>
|
|
205
193
|
<Plus size={14} />
|
|
206
194
|
<span>Start New Session</span>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* One icon control in the phone editor's title bar.
|
|
8
|
+
*
|
|
9
|
+
* The bar drew its own buttons, each with `p-1.5` and no plate, so every control
|
|
10
|
+
* measured **27x27** — under the 36px phone-chrome box the rest of the app uses,
|
|
11
|
+
* and 17px under the 44px touch floor — because nine of them had to share a
|
|
12
|
+
* 390px row. It also left five of the nine with no accessible name (a `title`
|
|
13
|
+
* only), which makes them unreachable to a screen reader.
|
|
14
|
+
*
|
|
15
|
+
* So the box, the glyph and the name are one component, and the bar folds what
|
|
16
|
+
* does not fit into an overflow menu rather than shrinking it (the same answer
|
|
17
|
+
* `header-controls/MoreMenu` and `ToolbarOverflowMenu` reached): a control that
|
|
18
|
+
* is a thumb-width wide is worth more than a control that is always visible and
|
|
19
|
+
* never hittable.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import type { ReactNode } from 'preact/compat';
|
|
23
|
+
import { CONTROL_BOX, CONTROL_GLYPH_PX } from '@/client/lib/ui/control-plate';
|
|
24
|
+
|
|
25
|
+
interface EditorActionProps {
|
|
26
|
+
/** Accessible name AND tooltip — one string, so they cannot disagree. */
|
|
27
|
+
label: string;
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
/** Draws the pressed state (an open find bar, an active preview). */
|
|
30
|
+
active?: boolean;
|
|
31
|
+
/** A destructive/urgent action, filled in the error colour. */
|
|
32
|
+
danger?: boolean;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function EditorAction({ label, onClick, active = false, danger = false, children }: EditorActionProps) {
|
|
37
|
+
const tone = danger
|
|
38
|
+
? 'bg-error text-canvas hover:bg-error/90'
|
|
39
|
+
: active
|
|
40
|
+
? 'bg-ink text-canvas'
|
|
41
|
+
: 'text-ink/70 hover:bg-ink/10 hover:text-ink';
|
|
42
|
+
return (
|
|
43
|
+
<button
|
|
44
|
+
type="button"
|
|
45
|
+
onClick={onClick}
|
|
46
|
+
title={label}
|
|
47
|
+
aria-label={label}
|
|
48
|
+
aria-pressed={active || undefined}
|
|
49
|
+
className={`${CONTROL_BOX.mobile} flex-none cursor-pointer rounded-lg transition-colors ${tone}`}
|
|
50
|
+
>
|
|
51
|
+
{children}
|
|
52
|
+
</button>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The glyph size every control in this bar draws. */
|
|
57
|
+
export const EDITOR_ACTION_GLYPH_PX = CONTROL_GLYPH_PX.mobile;
|
|
@@ -4,40 +4,31 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* The phone right drawer's
|
|
7
|
+
* The phone right drawer's `classic` chrome, and its view body.
|
|
8
8
|
*
|
|
9
9
|
* Extracted from `RightSidebar` when that file crossed the 350-line ceiling.
|
|
10
|
-
* The split is by QUESTION
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* The split is by QUESTION: the drawer owns state (which view, which tabs,
|
|
11
|
+
* whether the terminal wants the keyboard) and this owns the shape that state
|
|
12
|
+
* is drawn in.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* - `TabsChrome` is the `tabs` chrome: the strip alone, which inherits that same
|
|
18
|
-
* window contract (`data-drag-region`, the shell's traffic-light inset, the
|
|
19
|
-
* safe-area top) because there is no header left to carry it, and whose
|
|
20
|
-
* trailing action is the drawer's close control.
|
|
14
|
+
* `DrawerHeader` is the `classic` chrome: a real header row holding the whole
|
|
15
|
+
* catalog as chips. It must be tall enough for the 44px touch floor, and it is
|
|
16
|
+
* the window's title bar while this drawer is the mounted screen.
|
|
21
17
|
*
|
|
22
|
-
* The `
|
|
23
|
-
*
|
|
24
|
-
*
|
|
18
|
+
* The `tabs` chrome is NOT here: under that style the strip IS the drawer's
|
|
19
|
+
* title bar, and both drawers share one statement of what it reserves
|
|
20
|
+
* (`mobile/drawer-strip.tsx`).
|
|
25
21
|
*/
|
|
26
22
|
|
|
27
23
|
import { Suspense } from 'preact/compat';
|
|
28
|
-
import
|
|
29
|
-
import { PanelRight, X } from 'lucide-preact';
|
|
24
|
+
import { X } from 'lucide-preact';
|
|
30
25
|
import { PanelHostProvider } from '@kabmo-labs/kabmo-ui';
|
|
31
26
|
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
32
27
|
import type { PanelBodyProps } from '@/client/components/workspace/panels/builtin';
|
|
33
28
|
import { PanelChips } from '@/client/components/mobile/panel-chips';
|
|
34
|
-
import { dragRegionProps
|
|
29
|
+
import { dragRegionProps } from '@/client/lib/desktop/titlebar';
|
|
30
|
+
import { phoneRowStyle } from '@/client/lib/ui/phone-row';
|
|
35
31
|
import type { VisibilityMenuSurfaceProps } from '@/client/hooks/ui/visibility-menu-trigger';
|
|
36
|
-
import { titlebarPaddingLeft, titlebarPaddingRight } from '@/shared/lib/ui/titlebar';
|
|
37
|
-
import { CONTROL_BOX, CONTROL_GLYPH_PX } from '@/client/lib/ui/control-plate';
|
|
38
|
-
|
|
39
|
-
/** The height a `classic` header needs to hold a 44px chip and its padding. */
|
|
40
|
-
const HEADER_HEIGHT = 'calc(3.5rem + env(safe-area-inset-top, 0px))';
|
|
41
32
|
|
|
42
33
|
export function DrawerHeader({
|
|
43
34
|
catalog,
|
|
@@ -59,12 +50,7 @@ export function DrawerHeader({
|
|
|
59
50
|
className="border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0 bg-canvas titlebar-drag-region select-none"
|
|
60
51
|
{...dragRegionProps()}
|
|
61
52
|
{...menuProps}
|
|
62
|
-
style={
|
|
63
|
-
height: HEADER_HEIGHT,
|
|
64
|
-
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
65
|
-
paddingLeft: titlebarInsetLeft(titlebarPaddingLeft('0.75rem', true)),
|
|
66
|
-
paddingRight: titlebarPaddingRight('0.75rem', true),
|
|
67
|
-
}}
|
|
53
|
+
style={phoneRowStyle()}
|
|
68
54
|
>
|
|
69
55
|
{/* The header is a drag region, so its controls must say so —
|
|
70
56
|
`app-region` inherits, and a control inside a drag region is a drag
|
|
@@ -91,40 +77,6 @@ export function DrawerHeader({
|
|
|
91
77
|
);
|
|
92
78
|
}
|
|
93
79
|
|
|
94
|
-
/**
|
|
95
|
-
* The `tabs` chrome's strip props: the window contract the removed header
|
|
96
|
-
* carried, and nothing else.
|
|
97
|
-
*/
|
|
98
|
-
export function drawerStripProps(menuProps: VisibilityMenuSurfaceProps): {
|
|
99
|
-
dragRegion: boolean;
|
|
100
|
-
layout: 'mobile';
|
|
101
|
-
rootProps: Record<string, unknown>;
|
|
102
|
-
style: CSSProperties;
|
|
103
|
-
} {
|
|
104
|
-
return {
|
|
105
|
-
dragRegion: true,
|
|
106
|
-
// The PHONE density, stated rather than inferred from `dragRegion`: this
|
|
107
|
-
// drawer is the phone layout's own screen, and its row must match the
|
|
108
|
-
// phone header above the chat (56px, 36px controls) — measured before this,
|
|
109
|
-
// the strip drew 40px/28px against a 56px/36px header and read as a broken
|
|
110
|
-
// edge.
|
|
111
|
-
layout: 'mobile',
|
|
112
|
-
// The ATTRIBUTE the shells hit-test, plus the drawer's long-press menu
|
|
113
|
-
// handlers: this row is what the header used to be, so it inherits both
|
|
114
|
-
// jobs. `dragRegionProps` is empty in a browser tab, where nothing may be
|
|
115
|
-
// dragged.
|
|
116
|
-
rootProps: { ...dragRegionProps(), ...menuProps } as unknown as Record<string, unknown>,
|
|
117
|
-
// The row's height and the notch live in the strip's own classes
|
|
118
|
-
// (`TabStrip`): a `padding-top: env()` written here is dropped by
|
|
119
|
-
// happy-dom, and the two values belong together with the height they
|
|
120
|
-
// modify. Only the HORIZONTAL insets are this caller's business.
|
|
121
|
-
style: {
|
|
122
|
-
paddingLeft: titlebarInsetLeft(titlebarPaddingLeft('0.75rem', true)),
|
|
123
|
-
paddingRight: titlebarPaddingRight('0.75rem', true),
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
80
|
/**
|
|
129
81
|
* The active view's body, and the "nothing selected" sentence.
|
|
130
82
|
*
|
|
@@ -152,28 +104,3 @@ export function DrawerBody({ panel, body }: { panel?: ResolvedPanel; body: Panel
|
|
|
152
104
|
</Suspense>
|
|
153
105
|
);
|
|
154
106
|
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* The drawer's close control, for the strip's trailing edge.
|
|
158
|
-
*
|
|
159
|
-
* `PanelRight`, NOT `PanelRightClose`: the latter draws a chevron inside the
|
|
160
|
-
* panel (`m8 9 3 3-3 3`), and the arrow reads as "collapse this column" — a
|
|
161
|
-
* second meaning beside a strip whose chips each carry their own `X`. The plain
|
|
162
|
-
* panel mark says what the control acts on and nothing more.
|
|
163
|
-
*/
|
|
164
|
-
export function DrawerCloseAction({ onClose }: { onClose: () => void }) {
|
|
165
|
-
return (
|
|
166
|
-
<button
|
|
167
|
-
type="button"
|
|
168
|
-
onClick={onClose}
|
|
169
|
-
/* The SAME box and glyph as every other control in the phone header row:
|
|
170
|
-
a 28px box here sat 4px left of the header's 36px one, which is the
|
|
171
|
-
misalignment a reader sees as a strip that does not line up. */
|
|
172
|
-
className={`${CONTROL_BOX.mobile} flex-none cursor-pointer rounded-lg text-ink/60 transition-colors hover:bg-ink/5 hover:text-ink titlebar-no-drag`}
|
|
173
|
-
title="Tutup panel kanan"
|
|
174
|
-
aria-label="Close right sidebar"
|
|
175
|
-
>
|
|
176
|
-
<PanelRight size={CONTROL_GLYPH_PX.mobile} strokeWidth={1.8} />
|
|
177
|
-
</button>
|
|
178
|
-
);
|
|
179
|
-
}
|
|
@@ -3,7 +3,7 @@ import { FileIcon } from '@/client/components/common/file-icon';
|
|
|
3
3
|
import { DiffPanel } from '@/client/components/workspace/diff-panel';
|
|
4
4
|
import { getGitStatusInfo } from '@/shared/lib/fs/git-status';
|
|
5
5
|
import { diffTabId, journalDiffTabId } from '@/shared/lib/workspace/file-tab-id';
|
|
6
|
-
import {
|
|
6
|
+
import { phoneRowStyle } from '@/client/lib/ui/phone-row';
|
|
7
7
|
import type { JournalDiffRef } from '@/shared/types/fs';
|
|
8
8
|
|
|
9
9
|
interface MobileFullDiffProps {
|
|
@@ -38,12 +38,7 @@ export function MobileFullDiff({ diff, onClose, onFileSaved }: MobileFullDiffPro
|
|
|
38
38
|
<div className="fixed inset-x-0 top-0 h-dvh z-[60] bg-paper flex flex-col">
|
|
39
39
|
<header
|
|
40
40
|
className="bg-canvas border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0"
|
|
41
|
-
style={
|
|
42
|
-
height: 'calc(3rem + env(safe-area-inset-top, 0px))',
|
|
43
|
-
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
44
|
-
paddingLeft: titlebarPaddingLeft('0.75rem', true),
|
|
45
|
-
paddingRight: titlebarPaddingRight('0.75rem', true),
|
|
46
|
-
}}
|
|
41
|
+
style={phoneRowStyle()}
|
|
47
42
|
>
|
|
48
43
|
<div className="flex items-center space-x-2 min-w-0 pr-2">
|
|
49
44
|
<button
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The phone editor's title bar draws CONTROLS, not glyphs squeezed into a row.
|
|
8
|
+
*
|
|
9
|
+
* It used to pack nine actions into 390px at `p-1.5` each: measured in Chromium
|
|
10
|
+
* at a 390x844 viewport, every control was **27x27** — 9px under the 36px
|
|
11
|
+
* phone-chrome plate the rest of the app uses and 17px under the 44px touch
|
|
12
|
+
* floor — and five of the nine carried a `title` with no accessible name.
|
|
13
|
+
*
|
|
14
|
+
* These cases pin the structure that replaced it: the plate size, the names, and
|
|
15
|
+
* the fold (word wrap and zoom always; copy and download only while the row can
|
|
16
|
+
* hold them). The pixel sizes are the stylesheet's, so a DOM test pins the
|
|
17
|
+
* CONTRACT — the same note `TabStrip.test.tsx` records.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
|
|
21
|
+
import { Window } from 'happy-dom';
|
|
22
|
+
import { h, render } from 'preact';
|
|
23
|
+
import { act } from 'preact/test-utils';
|
|
24
|
+
import { EditorHeader } from '@/client/components/mobile/mobile-right-sidebar/Header';
|
|
25
|
+
import { CONTROL_BOX } from '@/client/lib/ui/control-plate';
|
|
26
|
+
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
27
|
+
|
|
28
|
+
let container: HTMLElement;
|
|
29
|
+
|
|
30
|
+
beforeAll(() => {
|
|
31
|
+
installDomGlobals(new Window({ url: 'http://localhost' }));
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
afterEach(() => {
|
|
35
|
+
if (container) render(null, container);
|
|
36
|
+
container?.remove();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
afterAll(() => {
|
|
40
|
+
restoreDomGlobals();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Mount at a chosen viewport width.
|
|
45
|
+
*
|
|
46
|
+
* The fold is a WIDTH decision, so a case that does not say where it is mounted
|
|
47
|
+
* is asserting a layout nobody chose. happy-dom resolves `matchMedia` against
|
|
48
|
+
* `innerWidth`, which is the same signal a real resize raises — the pattern
|
|
49
|
+
* `header-controls/index.test.tsx` established.
|
|
50
|
+
*/
|
|
51
|
+
function mount(
|
|
52
|
+
overrides: Partial<Parameters<typeof EditorHeader>[0]> = {},
|
|
53
|
+
width = 390,
|
|
54
|
+
): HTMLElement {
|
|
55
|
+
Object.defineProperty(window, 'innerWidth', { value: width, configurable: true, writable: true });
|
|
56
|
+
container = document.createElement('div');
|
|
57
|
+
document.body.append(container);
|
|
58
|
+
act(() =>
|
|
59
|
+
render(
|
|
60
|
+
h(EditorHeader, {
|
|
61
|
+
fileName: 'AGENTS.md',
|
|
62
|
+
hasPreview: true,
|
|
63
|
+
isPreview: true,
|
|
64
|
+
hasReview: true,
|
|
65
|
+
isReviewing: false,
|
|
66
|
+
onToggleReview: () => {},
|
|
67
|
+
wordWrap: true,
|
|
68
|
+
copied: false,
|
|
69
|
+
onClose: () => {},
|
|
70
|
+
onTogglePreview: () => {},
|
|
71
|
+
onToggleFind: () => {},
|
|
72
|
+
findOpen: false,
|
|
73
|
+
onToggleWrap: () => {},
|
|
74
|
+
onZoomOut: () => {},
|
|
75
|
+
onZoomIn: () => {},
|
|
76
|
+
onCopy: () => {},
|
|
77
|
+
onDownload: () => {},
|
|
78
|
+
...overrides,
|
|
79
|
+
}),
|
|
80
|
+
container,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
return container;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const labels = (root: HTMLElement) =>
|
|
87
|
+
[...root.querySelectorAll('button')].map((button) => button.getAttribute('aria-label'));
|
|
88
|
+
|
|
89
|
+
describe('the phone editor title bar', () => {
|
|
90
|
+
test('every control carries an accessible name, not just a title', () => {
|
|
91
|
+
const root = mount();
|
|
92
|
+
for (const button of root.querySelectorAll('button')) {
|
|
93
|
+
expect(button.getAttribute('aria-label')).toBeTruthy();
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test('every control uses the shared phone control plate', () => {
|
|
98
|
+
const root = mount();
|
|
99
|
+
for (const button of root.querySelectorAll('button')) {
|
|
100
|
+
expect(button.className).toContain(CONTROL_BOX.mobile);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
test('the one-shot exports fold into the overflow menu on a narrow row', () => {
|
|
105
|
+
const root = mount();
|
|
106
|
+
const names = labels(root);
|
|
107
|
+
// The mid-read controls stay in the row.
|
|
108
|
+
expect(names).toContain('Find in file');
|
|
109
|
+
expect(names).toContain('View source');
|
|
110
|
+
expect(names).toContain('Review this document');
|
|
111
|
+
// Copy and download are behind `⋯`, which is one standing control.
|
|
112
|
+
expect(names).not.toContain('Copy content');
|
|
113
|
+
expect(names).not.toContain('Download file');
|
|
114
|
+
expect(names).toContain('More file actions');
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
test('the overflow menu names the folded actions in words', () => {
|
|
118
|
+
const root = mount();
|
|
119
|
+
const trigger = root.querySelector('button[aria-label="More file actions"]') as HTMLElement;
|
|
120
|
+
act(() => trigger.click());
|
|
121
|
+
const menu = root.querySelector('[role="menu"][aria-label="File actions"]') as HTMLElement;
|
|
122
|
+
expect(menu).not.toBeNull();
|
|
123
|
+
const rows = [...menu.querySelectorAll('[role="menuitem"]')].map((row) => row.textContent ?? '');
|
|
124
|
+
expect(rows.some((row) => row.includes('Word wrap'))).toBe(true);
|
|
125
|
+
expect(rows.some((row) => row.includes('Copy content'))).toBe(true);
|
|
126
|
+
expect(rows.some((row) => row.includes('Download file'))).toBe(true);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
test('a folded action runs when its row is pressed', () => {
|
|
130
|
+
let copied = 0;
|
|
131
|
+
const root = mount({ onCopy: () => { copied += 1; } });
|
|
132
|
+
act(() => (root.querySelector('button[aria-label="More file actions"]') as HTMLElement).click());
|
|
133
|
+
const row = [...root.querySelectorAll('[role="menuitem"]')].find((item) =>
|
|
134
|
+
(item.textContent ?? '').includes('Copy content'),
|
|
135
|
+
) as HTMLElement;
|
|
136
|
+
expect(row).toBeDefined();
|
|
137
|
+
act(() => row.click());
|
|
138
|
+
expect(copied).toBe(1);
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
test('a byte viewer folds no text-only action into the menu', () => {
|
|
142
|
+
const root = mount({ byteViewer: true, hasPreview: false, hasReview: false });
|
|
143
|
+
// No find, no wrap, no zoom — but the exports still need a home.
|
|
144
|
+
const names = labels(root);
|
|
145
|
+
expect(names).not.toContain('Find in file');
|
|
146
|
+
act(() => (root.querySelector('button[aria-label="More file actions"]') as HTMLElement).click());
|
|
147
|
+
const rows = [...root.querySelectorAll('[role="menuitem"]')].map((row) => row.textContent ?? '');
|
|
148
|
+
expect(rows.some((row) => row.includes('Word wrap'))).toBe(false);
|
|
149
|
+
expect(rows.some((row) => row.includes('Increase font size'))).toBe(false);
|
|
150
|
+
expect(rows.some((row) => row.includes('Download file'))).toBe(true);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
test('a missing file offers the recreate-and-save control, named', () => {
|
|
154
|
+
const root = mount({ missing: true, onSave: () => {} });
|
|
155
|
+
expect(labels(root)).toContain('Save and recreate the file');
|
|
156
|
+
});
|
|
157
|
+
});
|