@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
@@ -82,49 +82,44 @@ export function ShellUpdateModal({ download, phase, message, onConfirm, onClose
82
82
  onClose={onClose}
83
83
  maxWidthClass="max-w-sm"
84
84
  header={<h2 className="text-sm font-semibold text-ink">{label}</h2>}
85
+ // ONE dismissal: `Modal`'s named close is the way out, exactly as in the
86
+ // notification dialog. The footer used to repeat it as a "Close" button in
87
+ // the `done` and `error` phases, both running the same `onClose` — two
88
+ // controls for one action, and two buttons a screen reader (or a strict
89
+ // locator) cannot tell apart. The footer keeps only the ACTIONS.
85
90
  footer={
86
- <div className="flex items-center justify-end gap-2 px-5 pb-4">
87
- {phase === 'confirm' && (
88
- <>
89
- <button type="button" className={SECONDARY} onClick={onClose}>
90
- Cancel
91
- </button>
92
- <button type="button" className={PRIMARY} onClick={onConfirm}>
93
- <Download size={13} />
94
- <span>Install update</span>
95
- </button>
96
- </>
97
- )}
98
-
99
- {phase === 'working' && (
100
- <button type="button" className={PRIMARY} disabled>
101
- <Loader2 size={13} className="animate-spin motion-reduce:animate-none" />
102
- <span>Installing…</span>
103
- </button>
104
- )}
105
-
106
- {phase === 'done' && (
107
- <button type="button" className={PRIMARY} onClick={onClose}>
108
- <Check size={13} />
109
- <span>Close</span>
110
- </button>
111
- )}
91
+ phase === 'done' ? undefined : (
92
+ <div className="flex items-center justify-end gap-2 px-5 pb-4">
93
+ {phase === 'confirm' && (
94
+ <>
95
+ <button type="button" className={SECONDARY} onClick={onClose}>
96
+ Cancel
97
+ </button>
98
+ <button type="button" className={PRIMARY} onClick={onConfirm}>
99
+ <Download size={13} />
100
+ <span>Install update</span>
101
+ </button>
102
+ </>
103
+ )}
112
104
 
113
- {phase === 'error' && (
114
- <>
115
- <button type="button" className={SECONDARY} onClick={onClose}>
116
- Close
105
+ {phase === 'working' && (
106
+ <button type="button" className={PRIMARY} disabled>
107
+ <Loader2 size={13} className="animate-spin motion-reduce:animate-none" />
108
+ <span>Installing…</span>
117
109
  </button>
118
- {/* Retry re-runs the SAME offer: the release is still the one the
119
- console read, and a failure here is the shell's download or its
120
- verification, not a stale version. */}
110
+ )}
111
+
112
+ {phase === 'error' && (
113
+ // Retry re-runs the SAME offer: the release is still the one the
114
+ // console read, and a failure here is the shell's download or its
115
+ // verification, not a stale version.
121
116
  <button type="button" className={PRIMARY} onClick={onConfirm}>
122
117
  <Download size={13} />
123
118
  <span>Try again</span>
124
119
  </button>
125
- </>
126
- )}
127
- </div>
120
+ )}
121
+ </div>
122
+ )
128
123
  }
129
124
  >
130
125
  <div className="px-5 py-4 space-y-3 text-[11px] leading-5 text-ink/70">
@@ -174,7 +174,10 @@ describe('a shell that can install its own update', () => {
174
174
 
175
175
  expect(dialog()?.textContent).toContain('The downloaded file is not a signed Kabmo build.');
176
176
  expect(buttonByText('Try again')).not.toBeNull();
177
- expect(buttonByText('Close')).not.toBeNull();
177
+ // ONE dismissal: the shell's named close. A footer "Close" beside it was a
178
+ // second control for the same action (and made a role/name locator ambiguous).
179
+ expect(buttonByText('Close')).toBeNull();
180
+ expect(byName('Close')).not.toBeNull();
178
181
  });
179
182
 
180
183
  test('closing after a failure, then reopening, starts at the confirmation again', async () => {
@@ -184,7 +187,7 @@ describe('a shell that can install its own update', () => {
184
187
  await mount(DESKTOP);
185
188
  await click(byName('Update Kabmo 0.3.2 for macOS'));
186
189
  await click(buttonByText('Install update'));
187
- await click(buttonByText('Close'));
190
+ await click(byName('Close'));
188
191
  expect(dialog()).toBeNull();
189
192
 
190
193
  await click(byName('Update Kabmo 0.3.2 for macOS'));
@@ -43,6 +43,7 @@ import { LeftDockView } from '@/client/components/layout/LeftDock';
43
43
  import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
44
44
  import { usePanelCatalog } from '@/client/components/workspace/plugin-panel/catalog';
45
45
  import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
46
+ import { useRevealEdge, useRevealPanelTab } from '@/client/hooks/workspace/panel-tabs-reveal';
46
47
  import { SESSIONS_VIEW_ID } from '@/shared/lib/workspace/left-dock';
47
48
  import type { PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
48
49
  import { useLeftDock } from '@/client/hooks/workspace/left-dock';
@@ -149,6 +150,20 @@ export function LeftColumn({
149
150
  const known = useMemo(() => new Set(catalog.map((panel) => panel.id)), [catalog]);
150
151
  const tabsState = usePanelTabs('left', known, SESSIONS_VIEW_ID);
151
152
  const tabsMode = railEnabled && navStyle === 'tabs';
153
+ // The same reveal rule as the right column: the sidebar's expand toggle (and
154
+ // `⌘B`) brings the column back, so it must bring a VIEW back rather than the
155
+ // catalog the strip shows on a fresh session. The session list is pinned, so
156
+ // this is the one column where the answer is always its own view.
157
+ const revealed = useRevealEdge(open);
158
+ useRevealPanelTab({
159
+ enabled: tabsMode,
160
+ revealed,
161
+ view,
162
+ home: tabsState.home,
163
+ chosenHome: tabsState.chosenHome,
164
+ openTab: tabsState.open,
165
+ known,
166
+ });
152
167
 
153
168
  /**
154
169
  * A view opened from a card must reach the BODY, not only the strip, so the
@@ -41,6 +41,7 @@ import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
41
41
  import { usePanelDropTarget } from '@/client/hooks/workspace/panel-drop-target';
42
42
  import { useLeftDock } from '@/client/hooks/workspace/left-dock';
43
43
  import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
44
+ import { useRevealEdge, useRevealPanelTab } from '@/client/hooks/workspace/panel-tabs-reveal';
44
45
  import { useSessionStateContext } from '@/client/hooks/workspace/session-state/context';
45
46
  import { resolvePanelNav, type PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
46
47
 
@@ -119,6 +120,21 @@ export function RightColumn({
119
120
  // stored tab instead of rendering an empty body.
120
121
  const known = new Set(catalog.map((panel) => panel.id));
121
122
  const tabsState = usePanelTabs('right', known, null);
123
+ // A column REVEALED from the navbar's toggle (or `⌥⌘J`) must show a view, not
124
+ // the catalog: the button's promise is "bring the panel back", and the home
125
+ // page is a fresh session's empty state rather than something the click asked
126
+ // for. The Stats readout, which names a panel, already opened one — this is
127
+ // the same answer for the click that names no view. See `panel-tabs-reveal`.
128
+ const revealed = useRevealEdge(open);
129
+ useRevealPanelTab({
130
+ enabled: tabsMode,
131
+ revealed,
132
+ view: shownPanel,
133
+ home: tabsState.home,
134
+ chosenHome: tabsState.chosenHome,
135
+ openTab: tabsState.open,
136
+ known,
137
+ });
122
138
  // In tabs mode the OPEN set is the mounted set; under the rail it is the
123
139
  // whole catalog (minus plugins, which were never kept mounted).
124
140
  const openIds = new Set(tabsState.tabs);
@@ -87,7 +87,7 @@ export function ToolbarOverflowMenu({
87
87
  onClick={() => setOpen(!open)}
88
88
  className={`inline-flex items-center justify-center transition-colors cursor-pointer ${
89
89
  mobile
90
- ? 'w-9.5 h-9.5 rounded-xl border active:scale-95 shadow-xs'
90
+ ? 'w-9.5 h-9.5 rounded-xl border shadow-xs'
91
91
  : 'w-7 h-7 rounded border'
92
92
  } ${
93
93
  open
@@ -19,7 +19,6 @@ import { useDialogBehaviour } from '@/client/hooks/ui/dialog-behaviour';
19
19
  import { UPDATE_POPUP_OPEN_EVENT } from '@/shared/lib/updates/popup-state';
20
20
  import type { UpdateTarget } from '@/shared/types/updates';
21
21
  import { MAX_WIDTH as CARD_MAX_WIDTH } from '@/client/components/workspace/model-dropdown/popover-metrics';
22
- import { safeAreaPadding } from '@/shared/lib/ui/safe-area';
23
22
 
24
23
  export interface AboutModalProps {
25
24
  isOpen: boolean;
@@ -101,12 +100,11 @@ export function AboutModal({ isOpen, onClose, updates, onToast }: AboutModalProp
101
100
 
102
101
  Full-bleed on a phone was the bug: `h-full w-full` with no gutters put
103
102
  the header at the viewport's top edge, which a `viewport-fit: cover`
104
- surface draws UNDER the phone's status bar. The scrim's padding is
105
- `safeAreaPadding` — one rule, shared with the `Modal` shell. The
106
- desktop keeps its FIXED 880px two-column card. */}
103
+ surface draws UNDER the phone's status bar. The scrim's gutter is the
104
+ shared `.modal-safe` rule in `tailwind.css`, the same one every other
105
+ dialog takes. The desktop keeps its FIXED 880px two-column card. */}
107
106
  <div
108
- className="fixed inset-0 modal-scrim z-50 flex items-center justify-center md:backdrop-blur-[2px] animate-in fade-in duration-200"
109
- style={safeAreaPadding()}
107
+ className="fixed inset-0 modal-scrim z-50 flex items-center justify-center modal-safe md:backdrop-blur-[2px] animate-in fade-in duration-200"
110
108
  onClick={onClose}
111
109
  >
112
110
  <div
@@ -136,7 +136,7 @@ function NewWorkspaceForm({
136
136
  };
137
137
 
138
138
  return (
139
- <div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center p-4">
139
+ <div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center modal-safe">
140
140
  <div className="glass-overlay bg-paper border border-ink/10 rounded-lg shadow-xl w-[30rem] max-w-full max-h-full overflow-y-auto flex flex-col">
141
141
  <div className="flex justify-between items-center px-4 pt-4 pb-2 border-b border-ink/10">
142
142
  <h3 className="font-semibold text-sm">New Workspace</h3>
@@ -128,7 +128,7 @@ export function SchedulerModal({
128
128
 
129
129
  return (
130
130
  <div
131
- className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center p-4"
131
+ className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center modal-safe"
132
132
  onClick={busy ? undefined : onClose}
133
133
  role="dialog"
134
134
  aria-modal="true"
@@ -3,6 +3,7 @@ import { useSearchParams } from '@/client/lib/router/search-params';
3
3
  import { clearBranchParams, newSessionParams } from '@/client/lib/router/branch-params';
4
4
  import { useKabmoEvent } from '@/client/hooks/ui/window-event';
5
5
  import { useMobileBackStack } from '@/client/hooks/workspace/mobile-back';
6
+ import { useMobileDrawerReveals, type MobileScreen } from '@/client/components/mobile/mobile-drawer-reveals';
6
7
  import type { JournalDiffRef, SettingsCategoryId } from '@/shared/types';
7
8
  import { MobileMainView } from '@/client/components/mobile/MainView';
8
9
  import { WindowAura } from '@/client/components/layout/WindowAura';
@@ -24,19 +25,13 @@ import { PluginBootstrap } from '@/client/lib/plugins/bootstrap';
24
25
  import { mobileEditorFileFrom, mobileProbeTabs, type MobileEditorFile } from '@/client/components/mobile/open-file-payload';
25
26
  import { useLeftDock } from '@/client/hooks/workspace/left-dock';
26
27
  import { useSessionStateContext } from '@/client/hooks/workspace/session-state/context';
27
- import { setSessionKey, getSessionValue } from '@/shared/lib/workspace/session-state/store';
28
- import { DEFAULT_RIGHT_PANEL_TYPE } from '@/shared/lib/workspace/right-panels';
29
- import { armTerminalSoftKeyboard } from '@/client/components/workspace/terminal-panel/soft-keyboard';
30
28
  import { startWorktreeSession } from '@/client/components/mobile/worktree-session';
31
- import { OPEN_PANEL_EVENT, phoneDrawerForPanel, type OpenPanelDetail } from '@/shared/lib/workspace/panel-open';
32
29
 
33
30
  interface MobileLayoutWrapperProps {
34
31
  onDesktopToggle?: () => void;
35
32
  appSettings?: Record<string, any>;
36
33
  }
37
34
 
38
- export type MobileScreen = 'main' | 'session' | 'right';
39
-
40
35
  export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: MobileLayoutWrapperProps) {
41
36
  const { folders, isMock } = useSidebarData();
42
37
  // The placement state the panel-open event resolves against, and the session
@@ -51,6 +46,10 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
51
46
  const folderId = folderParam ? (Number.isNaN(Number(folderParam)) ? folderParam : Number(folderParam)) : null;
52
47
 
53
48
  const [currentScreen, setCurrentScreen] = useState<MobileScreen>('main');
49
+ // The two drawers as SCREENS: which one a request opens, and whether that
50
+ // request was a header REVEAL (which must show a view, not the catalog). One
51
+ // hook, because a named open and a header press are the same two facts.
52
+ const drawers = useMobileDrawerReveals({ dock, sessionId: stateSessionId, currentScreen, setCurrentScreen });
54
53
  const [mobileEditorFile, setMobileEditorFile] = useState<MobileEditorFile | null>(null);
55
54
  const [mobileDiff, setMobileDiff] = useState<{ path: string; status?: string; staged?: boolean; repo?: string; root?: string; journal?: JournalDiffRef } | null>(null);
56
55
  // Bumped whenever a write lands so the workspace panels (explorer, git,
@@ -149,32 +148,6 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
149
148
  // transcript opens behind the drawer and the tap reads as a no-op.
150
149
  useKabmoEvent('omp:view-subagent', () => setCurrentScreen('main'));
151
150
 
152
- /**
153
- * A plugin's navbar readout asking for its own panel. A phone has no rail, so
154
- * "show this panel" is two decisions — which DRAWER reaches it and which chip
155
- * inside it — both answered by `phoneDrawerForPanel` from the PLACEMENT, never
156
- * from the panel's slot. The tab is written through the store because the
157
- * drawer mounts on this screen change and reads the stored tab; an `editor`
158
- * takeover resolves to null and the click does nothing rather than opening a
159
- * drawer that cannot show it.
160
- */
161
- useKabmoEvent(OPEN_PANEL_EVENT, (event) => {
162
- const panelKey = (event as CustomEvent<OpenPanelDetail>).detail?.panelKey;
163
- if (!panelKey) return;
164
- const drawer = phoneDrawerForPanel(panelKey, dock);
165
- if (!drawer) return;
166
- // Same gesture rule as the header's button: arm the keyboard before the
167
- // terminal mounts, but never for the view already on screen (it is focused).
168
- const stored = getSessionValue<string>(stateSessionId, 'layout.mobileRightPanel');
169
- if (drawer === 'right' && (currentScreen !== 'right' || stored !== panelKey)) {
170
- armTerminalSoftKeyboard(panelKey);
171
- }
172
- // The phone's two drawers are SCREENS, not columns: the session screen
173
- // draws the left dock and the right screen draws the panel drawer.
174
- setSessionKey(stateSessionId, drawer === 'left' ? 'layout.mobileLeftPanel' : 'layout.mobileRightPanel', panelKey);
175
- setCurrentScreen(drawer === 'left' ? 'session' : 'right');
176
- });
177
-
178
151
  // Settings requests (e.g. the model dropdown asking for Settings → Providers
179
152
  // when no provider is configured) arrive on the same global channel the
180
153
  // desktop layout listens on. SettingsModal itself only reads the payload and
@@ -235,15 +208,6 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
235
208
  if (next) setMobileEditorFile(next);
236
209
  }, [activeProjectPath]);
237
210
 
238
- // The right drawer is a SCREEN: opening it is the tap that can summon the
239
- // keyboard, but the terminal mounts after it. Arm it for the tab the drawer
240
- // will open on; the drawer releases it if another view resolves.
241
- const handleOpenRightSidebar = useCallback(() => {
242
- const stored = getSessionValue<string>(stateSessionId, 'layout.mobileRightPanel') ?? DEFAULT_RIGHT_PANEL_TYPE;
243
- armTerminalSoftKeyboard(stored);
244
- setCurrentScreen('right');
245
- }, [stateSessionId]);
246
-
247
211
  return (
248
212
  <div
249
213
  data-testid="app-root"
@@ -274,8 +238,8 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
274
238
  activeSessionId={sessionId}
275
239
  onSelectSession={handleSelectSession}
276
240
  onNewSession={handleNewSession}
277
- onOpenSessionSidebar={() => setCurrentScreen('session')}
278
- onOpenRightSidebar={handleOpenRightSidebar}
241
+ onOpenSessionSidebar={drawers.openSessionDrawer}
242
+ onOpenRightSidebar={drawers.openRightDrawer}
279
243
  appSettings={appSettings}
280
244
  />
281
245
  </div>
@@ -294,6 +258,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
294
258
  refreshKey={refreshKey}
295
259
  onRefresh={handleWorkspaceChanged}
296
260
  onOpenFile={handleOpenFile}
261
+ revealSignal={drawers.left}
297
262
  />
298
263
  </div>
299
264
 
@@ -312,6 +277,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
312
277
  onRefresh={handleWorkspaceChanged}
313
278
  onOpenFile={handleOpenFile}
314
279
  onClose={() => setCurrentScreen('main')}
280
+ revealSignal={drawers.right}
315
281
  />
316
282
  </div>
317
283
  )}
@@ -15,14 +15,11 @@ import {
15
15
  } from '@/client/components/workspace/terminal-panel/soft-keyboard';
16
16
  import { releaseSoftKeyboard } from '@/client/lib/ui/soft-keyboard';
17
17
  import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
18
- import {
19
- DrawerBody,
20
- DrawerCloseAction,
21
- DrawerHeader,
22
- drawerStripProps,
23
- } from '@/client/components/mobile/mobile-right-sidebar/Chrome';
18
+ import { DrawerBody, DrawerHeader } from '@/client/components/mobile/mobile-right-sidebar/Chrome';
19
+ import { DrawerCloseAction, drawerStripProps } from '@/client/components/mobile/drawer-strip';
24
20
  import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
25
- import { useMobileRightPanelNav } from '@/client/hooks/workspace/mobile-right-panel-nav';
21
+ import { useRevealPanelTab, useRevealSignal } from '@/client/hooks/workspace/panel-tabs-reveal';
22
+ import { useMobilePanelNav } from '@/client/hooks/workspace/mobile-panel-nav';
26
23
  import { VisibilityMenu } from '@/client/components/layout/VisibilityMenu';
27
24
  import { usePanelVisibilityMenu } from '@/client/hooks/workspace/panel-visibility-menu';
28
25
 
@@ -34,6 +31,13 @@ interface MobileRightSidebarProps {
34
31
  onRefresh?: () => void;
35
32
  onOpenFile?: (file: unknown) => void;
36
33
  onClose: () => void;
34
+ /**
35
+ * A header control asked for this drawer. The drawer unmounts when it closes,
36
+ * so its mount is also what a screen change for any other reason produces —
37
+ * this counter is the only thing that can say "a reveal gesture landed", which
38
+ * is what makes it show a VIEW instead of its catalog (`panel-tabs-reveal`).
39
+ */
40
+ revealSignal?: number;
37
41
  }
38
42
 
39
43
  /**
@@ -52,7 +56,8 @@ export function MobileRightSidebar({
52
56
  refreshKey = 0,
53
57
  onRefresh,
54
58
  onOpenFile,
55
- onClose
59
+ onClose,
60
+ revealSignal = 0
56
61
  }: MobileRightSidebarProps) {
57
62
  // The tab is persisted, and that is a performance decision as much as a
58
63
  // convenience one: the drawer UNMOUNTS when it closes, so whichever view is
@@ -90,10 +95,22 @@ export function MobileRightSidebar({
90
95
  * desktop right column writes (`layout.rightPanelTabs`) — one working set
91
96
  * across the layouts, which is why switching device does not lose the tabs.
92
97
  */
93
- const navStyle = useMobileRightPanelNav();
98
+ const navStyle = useMobilePanelNav('right');
94
99
  const tabsMode = navStyle === 'tabs';
95
100
  const known = useMemo(() => new Set(catalog.map((panel) => panel.id)), [catalog]);
96
101
  const tabsState = usePanelTabs('right', known, null);
102
+ // The header's "Open Right Panel" is a reveal, so it must show a VIEW rather
103
+ // than the catalog — the same rule the desktop column follows, and the same
104
+ // one the Stats readout already satisfies by naming a panel.
105
+ useRevealPanelTab({
106
+ enabled: tabsMode,
107
+ revealed: useRevealSignal(revealSignal),
108
+ view: activeTab,
109
+ home: tabsState.home,
110
+ chosenHome: tabsState.chosenHome,
111
+ openTab: tabsState.open,
112
+ known,
113
+ });
97
114
  const { open: openTab, tabs: openTabIds } = tabsState;
98
115
  // Whether the session's blob actually holds a right-drawer view. Read through
99
116
  // the store (not the hook's fallback), because "unset" and "set to the
@@ -264,7 +281,7 @@ export function MobileRightSidebar({
264
281
  tabs={tabHandle}
265
282
  homeTitle="Panel kanan"
266
283
  stripProps={drawerStripProps(panelMenu.surfaceProps)}
267
- actions={<DrawerCloseAction onClose={onClose} />}
284
+ actions={<DrawerCloseAction side="right" onClose={onClose} />}
268
285
  >
269
286
  <div className="h-full w-full">
270
287
  <DrawerBody panel={activePanel} body={mobileBody} />