@kabmo-labs/kabmo 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +412 -412
- package/dist/client/static/js/{CsvGrid-z74weshk.js → CsvGrid-br4j001k.js} +2 -2
- package/dist/client/static/js/{DocxView-dpe5x9ab.js → DocxView-kmtkbmmw.js} +3 -3
- package/dist/client/static/js/{DrawioView-ftzwjf8v.js → DrawioView-3df0g3jr.js} +2 -2
- package/dist/client/static/js/ImageView-2r8p5z3y.js +1 -0
- package/dist/client/static/js/LayoutWrapper-rq3d2a4e.js +2 -0
- package/dist/client/static/js/Modal-tmxhxd6q.js +59 -0
- package/dist/client/static/js/{PdfView-vjec8z3z.js → PdfView-p5z7c7eg.js} +1 -1
- package/dist/client/static/js/{SessionsView-g7z3fxbp.js → SessionsView-t06h6zfx.js} +1 -1
- package/dist/client/static/js/{SheetView-hhtfkdhe.js → SheetView-agw459v2.js} +19 -19
- package/dist/client/static/js/{SvgPreview-48n3ex6p.js → SvgPreview-b9rfy1h6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-bpvzdara.js → abnfDiagram-O67JEVCF-wbnhzcnj.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-pvb4d65d.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-xw62cr7j.js → architectureDiagram-NJMV4G6O-t2sgevea.js} +3 -3
- package/dist/client/static/js/{astro-56b0as3q.js → astro-hyj5wege.js} +1 -1
- package/dist/client/static/js/bash-8d8z8zrg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-x3a6cgar.js → blockDiagram-BEXU5L5S-v2nzp54a.js} +5 -5
- package/dist/client/static/js/c-acmn1zc9.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-katvaxbj.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-bjz4mqqh.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-fsn80psf.js → cose-bilkent-JH36ORCC-c4tnh4mg.js} +1 -1
- package/dist/client/static/js/cpp-620mvjkk.js +1 -0
- package/dist/client/static/js/css-bt76kxbq.js +1 -0
- package/dist/client/static/js/css-drfs4n12.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-gmx4vean.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-cfhbsnkm.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-j2wt7ns6.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-abrdj714.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
- package/dist/client/static/js/{diagram-3UASUU5V-dbn15bxn.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-y79pwf7w.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-f8ryt86n.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-ws7wn3q9.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-zmznrg13.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
- package/dist/client/static/js/{dockerfile-qgc921kw.js → dockerfile-00hqsk9c.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-y5q7hy1v.js → ebnfDiagram-ZINNZB2B-bsk7dvm4.js} +1 -1
- package/dist/client/static/js/{elixir-12pgbgtq.js → elixir-80wq7gak.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-vddwbn6q.js → elk-276RUBZZ-dsq91er5.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-qdqcx4g4.js → erDiagram-OPXOYQCR-p7p13mbh.js} +9 -9
- package/dist/client/static/js/{erlang-811btv6p.js → erlang-814e8qy5.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-vrnheyh7.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7b4w6phx.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-763hk9rm.js → ganttDiagram-FUAMR5RP-bwgnttyk.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-n6wnc8st.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-bgx1q5nw.js → gitGraphDiagram-X574FWY7-ca0gj5am.js} +13 -13
- package/dist/client/static/js/graphql-j1a6zp7m.js +1 -0
- package/dist/client/static/js/html-m0megrvb.js +1 -0
- package/dist/client/static/js/index-064vdkrs.js +2 -0
- package/dist/client/static/js/{index-w57zbym7.js → index-16sd19f0.js} +2 -2
- package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
- package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
- package/dist/client/static/js/{index-jpp0zm7t.js → index-29npynva.js} +19 -19
- package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
- package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
- package/dist/client/static/js/index-3bf7r7z4.js +12 -0
- package/dist/client/static/js/index-3qnjdjg2.js +1 -0
- package/dist/client/static/js/index-4bqssvt6.js +2 -0
- package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
- package/dist/client/static/js/{index-szk3vk8h.js → index-5gf52a6d.js} +2 -2
- package/dist/client/static/js/{index-fqatn0vh.js → index-5h8y54t6.js} +1 -1
- package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
- package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
- package/dist/client/static/js/{index-mwm8aptp.js → index-7055hdx1.js} +1 -1
- package/dist/client/static/js/index-8pksqzwq.js +1 -0
- package/dist/client/static/js/index-95kese1h.js +1 -0
- package/dist/client/static/js/{index-acphtw1r.js → index-9d3n04vb.js} +2 -2
- package/dist/client/static/js/{index-cj39b26c.js → index-aagt3382.js} +1 -1
- package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
- package/dist/client/static/js/{index-xkwybnf3.js → index-amys498v.js} +198 -198
- package/dist/client/static/js/{index-vkerrwpa.js → index-bafe7hmd.js} +2 -2
- package/dist/client/static/js/{index-34ff2vq6.js → index-bjv5ga2e.js} +2 -2
- package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
- package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
- package/dist/client/static/js/index-dpy3ewrn.css +1 -0
- package/dist/client/static/js/{index-61j9qkck.js → index-dr5hca5b.js} +3 -3
- package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
- package/dist/client/static/js/index-eqhjs1yv.js +4 -0
- package/dist/client/static/js/{index-x7rfmwg8.js → index-ex5dtdx2.js} +6 -6
- package/dist/client/static/js/{index-228yzebd.js → index-f7te27n5.js} +5 -5
- package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
- package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
- package/dist/client/static/js/index-gq5w5w8x.js +2 -0
- package/dist/client/static/js/{index-jaqjvk22.js → index-hkz2mz34.js} +2 -2
- package/dist/client/static/js/{index-gzp4j2h5.js → index-hnb66d3s.js} +2 -2
- package/dist/client/static/js/{index-h0rmkz9n.js → index-j718pxb3.js} +2 -2
- package/dist/client/static/js/{index-3sqndc9n.js → index-jkay7aw7.js} +2 -2
- package/dist/client/static/js/{index-05hx4ftf.js → index-k5zfzgez.js} +2 -2
- package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
- package/dist/client/static/js/{index-3d21hpk7.js → index-ncpwteyt.js} +2 -2
- package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
- package/dist/client/static/js/{index-f7paep2f.js → index-pwe6chtp.js} +1 -1
- package/dist/client/static/js/{index-8dtp7mt0.js → index-qf3y3ahx.js} +2 -2
- package/dist/client/static/js/{index-as1wptfa.js → index-qfxn7yh5.js} +2 -2
- package/dist/client/static/js/{index-dn6pqym4.js → index-qn200x1b.js} +6 -6
- package/dist/client/static/js/index-red856x6.js +1 -0
- package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
- package/dist/client/static/js/{index-dgjerk4w.js → index-ta6gpcpw.js} +3 -3
- package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
- package/dist/client/static/js/{index-5b2vsbcf.js → index-twsbv1yn.js} +1 -1
- package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
- package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
- package/dist/client/static/js/{index-gmq5pbcv.js → index-x1fqhhpp.js} +64 -64
- package/dist/client/static/js/{index-p21mvqc2.js → index-y2z8nsvw.js} +2 -2
- package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
- package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
- package/dist/client/static/js/{index-mrw7qweg.js → index-zedt16w7.js} +1 -1
- package/dist/client/static/js/{index-r6e44vkx.js → index-zq0qxb17.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-e66pw8d9.js → infoDiagram-VRGFBTTK-7q58qdf1.js} +2 -2
- package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ehc0q24d.js → ishikawaDiagram-OU5B5YK6-9jmeszag.js} +3 -3
- package/dist/client/static/js/java-jj41mty3.js +1 -0
- package/dist/client/static/js/javascript-n9w9p97f.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-hye05qtd.js → journeyDiagram-ZHPQQLJL-0d7xe845.js} +5 -5
- package/dist/client/static/js/json-rnh2h17x.js +1 -0
- package/dist/client/static/js/jsx-4gecrt29.js +1 -0
- package/dist/client/static/js/{julia-mgsev9df.js → julia-yv2j8qd0.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-vce614m8.js → kanban-definition-PNTS6WVX-7p83rwdn.js} +5 -5
- package/dist/client/static/js/lua-zszaw2f7.js +1 -0
- package/dist/client/static/js/markdown-nm6gw4v4.js +1 -0
- package/dist/client/static/js/{mermaid.core-gc79re5p.js → mermaid.core-hwhzw0wv.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-ft1whaf5.js → mindmap-definition-NLK3R4M7-hy0rtr7t.js} +8 -8
- package/dist/client/static/js/one-dark-pro-4b8er03c.js +1 -0
- package/dist/client/static/js/one-light-e6r3vsz4.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-zm1r82x5.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-2s4ykhaa.js → pegDiagram-GJSIUBJH-kd8t53tx.js} +1 -1
- package/dist/client/static/js/{perl-6n93vjsa.js → perl-917pjq5a.js} +1 -1
- package/dist/client/static/js/{php-w23nmbtc.js → php-hwz75qzt.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-sqa7321j.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-7h8dp0z3.js → pieDiagram-5QR66LMP-h3x03f80.js} +3 -3
- package/dist/client/static/js/properties-rkptax7r.js +1 -0
- package/dist/client/static/js/python-qf1se1mj.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-pteyxjxr.js → quadrantDiagram-O4NWA36T-y2b1ncbg.js} +6 -6
- package/dist/client/static/js/r-ms0cygq2.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-z3z82syp.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-z6swcqq2.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-33km6py4.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zbf1xmq.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-wte1xzzy.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-68z9wdt0.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-c08nmey6.js → requirementDiagram-PLB6GJNP-g5e9fk17.js} +10 -10
- package/dist/client/static/js/{ruby-ag3b3t9t.js → ruby-er7ayhte.js} +1 -1
- package/dist/client/static/js/{rust-ke5ec0w5.js → rust-1v8xbxn9.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2r3kvjs5.js → sankeyDiagram-IPEJSGJF-y9ht91gf.js} +4 -4
- package/dist/client/static/js/{sass-x0eez0kp.js → sass-n47tt136.js} +1 -1
- package/dist/client/static/js/{scss-qycakpjn.js → scss-kvev49ga.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-ctjycd88.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-97ndea95.js → sizeCapture-INFHLROL-k6dhfxex.js} +1 -1
- package/dist/client/static/js/sql-hd42h8wx.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-aqnmsb96.js → stateDiagram-v2-GCMORJYK-y3akpsm4.js} +3 -3
- package/dist/client/static/js/{svelte-tg19by0f.js → svelte-2pmz35vx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-v50cx1nx.js → swimlanes-2SLR337P-89081dr3.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-3q2a15wc.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-1ggrtdcj.js → timeline-definition-EJHVYXUP-tz6r8g3q.js} +6 -6
- package/dist/client/static/js/treeView-Q6P3EWNA-pvgx6n22.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-3n9zm628.js +1 -0
- package/dist/client/static/js/tsx-gx7td06z.js +1 -0
- package/dist/client/static/js/typescript-1a808spn.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ybcwhpzs.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-p9ggrt07.js → vennDiagram-UO4OBE2U-qdmjf6x3.js} +7 -7
- package/dist/client/static/js/{vue-mhj4sme0.js → vue-d5gpjfgn.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-7m07ewc4.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-v79nb9kx.js → wardleyDiagram-VNRHLVJA-3n2sm7rj.js} +3 -3
- package/dist/client/static/js/xml-3117mxd9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-43thqscz.js → xychartDiagram-PMCCYNJV-d7n2av2t.js} +5 -5
- package/dist/client/static/js/yaml-dmvh8vyt.js +1 -0
- package/extensions/kabmo-modes/index.ts +1 -1
- package/extensions/kabmo-modes/parked.test.ts +2 -2
- package/extensions/kabmo-modes/parked.ts +10 -9
- package/extensions/kabmo-modes/plan.test.ts +4 -4
- package/extensions/kabmo-modes/plan.ts +6 -6
- package/extensions/kabmo-modes/session.ts +2 -2
- package/package.json +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/Modal.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.test.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.tsx +7 -9
- package/src/client/components/common/PWAInstallButton.tsx +1 -1
- package/src/client/components/common/header-panel-buttons/index.tsx +5 -1
- package/src/client/components/common/shell-update-button/Modal.tsx +31 -36
- package/src/client/components/common/shell-update-button/index.test.tsx +5 -2
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +15 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +16 -0
- package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
- package/src/client/components/mobile/RightSidebar.tsx +27 -10
- package/src/client/components/mobile/SessionSidebar.tsx +112 -137
- package/src/client/components/mobile/drawer-strip.tsx +85 -0
- package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
- package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
- package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
- package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
- package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
- package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
- package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +96 -0
- package/src/client/components/settings/Band.test.tsx +83 -0
- package/src/client/components/settings/Band.tsx +96 -0
- package/src/client/components/settings/Modal.tsx +44 -69
- package/src/client/components/settings/apply-side-effects.ts +15 -4
- package/src/client/components/settings/band-height.test.tsx +16 -3
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
- package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
- package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
- package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
- package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
- package/src/client/components/settings/drill.tsx +113 -0
- package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
- package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
- package/src/client/components/settings/master-detail/index.tsx +45 -25
- package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
- package/src/client/components/workspace/diff-panel/index.tsx +1 -1
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
- package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
- package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
- package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
- package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
- package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +103 -42
- package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
- package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
- package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
- package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
- package/src/client/hooks/workspace/left-dock.ts +19 -0
- package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
- package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
- package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +283 -0
- package/src/client/hooks/workspace/panel-tabs-reveal.ts +162 -0
- package/src/client/hooks/workspace/panel-tabs.ts +19 -2
- package/src/client/lib/ui/phone-row.test.ts +52 -0
- package/src/client/lib/ui/phone-row.ts +71 -0
- package/src/client/press-state.test.ts +179 -0
- package/src/client/tailwind.css +146 -0
- package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
- package/src/server/lib/omp/rpc/constants.test.ts +6 -1
- package/src/shared/lib/chat/ask-form/data.ts +155 -0
- package/src/shared/lib/chat/ask-form/fields.ts +4 -0
- package/src/shared/lib/chat/ask-form/index.ts +8 -0
- package/src/shared/lib/chat/ask-form/types.ts +12 -0
- package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
- package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
- package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
- package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
- package/src/shared/lib/omp/dialog-methods.ts +6 -0
- package/src/shared/lib/omp/session/wait-idle.ts +7 -3
- package/src/shared/lib/settings/defaults.ts +3 -2
- package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
- package/src/shared/lib/workspace/panel-nav.ts +20 -9
- package/src/shared/types/omp/agent.ts +20 -3
- package/src/shared/types/settings/state.ts +17 -5
- package/dist/client/static/js/ImageView-vchn6wyq.js +0 -1
- package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +0 -2
- package/dist/client/static/js/Modal-tteg7vtb.js +0 -59
- package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
- package/dist/client/static/js/bash-mevzaywf.js +0 -1
- package/dist/client/static/js/c-y1y6v00q.js +0 -1
- package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
- package/dist/client/static/js/css-3w3p9s67.js +0 -1
- package/dist/client/static/js/css-g85rwzty.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-nh2tb65b.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
- package/dist/client/static/js/graphql-027z8sc0.js +0 -1
- package/dist/client/static/js/html-fqda6wxx.js +0 -1
- package/dist/client/static/js/index-0vk6v4y4.js +0 -2
- package/dist/client/static/js/index-47wn2gjx.js +0 -2
- package/dist/client/static/js/index-4b5b6g0k.js +0 -1
- package/dist/client/static/js/index-5mrqfs82.js +0 -12
- package/dist/client/static/js/index-6bm4pw90.css +0 -1
- package/dist/client/static/js/index-a11ptyzf.js +0 -1
- package/dist/client/static/js/index-f98dhbt4.js +0 -4
- package/dist/client/static/js/index-kg2sk8cf.js +0 -1
- package/dist/client/static/js/index-q76jfb54.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
- package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
- package/dist/client/static/js/java-zs6qh1dm.js +0 -1
- package/dist/client/static/js/javascript-b9mkygak.js +0 -1
- package/dist/client/static/js/json-qn73s8xb.js +0 -1
- package/dist/client/static/js/jsx-gahhfczw.js +0 -1
- package/dist/client/static/js/lua-d8enp14s.js +0 -1
- package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
- package/dist/client/static/js/one-dark-pro-rvg5xm1a.js +0 -1
- package/dist/client/static/js/one-light-2b5w3ksh.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
- package/dist/client/static/js/properties-g6tpq003.js +0 -1
- package/dist/client/static/js/python-cy06fzhg.js +0 -1
- package/dist/client/static/js/r-vw8berfv.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
- package/dist/client/static/js/sql-bwnasywx.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-e227mz39.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
- package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
- package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
- package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
- package/dist/client/static/js/yaml-avewh7n5.js +0 -1
- package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
- package/src/shared/lib/ui/safe-area.test.ts +0 -28
- package/src/shared/lib/ui/safe-area.ts +0 -42
|
@@ -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>
|
|
@@ -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
|
|
@@ -137,7 +137,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
|
|
|
137
137
|
// such ancestor; the same reason `Toast`, `anchored-menu` and `diagram-viewer`
|
|
138
138
|
// portal.
|
|
139
139
|
return createPortal(
|
|
140
|
-
<div className="fixed inset-0 z-[60] flex items-center justify-center modal-scrim
|
|
140
|
+
<div className="fixed inset-0 z-[60] flex items-center justify-center modal-scrim modal-safe" onClick={onClose}>
|
|
141
141
|
<div
|
|
142
142
|
className="glass-overlay w-full max-w-lg overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-xl"
|
|
143
143
|
onClick={(event) => event.stopPropagation()}
|
|
@@ -85,7 +85,7 @@ const ACTION_BASE =
|
|
|
85
85
|
'tap-target flex items-center justify-center rounded-lg flex-shrink-0 cursor-pointer ' +
|
|
86
86
|
'transition duration-150 ' +
|
|
87
87
|
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink/50 ' +
|
|
88
|
-
'focus-visible:ring-offset-2 focus-visible:ring-offset-paper
|
|
88
|
+
'focus-visible:ring-offset-2 focus-visible:ring-offset-paper';
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Bottom config row of the composer: model + thinking + access + plan/goal
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'preact/hooks';
|
|
2
2
|
import { useSearchParams } from '@/client/lib/router/search-params';
|
|
3
|
-
import {
|
|
3
|
+
import { splitAskFrames } from '@/client/hooks/chat/timeline/ask-frames';
|
|
4
|
+
import { AskFramesContext, type AskFramesHandle } from '@/client/hooks/chat/timeline/ask-frames-context';
|
|
4
5
|
import type { ExtensionUiDialogRequest } from '@/shared/types/omp/agent';
|
|
5
6
|
import type { UserTurnRef } from '@/shared/types/chat';
|
|
6
7
|
import type { ExtensionDialogResponse } from '@/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Lazy';
|
|
@@ -106,18 +107,13 @@ export function ChatTimeline({ className = '', appSettings = {}, onSessionTitle,
|
|
|
106
107
|
// blocked on (an approval gate, an extension picker) has no card and keeps
|
|
107
108
|
// the modal. It also waits for committed history: a replayed dialog has no
|
|
108
109
|
// card to match yet, and deciding early flashed the modal and withdrew it.
|
|
109
|
-
const { framesByTool, looseByTool, orphanAsks, modalRequest } = useMemo(
|
|
110
|
-
() => splitAskFrames(localMessages, extensionDialogs, !sessionLoading),
|
|
111
|
-
[localMessages, extensionDialogs, sessionLoading],
|
|
112
|
-
);
|
|
110
|
+
const { framesByTool, looseByTool, orphanAsks, formByTool, modalRequest } = useMemo(() => splitAskFrames(localMessages, extensionDialogs, !sessionLoading), [localMessages, extensionDialogs, sessionLoading]);
|
|
113
111
|
const respondToFrame = useCallback((request: ExtensionUiDialogRequest, response: ExtensionDialogResponse) => {
|
|
114
112
|
void respondToExtensionUi(request, response);
|
|
115
113
|
resolveExtensionDialog(request.id);
|
|
116
114
|
}, [respondToExtensionUi, resolveExtensionDialog]);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
[framesByTool, looseByTool, orphanAsks, respondToFrame],
|
|
120
|
-
);
|
|
115
|
+
// `formByTool` rides along: an ask card answers omp 19.1.0's whole-form dialog through this responder too.
|
|
116
|
+
const askFrames = useMemo<AskFramesHandle>(() => ({ framesByTool, looseByTool, orphanAsks, formByTool, respond: respondToFrame }), [framesByTool, looseByTool, orphanAsks, formByTool, respondToFrame]);
|
|
121
117
|
|
|
122
118
|
const newChat = useNewChatOpen({ folders, sessionId, selectedFolderId, ...(activeHarness.harness ? { harness: activeHarness.harness } : {}) });
|
|
123
119
|
const { pendingUndo, undoing, error: undoError, requestUndo: handleRequestUndo, closeUndoConfirm, confirmUndo } = useUndoConfirmation(handleUndo);
|
|
@@ -67,7 +67,7 @@ export function PlanReviewPanel({ proposal, deciding, error, onDecide, onDismiss
|
|
|
67
67
|
.join('\n\n');
|
|
68
68
|
|
|
69
69
|
return (
|
|
70
|
-
<div className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim
|
|
70
|
+
<div className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim modal-safe">
|
|
71
71
|
<div className="glass-overlay flex h-[88vh] w-full max-w-5xl flex-col overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-2xl">
|
|
72
72
|
<div className="flex items-center justify-between border-b border-ink/10 px-4 py-3">
|
|
73
73
|
<div className="flex min-w-0 items-center gap-2">
|