@kabmo-labs/kabmo 0.45.1 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +412 -412
  3. package/dist/client/static/js/{CsvGrid-eqmctwyq.js → CsvGrid-br4j001k.js} +2 -2
  4. package/dist/client/static/js/{DocxView-rjrshmzf.js → DocxView-kmtkbmmw.js} +3 -3
  5. package/dist/client/static/js/{DrawioView-za569srw.js → DrawioView-3df0g3jr.js} +2 -2
  6. package/dist/client/static/js/ImageView-2r8p5z3y.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-rq3d2a4e.js +2 -0
  8. package/dist/client/static/js/Modal-tmxhxd6q.js +59 -0
  9. package/dist/client/static/js/{PdfView-2m78d4jz.js → PdfView-p5z7c7eg.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-54awmse0.js → SessionsView-t06h6zfx.js} +1 -1
  11. package/dist/client/static/js/{SheetView-xfvjdh24.js → SheetView-agw459v2.js} +19 -19
  12. package/dist/client/static/js/{SvgPreview-yfjrfb40.js → SvgPreview-b9rfy1h6.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-tmsa3b36.js → abnfDiagram-O67JEVCF-wbnhzcnj.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-pvb4d65d.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-a5effrpz.js → architectureDiagram-NJMV4G6O-t2sgevea.js} +3 -3
  16. package/dist/client/static/js/{astro-56b0as3q.js → astro-hyj5wege.js} +1 -1
  17. package/dist/client/static/js/bash-8d8z8zrg.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-3q2kf22c.js → blockDiagram-BEXU5L5S-v2nzp54a.js} +5 -5
  19. package/dist/client/static/js/c-acmn1zc9.js +1 -0
  20. package/dist/client/static/js/{c4Diagram-YGBWAQC7-mkw3jvf6.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fw9bs1za.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-eqjrpps4.js → cose-bilkent-JH36ORCC-c4tnh4mg.js} +1 -1
  23. package/dist/client/static/js/cpp-620mvjkk.js +1 -0
  24. package/dist/client/static/js/css-bt76kxbq.js +1 -0
  25. package/dist/client/static/js/css-drfs4n12.js +1 -0
  26. package/dist/client/static/js/cynefin-OW5HDTMX-gmx4vean.js +1 -0
  27. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-4w61hq3e.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-t52jdfr1.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-448hyxaz.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
  30. package/dist/client/static/js/{diagram-3UASUU5V-350k213a.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
  31. package/dist/client/static/js/{diagram-ATOU4E4O-9davjeyb.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-034wwghk.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
  33. package/dist/client/static/js/{diagram-MLGK6HIB-kzzd4ecm.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
  34. package/dist/client/static/js/{diagram-MPIPVDR6-rsky4e3s.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-68b0e6b6.js → dockerfile-00hqsk9c.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-7bm1e394.js → ebnfDiagram-ZINNZB2B-bsk7dvm4.js} +1 -1
  37. package/dist/client/static/js/{elixir-12pgbgtq.js → elixir-80wq7gak.js} +1 -1
  38. package/dist/client/static/js/{elk-276RUBZZ-4xjp4rgh.js → elk-276RUBZZ-dsq91er5.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-v52qmcrv.js → erDiagram-OPXOYQCR-p7p13mbh.js} +9 -9
  40. package/dist/client/static/js/{erlang-811btv6p.js → erlang-814e8qy5.js} +1 -1
  41. package/dist/client/static/js/eventmodeling-NTZA5JFV-vrnheyh7.js +1 -0
  42. package/dist/client/static/js/flowDiagram-KWPJA3E3-7b4w6phx.js +1 -0
  43. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1r1fn18p.js → ganttDiagram-FUAMR5RP-bwgnttyk.js} +4 -4
  44. package/dist/client/static/js/gitGraph-4MIJSDKK-n6wnc8st.js +1 -0
  45. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-zt5cwg83.js → gitGraphDiagram-X574FWY7-ca0gj5am.js} +13 -13
  46. package/dist/client/static/js/graphql-j1a6zp7m.js +1 -0
  47. package/dist/client/static/js/html-m0megrvb.js +1 -0
  48. package/dist/client/static/js/index-064vdkrs.js +2 -0
  49. package/dist/client/static/js/{index-x0kgnkv3.js → index-16sd19f0.js} +2 -2
  50. package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
  51. package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
  52. package/dist/client/static/js/{index-127se1a3.js → index-29npynva.js} +19 -19
  53. package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
  54. package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
  55. package/dist/client/static/js/index-3bf7r7z4.js +12 -0
  56. package/dist/client/static/js/index-3qnjdjg2.js +1 -0
  57. package/dist/client/static/js/index-4bqssvt6.js +2 -0
  58. package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
  59. package/dist/client/static/js/{index-xgv501v0.js → index-5gf52a6d.js} +2 -2
  60. package/dist/client/static/js/{index-84vmdg3k.js → index-5h8y54t6.js} +1 -1
  61. package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
  62. package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
  63. package/dist/client/static/js/{index-528x5x8c.js → index-7055hdx1.js} +1 -1
  64. package/dist/client/static/js/index-8pksqzwq.js +1 -0
  65. package/dist/client/static/js/index-95kese1h.js +1 -0
  66. package/dist/client/static/js/{index-tkfxnnr5.js → index-9d3n04vb.js} +2 -2
  67. package/dist/client/static/js/{index-ga6492qc.js → index-aagt3382.js} +1 -1
  68. package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
  69. package/dist/client/static/js/{index-q36gq3yz.js → index-amys498v.js} +198 -198
  70. package/dist/client/static/js/{index-9zwtpazh.js → index-bafe7hmd.js} +2 -2
  71. package/dist/client/static/js/{index-mnh8nptt.js → index-bjv5ga2e.js} +2 -2
  72. package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
  73. package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
  74. package/dist/client/static/js/index-dpy3ewrn.css +1 -0
  75. package/dist/client/static/js/{index-2tmnqqzt.js → index-dr5hca5b.js} +3 -3
  76. package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
  77. package/dist/client/static/js/index-eqhjs1yv.js +4 -0
  78. package/dist/client/static/js/{index-cza9mnxx.js → index-ex5dtdx2.js} +6 -6
  79. package/dist/client/static/js/{index-8ps5gdwz.js → index-f7te27n5.js} +5 -5
  80. package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
  81. package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
  82. package/dist/client/static/js/index-gq5w5w8x.js +2 -0
  83. package/dist/client/static/js/{index-jaqjvk22.js → index-hkz2mz34.js} +2 -2
  84. package/dist/client/static/js/{index-gzp4j2h5.js → index-hnb66d3s.js} +2 -2
  85. package/dist/client/static/js/{index-bcpyxt97.js → index-j718pxb3.js} +2 -2
  86. package/dist/client/static/js/{index-0gmw2bt3.js → index-jkay7aw7.js} +2 -2
  87. package/dist/client/static/js/{index-ex3w7t7s.js → index-k5zfzgez.js} +2 -2
  88. package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
  89. package/dist/client/static/js/{index-2zntn964.js → index-ncpwteyt.js} +2 -2
  90. package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
  91. package/dist/client/static/js/{index-j50y0z44.js → index-pwe6chtp.js} +1 -1
  92. package/dist/client/static/js/{index-8dtp7mt0.js → index-qf3y3ahx.js} +2 -2
  93. package/dist/client/static/js/{index-as1wptfa.js → index-qfxn7yh5.js} +2 -2
  94. package/dist/client/static/js/{index-snjtkfkq.js → index-qn200x1b.js} +6 -6
  95. package/dist/client/static/js/index-red856x6.js +1 -0
  96. package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
  97. package/dist/client/static/js/{index-m9s7r4z9.js → index-ta6gpcpw.js} +3 -3
  98. package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
  99. package/dist/client/static/js/{index-2gbfke1a.js → index-twsbv1yn.js} +1 -1
  100. package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
  101. package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
  102. package/dist/client/static/js/{index-frqq7yen.js → index-x1fqhhpp.js} +64 -64
  103. package/dist/client/static/js/{index-mhnwyra0.js → index-y2z8nsvw.js} +2 -2
  104. package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
  105. package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
  106. package/dist/client/static/js/{index-zwx3vbf0.js → index-zedt16w7.js} +1 -1
  107. package/dist/client/static/js/{index-c7vbr57m.js → index-zq0qxb17.js} +2 -2
  108. package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
  109. package/dist/client/static/js/{infoDiagram-VRGFBTTK-yd4zwrtv.js → infoDiagram-VRGFBTTK-7q58qdf1.js} +2 -2
  110. package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
  111. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-7sjp09d4.js → ishikawaDiagram-OU5B5YK6-9jmeszag.js} +3 -3
  112. package/dist/client/static/js/java-jj41mty3.js +1 -0
  113. package/dist/client/static/js/javascript-n9w9p97f.js +1 -0
  114. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-qh9jk7qk.js → journeyDiagram-ZHPQQLJL-0d7xe845.js} +5 -5
  115. package/dist/client/static/js/json-rnh2h17x.js +1 -0
  116. package/dist/client/static/js/jsx-4gecrt29.js +1 -0
  117. package/dist/client/static/js/{julia-mgsev9df.js → julia-yv2j8qd0.js} +1 -1
  118. package/dist/client/static/js/{kanban-definition-PNTS6WVX-cjc8k0jk.js → kanban-definition-PNTS6WVX-7p83rwdn.js} +5 -5
  119. package/dist/client/static/js/lua-zszaw2f7.js +1 -0
  120. package/dist/client/static/js/markdown-nm6gw4v4.js +1 -0
  121. package/dist/client/static/js/{mermaid.core-vw0b7r0k.js → mermaid.core-hwhzw0wv.js} +7 -7
  122. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jyhtpt1z.js → mindmap-definition-NLK3R4M7-hy0rtr7t.js} +8 -8
  123. package/dist/client/static/js/one-dark-pro-4b8er03c.js +1 -0
  124. package/dist/client/static/js/one-light-e6r3vsz4.js +1 -0
  125. package/dist/client/static/js/packet-AYTQ26CC-zm1r82x5.js +1 -0
  126. package/dist/client/static/js/{pegDiagram-GJSIUBJH-80ygdd29.js → pegDiagram-GJSIUBJH-kd8t53tx.js} +1 -1
  127. package/dist/client/static/js/{perl-6n93vjsa.js → perl-917pjq5a.js} +1 -1
  128. package/dist/client/static/js/{php-w23nmbtc.js → php-hwz75qzt.js} +1 -1
  129. package/dist/client/static/js/pie-WAS4IAKB-sqa7321j.js +1 -0
  130. package/dist/client/static/js/{pieDiagram-5QR66LMP-6vgh7ntn.js → pieDiagram-5QR66LMP-h3x03f80.js} +3 -3
  131. package/dist/client/static/js/properties-rkptax7r.js +1 -0
  132. package/dist/client/static/js/python-qf1se1mj.js +1 -0
  133. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-k5byajmm.js → quadrantDiagram-O4NWA36T-y2b1ncbg.js} +6 -6
  134. package/dist/client/static/js/r-ms0cygq2.js +1 -0
  135. package/dist/client/static/js/radar-RG4KPBEZ-z3z82syp.js +1 -0
  136. package/dist/client/static/js/railroad-74A4TZTK-z6swcqq2.js +1 -0
  137. package/dist/client/static/js/railroad-abnf-HS5TGJTU-33km6py4.js +1 -0
  138. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zbf1xmq.js +1 -0
  139. package/dist/client/static/js/railroad-peg-WCYAUIDC-wte1xzzy.js +1 -0
  140. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-qffrkk7g.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
  141. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-r80w7tdp.js → requirementDiagram-PLB6GJNP-g5e9fk17.js} +10 -10
  142. package/dist/client/static/js/{ruby-ag3b3t9t.js → ruby-er7ayhte.js} +1 -1
  143. package/dist/client/static/js/{rust-a9jcfy2e.js → rust-1v8xbxn9.js} +1 -1
  144. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-g9qdy74b.js → sankeyDiagram-IPEJSGJF-y9ht91gf.js} +4 -4
  145. package/dist/client/static/js/{sass-x0eez0kp.js → sass-n47tt136.js} +1 -1
  146. package/dist/client/static/js/{scss-qycakpjn.js → scss-kvev49ga.js} +1 -1
  147. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nywg1eq3.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
  148. package/dist/client/static/js/{sizeCapture-INFHLROL-m5pks027.js → sizeCapture-INFHLROL-k6dhfxex.js} +1 -1
  149. package/dist/client/static/js/sql-hd42h8wx.js +1 -0
  150. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-xzzv780w.js → stateDiagram-v2-GCMORJYK-y3akpsm4.js} +3 -3
  151. package/dist/client/static/js/{svelte-tg19by0f.js → svelte-2pmz35vx.js} +1 -1
  152. package/dist/client/static/js/{swimlanes-2SLR337P-n4q5ad13.js → swimlanes-2SLR337P-89081dr3.js} +1 -1
  153. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-3q2a15wc.js +8 -0
  154. package/dist/client/static/js/{timeline-definition-EJHVYXUP-j9pde7sa.js → timeline-definition-EJHVYXUP-tz6r8g3q.js} +6 -6
  155. package/dist/client/static/js/treeView-Q6P3EWNA-pvgx6n22.js +1 -0
  156. package/dist/client/static/js/treemap-WGGIJYW6-3n9zm628.js +1 -0
  157. package/dist/client/static/js/tsx-gx7td06z.js +1 -0
  158. package/dist/client/static/js/typescript-1a808spn.js +1 -0
  159. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ehnc0600.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-cp4kj6kw.js → vennDiagram-UO4OBE2U-qdmjf6x3.js} +7 -7
  161. package/dist/client/static/js/{vue-mhj4sme0.js → vue-d5gpjfgn.js} +1 -1
  162. package/dist/client/static/js/wardley-WFR3VGLG-7m07ewc4.js +1 -0
  163. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-eegf1jpw.js → wardleyDiagram-VNRHLVJA-3n2sm7rj.js} +3 -3
  164. package/dist/client/static/js/xml-3117mxd9.js +1 -0
  165. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-zkkqfyex.js → xychartDiagram-PMCCYNJV-d7n2av2t.js} +5 -5
  166. package/dist/client/static/js/yaml-dmvh8vyt.js +1 -0
  167. package/extensions/kabmo-modes/index.ts +1 -1
  168. package/extensions/kabmo-modes/parked.test.ts +2 -2
  169. package/extensions/kabmo-modes/parked.ts +10 -9
  170. package/extensions/kabmo-modes/plan.test.ts +4 -4
  171. package/extensions/kabmo-modes/plan.ts +6 -6
  172. package/extensions/kabmo-modes/session.ts +2 -2
  173. package/package.json +1 -1
  174. package/src/client/components/common/FolderPicker.tsx +1 -1
  175. package/src/client/components/common/Modal.tsx +8 -3
  176. package/src/client/components/common/NotificationPermissionDialog.test.tsx +8 -3
  177. package/src/client/components/common/NotificationPermissionDialog.tsx +7 -9
  178. package/src/client/components/common/PWAInstallButton.tsx +1 -1
  179. package/src/client/components/common/header-panel-buttons/index.tsx +5 -1
  180. package/src/client/components/common/shell-update-button/Modal.tsx +31 -36
  181. package/src/client/components/common/shell-update-button/index.test.tsx +5 -2
  182. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +15 -0
  183. package/src/client/components/layout/desktop-layout/RightColumn.tsx +16 -0
  184. package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
  185. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
  186. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  187. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  188. package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
  189. package/src/client/components/mobile/RightSidebar.tsx +27 -10
  190. package/src/client/components/mobile/SessionSidebar.tsx +112 -137
  191. package/src/client/components/mobile/drawer-strip.tsx +85 -0
  192. package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
  193. package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
  194. package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
  195. package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
  196. package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
  197. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
  198. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
  199. package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
  200. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
  201. package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
  202. package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
  203. package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
  204. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
  205. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
  206. package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
  207. package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +96 -0
  208. package/src/client/components/settings/Band.test.tsx +83 -0
  209. package/src/client/components/settings/Band.tsx +96 -0
  210. package/src/client/components/settings/Modal.tsx +44 -69
  211. package/src/client/components/settings/apply-side-effects.ts +15 -4
  212. package/src/client/components/settings/band-height.test.tsx +16 -3
  213. package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
  214. package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
  215. package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
  216. package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
  217. package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
  218. package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
  219. package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
  220. package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
  221. package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
  222. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  223. package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
  224. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
  225. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
  226. package/src/client/components/settings/drill.tsx +113 -0
  227. package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
  228. package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
  229. package/src/client/components/settings/master-detail/index.tsx +45 -25
  230. package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
  231. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
  232. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
  233. package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
  234. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  235. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
  236. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
  237. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
  238. package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
  239. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  240. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
  241. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
  242. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
  243. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
  244. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
  245. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
  246. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
  247. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
  248. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
  249. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
  250. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
  251. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
  252. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
  253. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
  254. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
  255. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
  256. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
  257. package/src/client/components/workspace/diff-panel/index.tsx +1 -1
  258. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
  259. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
  260. package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
  261. package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
  262. package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
  263. package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
  264. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
  265. package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
  266. package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
  267. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
  268. package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
  269. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  270. package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
  271. package/src/client/data/settings/omp-schema.json +103 -42
  272. package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
  273. package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
  274. package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
  275. package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
  276. package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
  277. package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
  278. package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
  279. package/src/client/hooks/workspace/left-dock.ts +19 -0
  280. package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
  281. package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
  282. package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +283 -0
  283. package/src/client/hooks/workspace/panel-tabs-reveal.ts +162 -0
  284. package/src/client/hooks/workspace/panel-tabs.ts +19 -2
  285. package/src/client/lib/ui/phone-row.test.ts +52 -0
  286. package/src/client/lib/ui/phone-row.ts +71 -0
  287. package/src/client/press-state.test.ts +179 -0
  288. package/src/client/tailwind.css +146 -0
  289. package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
  290. package/src/server/lib/omp/rpc/constants.test.ts +6 -1
  291. package/src/shared/lib/chat/ask-form/data.ts +155 -0
  292. package/src/shared/lib/chat/ask-form/fields.ts +4 -0
  293. package/src/shared/lib/chat/ask-form/index.ts +8 -0
  294. package/src/shared/lib/chat/ask-form/types.ts +12 -0
  295. package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
  296. package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
  297. package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
  298. package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
  299. package/src/shared/lib/omp/dialog-methods.ts +6 -0
  300. package/src/shared/lib/omp/session/wait-idle.ts +7 -3
  301. package/src/shared/lib/settings/defaults.ts +3 -2
  302. package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
  303. package/src/shared/lib/workspace/panel-nav.ts +20 -9
  304. package/src/shared/types/omp/agent.ts +20 -3
  305. package/src/shared/types/settings/state.ts +17 -5
  306. package/dist/client/static/js/ImageView-6ksvyzqv.js +0 -1
  307. package/dist/client/static/js/LayoutWrapper-px60417t.js +0 -2
  308. package/dist/client/static/js/Modal-yv1718s1.js +0 -59
  309. package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
  310. package/dist/client/static/js/bash-mevzaywf.js +0 -1
  311. package/dist/client/static/js/c-y1y6v00q.js +0 -1
  312. package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
  313. package/dist/client/static/js/css-3w3p9s67.js +0 -1
  314. package/dist/client/static/js/css-g85rwzty.js +0 -1
  315. package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
  316. package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
  317. package/dist/client/static/js/flowDiagram-KWPJA3E3-hekt0qsb.js +0 -1
  318. package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
  319. package/dist/client/static/js/graphql-027z8sc0.js +0 -1
  320. package/dist/client/static/js/html-fqda6wxx.js +0 -1
  321. package/dist/client/static/js/index-252br0k2.js +0 -1
  322. package/dist/client/static/js/index-6bm4pw90.css +0 -1
  323. package/dist/client/static/js/index-80qxk9hx.js +0 -1
  324. package/dist/client/static/js/index-9674dxb4.js +0 -1
  325. package/dist/client/static/js/index-9k4121z4.js +0 -4
  326. package/dist/client/static/js/index-b6454rme.js +0 -12
  327. package/dist/client/static/js/index-ck0fd3aj.js +0 -2
  328. package/dist/client/static/js/index-jdf1tks1.js +0 -2
  329. package/dist/client/static/js/index-q58e8x6j.js +0 -1
  330. package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
  331. package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
  332. package/dist/client/static/js/java-zs6qh1dm.js +0 -1
  333. package/dist/client/static/js/javascript-b9mkygak.js +0 -1
  334. package/dist/client/static/js/json-qn73s8xb.js +0 -1
  335. package/dist/client/static/js/jsx-gahhfczw.js +0 -1
  336. package/dist/client/static/js/lua-d8enp14s.js +0 -1
  337. package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
  338. package/dist/client/static/js/one-dark-pro-axkq0m3s.js +0 -1
  339. package/dist/client/static/js/one-light-pncb08qd.js +0 -1
  340. package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
  341. package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
  342. package/dist/client/static/js/properties-g6tpq003.js +0 -1
  343. package/dist/client/static/js/python-cy06fzhg.js +0 -1
  344. package/dist/client/static/js/r-vw8berfv.js +0 -1
  345. package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
  346. package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
  347. package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
  348. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
  349. package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
  350. package/dist/client/static/js/sql-bwnasywx.js +0 -1
  351. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-253nz20y.js +0 -8
  352. package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
  353. package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
  354. package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
  355. package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
  356. package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
  357. package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
  358. package/dist/client/static/js/yaml-avewh7n5.js +0 -1
  359. package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
  360. package/src/shared/lib/ui/safe-area.test.ts +0 -28
  361. 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), so this drawer and the
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 { SETTINGS_BAND, SETTINGS_BAND_HEIGHT_INSET } from '@/client/components/settings/pane-header';
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
- {/* DESKTOP & MOBILE DETAIL VIEW */}
169
- <div className={`flex-1 flex-col h-full overflow-hidden ${isMobileDrilled ? 'flex' : 'hidden md:flex'}`}>
170
- {/* Header Bar. Its height is the sheet's one band height, so the rule
171
- under the drawer's search field continues across this seam.
172
- The inset carries the safe area on a phone: the modal is
173
- full-screen below `md`, so without it the back button and the
174
- title sit under the status bar / notch. */}
175
- <div
176
- className={`${SETTINGS_BAND} px-6 justify-between`}
177
- style={{
178
- height: SETTINGS_BAND_HEIGHT_INSET,
179
- paddingTop: 'env(safe-area-inset-top, 0px)',
180
- paddingLeft: 'max(1.5rem, env(safe-area-inset-left, 0px))',
181
- paddingRight: 'max(1.5rem, env(safe-area-inset-right, 0px))',
182
- }}
183
- >
184
- <div className="flex items-center space-x-3 min-w-0">
185
- {/* Mobile Back Button */}
186
- <button
187
- type="button"
188
- onClick={() => setIsMobileDrilled(false)}
189
- className="md:hidden p-1.5 -ml-2 rounded-lg hover:bg-ink/5 active:bg-ink/10 text-ink"
190
- aria-label="Back to categories"
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
- {/* Modal Close Button */}
206
- <button
207
- type="button"
208
- onClick={onClose}
209
- className="p-1.5 rounded-lg text-ink/50 hover:text-ink hover:bg-ink/5 transition-colors cursor-pointer"
210
- aria-label="Close settings"
211
- >
212
- <X size={18} strokeWidth={2.2} />
213
- </button>
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
- <div className={`flex-1 flex-col h-full bg-canvas md:hidden ${isMobileDrilled ? 'hidden' : 'flex'}`}>
243
- <div
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 { applyMobileRightPanelNav } from '@/client/hooks/workspace/mobile-right-panel-nav';
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 drawer is its own screen and may not be mounted behind the
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
- applyMobileRightPanelNav(next.mobileRightPanelNav);
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
- test('a grouped category matches the drawer band on both panes', () => {
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
- expect(topBand(sidebar).style.height).toBe(SETTINGS_BAND_HEIGHT);
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
- expect(topBand(detail).style.height).toBe(SETTINGS_BAND_HEIGHT);
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(AppearanceSettings, {
44
- settings: DEFAULT_SETTINGS,
45
- onUpdate: () => {
46
- updates += 1;
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
- test('on a phone the chosen group replaces the list, and the back bar returns to it', () => {
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
- const back = container.querySelector('button[aria-label="Back to Appearance settings"]');
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
  });