@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
|
@@ -4,28 +4,31 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* The phone drawer's LEFT dock state
|
|
8
|
-
*
|
|
9
|
-
* The desktop's left column is a dock — the session list plus whatever plugin
|
|
10
|
-
* panel the user placed beside it, switched by a vertical rail. A phone has no
|
|
11
|
-
* room for a rail, so the same catalog is switched by the chip strip the right
|
|
12
|
-
* drawer uses, and everything that decides WHICH view is on screen lives here:
|
|
7
|
+
* The phone drawer's LEFT dock state — the same three facts the desktop column
|
|
8
|
+
* keeps, so the two cannot disagree about what the dock holds or what it shows.
|
|
13
9
|
*
|
|
14
10
|
* - the catalog is `usePanelCatalog('left')`, the dock's own list (`sessions`
|
|
15
|
-
* first, then the placed plugins in placement order)
|
|
16
|
-
* desktop column cannot disagree about what lives here;
|
|
11
|
+
* first, then the placed plugins in placement order);
|
|
17
12
|
* - the selection is PERSISTED per session, like the right drawer's tab, because
|
|
18
13
|
* the drawer unmounts when it closes;
|
|
19
14
|
* - a stored id naming a panel that has moved back to the right resolves to the
|
|
20
15
|
* session list, while one naming nothing at all is returned as-is so the body
|
|
21
16
|
* can say WHY rather than showing a blank column.
|
|
17
|
+
*
|
|
18
|
+
* Under the TAB style the drawer keeps a working set exactly as the desktop
|
|
19
|
+
* column does, with the session list PINNED as the first chip: a drawer with no
|
|
20
|
+
* way back to another chat is a dead end, which is the same reason
|
|
21
|
+
* `LeftColumn` passes `SESSIONS_VIEW_ID` as `pinned`.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
+
import { useMemo } from 'preact/hooks';
|
|
24
25
|
import type { PanelBodyProps } from '@/client/components/workspace/panels/builtin';
|
|
25
26
|
import { usePanelCatalog, useLeftDockView } from '@/client/components/workspace/plugin-panel/catalog';
|
|
26
27
|
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
27
28
|
import { useLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
28
29
|
import { useSharedSessionState } from '@/client/hooks/workspace/session-state';
|
|
30
|
+
import { useMobilePanelNav } from '@/client/hooks/workspace/mobile-panel-nav';
|
|
31
|
+
import { usePanelTabs, type PanelTabsHandle } from '@/client/hooks/workspace/panel-tabs';
|
|
29
32
|
import { SESSIONS_VIEW_ID } from '@/shared/lib/workspace/left-dock';
|
|
30
33
|
|
|
31
34
|
export interface MobileDockState {
|
|
@@ -38,6 +41,15 @@ export interface MobileDockState {
|
|
|
38
41
|
activePanel: ResolvedPanel | undefined;
|
|
39
42
|
/** Whether the rail is on at all. */
|
|
40
43
|
enabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The drawer navigates by a working set rather than by the whole catalog.
|
|
46
|
+
*
|
|
47
|
+
* `false` under `classic`, and also with the rail off: there is no strip then,
|
|
48
|
+
* so there is nothing to open a tab from and the drawer is the session list.
|
|
49
|
+
*/
|
|
50
|
+
tabsMode: boolean;
|
|
51
|
+
/** The working set, or `null` when this drawer is not in tabs mode. */
|
|
52
|
+
tabs: PanelTabsHandle | null;
|
|
41
53
|
}
|
|
42
54
|
|
|
43
55
|
export function useMobileDock(): MobileDockState {
|
|
@@ -49,6 +61,13 @@ export function useMobileDock(): MobileDockState {
|
|
|
49
61
|
// the same rule `useResolvedRepo` follows for a value a second surface moves.
|
|
50
62
|
const [stored, setStored] = useSharedSessionState<string>('layout.mobileLeftPanel', SESSIONS_VIEW_ID);
|
|
51
63
|
const activeView = useLeftDockView(stored, dock.enabled);
|
|
64
|
+
const navStyle = useMobilePanelNav('left');
|
|
65
|
+
// The desktop column's own rule (`LeftColumn`): a style is only a shape when
|
|
66
|
+
// the rail is on. With the rail off there is no strip at all, so tabs mode
|
|
67
|
+
// would have nothing to open a view from.
|
|
68
|
+
const tabsMode = dock.enabled && navStyle === 'tabs';
|
|
69
|
+
const known = useMemo(() => new Set(catalog.map((panel) => panel.id)), [catalog]);
|
|
70
|
+
const tabs = usePanelTabs('left', known, SESSIONS_VIEW_ID);
|
|
52
71
|
|
|
53
72
|
return {
|
|
54
73
|
catalog,
|
|
@@ -57,6 +76,8 @@ export function useMobileDock(): MobileDockState {
|
|
|
57
76
|
showingSessions: activeView === SESSIONS_VIEW_ID,
|
|
58
77
|
activePanel: catalog.find((panel) => panel.id === activeView),
|
|
59
78
|
enabled: dock.enabled,
|
|
79
|
+
tabsMode,
|
|
80
|
+
tabs: tabsMode ? tabs : null,
|
|
60
81
|
};
|
|
61
82
|
}
|
|
62
83
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The phone's LEFT drawer as a tab strip: its two-way mirror, its own gestures,
|
|
8
|
+
* and the reveal a header press asks for.
|
|
9
|
+
*
|
|
10
|
+
* The mirror is the same rule `LeftColumn` runs for the desktop column — a view
|
|
11
|
+
* chosen in the strip must reach the BODY, and a view chosen from outside it
|
|
12
|
+
* (`omp:open-panel`, a restored selection) must appear as a CHIP. Skipping
|
|
13
|
+
* either half is how a strip shows a chip over a body that is not it, or a body
|
|
14
|
+
* with no chip at all.
|
|
15
|
+
*
|
|
16
|
+
* `ownGesture` exists because `layout.mobileLeftPanel` is TWO things at once: the
|
|
17
|
+
* mirror of the strip's selection, and the slot an outside caller writes to ask
|
|
18
|
+
* for a view. A close writes `active` to the neighbour while the mirror is one
|
|
19
|
+
* render behind, so the seed effect read the just-closed id as a request and
|
|
20
|
+
* reopened it — measured: closing `Files` left `['Sessions','Files']`. The flag
|
|
21
|
+
* marks the commit that follows a gesture from the drawer, and the seed consumes
|
|
22
|
+
* it and skips exactly that one.
|
|
23
|
+
*
|
|
24
|
+
* Extracted from `SessionSidebar` for the file ceiling: the drawer's dialogs,
|
|
25
|
+
* footer and controller are the chrome, and this is the strip's state machine.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
import { useEffect, useRef } from 'preact/hooks';
|
|
29
|
+
import { useRevealPanelTab, useRevealSignal } from '@/client/hooks/workspace/panel-tabs-reveal';
|
|
30
|
+
import type { MobileDockState } from '@/client/components/mobile/mobile-session-sidebar/use-dock';
|
|
31
|
+
import type { PanelTabsHandle } from '@/client/hooks/workspace/panel-tabs';
|
|
32
|
+
|
|
33
|
+
export interface MobileDrawerTabs {
|
|
34
|
+
/** The strip, with the drawer's own gestures marked. `null` outside tabs mode. */
|
|
35
|
+
tabs: PanelTabsHandle | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function useMobileDrawerTabs(dock: MobileDockState, revealSignal: number): MobileDrawerTabs {
|
|
39
|
+
const tabs = dock.tabs;
|
|
40
|
+
|
|
41
|
+
// The header's "Open Sessions" is a reveal: it must show the session list
|
|
42
|
+
// rather than the drawer's catalog, exactly as the desktop sidebar's expand
|
|
43
|
+
// control does. `dock.tabs` is `null` under `classic` (and with the rail off),
|
|
44
|
+
// so it is passed as the writer and the hook stands down on its own — a hook
|
|
45
|
+
// cannot be called conditionally.
|
|
46
|
+
useRevealPanelTab({
|
|
47
|
+
enabled: dock.tabsMode,
|
|
48
|
+
revealed: useRevealSignal(revealSignal),
|
|
49
|
+
view: dock.activeView,
|
|
50
|
+
home: tabs?.home ?? false,
|
|
51
|
+
chosenHome: tabs?.chosenHome ?? false,
|
|
52
|
+
openTab: tabs?.open ?? null,
|
|
53
|
+
known: new Set(dock.catalog.map((panel) => panel.id)),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const ownGesture = useRef(false);
|
|
57
|
+
const marked: PanelTabsHandle | null = tabs
|
|
58
|
+
? {
|
|
59
|
+
...tabs,
|
|
60
|
+
select: (id: string) => {
|
|
61
|
+
ownGesture.current = true;
|
|
62
|
+
tabs.select(id);
|
|
63
|
+
},
|
|
64
|
+
open: (id: string) => {
|
|
65
|
+
ownGesture.current = true;
|
|
66
|
+
tabs.open(id);
|
|
67
|
+
},
|
|
68
|
+
close: (id: string) => {
|
|
69
|
+
ownGesture.current = true;
|
|
70
|
+
tabs.close(id);
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
|
+
: null;
|
|
74
|
+
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
if (!dock.tabsMode || !tabs) return;
|
|
77
|
+
if (tabs.active !== null && tabs.active !== dock.activeView) dock.setActiveView(tabs.active);
|
|
78
|
+
}, [dock.tabsMode, tabs?.active, dock.activeView, dock.setActiveView]);
|
|
79
|
+
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
if (!dock.tabsMode || !tabs) return;
|
|
82
|
+
// A commit the drawer made ITSELF is already the answer, not a request.
|
|
83
|
+
if (ownGesture.current) {
|
|
84
|
+
ownGesture.current = false;
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (tabs.tabs.includes(dock.activeView)) return;
|
|
88
|
+
// Only a view this drawer can DRAW becomes a tab. Writing an id the catalog
|
|
89
|
+
// no longer holds would be filtered straight back out and re-opened on the
|
|
90
|
+
// next render — a write loop disguised as a sync.
|
|
91
|
+
if (!dock.catalog.some((panel) => panel.id === dock.activeView)) return;
|
|
92
|
+
tabs.open(dock.activeView);
|
|
93
|
+
}, [dock.tabsMode, tabs, dock.activeView, dock.catalog]);
|
|
94
|
+
|
|
95
|
+
return { tabs: marked };
|
|
96
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The settings sheet draws ONE header band, and it names whatever screen is up.
|
|
8
|
+
*
|
|
9
|
+
* The phone used to draw three: the sheet's bar (64px), the master/detail back
|
|
10
|
+
* bar (35px) and the drilled group's band (64px) — measured at 390x844 on
|
|
11
|
+
* Settings → Appearance → Palette, 163px of an 844px screen on three rows that
|
|
12
|
+
* each meant "go back", two of which did it. These cases pin the structure that
|
|
13
|
+
* replaced it: one band, one back control, and the band's label following the
|
|
14
|
+
* category's registration.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
|
|
18
|
+
import { Window } from 'happy-dom';
|
|
19
|
+
import { h, render } from 'preact';
|
|
20
|
+
import { act } from 'preact/test-utils';
|
|
21
|
+
import { SettingsBand } from '@/client/components/settings/Band';
|
|
22
|
+
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
23
|
+
|
|
24
|
+
let container: HTMLElement;
|
|
25
|
+
|
|
26
|
+
beforeAll(() => {
|
|
27
|
+
installDomGlobals(new Window({ url: 'http://localhost' }));
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
afterEach(() => {
|
|
31
|
+
if (container) render(null, container);
|
|
32
|
+
container?.remove();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
afterAll(() => {
|
|
36
|
+
restoreDomGlobals();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
function mount(node: preact.ComponentChild): HTMLElement {
|
|
40
|
+
container = document.createElement('div');
|
|
41
|
+
document.body.append(container);
|
|
42
|
+
act(() => render(node, container));
|
|
43
|
+
return container;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
describe('the settings band', () => {
|
|
47
|
+
test('the sheet root has a close control and NO back control', () => {
|
|
48
|
+
const root = mount(h(SettingsBand, { root: true, label: 'Settings', onClose: () => {} }));
|
|
49
|
+
expect(root.textContent).toContain('Settings');
|
|
50
|
+
expect(root.querySelector('button[aria-label="Close settings"]')).not.toBeNull();
|
|
51
|
+
// A back control on the root would be a control that does nothing.
|
|
52
|
+
expect(root.querySelector('button[aria-label^="Back"]')).toBeNull();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
test('a drilled screen gets the one back control, named by its owner', () => {
|
|
56
|
+
const root = mount(
|
|
57
|
+
h(SettingsBand, {
|
|
58
|
+
label: 'Palette',
|
|
59
|
+
description: 'The palette every surface is painted from.',
|
|
60
|
+
onBack: () => {},
|
|
61
|
+
backLabel: 'Back to Appearance settings',
|
|
62
|
+
onClose: () => {},
|
|
63
|
+
}),
|
|
64
|
+
);
|
|
65
|
+
const back = root.querySelector('button[aria-label="Back to Appearance settings"]');
|
|
66
|
+
expect(back).not.toBeNull();
|
|
67
|
+
// Hidden on a desktop, where both panes are visible and nothing is left.
|
|
68
|
+
expect(back?.className).toContain('md:hidden');
|
|
69
|
+
expect(root.textContent).toContain('Palette');
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
test('the band is the shared band height plus the notch', () => {
|
|
73
|
+
const root = mount(h(SettingsBand, { root: true, label: 'Settings', onClose: () => {} }));
|
|
74
|
+
const band = root.firstElementChild as HTMLElement;
|
|
75
|
+
expect(band.className).toContain('border-b');
|
|
76
|
+
// `SETTINGS_BAND_HEIGHT_INSET`: the sheet's band is the surface's top edge,
|
|
77
|
+
// so it carries the notch. happy-dom drops an `env()` in a shorthand, which
|
|
78
|
+
// is why the height (and not `paddingTop`) is the assertion — the same note
|
|
79
|
+
// `drawer-strip.tsx` records for the tab strip.
|
|
80
|
+
expect(band.style.height).toContain('4rem');
|
|
81
|
+
expect(band.style.height).toContain('env(safe-area-inset-top, 0px)');
|
|
82
|
+
});
|
|
83
|
+
});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The settings sheet's ONE header band, on every width.
|
|
8
|
+
*
|
|
9
|
+
* It used to be drawn three times on a phone: the sheet's own bar, the
|
|
10
|
+
* master/detail shell's back bar, and the drilled pane's band. Measured at
|
|
11
|
+
* 390x844 on Settings → Appearance → Palette those three were 64px, 35px and
|
|
12
|
+
* 64px — 163px, ~19% of the screen, spent on three rows that each meant "go
|
|
13
|
+
* back", two of which did it. The band is now the only chrome above a pane: the
|
|
14
|
+
* sheet renders it, and a drilled pane registers what it should say
|
|
15
|
+
* (`settings/drill.tsx`).
|
|
16
|
+
*
|
|
17
|
+
* The BACK control is the band's leading slot, so it sits where a phone user
|
|
18
|
+
* reaches for it and where every other drilled screen in the app puts it. It is
|
|
19
|
+
* drawn only while there is somewhere to go: the category list is the sheet's
|
|
20
|
+
* root, so a back control there would be a control that does nothing.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
import { ChevronLeft, X } from 'lucide-preact';
|
|
24
|
+
import { SETTINGS_BAND, SETTINGS_BAND_HEIGHT_INSET } from '@/client/components/settings/pane-header';
|
|
25
|
+
|
|
26
|
+
interface SettingsBandProps {
|
|
27
|
+
/** The screen on display: a category, or the drilled group inside it. */
|
|
28
|
+
label: string;
|
|
29
|
+
/** The one line under it, when the screen has one. */
|
|
30
|
+
description?: string;
|
|
31
|
+
/** Leave the drilled screen; absent on the sheet's root. */
|
|
32
|
+
onBack?: () => void;
|
|
33
|
+
/** Accessible name for that control. */
|
|
34
|
+
backLabel?: string;
|
|
35
|
+
onClose: () => void;
|
|
36
|
+
/** The root's own label ("Settings") is a wordmark, not a category title. */
|
|
37
|
+
root?: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function SettingsBand({
|
|
41
|
+
label,
|
|
42
|
+
description,
|
|
43
|
+
onBack,
|
|
44
|
+
backLabel = 'Back',
|
|
45
|
+
onClose,
|
|
46
|
+
root = false,
|
|
47
|
+
}: SettingsBandProps) {
|
|
48
|
+
return (
|
|
49
|
+
<div
|
|
50
|
+
className={`${SETTINGS_BAND} justify-between px-4 md:px-6`}
|
|
51
|
+
style={{
|
|
52
|
+
height: SETTINGS_BAND_HEIGHT_INSET,
|
|
53
|
+
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
54
|
+
paddingLeft: 'max(1rem, env(safe-area-inset-left, 0px))',
|
|
55
|
+
paddingRight: 'max(1rem, env(safe-area-inset-right, 0px))',
|
|
56
|
+
}}
|
|
57
|
+
>
|
|
58
|
+
<div className="flex items-center gap-2 min-w-0">
|
|
59
|
+
{/* One back control for the whole sheet. `md:hidden` because a desktop
|
|
60
|
+
shows both panes at once, so there is no screen to leave. */}
|
|
61
|
+
{onBack ? (
|
|
62
|
+
<button
|
|
63
|
+
type="button"
|
|
64
|
+
onClick={onBack}
|
|
65
|
+
aria-label={backLabel}
|
|
66
|
+
className="md:hidden -ml-2 p-1.5 rounded-lg hover:bg-ink/5 active:bg-ink/10 text-ink flex-shrink-0"
|
|
67
|
+
>
|
|
68
|
+
<ChevronLeft size={20} />
|
|
69
|
+
</button>
|
|
70
|
+
) : null}
|
|
71
|
+
|
|
72
|
+
<div className="truncate">
|
|
73
|
+
<h3
|
|
74
|
+
className={`font-semibold tracking-tight text-ink leading-tight ${
|
|
75
|
+
root ? 'text-sm' : 'text-base'
|
|
76
|
+
}`}
|
|
77
|
+
>
|
|
78
|
+
{label}
|
|
79
|
+
</h3>
|
|
80
|
+
{description ? (
|
|
81
|
+
<p className="text-[11px] text-ink/60 truncate hidden sm:block">{description}</p>
|
|
82
|
+
) : null}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<button
|
|
87
|
+
type="button"
|
|
88
|
+
onClick={onClose}
|
|
89
|
+
className="p-1.5 rounded-lg text-ink/50 hover:text-ink hover:bg-ink/5 transition-colors cursor-pointer flex-shrink-0"
|
|
90
|
+
aria-label="Close settings"
|
|
91
|
+
>
|
|
92
|
+
<X size={18} strokeWidth={2.2} />
|
|
93
|
+
</button>
|
|
94
|
+
</div>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'preact/hooks';
|
|
2
|
-
import { ChevronLeft, X } from 'lucide-preact';
|
|
3
2
|
import type { SettingsCategoryId, SettingsState } from '@/shared/types';
|
|
4
3
|
import { mergeKabmoSettings } from '@/shared/lib/settings/client';
|
|
5
4
|
import { diffSettings } from '@/shared/lib/settings/diff';
|
|
@@ -15,7 +14,8 @@ import { SettingsSidebar, settingsCategoriesFor } from '@/client/components/sett
|
|
|
15
14
|
import { useHarnesses } from '@/client/hooks/models/use-harnesses';
|
|
16
15
|
import { CategoryContent } from '@/client/components/settings/category-content';
|
|
17
16
|
import type { CatalogTab } from '@/client/components/settings/categories/SkillCatalogSettings';
|
|
18
|
-
import {
|
|
17
|
+
import { SettingsBand } from '@/client/components/settings/Band';
|
|
18
|
+
import { SettingsDrillProvider, useSettingsDrillState } from '@/client/components/settings/drill';
|
|
19
19
|
|
|
20
20
|
export interface SettingsModalProps {
|
|
21
21
|
isOpen: boolean;
|
|
@@ -39,6 +39,9 @@ export function SettingsModal({
|
|
|
39
39
|
const [autoOpenAdd, setAutoOpenAdd] = useState(autoOpenAddProvider);
|
|
40
40
|
const [searchQuery, setSearchQuery] = useState('');
|
|
41
41
|
const [isMobileDrilled, setIsMobileDrilled] = useState(false);
|
|
42
|
+
// What the sheet's one band says on a phone: a category registers its drilled
|
|
43
|
+
// pane here instead of drawing a bar of its own.
|
|
44
|
+
const { register: registerDrill, drill } = useSettingsDrillState();
|
|
42
45
|
const writeKabmoSettings = useKabmoSettingsWriter();
|
|
43
46
|
const { isReloading, reload: reloadEngine } = useReloadOmpEngine();
|
|
44
47
|
const { isRestarting, restart: restartKabmo } = useRestartKabmo();
|
|
@@ -148,6 +151,7 @@ export function SettingsModal({
|
|
|
148
151
|
className="glass-overlay relative bg-paper border border-ink/15 md:rounded-2xl shadow-2xl w-full h-full md:max-w-5xl lg:max-w-6xl xl:max-w-[1280px] md:h-[min(90vh,900px)] md:max-h-[92vh] flex flex-col md:flex-row overflow-hidden text-ink"
|
|
149
152
|
onClick={(e) => e.stopPropagation()}
|
|
150
153
|
>
|
|
154
|
+
<SettingsDrillProvider register={registerDrill}>
|
|
151
155
|
{/* DESKTOP VIEW: 2-Column Split */}
|
|
152
156
|
<div className="hidden md:flex w-72 flex-shrink-0 h-full">
|
|
153
157
|
<SettingsSidebar
|
|
@@ -165,52 +169,41 @@ export function SettingsModal({
|
|
|
165
169
|
/>
|
|
166
170
|
</div>
|
|
167
171
|
|
|
168
|
-
{/*
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
>
|
|
192
|
-
<ChevronLeft size={20} />
|
|
193
|
-
</button>
|
|
194
|
-
|
|
195
|
-
<div className="truncate">
|
|
196
|
-
<h3 className="font-semibold text-base tracking-tight text-ink leading-tight">
|
|
197
|
-
{currentCategoryDef.label}
|
|
198
|
-
</h3>
|
|
199
|
-
<p className="text-[11px] text-ink/60 truncate hidden sm:block">
|
|
200
|
-
{currentCategoryDef.description}
|
|
201
|
-
</p>
|
|
202
|
-
</div>
|
|
203
|
-
</div>
|
|
172
|
+
{/* THE PHONE'S ONE BAND. It used to be drawn three times (the sheet's
|
|
173
|
+
bar, the master/detail back bar, the group band — measured 64 + 35 +
|
|
174
|
+
64px), and two of the three were a back control. It now names
|
|
175
|
+
whatever screen is up: "Settings" at the root, the category once
|
|
176
|
+
opened, and the drilled pane's own label when a category registers
|
|
177
|
+
one (`settings/drill.tsx`). The back control appears only when there
|
|
178
|
+
is somewhere to go. */}
|
|
179
|
+
<div className="md:hidden flex-shrink-0 bg-canvas">
|
|
180
|
+
<SettingsBand
|
|
181
|
+
root={!isMobileDrilled || drill === null}
|
|
182
|
+
label={!isMobileDrilled ? 'Settings' : drill?.label ?? currentCategoryDef.label}
|
|
183
|
+
{...(!isMobileDrilled
|
|
184
|
+
? {}
|
|
185
|
+
: { description: drill?.description ?? currentCategoryDef.description })}
|
|
186
|
+
{...(isMobileDrilled
|
|
187
|
+
? {
|
|
188
|
+
onBack: drill?.back ?? (() => setIsMobileDrilled(false)),
|
|
189
|
+
backLabel: drill?.backLabel ?? 'Back to categories',
|
|
190
|
+
}
|
|
191
|
+
: {})}
|
|
192
|
+
onClose={onClose}
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
204
195
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
196
|
+
{/* DESKTOP & MOBILE DETAIL VIEW. On a phone this is ONE screen under
|
|
197
|
+
that band; on a desktop the band is the detail column's own, naming
|
|
198
|
+
the category (both panes are visible, so there is no screen to
|
|
199
|
+
leave). */}
|
|
200
|
+
<div className={`flex-1 flex-col h-full overflow-hidden min-w-0 ${isMobileDrilled ? 'flex' : 'hidden md:flex'}`}>
|
|
201
|
+
<div className="hidden md:block flex-shrink-0">
|
|
202
|
+
<SettingsBand
|
|
203
|
+
label={currentCategoryDef.label}
|
|
204
|
+
description={currentCategoryDef.description}
|
|
205
|
+
onClose={onClose}
|
|
206
|
+
/>
|
|
214
207
|
</div>
|
|
215
208
|
|
|
216
209
|
{/* Scrollable Settings Body - Full Width across all categories */}
|
|
@@ -238,28 +231,9 @@ export function SettingsModal({
|
|
|
238
231
|
</div>
|
|
239
232
|
</div>
|
|
240
233
|
|
|
241
|
-
{/* MOBILE CATEGORY LIST VIEW (When not drilled into detail)
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
className={`${SETTINGS_BAND} px-4 justify-between bg-canvas`}
|
|
245
|
-
style={{
|
|
246
|
-
height: SETTINGS_BAND_HEIGHT_INSET,
|
|
247
|
-
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
248
|
-
paddingLeft: 'max(1rem, env(safe-area-inset-left, 0px))',
|
|
249
|
-
paddingRight: 'max(1rem, env(safe-area-inset-right, 0px))',
|
|
250
|
-
}}
|
|
251
|
-
>
|
|
252
|
-
<span className="font-bold text-sm tracking-tight text-ink">Settings</span>
|
|
253
|
-
<button
|
|
254
|
-
type="button"
|
|
255
|
-
onClick={onClose}
|
|
256
|
-
className="p-1.5 rounded-lg text-ink/50 hover:text-ink"
|
|
257
|
-
aria-label="Close"
|
|
258
|
-
>
|
|
259
|
-
<X size={18} />
|
|
260
|
-
</button>
|
|
261
|
-
</div>
|
|
262
|
-
|
|
234
|
+
{/* MOBILE CATEGORY LIST VIEW (When not drilled into detail). Under the
|
|
235
|
+
same one band, so the root screen is a list, not a second header. */}
|
|
236
|
+
<div className={`flex-1 flex-col h-full bg-canvas md:hidden min-h-0 ${isMobileDrilled ? 'hidden' : 'flex'}`}>
|
|
263
237
|
<div
|
|
264
238
|
className="flex-1 overflow-hidden"
|
|
265
239
|
style={{ paddingBottom: 'env(safe-area-inset-bottom, 0px)' }}
|
|
@@ -278,6 +252,7 @@ export function SettingsModal({
|
|
|
278
252
|
/>
|
|
279
253
|
</div>
|
|
280
254
|
</div>
|
|
255
|
+
</SettingsDrillProvider>
|
|
281
256
|
</div>
|
|
282
257
|
</div>
|
|
283
258
|
);
|
|
@@ -34,7 +34,8 @@ import { applyToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mo
|
|
|
34
34
|
import { applyShowChangedFiles } from '@/client/hooks/chat/timeline/changed-files-setting';
|
|
35
35
|
import { applySidebarStyle } from '@/client/hooks/workspace/sidebar-style';
|
|
36
36
|
import { applyPanelNav } from '@/client/hooks/workspace/panel-nav';
|
|
37
|
-
import {
|
|
37
|
+
import { applyMobilePanelNav } from '@/client/hooks/workspace/mobile-panel-nav';
|
|
38
|
+
import { revealLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
38
39
|
import { applyComposerStyle } from '@/client/hooks/chat/composer/style';
|
|
39
40
|
import { applySurfaceStyle } from '@/client/hooks/ui/surface-style';
|
|
40
41
|
import { applyBorderStyle } from '@/client/hooks/ui/border-style';
|
|
@@ -105,10 +106,20 @@ export function applySettingsSideEffects(previous: SettingsState, next: Settings
|
|
|
105
106
|
if (next.rightPanelNav !== previous.rightPanelNav) {
|
|
106
107
|
applyPanelNav('right', next.rightPanelNav);
|
|
107
108
|
}
|
|
108
|
-
// The phone's
|
|
109
|
-
// modal, so this event is what keeps a mounted one honest.
|
|
109
|
+
// The phone's drawers are their own screens and may not be mounted behind the
|
|
110
|
+
// modal, so this event is what keeps a mounted one honest. Each side is
|
|
111
|
+
// announced separately, like the desktop columns above: one drawer's change
|
|
112
|
+
// must not re-mount the other's tree.
|
|
113
|
+
if (next.mobileLeftPanelNav !== previous.mobileLeftPanelNav) {
|
|
114
|
+
applyMobilePanelNav('left', next.mobileLeftPanelNav);
|
|
115
|
+
// The left drawer only HAS a strip while the rail is on, so choosing the
|
|
116
|
+
// tab style with the rail off would draw nothing at all — a card marked
|
|
117
|
+
// "active" over a drawer that never changes. Same coupling the placement
|
|
118
|
+
// store already applies when a panel is dropped on the dock.
|
|
119
|
+
if (next.mobileLeftPanelNav === 'tabs') revealLeftDock();
|
|
120
|
+
}
|
|
110
121
|
if (next.mobileRightPanelNav !== previous.mobileRightPanelNav) {
|
|
111
|
-
|
|
122
|
+
applyMobilePanelNav('right', next.mobileRightPanelNav);
|
|
112
123
|
}
|
|
113
124
|
|
|
114
125
|
// The composer style reorders the card's rows. The composer is NOT visible
|
|
@@ -107,16 +107,29 @@ describe('settings pane bands', () => {
|
|
|
107
107
|
expect(topBand(root).style.height).toBe(SETTINGS_BAND_HEIGHT);
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
/**
|
|
111
|
+
* A grouped category's bands are DESKTOP chrome.
|
|
112
|
+
*
|
|
113
|
+
* A phone draws ONE band (the sheet's, `settings/Band.tsx`) and the panes
|
|
114
|
+
* register their label with it, so their own bands are `hidden md:flex` — the
|
|
115
|
+
* height is still the shared one for the width that draws them, and the
|
|
116
|
+
* phone cannot re-grow the three stacked bars that measured 163px of an 844px
|
|
117
|
+
* screen.
|
|
118
|
+
*/
|
|
119
|
+
test('a grouped category matches the drawer band on a desktop and hides it on a phone', () => {
|
|
111
120
|
const groups = [
|
|
112
121
|
{ id: 'palette' as const, label: 'Palette', hint: 'The console’s colours', icon: (() => null) as never },
|
|
113
122
|
];
|
|
114
123
|
const sidebar = mount(
|
|
115
124
|
h(GroupSidebar, { groups, activeGroupId: 'palette' as const, onSelectGroup: () => {} }),
|
|
116
125
|
);
|
|
117
|
-
|
|
126
|
+
const sidebarBand = topBand(sidebar);
|
|
127
|
+
expect(sidebarBand.style.height).toBe(SETTINGS_BAND_HEIGHT);
|
|
128
|
+
expect(sidebarBand.className).toContain('hidden md:flex');
|
|
118
129
|
|
|
119
130
|
const detail = mount(h(GroupDetail, { group: { label: 'Palette', description: 'Colours' }, children: null }));
|
|
120
|
-
|
|
131
|
+
const detailBand = topBand(detail);
|
|
132
|
+
expect(detailBand.style.height).toBe(SETTINGS_BAND_HEIGHT);
|
|
133
|
+
expect(detailBand.className).toContain('hidden md:flex');
|
|
121
134
|
});
|
|
122
135
|
});
|
|
@@ -32,20 +32,34 @@ import { act } from 'preact/test-utils';
|
|
|
32
32
|
import { AppearanceSettings } from '@/client/components/settings/categories/AppearanceSettings';
|
|
33
33
|
import { APPEARANCE_GROUPS } from '@/client/components/settings/categories/appearance-settings/groups';
|
|
34
34
|
import { DEFAULT_SETTINGS } from '@/shared/lib/settings/defaults';
|
|
35
|
+
import {
|
|
36
|
+
SettingsDrillProvider,
|
|
37
|
+
type SettingsDrill,
|
|
38
|
+
} from '@/client/components/settings/drill';
|
|
35
39
|
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
36
40
|
|
|
37
41
|
let container: HTMLElement;
|
|
38
42
|
let updates = 0;
|
|
43
|
+
/** What the category published to the sheet's ONE band. */
|
|
44
|
+
let drill: SettingsDrill | null = null;
|
|
39
45
|
|
|
40
46
|
function mount(): void {
|
|
41
47
|
act(() => {
|
|
42
48
|
render(
|
|
43
|
-
h(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
h(
|
|
50
|
+
SettingsDrillProvider,
|
|
51
|
+
{
|
|
52
|
+
register: (next: SettingsDrill | null) => {
|
|
53
|
+
drill = next;
|
|
54
|
+
},
|
|
55
|
+
children: h(AppearanceSettings, {
|
|
56
|
+
settings: DEFAULT_SETTINGS,
|
|
57
|
+
onUpdate: () => {
|
|
58
|
+
updates += 1;
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
47
61
|
},
|
|
48
|
-
|
|
62
|
+
),
|
|
49
63
|
container,
|
|
50
64
|
);
|
|
51
65
|
});
|
|
@@ -122,23 +136,35 @@ describe('AppearanceSettings master/detail', () => {
|
|
|
122
136
|
}
|
|
123
137
|
});
|
|
124
138
|
|
|
125
|
-
|
|
139
|
+
/**
|
|
140
|
+
* On a phone the chosen group replaces the list, and the SHEET's one band
|
|
141
|
+
* names it. The pane draws no bar of its own: three stacked bars (the sheet's,
|
|
142
|
+
* the master/detail back bar, the group band) were measured at 163px of an
|
|
143
|
+
* 844px screen, two of them a back control. The registration IS the contract —
|
|
144
|
+
* the band draws the label and calls `back`.
|
|
145
|
+
*/
|
|
146
|
+
test('on a phone the chosen group replaces the list and registers with the sheet band', () => {
|
|
126
147
|
mount();
|
|
127
148
|
const { list, detail } = panes();
|
|
128
149
|
|
|
129
150
|
expect(list.className).not.toContain('hidden');
|
|
130
151
|
expect(detail.className).toContain('hidden');
|
|
152
|
+
// The list is the screen, so the band keeps naming the category.
|
|
153
|
+
expect(drill).toBeNull();
|
|
131
154
|
|
|
132
155
|
act(() => groupRow('Editor').click());
|
|
133
156
|
|
|
134
157
|
expect(list.className).toContain('hidden');
|
|
135
158
|
expect(detail.className).not.toContain('hidden');
|
|
159
|
+
expect(drill?.label).toBe('Editor');
|
|
160
|
+
expect(drill?.backLabel).toBe('Back to Appearance settings');
|
|
161
|
+
// And the pane draws no second bar of its own.
|
|
162
|
+
expect(container.querySelector('button[aria-label="Back to Appearance settings"]')).toBeNull();
|
|
136
163
|
|
|
137
|
-
|
|
138
|
-
expect(back).not.toBeNull();
|
|
139
|
-
act(() => (back as HTMLButtonElement).click());
|
|
164
|
+
act(() => drill?.back());
|
|
140
165
|
|
|
141
166
|
expect(list.className).not.toContain('hidden');
|
|
142
167
|
expect(detail.className).toContain('hidden');
|
|
168
|
+
expect(drill).toBeNull();
|
|
143
169
|
});
|
|
144
170
|
});
|