@kabmo-labs/kabmo 0.45.1 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +412 -412
- package/dist/client/static/js/{CsvGrid-eqmctwyq.js → CsvGrid-qdkmv8bj.js} +2 -2
- package/dist/client/static/js/{DocxView-rjrshmzf.js → DocxView-k84ns803.js} +3 -3
- package/dist/client/static/js/{DrawioView-za569srw.js → DrawioView-r1n717f7.js} +2 -2
- package/dist/client/static/js/ImageView-jkrdrq8v.js +1 -0
- package/dist/client/static/js/LayoutWrapper-sh634350.js +2 -0
- package/dist/client/static/js/Modal-xe6h99jn.js +59 -0
- package/dist/client/static/js/{PdfView-2m78d4jz.js → PdfView-ffg4mccg.js} +1 -1
- package/dist/client/static/js/{SessionsView-54awmse0.js → SessionsView-cdcbsee9.js} +1 -1
- package/dist/client/static/js/{SheetView-xfvjdh24.js → SheetView-89sscpz6.js} +19 -19
- package/dist/client/static/js/{SvgPreview-yfjrfb40.js → SvgPreview-68c0ccbv.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-tmsa3b36.js → abnfDiagram-O67JEVCF-h3a5s259.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-pvb4d65d.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-a5effrpz.js → architectureDiagram-NJMV4G6O-983p0jgn.js} +3 -3
- package/dist/client/static/js/{astro-56b0as3q.js → astro-hyj5wege.js} +1 -1
- package/dist/client/static/js/bash-8d8z8zrg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-3q2kf22c.js → blockDiagram-BEXU5L5S-16pse5mh.js} +5 -5
- package/dist/client/static/js/c-acmn1zc9.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-mkw3jvf6.js → c4Diagram-YGBWAQC7-mvnb00zt.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fw9bs1za.js → classDiagram-v2-NBCMYWYE-kmpd91xb.js} +7 -7
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-eqjrpps4.js → cose-bilkent-JH36ORCC-3ek5r5se.js} +1 -1
- package/dist/client/static/js/cpp-620mvjkk.js +1 -0
- package/dist/client/static/js/css-bt76kxbq.js +1 -0
- package/dist/client/static/js/css-drfs4n12.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-gmx4vean.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-4w61hq3e.js → cynefinDiagram-VND7K2PF-jkbh84zn.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-t52jdfr1.js → dagre-6A5THRUB-4fdc0sgn.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-448hyxaz.js → diagram-22UHCM2B-hbk61nq9.js} +18 -18
- package/dist/client/static/js/{diagram-3UASUU5V-350k213a.js → diagram-3UASUU5V-hfpbr9qh.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-9davjeyb.js → diagram-ATOU4E4O-fn0nt71a.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-034wwghk.js → diagram-CDSNMT55-ssswxjeb.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-kzzd4ecm.js → diagram-MLGK6HIB-whnzxv6f.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-rsky4e3s.js → diagram-MPIPVDR6-hk1chzxk.js} +2 -2
- package/dist/client/static/js/{dockerfile-68b0e6b6.js → dockerfile-zmsj8r4g.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-7bm1e394.js → ebnfDiagram-ZINNZB2B-q1vkg5mr.js} +1 -1
- package/dist/client/static/js/{elixir-12pgbgtq.js → elixir-80wq7gak.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-4xjp4rgh.js → elk-276RUBZZ-kt98vg8j.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-v52qmcrv.js → erDiagram-OPXOYQCR-ey3avsn9.js} +9 -9
- package/dist/client/static/js/{erlang-811btv6p.js → erlang-814e8qy5.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-vrnheyh7.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7gvtpn3d.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1r1fn18p.js → ganttDiagram-FUAMR5RP-a9k1at43.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-n6wnc8st.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-zt5cwg83.js → gitGraphDiagram-X574FWY7-gnekjfym.js} +13 -13
- package/dist/client/static/js/graphql-j1a6zp7m.js +1 -0
- package/dist/client/static/js/html-m0megrvb.js +1 -0
- package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
- package/dist/client/static/js/{index-0gmw2bt3.js → index-1ax52p0q.js} +2 -2
- package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
- package/dist/client/static/js/index-2a6qp9y6.js +2 -0
- package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
- package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
- package/dist/client/static/js/{index-bcpyxt97.js → index-3x7h2eqj.js} +2 -2
- package/dist/client/static/js/{index-q36gq3yz.js → index-4cag7w6k.js} +198 -198
- package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
- package/dist/client/static/js/{index-m9s7r4z9.js → index-5ka2tyf9.js} +3 -3
- package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
- package/dist/client/static/js/{index-frqq7yen.js → index-60v30k5h.js} +64 -64
- package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
- package/dist/client/static/js/{index-xgv501v0.js → index-65afr75v.js} +2 -2
- package/dist/client/static/js/index-83rkg916.js +2 -0
- package/dist/client/static/js/{index-ga6492qc.js → index-84fyq5a6.js} +1 -1
- package/dist/client/static/js/{index-2tmnqqzt.js → index-8g7q8mz4.js} +3 -3
- package/dist/client/static/js/{index-mnh8nptt.js → index-9vv7wr1n.js} +2 -2
- package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
- package/dist/client/static/js/{index-j50y0z44.js → index-amsa0tfs.js} +1 -1
- package/dist/client/static/js/index-atq9q1s7.js +1 -0
- package/dist/client/static/js/{index-8ps5gdwz.js → index-b2e5pwx7.js} +5 -5
- package/dist/client/static/js/{index-cza9mnxx.js → index-b5dfvget.js} +6 -6
- package/dist/client/static/js/{index-zwx3vbf0.js → index-bsr7wmj2.js} +1 -1
- package/dist/client/static/js/{index-ex3w7t7s.js → index-c9e417cs.js} +2 -2
- package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
- package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
- package/dist/client/static/js/index-dpy3ewrn.css +1 -0
- package/dist/client/static/js/index-dt6q3rws.js +12 -0
- package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
- package/dist/client/static/js/{index-127se1a3.js → index-e9cxje00.js} +19 -19
- package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
- package/dist/client/static/js/{index-c7vbr57m.js → index-fzngzhww.js} +2 -2
- package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
- package/dist/client/static/js/{index-x0kgnkv3.js → index-hgzntg2j.js} +2 -2
- package/dist/client/static/js/{index-jaqjvk22.js → index-hkz2mz34.js} +2 -2
- package/dist/client/static/js/{index-gzp4j2h5.js → index-hnb66d3s.js} +2 -2
- package/dist/client/static/js/{index-9zwtpazh.js → index-kb14dhrx.js} +2 -2
- package/dist/client/static/js/{index-snjtkfkq.js → index-kbhrvep8.js} +6 -6
- package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
- package/dist/client/static/js/index-m4k054wz.js +4 -0
- package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
- package/dist/client/static/js/index-pavvxrsz.js +1 -0
- package/dist/client/static/js/index-q9ytjey8.js +1 -0
- package/dist/client/static/js/{index-8dtp7mt0.js → index-qf3y3ahx.js} +2 -2
- package/dist/client/static/js/{index-as1wptfa.js → index-qfxn7yh5.js} +2 -2
- package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
- package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
- package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
- package/dist/client/static/js/index-vkqb4dnt.js +1 -0
- package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
- package/dist/client/static/js/{index-528x5x8c.js → index-wrcdc9vz.js} +1 -1
- package/dist/client/static/js/{index-2zntn964.js → index-x9r7zfp4.js} +2 -2
- package/dist/client/static/js/{index-mhnwyra0.js → index-xq5f3nxa.js} +2 -2
- package/dist/client/static/js/index-xwjbq003.js +2 -0
- package/dist/client/static/js/{index-2gbfke1a.js → index-yf93db65.js} +1 -1
- package/dist/client/static/js/{index-tkfxnnr5.js → index-ykm7a3cp.js} +2 -2
- package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
- package/dist/client/static/js/{index-84vmdg3k.js → index-z25ss7xj.js} +1 -1
- package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-yd4zwrtv.js → infoDiagram-VRGFBTTK-r1p25738.js} +2 -2
- package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-7sjp09d4.js → ishikawaDiagram-OU5B5YK6-afgrqdrt.js} +3 -3
- package/dist/client/static/js/java-jj41mty3.js +1 -0
- package/dist/client/static/js/javascript-n9w9p97f.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-qh9jk7qk.js → journeyDiagram-ZHPQQLJL-hepa4wk7.js} +5 -5
- package/dist/client/static/js/json-rnh2h17x.js +1 -0
- package/dist/client/static/js/jsx-4gecrt29.js +1 -0
- package/dist/client/static/js/{julia-mgsev9df.js → julia-yv2j8qd0.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-cjc8k0jk.js → kanban-definition-PNTS6WVX-jysft8ya.js} +5 -5
- package/dist/client/static/js/lua-zszaw2f7.js +1 -0
- package/dist/client/static/js/markdown-nm6gw4v4.js +1 -0
- package/dist/client/static/js/{mermaid.core-vw0b7r0k.js → mermaid.core-0m90b0s8.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jyhtpt1z.js → mindmap-definition-NLK3R4M7-x2rrzpvr.js} +8 -8
- package/dist/client/static/js/one-dark-pro-09d8p5vy.js +1 -0
- package/dist/client/static/js/one-light-g3ednt6p.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-zm1r82x5.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-80ygdd29.js → pegDiagram-GJSIUBJH-z7vb7f1z.js} +1 -1
- package/dist/client/static/js/{perl-6n93vjsa.js → perl-917pjq5a.js} +1 -1
- package/dist/client/static/js/{php-w23nmbtc.js → php-hwz75qzt.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-sqa7321j.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6vgh7ntn.js → pieDiagram-5QR66LMP-jqv6v4e6.js} +3 -3
- package/dist/client/static/js/properties-rkptax7r.js +1 -0
- package/dist/client/static/js/python-qf1se1mj.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-k5byajmm.js → quadrantDiagram-O4NWA36T-w2h8yxrv.js} +6 -6
- package/dist/client/static/js/r-ms0cygq2.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-z3z82syp.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-z6swcqq2.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-33km6py4.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zbf1xmq.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-wte1xzzy.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-qffrkk7g.js → railroadDiagram-XR7U4H2S-nd09yac3.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-r80w7tdp.js → requirementDiagram-PLB6GJNP-t61zxh5v.js} +10 -10
- package/dist/client/static/js/{ruby-ag3b3t9t.js → ruby-er7ayhte.js} +1 -1
- package/dist/client/static/js/{rust-a9jcfy2e.js → rust-avnkhh0p.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-g9qdy74b.js → sankeyDiagram-IPEJSGJF-2f7h2cmw.js} +4 -4
- package/dist/client/static/js/{sass-x0eez0kp.js → sass-n47tt136.js} +1 -1
- package/dist/client/static/js/{scss-qycakpjn.js → scss-kvev49ga.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nywg1eq3.js → sequenceDiagram-PO4LG4MO-kfb5d7zd.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-m5pks027.js → sizeCapture-INFHLROL-amfg19se.js} +1 -1
- package/dist/client/static/js/sql-hd42h8wx.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-xzzv780w.js → stateDiagram-v2-GCMORJYK-k5hx7btx.js} +3 -3
- package/dist/client/static/js/{svelte-tg19by0f.js → svelte-2pmz35vx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-n4q5ad13.js → swimlanes-2SLR337P-wv3rp8kk.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-6y8zdbm4.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-j9pde7sa.js → timeline-definition-EJHVYXUP-0re95wtn.js} +6 -6
- package/dist/client/static/js/treeView-Q6P3EWNA-pvgx6n22.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-3n9zm628.js +1 -0
- package/dist/client/static/js/tsx-gx7td06z.js +1 -0
- package/dist/client/static/js/typescript-1a808spn.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ehnc0600.js → usecaseDiagram-POWQR4AR-yrje14qp.js} +44 -44
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-cp4kj6kw.js → vennDiagram-UO4OBE2U-jxkmrfy5.js} +7 -7
- package/dist/client/static/js/{vue-mhj4sme0.js → vue-d5gpjfgn.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-7m07ewc4.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-eegf1jpw.js → wardleyDiagram-VNRHLVJA-d3v2m9b1.js} +3 -3
- package/dist/client/static/js/xml-3117mxd9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-zkkqfyex.js → xychartDiagram-PMCCYNJV-9a1s1rjt.js} +5 -5
- package/dist/client/static/js/yaml-dmvh8vyt.js +1 -0
- package/extensions/kabmo-modes/index.ts +1 -1
- package/extensions/kabmo-modes/parked.test.ts +2 -2
- package/extensions/kabmo-modes/parked.ts +10 -9
- package/extensions/kabmo-modes/plan.test.ts +4 -4
- package/extensions/kabmo-modes/plan.ts +6 -6
- package/extensions/kabmo-modes/session.ts +2 -2
- package/package.json +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/Modal.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.test.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.tsx +7 -9
- package/src/client/components/common/PWAInstallButton.tsx +1 -1
- package/src/client/components/common/header-panel-buttons/index.tsx +5 -1
- package/src/client/components/common/shell-update-button/Modal.tsx +31 -36
- package/src/client/components/common/shell-update-button/index.test.tsx +5 -2
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +16 -0
- package/src/client/components/layout/desktop-layout/RightColumn.test.tsx +204 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +52 -15
- package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
- package/src/client/components/mobile/RightSidebar.tsx +31 -12
- package/src/client/components/mobile/SessionSidebar.tsx +112 -137
- package/src/client/components/mobile/drawer-strip.tsx +85 -0
- package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
- package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
- package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
- package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
- package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
- package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
- package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +97 -0
- package/src/client/components/settings/Band.test.tsx +83 -0
- package/src/client/components/settings/Band.tsx +96 -0
- package/src/client/components/settings/Modal.tsx +44 -69
- package/src/client/components/settings/apply-side-effects.ts +15 -4
- package/src/client/components/settings/band-height.test.tsx +16 -3
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
- package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
- package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
- package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
- package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
- package/src/client/components/settings/drill.tsx +113 -0
- package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
- package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
- package/src/client/components/settings/master-detail/index.tsx +45 -25
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +11 -0
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +29 -21
- package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
- package/src/client/components/workspace/diff-panel/index.tsx +1 -1
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
- package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
- package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
- package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
- package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
- package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +103 -42
- package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
- package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
- package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
- package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
- package/src/client/hooks/chat/timeline/row-measure.ts +75 -0
- package/src/client/hooks/chat/timeline/row-window.test.ts +41 -21
- package/src/client/hooks/chat/timeline/row-window.ts +6 -24
- package/src/client/hooks/workspace/left-dock.ts +19 -0
- package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
- package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
- package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +286 -0
- package/src/client/hooks/workspace/panel-tabs-reveal.ts +174 -0
- package/src/client/hooks/workspace/panel-tabs.ts +22 -4
- package/src/client/hooks/workspace/session-state/index.test.tsx +145 -0
- package/src/client/hooks/workspace/session-state/index.ts +28 -16
- package/src/client/lib/ui/phone-row.test.ts +52 -0
- package/src/client/lib/ui/phone-row.ts +71 -0
- package/src/client/press-state.test.ts +179 -0
- package/src/client/tailwind.css +146 -0
- package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
- package/src/server/lib/omp/rpc/constants.test.ts +6 -1
- package/src/shared/lib/chat/ask-form/data.ts +155 -0
- package/src/shared/lib/chat/ask-form/fields.ts +4 -0
- package/src/shared/lib/chat/ask-form/index.ts +8 -0
- package/src/shared/lib/chat/ask-form/types.ts +12 -0
- package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
- package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
- package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
- package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
- package/src/shared/lib/omp/dialog-methods.ts +6 -0
- package/src/shared/lib/omp/session/wait-idle.ts +7 -3
- package/src/shared/lib/settings/defaults.ts +3 -2
- package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
- package/src/shared/lib/workspace/panel-nav.ts +20 -9
- package/src/shared/types/omp/agent.ts +20 -3
- package/src/shared/types/settings/state.ts +17 -5
- package/dist/client/static/js/ImageView-6ksvyzqv.js +0 -1
- package/dist/client/static/js/LayoutWrapper-px60417t.js +0 -2
- package/dist/client/static/js/Modal-yv1718s1.js +0 -59
- package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
- package/dist/client/static/js/bash-mevzaywf.js +0 -1
- package/dist/client/static/js/c-y1y6v00q.js +0 -1
- package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
- package/dist/client/static/js/css-3w3p9s67.js +0 -1
- package/dist/client/static/js/css-g85rwzty.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-hekt0qsb.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
- package/dist/client/static/js/graphql-027z8sc0.js +0 -1
- package/dist/client/static/js/html-fqda6wxx.js +0 -1
- package/dist/client/static/js/index-252br0k2.js +0 -1
- package/dist/client/static/js/index-6bm4pw90.css +0 -1
- package/dist/client/static/js/index-80qxk9hx.js +0 -1
- package/dist/client/static/js/index-9674dxb4.js +0 -1
- package/dist/client/static/js/index-9k4121z4.js +0 -4
- package/dist/client/static/js/index-b6454rme.js +0 -12
- package/dist/client/static/js/index-ck0fd3aj.js +0 -2
- package/dist/client/static/js/index-jdf1tks1.js +0 -2
- package/dist/client/static/js/index-q58e8x6j.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
- package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
- package/dist/client/static/js/java-zs6qh1dm.js +0 -1
- package/dist/client/static/js/javascript-b9mkygak.js +0 -1
- package/dist/client/static/js/json-qn73s8xb.js +0 -1
- package/dist/client/static/js/jsx-gahhfczw.js +0 -1
- package/dist/client/static/js/lua-d8enp14s.js +0 -1
- package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
- package/dist/client/static/js/one-dark-pro-axkq0m3s.js +0 -1
- package/dist/client/static/js/one-light-pncb08qd.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
- package/dist/client/static/js/properties-g6tpq003.js +0 -1
- package/dist/client/static/js/python-cy06fzhg.js +0 -1
- package/dist/client/static/js/r-vw8berfv.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
- package/dist/client/static/js/sql-bwnasywx.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-253nz20y.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
- package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
- package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
- package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
- package/dist/client/static/js/yaml-avewh7n5.js +0 -1
- package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
- package/src/shared/lib/ui/safe-area.test.ts +0 -28
- package/src/shared/lib/ui/safe-area.ts +0 -42
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The two MINIATURES a navigation choice is drawn as, one per style.
|
|
8
|
+
*
|
|
9
|
+
* Extracted from `PanelNavSection` when the phone got its second drawer and the
|
|
10
|
+
* section would have crossed the 350-line ceiling. They are drawings only —
|
|
11
|
+
* tokens (`bg-ink/10`, `text-ink/40`) so they follow the palette — and each is
|
|
12
|
+
* the shape of a real column rather than an icon: "rail" and "tabs" are words
|
|
13
|
+
* the user has to translate into a picture they have seen.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/** A rail of marks beside a list — the desktop left column, and a phone drawer's chips. */
|
|
17
|
+
export function RailMiniature() {
|
|
18
|
+
return (
|
|
19
|
+
<span className="flex h-full gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
|
|
20
|
+
<span className="flex w-[9px] flex-col items-center gap-1 border-r border-ink/10 pr-1">
|
|
21
|
+
<span className="h-[5px] w-[5px] rounded-sm bg-ink/70" />
|
|
22
|
+
<span className="h-[5px] w-[5px] rounded-sm bg-ink/25" />
|
|
23
|
+
<span className="h-[5px] w-[5px] rounded-sm bg-ink/25" />
|
|
24
|
+
</span>
|
|
25
|
+
<span className="flex min-w-0 flex-1 flex-col gap-1">
|
|
26
|
+
<span className="h-[3px] w-[46%] rounded-full bg-ink/45" />
|
|
27
|
+
<span className="h-[3px] w-[62%] rounded-full bg-ink/25" />
|
|
28
|
+
<span className="h-[3px] w-[54%] rounded-full bg-ink/25" />
|
|
29
|
+
<span className="h-[3px] w-[40%] rounded-full bg-ink/20" />
|
|
30
|
+
</span>
|
|
31
|
+
</span>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** A strip of chips over a card grid — the browser-style column. */
|
|
36
|
+
export function TabsMiniature() {
|
|
37
|
+
return (
|
|
38
|
+
<span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
|
|
39
|
+
<span className="flex items-center gap-1 border-b border-ink/10 pb-1">
|
|
40
|
+
<span className="h-[6px] w-[6px] rounded-sm border border-ink/20" />
|
|
41
|
+
<span className="h-[6px] w-[28%] rounded-sm bg-ink/70" />
|
|
42
|
+
<span className="h-[6px] w-[24%] rounded-sm border border-ink/20" />
|
|
43
|
+
</span>
|
|
44
|
+
<span className="flex gap-1">
|
|
45
|
+
<span className="h-[16px] w-[22%] rounded border border-ink/15" />
|
|
46
|
+
<span className="h-[16px] w-[22%] rounded border border-ink/15" />
|
|
47
|
+
<span className="h-[16px] w-[22%] rounded border border-ink/15" />
|
|
48
|
+
</span>
|
|
49
|
+
</span>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** A drawer of chips over a long list — a phone drawer's classic chrome. */
|
|
54
|
+
export function ClassicDrawerMiniature() {
|
|
55
|
+
return (
|
|
56
|
+
<span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
|
|
57
|
+
<span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
|
|
58
|
+
<span className="h-[6px] w-[16%] rounded-sm bg-ink/70" />
|
|
59
|
+
<span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
|
|
60
|
+
<span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
|
|
61
|
+
<span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
|
|
62
|
+
</span>
|
|
63
|
+
<span className="h-[3px] w-[62%] rounded-full bg-ink/25" />
|
|
64
|
+
<span className="h-[3px] w-[54%] rounded-full bg-ink/25" />
|
|
65
|
+
<span className="h-[3px] w-[40%] rounded-full bg-ink/20" />
|
|
66
|
+
</span>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* A short strip over a card grid — a drawer with a home page.
|
|
72
|
+
*
|
|
73
|
+
* `pinned` draws the extra chip a column with an undeletable view leads with
|
|
74
|
+
* (the left drawer's session list), so the two phone cards differ in the fact
|
|
75
|
+
* that actually differs.
|
|
76
|
+
*/
|
|
77
|
+
export function TabsDrawerMiniature({ pinned = false }: { pinned?: boolean }) {
|
|
78
|
+
return (
|
|
79
|
+
<span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
|
|
80
|
+
<span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
|
|
81
|
+
<span className="h-[6px] w-[6px] rounded-sm border border-ink/20" />
|
|
82
|
+
{pinned ? <span className="h-[6px] w-[20%] rounded-sm bg-ink/70" /> : null}
|
|
83
|
+
<span className={`h-[6px] rounded-sm ${pinned ? 'w-[18%]' : 'w-[24%]'} bg-ink/70`} />
|
|
84
|
+
<span className="h-[6px] w-[20%] rounded-sm border border-ink/20" />
|
|
85
|
+
</span>
|
|
86
|
+
<span className="flex gap-1">
|
|
87
|
+
<span className="h-[16px] w-[24%] rounded border border-ink/15" />
|
|
88
|
+
<span className="h-[16px] w-[24%] rounded border border-ink/15" />
|
|
89
|
+
<span className="h-[16px] w-[24%] rounded border border-ink/15" />
|
|
90
|
+
</span>
|
|
91
|
+
</span>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -77,7 +77,7 @@ export function PairDialog({ code, error, busy, secondsLeft, onClose, onRetry }:
|
|
|
77
77
|
|
|
78
78
|
return createPortal(
|
|
79
79
|
<div
|
|
80
|
-
className="fixed inset-0 z-[60] flex items-center justify-center bg-ink/40
|
|
80
|
+
className="fixed inset-0 z-[60] flex items-center justify-center bg-ink/40 modal-safe backdrop-blur-[2px]"
|
|
81
81
|
onClick={onClose}
|
|
82
82
|
>
|
|
83
83
|
<div
|
|
@@ -57,7 +57,7 @@ export const McpImportModal: FunctionComponent<McpImportModalProps> = ({
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
return (
|
|
60
|
-
<div className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center
|
|
60
|
+
<div className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center modal-safe animate-in fade-in duration-150">
|
|
61
61
|
<div className="glass-overlay w-full max-w-lg rounded-lg border border-ink/20 bg-paper text-ink p-5 shadow-2xl space-y-4 max-h-full overflow-y-auto scrollbar-overlay-container">
|
|
62
62
|
<div className="flex items-center justify-between pb-3 border-b border-ink/10">
|
|
63
63
|
<div className="flex items-center gap-2">
|
package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx
CHANGED
|
@@ -40,7 +40,7 @@ export function PermissionNotice({ canOpenSettings }: PermissionNoticeProps) {
|
|
|
40
40
|
<button
|
|
41
41
|
type="button"
|
|
42
42
|
onClick={() => void openNotificationSettings()}
|
|
43
|
-
className="px-3 py-1.5 rounded-md border border-ink/20 bg-paper hover:bg-ink/5 text-ink font-medium text-[11px] transition-all shadow-xs
|
|
43
|
+
className="px-3 py-1.5 rounded-md border border-ink/20 bg-paper hover:bg-ink/5 text-ink font-medium text-[11px] transition-all shadow-xs"
|
|
44
44
|
>
|
|
45
45
|
Open system settings
|
|
46
46
|
</button>
|
|
@@ -56,7 +56,7 @@ export function DeleteProviderModal({
|
|
|
56
56
|
|
|
57
57
|
return (
|
|
58
58
|
<div
|
|
59
|
-
className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px]
|
|
59
|
+
className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] modal-safe"
|
|
60
60
|
onClick={isDeleting ? undefined : onClose}
|
|
61
61
|
role="dialog"
|
|
62
62
|
aria-modal="true"
|
|
@@ -79,7 +79,7 @@ export function LogoutProviderModal({ isOpen, provider, onClose, onSignedOut }:
|
|
|
79
79
|
|
|
80
80
|
return (
|
|
81
81
|
<div
|
|
82
|
-
className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px]
|
|
82
|
+
className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] modal-safe"
|
|
83
83
|
onClick={busyId !== null ? undefined : onClose}
|
|
84
84
|
role="dialog"
|
|
85
85
|
aria-modal="true"
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The drilled screen a settings category is showing on a PHONE, published to
|
|
8
|
+
* the sheet's ONE header band.
|
|
9
|
+
*
|
|
10
|
+
* A category that is two panes on a desktop is two screens on a phone, and the
|
|
11
|
+
* sheet's category list is a third level. Each level used to draw its own back
|
|
12
|
+
* control and its own title band, and they STACKED: measured at 390x844 on
|
|
13
|
+
* Settings → Appearance → Palette, the sheet's band said "Appearance" with a
|
|
14
|
+
* chevron, a 35px bar under it said "‹ Appearance settings", and a third 64px
|
|
15
|
+
* band said "Palette" — 163px, ~19% of the screen, on three rows that each meant
|
|
16
|
+
* "go back", two of which did it.
|
|
17
|
+
*
|
|
18
|
+
* So there is ONE band (`Band.tsx`), owned by the sheet, and a category tells it
|
|
19
|
+
* what the current screen is called and how to leave it. The registration is
|
|
20
|
+
* cleared on unmount, so switching category cannot leave the previous
|
|
21
|
+
* category's back control in the band. Nothing registers on a desktop, where
|
|
22
|
+
* both panes are visible at once and the band keeps naming the category.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
import { createContext } from 'preact';
|
|
26
|
+
import { useContext, useEffect, useMemo, useState } from 'preact/hooks';
|
|
27
|
+
import type { ComponentChildren } from 'preact';
|
|
28
|
+
|
|
29
|
+
/** One drilled screen, as the band needs to draw it. */
|
|
30
|
+
export interface SettingsDrill {
|
|
31
|
+
/** What this screen is called. */
|
|
32
|
+
label: string;
|
|
33
|
+
/** One line under the label, when the screen has its own. */
|
|
34
|
+
description?: string;
|
|
35
|
+
/** Leaves this screen for the one it was opened from. */
|
|
36
|
+
back: () => void;
|
|
37
|
+
/** Accessible name for that control — "Back to Appearance settings". */
|
|
38
|
+
backLabel: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** The sheet's collector: a registration, or a clear. */
|
|
42
|
+
export type RegisterDrill = (drill: SettingsDrill | null) => void;
|
|
43
|
+
|
|
44
|
+
const DrillContext = createContext<RegisterDrill | null>(null);
|
|
45
|
+
|
|
46
|
+
/** Holds the drilled screen for one sheet. `children` is the whole sheet. */
|
|
47
|
+
export function SettingsDrillProvider({
|
|
48
|
+
register,
|
|
49
|
+
children,
|
|
50
|
+
}: {
|
|
51
|
+
register: RegisterDrill;
|
|
52
|
+
children: ComponentChildren;
|
|
53
|
+
}) {
|
|
54
|
+
return <DrillContext.Provider value={register}>{children}</DrillContext.Provider>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Publish (or clear) this screen for as long as it is mounted.
|
|
59
|
+
*
|
|
60
|
+
* An EFFECT, not a render-time call: the setter writes the sheet's state, and a
|
|
61
|
+
* child writing its parent's state during render is the one thing Preact will
|
|
62
|
+
* not settle. The dependency list names the FIELDS rather than the object, so a
|
|
63
|
+
* caller building the literal inline does not re-register on every render.
|
|
64
|
+
*/
|
|
65
|
+
export function useSettingsDrill(drill: SettingsDrill | null): void {
|
|
66
|
+
const register = useContext(DrillContext);
|
|
67
|
+
const label = drill?.label;
|
|
68
|
+
const description = drill?.description;
|
|
69
|
+
const back = drill?.back;
|
|
70
|
+
const backLabel = drill?.backLabel;
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
if (!register) return;
|
|
73
|
+
if (!label || !back || !backLabel) {
|
|
74
|
+
register(null);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
register({ label, description, back, backLabel });
|
|
78
|
+
return () => register(null);
|
|
79
|
+
}, [register, label, description, back, backLabel]);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The band's source of truth.
|
|
84
|
+
*
|
|
85
|
+
* A hook rather than a component, because the sheet already owns its band's
|
|
86
|
+
* markup and only needs to know what to put in it. The setter is stable and
|
|
87
|
+
* skips a write that would not change the band, so a re-registering pane cannot
|
|
88
|
+
* loop.
|
|
89
|
+
*/
|
|
90
|
+
export function useSettingsDrillState(): {
|
|
91
|
+
register: RegisterDrill;
|
|
92
|
+
drill: SettingsDrill | null;
|
|
93
|
+
} {
|
|
94
|
+
const [drill, setDrill] = useState<SettingsDrill | null>(null);
|
|
95
|
+
const register = useMemo<RegisterDrill>(
|
|
96
|
+
() => (next) =>
|
|
97
|
+
setDrill((current) => {
|
|
98
|
+
if (next === null) return current === null ? current : null;
|
|
99
|
+
if (
|
|
100
|
+
current &&
|
|
101
|
+
current.label === next.label &&
|
|
102
|
+
current.description === next.description &&
|
|
103
|
+
current.back === next.back &&
|
|
104
|
+
current.backLabel === next.backLabel
|
|
105
|
+
) {
|
|
106
|
+
return current;
|
|
107
|
+
}
|
|
108
|
+
return next;
|
|
109
|
+
}),
|
|
110
|
+
[],
|
|
111
|
+
);
|
|
112
|
+
return { register, drill };
|
|
113
|
+
}
|
|
@@ -4,13 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* The detail pane of a grouped settings category: the
|
|
8
|
-
*
|
|
7
|
+
* The detail pane of a grouped settings category: the group's sections in one
|
|
8
|
+
* scroller, under a header band on a DESKTOP only.
|
|
9
|
+
*
|
|
10
|
+
* The band is outside the scroller on a desktop on purpose — a reader five cards
|
|
11
|
+
* into the Editor group can still see which group they are in without scrolling
|
|
12
|
+
* back. A PHONE draws no band here: the sheet has one, and this pane's group name
|
|
13
|
+
* is what it names (`settings/drill.tsx`). Drawing it here as well produced
|
|
14
|
+
* three stacked bars on one screen (measured 64 + 35 + 64px on
|
|
15
|
+
* Settings → Appearance → Palette), two of which were a back control.
|
|
9
16
|
*
|
|
10
|
-
* The header is outside the scroller on purpose — a reader five cards into the
|
|
11
|
-
* Editor group can still see which group they are in without scrolling back.
|
|
12
17
|
* The sections are children, so each category keeps owning WHICH components a
|
|
13
|
-
* group draws
|
|
18
|
+
* group draws while the frame is stated once.
|
|
14
19
|
*/
|
|
15
20
|
|
|
16
21
|
import type { ComponentChildren } from 'preact';
|
|
@@ -25,7 +30,10 @@ interface GroupDetailProps {
|
|
|
25
30
|
export function GroupDetail({ group, children }: GroupDetailProps) {
|
|
26
31
|
return (
|
|
27
32
|
<div className="flex-1 h-full overflow-hidden flex flex-col text-xs text-ink">
|
|
28
|
-
<div
|
|
33
|
+
<div
|
|
34
|
+
className={`${SETTINGS_BAND} hidden md:flex items-start flex-col justify-center px-3.5`}
|
|
35
|
+
style={{ height: SETTINGS_BAND_HEIGHT }}
|
|
36
|
+
>
|
|
29
37
|
<span className="text-xs font-semibold text-ink/75">{group.label}</span>
|
|
30
38
|
<p className="w-full text-[11px] text-ink/60 leading-snug mt-0.5 truncate">{group.description}</p>
|
|
31
39
|
</div>
|
|
@@ -42,7 +42,15 @@ export function GroupSidebar<Id extends string>({
|
|
|
42
42
|
}: GroupSidebarProps<Id>) {
|
|
43
43
|
return (
|
|
44
44
|
<div className="w-full md:w-64 md:border-r border-ink/10 h-full flex flex-col bg-paper/50 flex-shrink-0 select-none">
|
|
45
|
-
|
|
45
|
+
{/* The count band is a DESKTOP fact: there it sits beside the detail
|
|
46
|
+
pane's title and closes the two-column seam. A phone already has the
|
|
47
|
+
sheet's band naming the category, and a second row saying "4 groups"
|
|
48
|
+
above a list of four groups is the same repeat the drilled panes lost
|
|
49
|
+
(measured: 163px of an 844px screen on three stacked bars). */}
|
|
50
|
+
<div
|
|
51
|
+
className={`${SETTINGS_BAND} hidden md:flex px-3.5 justify-between`}
|
|
52
|
+
style={{ height: SETTINGS_BAND_HEIGHT }}
|
|
53
|
+
>
|
|
46
54
|
<span className="text-xs font-semibold text-ink">
|
|
47
55
|
{groups.length} group{groups.length === 1 ? '' : 's'}
|
|
48
56
|
</span>
|
|
@@ -3,8 +3,26 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Master-detail shell for the settings categories that are two panes on a
|
|
8
|
+
* desktop (providers, projects, agents, commands, MCP, skills, usage) and for
|
|
9
|
+
* the two that navigate by GROUP inside one category (`chats`,
|
|
10
|
+
* `appearance` — those draw `GroupSidebar` / `GroupDetail`).
|
|
11
|
+
*
|
|
12
|
+
* Both panes stay mounted at every width, so a pane's state — a half-typed
|
|
13
|
+
* form, a scroll position — survives the drill and the back.
|
|
14
|
+
*
|
|
15
|
+
* **The phone draws no chrome of its own.** It used to draw a 35px back bar
|
|
16
|
+
* under the sheet's band, and the pane under that drew a third band with the
|
|
17
|
+
* group's name: measured at 390x844 on Settings → Appearance → Palette, three
|
|
18
|
+
* rows (64 + 35 + 64px) each meant "go back", two of them doing it. The pane now
|
|
19
|
+
* REGISTERS its label and its way out with the sheet's single band
|
|
20
|
+
* (`settings/drill.tsx`), so the phone has one header and the back control is in
|
|
21
|
+
* the same place on every screen.
|
|
22
|
+
*/
|
|
23
|
+
|
|
6
24
|
import type { ComponentChildren } from 'preact';
|
|
7
|
-
import {
|
|
25
|
+
import { useSettingsDrill } from '@/client/components/settings/drill';
|
|
8
26
|
import type { SettingsPane } from '@/client/hooks/settings/master-detail';
|
|
9
27
|
|
|
10
28
|
interface SettingsMasterDetailProps {
|
|
@@ -14,31 +32,45 @@ interface SettingsMasterDetailProps {
|
|
|
14
32
|
/** The list pane (a settings sidebar). Owns its own `w-full md:w-64` width. */
|
|
15
33
|
list: ComponentChildren;
|
|
16
34
|
detail: ComponentChildren;
|
|
17
|
-
/** Name of the list,
|
|
35
|
+
/** Name of the list, used for the back control's accessible name. */
|
|
18
36
|
listLabel: string;
|
|
37
|
+
/**
|
|
38
|
+
* What the DETAIL pane is called on a phone, for the sheet's band. Defaults
|
|
39
|
+
* to `listLabel`: the pane is then named after the list it came from, which
|
|
40
|
+
* is honest for a CRUD list whose rows are all the same kind of thing. A
|
|
41
|
+
* grouped category passes the active group's label instead.
|
|
42
|
+
*/
|
|
43
|
+
detailLabel?: string;
|
|
44
|
+
/** One line under that label, when the pane has one. */
|
|
45
|
+
detailDescription?: string;
|
|
19
46
|
/** Extra classes for the root (e.g. a category-wide `text-xs`). */
|
|
20
47
|
className?: string;
|
|
21
48
|
}
|
|
22
49
|
|
|
23
|
-
/**
|
|
24
|
-
* Master-detail shell for the settings categories that are two panes on a
|
|
25
|
-
* desktop (providers, projects, agents, commands, MCP, skills, usage) and for
|
|
26
|
-
* the two that navigate by GROUP inside one category (`chats`,
|
|
27
|
-
* `appearance` — those draw `GroupSidebar` / `GroupDetail`).
|
|
28
|
-
*
|
|
29
|
-
* Both panes stay mounted at every width, so a pane's state — a half-typed
|
|
30
|
-
* form, a scroll position — survives the drill and the back. Only the phone
|
|
31
|
-
* needs the extra bar: on `md` the two panes sit side by side exactly as
|
|
32
|
-
* before and the bar is not rendered at all.
|
|
33
|
-
*/
|
|
34
50
|
export function SettingsMasterDetail({
|
|
35
51
|
pane,
|
|
36
52
|
onBack,
|
|
37
53
|
list,
|
|
38
54
|
detail,
|
|
39
55
|
listLabel,
|
|
56
|
+
detailLabel,
|
|
57
|
+
detailDescription,
|
|
40
58
|
className = '',
|
|
41
59
|
}: SettingsMasterDetailProps) {
|
|
60
|
+
// The sheet's band names the drilled pane, and its back control is the pane's
|
|
61
|
+
// own way out. Registered only while the detail is the screen on display, so
|
|
62
|
+
// the list keeps the band it had.
|
|
63
|
+
useSettingsDrill(
|
|
64
|
+
pane === 'detail'
|
|
65
|
+
? {
|
|
66
|
+
label: detailLabel ?? listLabel,
|
|
67
|
+
description: detailDescription,
|
|
68
|
+
back: onBack,
|
|
69
|
+
backLabel: `Back to ${listLabel}`,
|
|
70
|
+
}
|
|
71
|
+
: null,
|
|
72
|
+
);
|
|
73
|
+
|
|
42
74
|
return (
|
|
43
75
|
<div className={`flex-1 flex flex-col md:flex-row h-full w-full min-w-0 overflow-hidden bg-paper text-ink ${className}`}>
|
|
44
76
|
{/* `min-w-0` on both panes: a flex item's default `min-width: auto` is its
|
|
@@ -51,18 +83,6 @@ export function SettingsMasterDetail({
|
|
|
51
83
|
</div>
|
|
52
84
|
|
|
53
85
|
<div className={`${pane === 'detail' ? 'flex' : 'hidden'} md:flex flex-1 min-h-0 min-w-0 flex-col`}>
|
|
54
|
-
<div className="md:hidden flex items-center px-2 py-1 border-b border-ink/10 bg-canvas flex-shrink-0">
|
|
55
|
-
<button
|
|
56
|
-
type="button"
|
|
57
|
-
onClick={onBack}
|
|
58
|
-
aria-label={`Back to ${listLabel}`}
|
|
59
|
-
className="flex items-center gap-1 -ml-0.5 pl-0.5 pr-2 py-1 rounded-lg text-ink hover:bg-ink/5 active:bg-ink/10 transition-colors cursor-pointer"
|
|
60
|
-
>
|
|
61
|
-
<ChevronLeft size={18} />
|
|
62
|
-
<span className="text-xs font-semibold truncate">{listLabel}</span>
|
|
63
|
-
</button>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
86
|
{detail}
|
|
67
87
|
</div>
|
|
68
88
|
</div>
|
|
@@ -186,6 +186,17 @@ describe('MessageList mounted window', () => {
|
|
|
186
186
|
expect(footers(el)).toBe(1);
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
+
test('the trailing footer marks the row whose measured slot it fills', async () => {
|
|
190
|
+
// The footer is a sibling of the row group, outside the row's rect, so the
|
|
191
|
+
// row window learns its height from this marker only. Without it the
|
|
192
|
+
// content height changes when the row at the window's edge mounts — the
|
|
193
|
+
// up/down flicker at the end of a stream (pinned by `row-window.test.ts`).
|
|
194
|
+
const messages = [user('u1'), ai('a1'), user('u2'), ai('a2')];
|
|
195
|
+
const el = await mountWindowed(messages, window(0, 2, 0, 500));
|
|
196
|
+
const marker = el.querySelector('[data-row-footer-for]');
|
|
197
|
+
expect(marker?.getAttribute('data-row-footer-for')).toBe('a1');
|
|
198
|
+
});
|
|
199
|
+
|
|
189
200
|
test('an errored answer renders the failure instead of an empty bubble', async () => {
|
|
190
201
|
const el = await mount([
|
|
191
202
|
user('u1'),
|
|
@@ -150,7 +150,8 @@ export const MessageList = memo(function MessageList({
|
|
|
150
150
|
// The run footer belongs to the run but NOT to its trace: it is a model
|
|
151
151
|
// and duration stamp, not a step. Left inside the rail container it drew
|
|
152
152
|
// the line 58px past the last node (measured), so it renders after the
|
|
153
|
-
// grouped rows instead
|
|
153
|
+
// grouped rows instead — outside its row's rect, which is why the
|
|
154
|
+
// sibling below marks which row's measured slot it fills.
|
|
154
155
|
const lastIdx = group.rows[group.rows.length - 1];
|
|
155
156
|
const trailingFooter = footers[lastIdx];
|
|
156
157
|
return (
|
|
@@ -215,26 +216,33 @@ export const MessageList = memo(function MessageList({
|
|
|
215
216
|
})}
|
|
216
217
|
</div>
|
|
217
218
|
{trailingFooter && (
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
219
|
+
// `data-row-footer-for` is a measurement contract, not decoration:
|
|
220
|
+
// the footer is a SIBLING of the row above (the rail must not run
|
|
221
|
+
// through it), so it sits outside that row's rect — the row window
|
|
222
|
+
// attributes it back by this marker. `flow-root` so the footer's own
|
|
223
|
+
// `mt-2` is inside the rect the window measures.
|
|
224
|
+
<div data-row-footer-for={messages[lastIdx].id} style={{ display: 'flow-root' }}>
|
|
225
|
+
<RunFooter
|
|
226
|
+
msg={trailingFooter.msg}
|
|
227
|
+
provider={provider}
|
|
228
|
+
providerNames={providerNames}
|
|
229
|
+
modelName={modelName}
|
|
230
|
+
modelNames={modelNames}
|
|
231
|
+
thinkingLevel={thinkingLevel}
|
|
232
|
+
{...(harness ? { harness } : {})}
|
|
233
|
+
durationMs={trailingFooter.durationMs}
|
|
234
|
+
answerText={trailingFooter.answerText}
|
|
235
|
+
retryTargetId={trailingFooter.runUserId}
|
|
236
|
+
onRetry={onRetry}
|
|
237
|
+
onNewChat={onNewChat}
|
|
238
|
+
onFork={onFork}
|
|
239
|
+
isMobile={isMobile}
|
|
240
|
+
showActions={userActions}
|
|
241
|
+
changedFiles={changedFilesByOwner.get(trailingFooter.ownerIndex)}
|
|
242
|
+
sessionId={sessionId}
|
|
243
|
+
runWindow={runWindows.get(trailingFooter.ownerIndex)}
|
|
244
|
+
/>
|
|
245
|
+
</div>
|
|
238
246
|
)}
|
|
239
247
|
</Fragment>
|
|
240
248
|
);
|
|
@@ -53,7 +53,7 @@ export function MobileTurnJump({ turns, jumping, onJumpTurn }: MobileTurnJumpPro
|
|
|
53
53
|
aria-label={`Jump to your message (${turns.length} turns)`}
|
|
54
54
|
aria-busy={jumping}
|
|
55
55
|
title="Jump to your message"
|
|
56
|
-
className={`flex items-center justify-center w-9 h-9 rounded-full border border-ink/20 bg-paper text-ink/60 shadow-sm transition-all ${jumping ? 'animate-pulse' : 'hover:text-ink hover:bg-ink/5
|
|
56
|
+
className={`flex items-center justify-center w-9 h-9 rounded-full border border-ink/20 bg-paper text-ink/60 shadow-sm transition-all ${jumping ? 'animate-pulse' : 'hover:text-ink hover:bg-ink/5'}`}
|
|
57
57
|
>
|
|
58
58
|
<ListOrdered size={16} />
|
|
59
59
|
</button>
|
|
@@ -69,7 +69,7 @@ export function NewChatModal({
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
return (
|
|
72
|
-
<div className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200
|
|
72
|
+
<div className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 modal-safe">
|
|
73
73
|
<div
|
|
74
74
|
className="glass-overlay bg-canvas border border-ink/15 rounded-xl shadow-xl w-full flex flex-col overflow-hidden"
|
|
75
75
|
style={maximized ? MODAL_EXPANDED_STYLE : MODAL_DEFAULT_STYLE}
|
|
@@ -71,9 +71,13 @@ export function SystemNotice({ notice, source, isMobile = false }: SystemNoticeP
|
|
|
71
71
|
// body underneath is the instruction omp injected.
|
|
72
72
|
const reminderInfo = useMemo(() => {
|
|
73
73
|
const envelope = unwrapXmlEnvelope(notice);
|
|
74
|
+
// omp 19.1.0 words the preview reminder around `resolve`/`reject` (a bash
|
|
75
|
+
// tool command) instead of `write xd://resolve`; both spellings reach this
|
|
76
|
+
// card, because a session recorded before the pin still carries the old one.
|
|
74
77
|
const isNoticeLike =
|
|
75
78
|
(envelope !== undefined && isReminderTag(envelope.tag))
|
|
76
79
|
|| notice.includes('xd://resolve')
|
|
80
|
+
|| notice.includes('`resolve`')
|
|
77
81
|
|| notice.includes('`ast_edit` result');
|
|
78
82
|
if (!isNoticeLike) return null;
|
|
79
83
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* section's children are only headings and cards.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { afterAll, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
|
|
25
|
+
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
|
|
26
26
|
import { Window } from 'happy-dom';
|
|
27
27
|
import { h, render } from 'preact';
|
|
28
28
|
import { act } from 'preact/test-utils';
|
|
@@ -33,7 +33,7 @@ import type { ToolCallData } from '@/shared/types/chat';
|
|
|
33
33
|
|
|
34
34
|
const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'HTMLInputElement', 'Event', 'MouseEvent', 'KeyboardEvent'] as const;
|
|
35
35
|
const nativeGlobals: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
|
|
36
|
-
let container: HTMLElement;
|
|
36
|
+
let container: HTMLElement | undefined;
|
|
37
37
|
|
|
38
38
|
beforeAll(() => {
|
|
39
39
|
const win = new Window({ url: 'http://localhost' });
|
|
@@ -52,6 +52,22 @@ afterAll(() => {
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Unmount the tree each case mounted.
|
|
57
|
+
*
|
|
58
|
+
* A card subscribes to the router store and the per-session store, and a tree
|
|
59
|
+
* left mounted here kept re-rendering in a LATER file — with that file's window,
|
|
60
|
+
* or after this file's `afterAll` had already removed it. Bun reports the throw
|
|
61
|
+
* as "Unhandled error between tests" in a suite that names neither file
|
|
62
|
+
* (measured on the Windows gate: ten `list-slots` cases failed while the real
|
|
63
|
+
* error came from here).
|
|
64
|
+
*/
|
|
65
|
+
afterEach(() => {
|
|
66
|
+
if (container) render(null, container);
|
|
67
|
+
container?.remove();
|
|
68
|
+
container = undefined;
|
|
69
|
+
});
|
|
70
|
+
|
|
55
71
|
/**
|
|
56
72
|
* The `card` style, pinned.
|
|
57
73
|
*
|
|
@@ -70,18 +86,19 @@ function tool(id: string, intent: string | undefined, title = 'Bash'): ToolCallD
|
|
|
70
86
|
}
|
|
71
87
|
|
|
72
88
|
async function mount(tools: ToolCallData[]) {
|
|
73
|
-
|
|
74
|
-
document.body.appendChild(
|
|
89
|
+
const host = document.createElement('div');
|
|
90
|
+
document.body.appendChild(host);
|
|
91
|
+
container = host;
|
|
75
92
|
await act(async () => {
|
|
76
93
|
render(
|
|
77
94
|
h(SessionStateProvider, {
|
|
78
95
|
sessionId: 'test',
|
|
79
96
|
children: h(ToolCallingSection, { tools }),
|
|
80
97
|
}),
|
|
81
|
-
|
|
98
|
+
host,
|
|
82
99
|
);
|
|
83
100
|
});
|
|
84
|
-
return
|
|
101
|
+
return host;
|
|
85
102
|
}
|
|
86
103
|
|
|
87
104
|
/**
|
|
@@ -35,7 +35,7 @@ export function UndoConfirmModal({ content, isOmpSession, undoing, error, onClos
|
|
|
35
35
|
|
|
36
36
|
return (
|
|
37
37
|
<div
|
|
38
|
-
className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200
|
|
38
|
+
className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 modal-safe"
|
|
39
39
|
onClick={undoing ? undefined : onClose}
|
|
40
40
|
role="dialog"
|
|
41
41
|
aria-modal="true"
|
|
@@ -67,12 +67,29 @@ export function AttachmentToolbar({ attachments, onFilesSelected, onRemove, mode
|
|
|
67
67
|
header, the draft and the toolbar read as one panel. A hairline over
|
|
68
68
|
a tinted strip made the composer look like three stacked bars. */}
|
|
69
69
|
<div className="composer-attach-row flex items-center flex-wrap gap-1.5 px-3 py-2 text-ink/60">
|
|
70
|
+
{/* `px-2 py-1` is not decoration: it is the SAME inset the toolbar row's
|
|
71
|
+
leading chip (`ModelDropdown`'s trigger) uses, so the two rows' first
|
|
72
|
+
marks share one column. With `p-1` the paperclip's ink started at
|
|
73
|
+
18.75px from the card's edge while the harness mark below it started
|
|
74
|
+
at 21.6px — a 3px staircase down the composer's left gutter (measured
|
|
75
|
+
at 1400x900, card 684px).
|
|
76
|
+
|
|
77
|
+
`justify-start` is what keeps that column on a touch screen: the
|
|
78
|
+
44px floor from `.tap-target` widens this button past its content, and
|
|
79
|
+
a centred glyph slid 8.75px off the harness mark under the Pixel 7
|
|
80
|
+
profile. The extra hit area has to grow to the RIGHT of the glyph,
|
|
81
|
+
never around it. */}
|
|
70
82
|
<button
|
|
71
83
|
onClick={() => fileInputRef.current?.click()}
|
|
72
|
-
className="tap-target flex items-center justify-
|
|
84
|
+
className="tap-target flex items-center justify-start hover:bg-ink/5 px-2 py-1 rounded transition-colors text-ink/60 hover:text-ink shrink-0"
|
|
73
85
|
title="Attach file or image"
|
|
74
86
|
>
|
|
75
|
-
|
|
87
|
+
{/* `-ml-0.5` is the lucide art's own bearing, not a layout fix: the
|
|
88
|
+
paperclip's path starts 1.75px inside its 14px box (24-unit
|
|
89
|
+
viewBox, ink from 3), while the harness mark's viewBox is cropped
|
|
90
|
+
to its path and starts at 0. Without it the ink column read 22.75
|
|
91
|
+
vs 21. */}
|
|
92
|
+
<Paperclip size={14} className="-ml-0.5" />
|
|
76
93
|
</button>
|
|
77
94
|
|
|
78
95
|
{/* The compact composer's own placeholder. The textarea is not rendered
|