@kabmo-labs/kabmo 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-z74weshk.js → CsvGrid-br4j001k.js} +2 -2
  4. package/dist/client/static/js/{DocxView-dpe5x9ab.js → DocxView-kmtkbmmw.js} +3 -3
  5. package/dist/client/static/js/{DrawioView-ftzwjf8v.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-vjec8z3z.js → PdfView-p5z7c7eg.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-g7z3fxbp.js → SessionsView-t06h6zfx.js} +1 -1
  11. package/dist/client/static/js/{SheetView-hhtfkdhe.js → SheetView-agw459v2.js} +19 -19
  12. package/dist/client/static/js/{SvgPreview-48n3ex6p.js → SvgPreview-b9rfy1h6.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-bpvzdara.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-xw62cr7j.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-x3a6cgar.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-katvaxbj.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-bjz4mqqh.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-fsn80psf.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-cfhbsnkm.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-j2wt7ns6.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-abrdj714.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
  30. package/dist/client/static/js/{diagram-3UASUU5V-dbn15bxn.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
  31. package/dist/client/static/js/{diagram-ATOU4E4O-y79pwf7w.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-f8ryt86n.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
  33. package/dist/client/static/js/{diagram-MLGK6HIB-ws7wn3q9.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
  34. package/dist/client/static/js/{diagram-MPIPVDR6-zmznrg13.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-qgc921kw.js → dockerfile-00hqsk9c.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-y5q7hy1v.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-vddwbn6q.js → elk-276RUBZZ-dsq91er5.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-qdqcx4g4.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-763hk9rm.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-bgx1q5nw.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-w57zbym7.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-jpp0zm7t.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-szk3vk8h.js → index-5gf52a6d.js} +2 -2
  60. package/dist/client/static/js/{index-fqatn0vh.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-mwm8aptp.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-acphtw1r.js → index-9d3n04vb.js} +2 -2
  67. package/dist/client/static/js/{index-cj39b26c.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-xkwybnf3.js → index-amys498v.js} +198 -198
  70. package/dist/client/static/js/{index-vkerrwpa.js → index-bafe7hmd.js} +2 -2
  71. package/dist/client/static/js/{index-34ff2vq6.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-61j9qkck.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-x7rfmwg8.js → index-ex5dtdx2.js} +6 -6
  79. package/dist/client/static/js/{index-228yzebd.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-h0rmkz9n.js → index-j718pxb3.js} +2 -2
  86. package/dist/client/static/js/{index-3sqndc9n.js → index-jkay7aw7.js} +2 -2
  87. package/dist/client/static/js/{index-05hx4ftf.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-3d21hpk7.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-f7paep2f.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-dn6pqym4.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-dgjerk4w.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-5b2vsbcf.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-gmq5pbcv.js → index-x1fqhhpp.js} +64 -64
  103. package/dist/client/static/js/{index-p21mvqc2.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-mrw7qweg.js → index-zedt16w7.js} +1 -1
  107. package/dist/client/static/js/{index-r6e44vkx.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-e66pw8d9.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-ehc0q24d.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-hye05qtd.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-vce614m8.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-gc79re5p.js → mermaid.core-hwhzw0wv.js} +7 -7
  122. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-ft1whaf5.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-2s4ykhaa.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-7h8dp0z3.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-pteyxjxr.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-68z9wdt0.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
  141. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-c08nmey6.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-ke5ec0w5.js → rust-1v8xbxn9.js} +1 -1
  144. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2r3kvjs5.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-ctjycd88.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
  148. package/dist/client/static/js/{sizeCapture-INFHLROL-97ndea95.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-aqnmsb96.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-v50cx1nx.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-1ggrtdcj.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-ybcwhpzs.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-p9ggrt07.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-v79nb9kx.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-43thqscz.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-vchn6wyq.js +0 -1
  307. package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +0 -2
  308. package/dist/client/static/js/Modal-tteg7vtb.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-nh2tb65b.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-0vk6v4y4.js +0 -2
  322. package/dist/client/static/js/index-47wn2gjx.js +0 -2
  323. package/dist/client/static/js/index-4b5b6g0k.js +0 -1
  324. package/dist/client/static/js/index-5mrqfs82.js +0 -12
  325. package/dist/client/static/js/index-6bm4pw90.css +0 -1
  326. package/dist/client/static/js/index-a11ptyzf.js +0 -1
  327. package/dist/client/static/js/index-f98dhbt4.js +0 -4
  328. package/dist/client/static/js/index-kg2sk8cf.js +0 -1
  329. package/dist/client/static/js/index-q76jfb54.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-rvg5xm1a.js +0 -1
  339. package/dist/client/static/js/one-light-2b5w3ksh.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-e227mz39.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
@@ -80,6 +80,8 @@ export function AppearanceSettings({ settings, onUpdate }: AppearanceSettingsPro
80
80
  pane={masterDetail.pane}
81
81
  onBack={masterDetail.back}
82
82
  listLabel="Appearance settings"
83
+ detailLabel={group.label}
84
+ detailDescription={group.description}
83
85
  list={
84
86
  <GroupSidebar
85
87
  groups={APPEARANCE_GROUPS}
@@ -25,20 +25,34 @@ import { h, render } from 'preact';
25
25
  import { act } from 'preact/test-utils';
26
26
  import { ChatSettings } from '@/client/components/settings/categories/ChatSettings';
27
27
  import { DEFAULT_SETTINGS } from '@/shared/lib/settings/defaults';
28
+ import {
29
+ SettingsDrillProvider,
30
+ type SettingsDrill,
31
+ } from '@/client/components/settings/drill';
28
32
  import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
29
33
 
30
34
  let container: HTMLElement;
31
35
  let updates = 0;
36
+ /** What the category published to the sheet's ONE band. */
37
+ let drill: SettingsDrill | null = null;
32
38
 
33
39
  function mount(): void {
34
40
  act(() => {
35
41
  render(
36
- h(ChatSettings, {
37
- settings: DEFAULT_SETTINGS,
38
- onUpdate: () => {
39
- updates += 1;
42
+ h(
43
+ SettingsDrillProvider,
44
+ {
45
+ register: (next: SettingsDrill | null) => {
46
+ drill = next;
47
+ },
48
+ children: h(ChatSettings, {
49
+ settings: DEFAULT_SETTINGS,
50
+ onUpdate: () => {
51
+ updates += 1;
52
+ },
53
+ }),
40
54
  },
41
- }),
55
+ ),
42
56
  container,
43
57
  );
44
58
  });
@@ -99,23 +113,32 @@ describe('ChatSettings master/detail', () => {
99
113
  expect(updates).toBe(0);
100
114
  });
101
115
 
102
- test('on a phone the chosen group replaces the list, and the back bar returns to it', () => {
116
+ /**
117
+ * The phone's drill, through the SHEET's one band. The pane draws no bar of
118
+ * its own (three stacked bars were measured at 163px of a 844px screen), so
119
+ * the registration is what a test can pin: the label, the back control's name,
120
+ * and that calling it returns to the list.
121
+ */
122
+ test('on a phone the chosen group replaces the list and registers with the sheet band', () => {
103
123
  mount();
104
124
  const { list, detail } = panes();
105
125
 
106
126
  expect(list.className).not.toContain('hidden');
107
127
  expect(detail.className).toContain('hidden');
128
+ expect(drill).toBeNull();
108
129
 
109
130
  act(() => groupRow('Sessions').click());
110
131
 
111
132
  expect(list.className).toContain('hidden');
112
133
  expect(detail.className).not.toContain('hidden');
134
+ expect(drill?.label).toBe('Sessions');
135
+ expect(drill?.backLabel).toBe('Back to Chat settings');
136
+ expect(container.querySelector('button[aria-label="Back to Chat settings"]')).toBeNull();
113
137
 
114
- const back = container.querySelector('button[aria-label="Back to Chat settings"]');
115
- expect(back).not.toBeNull();
116
- act(() => (back as HTMLButtonElement).click());
138
+ act(() => drill?.back());
117
139
 
118
140
  expect(list.className).not.toContain('hidden');
119
141
  expect(detail.className).toContain('hidden');
142
+ expect(drill).toBeNull();
120
143
  });
121
144
  });
@@ -68,6 +68,8 @@ export function ChatSettings({ settings, onUpdate }: ChatSettingsProps) {
68
68
  pane={masterDetail.pane}
69
69
  onBack={masterDetail.back}
70
70
  listLabel="Chat settings"
71
+ detailLabel={group.label}
72
+ detailDescription={group.description}
71
73
  list={
72
74
  <GroupSidebar
73
75
  groups={CHAT_SETTING_GROUPS}
@@ -248,7 +248,7 @@ export function NotificationSettings({ settings, onUpdate }: NotificationSetting
248
248
  <button
249
249
  type="button"
250
250
  onClick={handleTestSound}
251
- className={`px-3 py-1.5 rounded-md border border-ink/20 bg-paper hover:bg-ink/5 text-ink font-medium text-[11px] flex items-center gap-1.5 transition-all shadow-xs active:scale-95 ${
251
+ className={`px-3 py-1.5 rounded-md border border-ink/20 bg-paper hover:bg-ink/5 text-ink font-medium text-[11px] flex items-center gap-1.5 transition-all shadow-xs ${
252
252
  isPlayingTest ? 'border-ink bg-ink/10' : ''
253
253
  }`}
254
254
  >
@@ -4,247 +4,48 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Settings → Appearance → Desktop panels → Panel navigation.
7
+ * Settings → Appearance → Shell → Panel navigation.
8
8
  *
9
- * TWO controls, one per column, because the columns answer different questions:
10
- * the left is the session list plus whatever the user placed there, the right is
11
- * a working set that is opened and closed all day. A single shared value would
12
- * force one column's best shape on the other.
9
+ * FOUR controls: one per desktop column and one per phone drawer. They are all
10
+ * independent, and that is the point rather than an oversight — each surface
11
+ * answers a different question:
13
12
  *
14
- * The drawing in each card is a MINIATURE of the real column — a rail of marks
15
- * beside a list, or a strip of chips over a card grid — because "rail" and
16
- * "tabs" are words the user has to translate into a picture they have seen. The
17
- * miniature is drawn from tokens only (`bg-ink/10`, `text-ink/40`), so it follows
18
- * the palette like everything else.
13
+ * - the desktop left column is the session list plus whatever the user placed
14
+ * there, and a rail is a 44px strip beside it;
15
+ * - the desktop right column is a working set opened and closed all day;
16
+ * - a phone drawer is a SCREEN, so it has no rail to put beside it at all. Its
17
+ * choice is what its chip strip LISTS: every view, or the working set over a
18
+ * home page.
19
19
  *
20
- * Each group is a pair of `aria-pressed` buttons rather than radios in a form:
21
- * there is no submit, the choice applies on click, and `onUpdate` is what
22
- * persists it. `applyPanelNav` is called by the parent's update path, so the
23
- * live apply and the stored copy cannot disagree.
20
+ * The desktop and the phone are separate axes for a measured reason: the same
21
+ * person may want the browser-style strip on a desktop column and the plain
22
+ * catalog on a drawer, and one shared value would force one surface's best shape
23
+ * on the other.
24
24
  *
25
- * The phone is deliberately out of scope and says so: it has one drawer per
26
- * side and already draws a chip strip, so a rail in a drawer would be a second
27
- * 44px of chrome and the tab style would be a second chip strip beside the one
28
- * it has.
25
+ * The drawing in each card is a MINIATURE of the real surface (`nav-miniatures`),
26
+ * because "rail" and "tabs" are words the user has to translate into a picture
27
+ * they have seen. Each group is a pair of `aria-pressed` buttons rather than
28
+ * radios in a form: there is no submit, the choice applies on click, and
29
+ * `onUpdate` persists it.
29
30
  */
30
31
 
31
- import type { ComponentType } from 'preact/compat';
32
32
  import type { SettingsState } from '@/shared/types';
33
- import {
34
- MOBILE_RIGHT_PANEL_NAVS,
35
- PANEL_NAV_COPY,
36
- PANEL_NAV_STYLES,
37
- resolveMobileRightPanelNav,
38
- resolvePanelNav,
39
- type MobileRightPanelNav,
40
- type PanelNavStyle,
41
- } from '@/shared/lib/workspace/panel-nav';
33
+ import { resolveMobilePanelNav, resolvePanelNav } from '@/shared/lib/workspace/panel-nav';
34
+ import { MobileNavChoice, PanelNavChoice } from '@/client/components/settings/categories/appearance-settings/nav-choice';
42
35
 
43
36
  interface PanelNavSectionProps {
44
37
  settings: SettingsState;
45
38
  onUpdate: (updater: Partial<SettingsState> | ((previous: SettingsState) => SettingsState)) => void;
46
39
  }
47
40
 
48
- /** A rail of marks beside a list — the shape the left column ships today. */
49
- function RailMiniature() {
50
- return (
51
- <span className="flex h-full gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
52
- <span className="flex w-[9px] flex-col items-center gap-1 border-r border-ink/10 pr-1">
53
- <span className="h-[5px] w-[5px] rounded-sm bg-ink/70" />
54
- <span className="h-[5px] w-[5px] rounded-sm bg-ink/25" />
55
- <span className="h-[5px] w-[5px] rounded-sm bg-ink/25" />
56
- </span>
57
- <span className="flex min-w-0 flex-1 flex-col gap-1">
58
- <span className="h-[3px] w-[46%] rounded-full bg-ink/45" />
59
- <span className="h-[3px] w-[62%] rounded-full bg-ink/25" />
60
- <span className="h-[3px] w-[54%] rounded-full bg-ink/25" />
61
- <span className="h-[3px] w-[40%] rounded-full bg-ink/20" />
62
- </span>
63
- </span>
64
- );
65
- }
66
-
67
- /** A strip of chips over a card grid — the browser-style column. */
68
- function TabsMiniature() {
69
- return (
70
- <span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
71
- <span className="flex items-center gap-1 border-b border-ink/10 pb-1">
72
- <span className="h-[6px] w-[6px] rounded-sm border border-ink/20" />
73
- <span className="h-[6px] w-[28%] rounded-sm bg-ink/70" />
74
- <span className="h-[6px] w-[24%] rounded-sm border border-ink/20" />
75
- </span>
76
- <span className="flex gap-1">
77
- <span className="h-[16px] w-[22%] rounded border border-ink/15" />
78
- <span className="h-[16px] w-[22%] rounded border border-ink/15" />
79
- <span className="h-[16px] w-[22%] rounded border border-ink/15" />
80
- </span>
81
- </span>
82
- );
83
- }
84
-
85
- const MINIATURES: Record<PanelNavStyle, ComponentType> = {
86
- rail: RailMiniature,
87
- tabs: TabsMiniature,
88
- };
89
-
90
- /**
91
- * The phone's copy, kept apart from the desktop table: the words "rail" and
92
- * "column" would be wrong for a drawer that has neither.
93
- */
94
- const MOBILE_COPY: Record<MobileRightPanelNav, { label: string; description: string; caption: string }> = {
95
- classic: {
96
- label: 'Classic',
97
- description: 'The strip lists every view; tapping one swaps the drawer body.',
98
- caption: 'All views · one tap',
99
- },
100
- tabs: {
101
- label: 'Tabs',
102
- description:
103
- 'The strip holds only the views you opened, over a home page that lists them all. The drawer reopens where you left it.',
104
- caption: 'Opened views · home page',
105
- },
106
- };
107
-
108
- /** A drawer of chips over a long list — the phone today. */
109
- function ClassicDrawerMiniature() {
110
- return (
111
- <span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
112
- <span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
113
- <span className="h-[6px] w-[16%] rounded-sm bg-ink/70" />
114
- <span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
115
- <span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
116
- <span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
117
- </span>
118
- <span className="h-[3px] w-[62%] rounded-full bg-ink/25" />
119
- <span className="h-[3px] w-[54%] rounded-full bg-ink/25" />
120
- <span className="h-[3px] w-[40%] rounded-full bg-ink/20" />
121
- </span>
122
- );
123
- }
124
-
125
- /** A short strip over a card grid — the drawer with a home page. */
126
- function TabsDrawerMiniature() {
127
- return (
128
- <span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
129
- <span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
130
- <span className="h-[6px] w-[6px] rounded-sm border border-ink/20" />
131
- <span className="h-[6px] w-[24%] rounded-sm bg-ink/70" />
132
- <span className="h-[6px] w-[20%] rounded-sm border border-ink/20" />
133
- </span>
134
- <span className="flex gap-1">
135
- <span className="h-[16px] w-[24%] rounded border border-ink/15" />
136
- <span className="h-[16px] w-[24%] rounded border border-ink/15" />
137
- <span className="h-[16px] w-[24%] rounded border border-ink/15" />
138
- </span>
139
- </span>
140
- );
141
- }
142
-
143
- const MOBILE_MINIATURES: Record<MobileRightPanelNav, ComponentType> = {
144
- classic: ClassicDrawerMiniature,
145
- tabs: TabsDrawerMiniature,
146
- };
147
-
148
- function MobileNavChoice({
149
- current,
150
- onPick,
151
- }: {
152
- current: MobileRightPanelNav;
153
- onPick: (style: MobileRightPanelNav) => void;
154
- }) {
155
- return (
156
- <div className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" role="group" aria-label="Phone right drawer">
157
- {MOBILE_RIGHT_PANEL_NAVS.map((style) => {
158
- const copy = MOBILE_COPY[style];
159
- const isSelected = style === current;
160
- const Miniature = MOBILE_MINIATURES[style];
161
- return (
162
- <button
163
- key={style}
164
- type="button"
165
- onClick={() => onPick(style)}
166
- aria-pressed={isSelected}
167
- aria-label={`${copy.label} — ${copy.description}`}
168
- className={`flex cursor-pointer flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors ${
169
- isSelected
170
- ? 'border-ink/40 bg-ink/5'
171
- : 'border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5'
172
- }`}
173
- >
174
- <span className="block h-[54px]">
175
- <Miniature />
176
- </span>
177
- <span className="flex items-center gap-1.5">
178
- <span className="text-xs font-semibold text-ink">{copy.label}</span>
179
- <span className="font-mono text-[10px] text-ink/40">{copy.caption}</span>
180
- {isSelected && (
181
- <span className="ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper">
182
- active
183
- </span>
184
- )}
185
- </span>
186
- <span className="text-[11px] leading-relaxed text-ink/60">{copy.description}</span>
187
- </button>
188
- );
189
- })}
190
- </div>
191
- );
192
- }
193
-
194
- function PanelNavChoice({
195
- current,
196
- onPick,
197
- }: {
198
- current: PanelNavStyle;
199
- onPick: (style: PanelNavStyle) => void;
200
- }) {
201
- return (
202
- <div className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" role="group" aria-label="Panel navigation">
203
- {PANEL_NAV_STYLES.map((style) => {
204
- const copy = PANEL_NAV_COPY[style];
205
- const isSelected = style === current;
206
- const Miniature = MINIATURES[style];
207
- return (
208
- <button
209
- key={style}
210
- type="button"
211
- onClick={() => onPick(style)}
212
- aria-pressed={isSelected}
213
- aria-label={`${copy.label} — ${copy.description}`}
214
- className={`flex cursor-pointer flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors ${
215
- isSelected
216
- ? 'border-ink/40 bg-ink/5'
217
- : 'border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5'
218
- }`}
219
- >
220
- <span className="block h-[54px]">
221
- <Miniature />
222
- </span>
223
- <span className="flex items-center gap-1.5">
224
- <span className="text-xs font-semibold text-ink">{copy.label}</span>
225
- <span className="font-mono text-[10px] text-ink/40">{copy.caption}</span>
226
- {isSelected && (
227
- <span className="ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper">
228
- active
229
- </span>
230
- )}
231
- </span>
232
- <span className="text-[11px] leading-relaxed text-ink/60">{copy.description}</span>
233
- </button>
234
- );
235
- })}
236
- </div>
237
- );
238
- }
239
-
240
41
  export function PanelNavSection({ settings, onUpdate }: PanelNavSectionProps) {
241
42
  return (
242
43
  <section className="space-y-3">
243
44
  <div>
244
45
  <h4 className="text-sm font-semibold text-ink">Panel navigation</h4>
245
46
  <p className="mt-0.5 text-[11px] text-ink/60">
246
- How each panel column is navigated. Everything is chosen independently: the desktop
247
- columns do not set each other, and the phone's drawer has its own answer.
47
+ How each panel surface is navigated. Everything is chosen independently: the desktop
48
+ columns do not set each other, and each phone drawer has its own answer.
248
49
  </p>
249
50
  </div>
250
51
 
@@ -269,6 +70,21 @@ export function PanelNavSection({ settings, onUpdate }: PanelNavSectionProps) {
269
70
  </div>
270
71
  </div>
271
72
 
73
+ <div>
74
+ <h5 className="text-[11px] font-semibold text-ink/70">Phone · left drawer</h5>
75
+ <p className="mt-0.5 text-[11px] text-ink/50">
76
+ The drawer is one screen, so it has no rail to put beside it. This chooses what its
77
+ strip lists instead. Under Tabs the session list stays the first, pinned chip.
78
+ </p>
79
+ <div className="mt-1.5">
80
+ <MobileNavChoice
81
+ side="left"
82
+ current={resolveMobilePanelNav(settings.mobileLeftPanelNav)}
83
+ onPick={(style) => onUpdate({ mobileLeftPanelNav: style })}
84
+ />
85
+ </div>
86
+ </div>
87
+
272
88
  <div>
273
89
  <h5 className="text-[11px] font-semibold text-ink/70">Phone · right drawer</h5>
274
90
  <p className="mt-0.5 text-[11px] text-ink/50">
@@ -277,7 +93,8 @@ export function PanelNavSection({ settings, onUpdate }: PanelNavSectionProps) {
277
93
  </p>
278
94
  <div className="mt-1.5">
279
95
  <MobileNavChoice
280
- current={resolveMobileRightPanelNav(settings.mobileRightPanelNav)}
96
+ side="right"
97
+ current={resolveMobilePanelNav(settings.mobileRightPanelNav)}
281
98
  onPick={(style) => onUpdate({ mobileRightPanelNav: style })}
282
99
  />
283
100
  </div>
@@ -0,0 +1,176 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * One navigation choice as a pair of cards, and the words each one uses.
8
+ *
9
+ * Extracted from `PanelNavSection` when the phone got a second drawer: the
10
+ * section now renders four groups (two desktop columns, two phone drawers) and
11
+ * the card markup is identical for all of them, so a copy per group would be
12
+ * four places for the "active" badge to drift.
13
+ *
14
+ * The copy tables stay here, beside the component that reads them, and are keyed
15
+ * by the STYLE rather than by side: the phone's two drawers differ only in the
16
+ * one sentence that says what its strip leads with.
17
+ */
18
+
19
+ import type { ComponentChildren } from 'preact';
20
+ import {
21
+ MOBILE_PANEL_NAVS,
22
+ PANEL_NAV_COPY,
23
+ PANEL_NAV_STYLES,
24
+ type MobilePanelNav,
25
+ type PanelNavStyle,
26
+ } from '@/shared/lib/workspace/panel-nav';
27
+ import {
28
+ ClassicDrawerMiniature,
29
+ RailMiniature,
30
+ TabsDrawerMiniature,
31
+ TabsMiniature,
32
+ } from '@/client/components/settings/categories/appearance-settings/nav-miniatures';
33
+
34
+ /** The drawing each desktop style is shown as. */
35
+ function desktopMiniature(style: PanelNavStyle): ComponentChildren {
36
+ return style === 'rail' ? <RailMiniature /> : <TabsMiniature />;
37
+ }
38
+
39
+ /**
40
+ * The phone's copy, kept apart from the desktop table: the words "rail" and
41
+ * "column" would be wrong for a drawer that has neither.
42
+ */
43
+ const MOBILE_COPY: Record<MobilePanelNav, { label: string; description: string; caption: string }> = {
44
+ classic: {
45
+ label: 'Classic',
46
+ description: 'The strip lists every view; tapping one swaps the drawer body.',
47
+ caption: 'All views · one tap',
48
+ },
49
+ tabs: {
50
+ label: 'Tabs',
51
+ description:
52
+ 'The strip holds only the views you opened, over a home page that lists them all. The drawer reopens where you left it.',
53
+ caption: 'Opened views · home page',
54
+ },
55
+ };
56
+
57
+ /**
58
+ * The LEFT drawer's own words.
59
+ *
60
+ * It differs from the right in one fact the user must be told: the session list
61
+ * is a PINNED chip under `tabs`, so the drawer cannot be closed down to a home
62
+ * page with no way back to another chat. Saying it in the card is cheaper than
63
+ * discovering it.
64
+ */
65
+ const MOBILE_LEFT_COPY: Record<MobilePanelNav, { label: string; description: string; caption: string }> = {
66
+ classic: {
67
+ label: 'Classic',
68
+ description: 'The strip lists every view the left dock holds; tapping one swaps the drawer body.',
69
+ caption: 'All views · one tap',
70
+ },
71
+ tabs: {
72
+ label: 'Tabs',
73
+ description:
74
+ 'The strip holds the views you opened, with Sessions pinned first, over a home page that lists the rest. The drawer reopens where you left it.',
75
+ caption: 'Opened views · Sessions pinned',
76
+ },
77
+ };
78
+
79
+ interface ChoiceProps<T extends string> {
80
+ styles: readonly T[];
81
+ copy: Record<T, { label: string; description: string; caption: string }>;
82
+ /** The drawing for one style. A FUNCTION, not a component map: one drawing
83
+ takes a prop (the pinned chip), and a map of `ComponentType` cannot carry
84
+ per-entry props without widening to `any`. */
85
+ miniature: (style: T) => ComponentChildren;
86
+ current: T;
87
+ onPick: (style: T) => void;
88
+ /** The group's accessible name — "Panel navigation", "Phone left drawer". */
89
+ label: string;
90
+ }
91
+
92
+ function NavChoice<T extends string>({ styles, copy, miniature, current, onPick, label }: ChoiceProps<T>) {
93
+ return (
94
+ <div className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" role="group" aria-label={label}>
95
+ {styles.map((style) => {
96
+ const text = copy[style];
97
+ const isSelected = style === current;
98
+ return (
99
+ <button
100
+ key={style}
101
+ type="button"
102
+ onClick={() => onPick(style)}
103
+ aria-pressed={isSelected}
104
+ aria-label={`${text.label} — ${text.description}`}
105
+ className={`flex cursor-pointer flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors ${
106
+ isSelected
107
+ ? 'border-ink/40 bg-ink/5'
108
+ : 'border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5'
109
+ }`}
110
+ >
111
+ <span className="block h-[54px]">{miniature(style)}</span>
112
+ <span className="flex items-center gap-1.5">
113
+ <span className="text-xs font-semibold text-ink">{text.label}</span>
114
+ <span className="font-mono text-[10px] text-ink/40">{text.caption}</span>
115
+ {isSelected && (
116
+ <span className="ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper">
117
+ active
118
+ </span>
119
+ )}
120
+ </span>
121
+ <span className="text-[11px] leading-relaxed text-ink/60">{text.description}</span>
122
+ </button>
123
+ );
124
+ })}
125
+ </div>
126
+ );
127
+ }
128
+
129
+ /** The desktop columns' choice — `rail` or `tabs`. */
130
+ export function PanelNavChoice({
131
+ current,
132
+ onPick,
133
+ }: {
134
+ current: PanelNavStyle;
135
+ onPick: (style: PanelNavStyle) => void;
136
+ }) {
137
+ return (
138
+ <NavChoice
139
+ styles={PANEL_NAV_STYLES}
140
+ copy={PANEL_NAV_COPY}
141
+ miniature={desktopMiniature}
142
+ current={current}
143
+ onPick={onPick}
144
+ label="Panel navigation"
145
+ />
146
+ );
147
+ }
148
+
149
+ /** A phone drawer's choice — `classic` or `tabs`, with that drawer's words. */
150
+ export function MobileNavChoice({
151
+ side,
152
+ current,
153
+ onPick,
154
+ }: {
155
+ side: 'left' | 'right';
156
+ current: MobilePanelNav;
157
+ onPick: (style: MobilePanelNav) => void;
158
+ }) {
159
+ const pinned = side === 'left';
160
+ return (
161
+ <NavChoice
162
+ styles={MOBILE_PANEL_NAVS}
163
+ copy={pinned ? MOBILE_LEFT_COPY : MOBILE_COPY}
164
+ miniature={(style) =>
165
+ style === 'classic' ? (
166
+ <ClassicDrawerMiniature />
167
+ ) : (
168
+ <TabsDrawerMiniature pinned={pinned} />
169
+ )
170
+ }
171
+ current={current}
172
+ onPick={onPick}
173
+ label={pinned ? 'Phone left drawer' : 'Phone right drawer'}
174
+ />
175
+ );
176
+ }