@shipit-ai/cli 1.168.0 → 1.169.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 (232) hide show
  1. package/dist/src/presentation/web/components/features/settings/agent-settings-section.d.ts +3 -3
  2. package/dist/src/presentation/web/components/features/settings/agent-settings-section.d.ts.map +1 -1
  3. package/dist/src/presentation/web/components/features/settings/agent-settings-section.js +23 -102
  4. package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.d.ts +2 -3
  5. package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.d.ts.map +1 -1
  6. package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.js +18 -22
  7. package/dist/src/presentation/web/components/features/settings/ci-settings-section.d.ts.map +1 -1
  8. package/dist/src/presentation/web/components/features/settings/ci-settings-section.js +14 -5
  9. package/dist/src/presentation/web/components/features/settings/database-settings-section.d.ts.map +1 -1
  10. package/dist/src/presentation/web/components/features/settings/database-settings-section.js +14 -4
  11. package/dist/src/presentation/web/components/features/settings/environment-settings-section.d.ts +9 -3
  12. package/dist/src/presentation/web/components/features/settings/environment-settings-section.d.ts.map +1 -1
  13. package/dist/src/presentation/web/components/features/settings/environment-settings-section.js +75 -65
  14. package/dist/src/presentation/web/components/features/settings/environment-settings-section.stories.d.ts.map +1 -1
  15. package/dist/src/presentation/web/components/features/settings/environment-settings-section.stories.js +20 -18
  16. package/dist/src/presentation/web/components/features/settings/fab-layout-settings-section.d.ts.map +1 -1
  17. package/dist/src/presentation/web/components/features/settings/fab-layout-settings-section.js +1 -1
  18. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts +3 -3
  19. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
  20. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +48 -50
  21. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
  22. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +25 -25
  23. package/dist/src/presentation/web/components/features/settings/interactive-agent-settings-section.d.ts.map +1 -1
  24. package/dist/src/presentation/web/components/features/settings/interactive-agent-settings-section.js +3 -3
  25. package/dist/src/presentation/web/components/features/settings/notification-settings-section.d.ts +3 -3
  26. package/dist/src/presentation/web/components/features/settings/notification-settings-section.d.ts.map +1 -1
  27. package/dist/src/presentation/web/components/features/settings/notification-settings-section.js +64 -47
  28. package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.d.ts.map +1 -1
  29. package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.js +32 -24
  30. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  31. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +27 -378
  32. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts +2 -0
  33. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
  34. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +13 -0
  35. package/dist/src/presentation/web/components/features/settings/settings-section-utils.d.ts +8 -8
  36. package/dist/src/presentation/web/components/features/settings/settings-section-utils.d.ts.map +1 -1
  37. package/dist/src/presentation/web/components/features/settings/settings-section-utils.js +3 -6
  38. package/dist/src/presentation/web/components/features/settings/settings-section-utils.stories.d.ts +1 -1
  39. package/dist/src/presentation/web/components/features/settings/settings-section-utils.stories.d.ts.map +1 -1
  40. package/dist/src/presentation/web/components/features/settings/settings-section-utils.stories.js +7 -7
  41. package/dist/src/presentation/web/components/features/settings/stage-timeouts-settings-section.d.ts.map +1 -1
  42. package/dist/src/presentation/web/components/features/settings/stage-timeouts-settings-section.js +1 -1
  43. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts +3 -3
  44. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
  45. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +118 -165
  46. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts +1 -1
  47. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
  48. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +26 -64
  49. package/dist/src/presentation/web/components/ui/tooltip.d.ts.map +1 -1
  50. package/dist/src/presentation/web/components/ui/tooltip.js +3 -3
  51. package/dist/translations/ar/web.json +1 -0
  52. package/dist/translations/de/web.json +1 -0
  53. package/dist/translations/en/web.json +1 -0
  54. package/dist/translations/es/web.json +1 -0
  55. package/dist/translations/fr/web.json +1 -0
  56. package/dist/translations/he/web.json +1 -0
  57. package/dist/translations/pt/web.json +1 -0
  58. package/dist/translations/ru/web.json +1 -0
  59. package/dist/tsconfig.build.tsbuildinfo +1 -1
  60. package/package.json +1 -1
  61. package/web/.next/BUILD_ID +1 -1
  62. package/web/.next/build-manifest.json +3 -3
  63. package/web/.next/fallback-build-manifest.json +3 -3
  64. package/web/.next/prerender-manifest.json +3 -3
  65. package/web/.next/required-server-files.js +2 -2
  66. package/web/.next/required-server-files.json +2 -2
  67. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +29 -29
  68. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  69. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  70. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +27 -27
  71. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  72. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  73. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +31 -31
  74. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  75. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  76. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  77. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  78. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  79. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +37 -37
  80. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  81. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  82. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  83. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  84. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  85. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  86. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  87. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  88. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +27 -27
  89. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  90. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  91. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +31 -31
  92. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  93. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  94. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  95. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  96. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  97. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +37 -37
  98. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  99. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  100. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +27 -27
  101. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  102. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  103. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  104. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  105. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  106. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  107. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  108. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  109. package/web/.next/server/app/_global-error.html +1 -1
  110. package/web/.next/server/app/_global-error.rsc +1 -1
  111. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  112. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  113. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  114. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  115. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  116. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +6 -6
  117. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  118. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  119. package/web/.next/server/app/settings/page/server-reference-manifest.json +11 -11
  120. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  121. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  122. package/web/.next/server/app/skills/page/server-reference-manifest.json +11 -11
  123. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  124. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  125. package/web/.next/server/app/tools/page/server-reference-manifest.json +11 -11
  126. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  127. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  128. package/web/.next/server/app/version/page/server-reference-manifest.json +6 -6
  129. package/web/.next/server/app/version/page.js.nft.json +1 -1
  130. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  131. package/web/.next/server/chunks/[root-of-the-server]__0tb~wwk._.js +1 -1
  132. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js +1 -1
  133. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js.map +1 -1
  134. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js +2 -2
  135. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js.map +1 -1
  136. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js +1 -1
  137. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js.map +1 -1
  138. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js +1 -1
  139. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js.map +1 -1
  140. package/web/.next/server/chunks/ssr/[root-of-the-server]__05_qc0n._.js +1 -1
  141. package/web/.next/server/chunks/ssr/[root-of-the-server]__05_qc0n._.js.map +1 -1
  142. package/web/.next/server/chunks/ssr/[root-of-the-server]__0ge~xny._.js +1 -1
  143. package/web/.next/server/chunks/ssr/[root-of-the-server]__0ge~xny._.js.map +1 -1
  144. package/web/.next/server/chunks/ssr/[root-of-the-server]__0qda~yi._.js +1 -1
  145. package/web/.next/server/chunks/ssr/[root-of-the-server]__0qda~yi._.js.map +1 -1
  146. package/web/.next/server/chunks/ssr/[root-of-the-server]__0qxd563._.js +1 -1
  147. package/web/.next/server/chunks/ssr/[root-of-the-server]__0qxd563._.js.map +1 -1
  148. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rv1gci._.js +1 -1
  149. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rvrr1j._.js +1 -1
  150. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rvrr1j._.js.map +1 -1
  151. package/web/.next/server/chunks/ssr/[root-of-the-server]__0tq2syh._.js +1 -1
  152. package/web/.next/server/chunks/ssr/[root-of-the-server]__0t~u8sd._.js +1 -1
  153. package/web/.next/server/chunks/ssr/[root-of-the-server]__0t~u8sd._.js.map +1 -1
  154. package/web/.next/server/chunks/ssr/[root-of-the-server]__10tll_l._.js +1 -1
  155. package/web/.next/server/chunks/ssr/[root-of-the-server]__10tll_l._.js.map +1 -1
  156. package/web/.next/server/chunks/ssr/[root-of-the-server]__12j29w-._.js +1 -1
  157. package/web/.next/server/chunks/ssr/[root-of-the-server]__12j29w-._.js.map +1 -1
  158. package/web/.next/server/chunks/ssr/{_08_079y._.js → _01qdxy2._.js} +2 -2
  159. package/web/.next/server/chunks/ssr/{_08_079y._.js.map → _01qdxy2._.js.map} +1 -1
  160. package/web/.next/server/chunks/ssr/_01sesw0._.js +1 -1
  161. package/web/.next/server/chunks/ssr/_01sesw0._.js.map +1 -1
  162. package/web/.next/server/chunks/ssr/_069y.js._.js +2 -2
  163. package/web/.next/server/chunks/ssr/_069y.js._.js.map +1 -1
  164. package/web/.next/server/chunks/ssr/_0__4si~._.js +1 -1
  165. package/web/.next/server/chunks/ssr/_0__4si~._.js.map +1 -1
  166. package/web/.next/server/chunks/ssr/_0_m17kl._.js +1 -1
  167. package/web/.next/server/chunks/ssr/_0_m17kl._.js.map +1 -1
  168. package/web/.next/server/chunks/ssr/_0a_8rlj._.js +3 -0
  169. package/web/.next/server/chunks/ssr/{_0mi5qj~._.js.map → _0a_8rlj._.js.map} +1 -1
  170. package/web/.next/server/chunks/ssr/_0d4miu.._.js +1 -1
  171. package/web/.next/server/chunks/ssr/_0d4miu.._.js.map +1 -1
  172. package/web/.next/server/chunks/ssr/_0e8ern9._.js +1 -1
  173. package/web/.next/server/chunks/ssr/_0e8ern9._.js.map +1 -1
  174. package/web/.next/server/chunks/ssr/_0n.magx._.js +1 -1
  175. package/web/.next/server/chunks/ssr/_0n.magx._.js.map +1 -1
  176. package/web/.next/server/chunks/ssr/_0p3~u8u._.js +2 -2
  177. package/web/.next/server/chunks/ssr/_0p3~u8u._.js.map +1 -1
  178. package/web/.next/server/chunks/ssr/{_0txr945._.js → _0pa1dkv._.js} +2 -2
  179. package/web/.next/server/chunks/ssr/_0pa1dkv._.js.map +1 -0
  180. package/web/.next/server/chunks/ssr/_0r.3n~3._.js +1 -1
  181. package/web/.next/server/chunks/ssr/_0r.3n~3._.js.map +1 -1
  182. package/web/.next/server/chunks/ssr/_0t59q8r._.js +1 -1
  183. package/web/.next/server/chunks/ssr/_0t59q8r._.js.map +1 -1
  184. package/web/.next/server/chunks/ssr/_0vyfc4b._.js +1 -1
  185. package/web/.next/server/chunks/ssr/_0vyfc4b._.js.map +1 -1
  186. package/web/.next/server/chunks/ssr/_0w-_hww._.js +1 -1
  187. package/web/.next/server/chunks/ssr/_0w-_hww._.js.map +1 -1
  188. package/web/.next/server/chunks/ssr/{_0r04xhw._.js → _0wor25i._.js} +2 -2
  189. package/web/.next/server/chunks/ssr/{_0r04xhw._.js.map → _0wor25i._.js.map} +1 -1
  190. package/web/.next/server/chunks/ssr/_0zk-h5w._.js +1 -1
  191. package/web/.next/server/chunks/ssr/_0zk-h5w._.js.map +1 -1
  192. package/web/.next/server/chunks/ssr/_0~7lwu_._.js +1 -1
  193. package/web/.next/server/chunks/ssr/_0~7lwu_._.js.map +1 -1
  194. package/web/.next/server/chunks/ssr/_1161g9x._.js +1 -1
  195. package/web/.next/server/chunks/ssr/_1161g9x._.js.map +1 -1
  196. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_05m2q~u.js +1 -1
  197. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_05m2q~u.js.map +1 -1
  198. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_0.6zk.t.js +1 -1
  199. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_0.6zk.t.js.map +1 -1
  200. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_approve-feature_ts_0pjb_re._.js +1 -1
  201. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_0w2wqvu._.js +1 -1
  202. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js +1 -1
  203. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js.map +1 -1
  204. package/web/.next/server/middleware-build-manifest.js +3 -3
  205. package/web/.next/server/pages/500.html +1 -1
  206. package/web/.next/server/server-reference-manifest.js +1 -1
  207. package/web/.next/server/server-reference-manifest.json +50 -50
  208. package/web/.next/static/chunks/{01znjuvi5t9~q.js → 00m_fbc2z1gyi.js} +3 -3
  209. package/web/.next/static/chunks/{0ygtupas8pxdi.js → 09f2lesd_dd3~.js} +1 -1
  210. package/web/.next/static/chunks/0c0dau5pmseko.js +1 -0
  211. package/web/.next/static/chunks/{078lp287u~c~b.js → 0dq50gtgaj63f.js} +1 -1
  212. package/web/.next/static/chunks/{06nsv-_ec9ehn.js → 0k0j7anrbg-of.js} +1 -1
  213. package/web/.next/static/chunks/{17c31c1biwfyi.js → 0o33urrd3lk~u.js} +1 -1
  214. package/web/.next/static/chunks/0u_27fdqa2jeg.js +1 -0
  215. package/web/.next/static/chunks/0xwh.0u-dexsl.js +1 -0
  216. package/web/.next/static/chunks/0yibymrb2j05t.css +1 -0
  217. package/web/.next/static/chunks/103xnw203o9k1.js +1 -0
  218. package/web/.next/static/chunks/{0cv09-g0prv4o.js → 11vbir.u7_zf7.js} +1 -1
  219. package/web/.next/static/chunks/{133q8d69p6cl0.js → 121v1_d_dfk2k.js} +1 -1
  220. package/web/.next/static/chunks/{0_xww9bsde~1x.js → 12axopx66pocj.js} +1 -1
  221. package/web/.next/static/chunks/{0hg8qgtv~kuys.js → 183ehj-b80a~o.js} +1 -1
  222. package/web/.next/static/chunks/{0_v4t6gzx.332.js → 1874_wt9rit96.js} +1 -1
  223. package/web/.next/server/chunks/ssr/_0mi5qj~._.js +0 -3
  224. package/web/.next/server/chunks/ssr/_0txr945._.js.map +0 -1
  225. package/web/.next/static/chunks/033sl_l5o3uo8.css +0 -1
  226. package/web/.next/static/chunks/04r9m_5p953mf.js +0 -1
  227. package/web/.next/static/chunks/07i3-aamszsoh.js +0 -1
  228. package/web/.next/static/chunks/0ee1d3_y40g9f.js +0 -1
  229. package/web/.next/static/chunks/15mks7_3venc1.js +0 -1
  230. /package/web/.next/static/{LQMB6QAutWzPQnLUZG96y → SNdaKJ9fpre8tUMRe1jlA}/_buildManifest.js +0 -0
  231. /package/web/.next/static/{LQMB6QAutWzPQnLUZG96y → SNdaKJ9fpre8tUMRe1jlA}/_clientMiddlewareManifest.js +0 -0
  232. /package/web/.next/static/{LQMB6QAutWzPQnLUZG96y → SNdaKJ9fpre8tUMRe1jlA}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
- import type { AgentConfig } from '../../../../../../packages/core/src/domain/generated/output.js';
1
+ import type { Settings } from '../../../../../../packages/core/src/domain/generated/output.js';
2
2
  export interface AgentSettingsSectionProps {
3
- agent: AgentConfig;
3
+ settings: Settings;
4
4
  }
5
- export declare function AgentSettingsSection({ agent }: AgentSettingsSectionProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function AgentSettingsSection({ settings }: AgentSettingsSectionProps): import("react/jsx-runtime").JSX.Element;
6
6
  //# sourceMappingURL=agent-settings-section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/agent-settings-section.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAgB3E,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,WAAW,CAAC;CACpB;AAkBD,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,EAAE,yBAAyB,2CAoKxE"}
1
+ {"version":3,"file":"agent-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/agent-settings-section.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAa,MAAM,yCAAyC,CAAC;AAInF,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,yBAAyB,2CA0C3E"}
@@ -1,104 +1,25 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useState, useTransition, useRef, useEffect } from 'react';
4
- import { Bot, Eye, EyeOff, Check } from 'lucide-react';
5
- import { toast } from 'sonner';
6
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../../ui/card.js';
7
- import { Label } from '../../ui/label.js';
8
- import { Input } from '../../ui/input.js';
9
- import { Button } from '../../ui/button.js';
10
- import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
11
- import { updateSettingsAction } from '../../../app/actions/update-settings.js';
12
- import { setAgentPermissionMode } from '../../../app/actions/agent-permissions.js';
13
- import { AgentType, AgentAuthMethod } from '../../../../../../packages/core/src/domain/generated/output.js';
14
- import { getAgentTypeIcon } from '../../common/feature-node/agent-type-icons.js';
15
- import { AgentPermissionPicker } from './agent-permission-picker.js';
16
- const AGENT_TYPE_OPTIONS = [
17
- { value: AgentType.ClaudeCode, label: 'Claude Code' },
18
- { value: AgentType.CodexCli, label: 'Codex CLI' },
19
- { value: AgentType.CopilotCli, label: 'GitHub Copilot CLI' },
20
- { value: AgentType.Cursor, label: 'Cursor' },
21
- { value: AgentType.GeminiCli, label: 'Gemini CLI' },
22
- { value: AgentType.RovoDev, label: 'Rovo Dev CLI' },
23
- ];
24
- const AUTH_METHOD_OPTIONS = [
25
- { value: AgentAuthMethod.Session, label: 'Session' },
26
- { value: AgentAuthMethod.Token, label: 'Token' },
27
- ];
28
- /** Resolve the current permission mode for the active agent from settings. */
29
- function resolvePermissionMode(agent) {
30
- const perms = agent.permissions;
31
- if (!perms)
32
- return undefined;
33
- const keyMap = {
34
- [AgentType.ClaudeCode]: 'claudeCode',
35
- [AgentType.Cursor]: 'cursor',
36
- [AgentType.GeminiCli]: 'geminiCli',
37
- [AgentType.CodexCli]: 'codexCli',
38
- [AgentType.CopilotCli]: 'copilotCli',
39
- [AgentType.RovoDev]: 'rovoDev',
40
- };
41
- const key = keyMap[agent.type];
42
- return key ? perms[key] : undefined;
43
- }
44
- export function AgentSettingsSection({ agent }) {
45
- const [agentType, setAgentType] = useState(agent.type);
46
- const [authMethod, setAuthMethod] = useState(agent.authMethod);
47
- const [token, setToken] = useState(agent.token ?? '');
48
- const [showToken, setShowToken] = useState(false);
49
- const [permissionMode, setPermissionMode] = useState(resolvePermissionMode(agent));
50
- const [isPending, startTransition] = useTransition();
51
- const [showSaved, setShowSaved] = useState(false);
52
- const prevPendingRef = useRef(false);
53
- useEffect(() => {
54
- if (prevPendingRef.current && !isPending) {
55
- setShowSaved(true);
56
- const timer = setTimeout(() => setShowSaved(false), 2000);
57
- return () => clearTimeout(timer);
58
- }
59
- prevPendingRef.current = isPending;
60
- }, [isPending]);
61
- function save(payload) {
62
- startTransition(async () => {
63
- const result = await updateSettingsAction(payload);
64
- if (!result.success) {
65
- toast.error(result.error ?? 'Failed to save agent settings');
66
- }
67
- });
68
- }
69
- function buildPayload(overrides = {}) {
70
- const merged = { type: agentType, authMethod, ...overrides };
71
- const result = { type: merged.type, authMethod: merged.authMethod };
72
- if (merged.authMethod === AgentAuthMethod.Token) {
73
- result.token = overrides.token ?? token;
74
- }
75
- return { agent: result };
76
- }
77
- function handleAgentTypeChange(value) {
78
- setAgentType(value);
79
- setPermissionMode(undefined); // Reset permission mode when agent changes
80
- save(buildPayload({ type: value }));
81
- }
82
- function handlePermissionModeChange(mode) {
83
- setPermissionMode(mode);
84
- startTransition(async () => {
85
- const result = await setAgentPermissionMode(agentType, mode);
86
- if (!result.success) {
87
- toast.error(result.error ?? 'Failed to save permission mode');
88
- }
89
- });
90
- }
91
- function handleAuthMethodChange(value) {
92
- setAuthMethod(value);
93
- save(buildPayload({ authMethod: value }));
94
- }
95
- function handleTokenBlur() {
96
- if (token !== (agent.token ?? '')) {
97
- save(buildPayload({ token }));
98
- }
99
- }
100
- return (_jsxs(Card, { id: "agent", className: "scroll-mt-6", "data-testid": "agent-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Bot, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "Preferred Agent" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Choose your AI coding agent and authentication method" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "agent-type", children: "Agent Type" }), _jsxs(Select, { value: agentType, onValueChange: handleAgentTypeChange, children: [_jsx(SelectTrigger, { id: "agent-type", "data-testid": "agent-type-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: AGENT_TYPE_OPTIONS.map((opt) => {
101
- const Icon = getAgentTypeIcon(opt.value);
102
- return (_jsx(SelectItem, { value: opt.value, children: _jsxs("span", { className: "flex items-center gap-2", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), opt.label] }) }, opt.value));
103
- }) })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "auth-method", children: "Authentication Method" }), _jsxs(Select, { value: authMethod, onValueChange: handleAuthMethodChange, children: [_jsx(SelectTrigger, { id: "auth-method", "data-testid": "auth-method-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: AUTH_METHOD_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] })] }), _jsx(AgentPermissionPicker, { agentType: agentType, currentMode: permissionMode, onChange: handlePermissionModeChange, disabled: isPending }), authMethod === AgentAuthMethod.Token && (_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "agent-token", children: "API Token" }), _jsxs("div", { className: "relative", children: [_jsx(Input, { id: "agent-token", "data-testid": "agent-token-input", type: showToken ? 'text' : 'password', value: token, onChange: (e) => setToken(e.target.value), onBlur: handleTokenBlur, placeholder: "Enter your API token", className: "pe-10" }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", className: "absolute top-0 right-0 h-full px-3 hover:bg-transparent", onClick: () => setShowToken(!showToken), "data-testid": "toggle-token-visibility", "aria-label": showToken ? 'Hide token' : 'Show token', children: showToken ? _jsx(EyeOff, { className: "h-4 w-4" }) : _jsx(Eye, { className: "h-4 w-4" }) })] }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Saves automatically when you leave the field" })] }))] })] }));
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { Bot } from 'lucide-react';
5
+ import { useTranslation } from 'react-i18next';
6
+ import { AgentModelPicker } from '../../features/settings/AgentModelPicker/index.js';
7
+ import { SettingsSection, SettingsRow } from './settings-section-utils.js';
8
+ export function AgentSettingsSection({ settings }) {
9
+ const { t } = useTranslation('web');
10
+ const [agentType, setAgentType] = useState(settings.agent.type);
11
+ return (_jsx(SettingsSection, { icon: Bot, title: t('settings.agent.sectionTitle'), description: t('settings.agent.sectionDescription'), testId: "agent-settings-section", tooltip: t('settings.agent.hint'), tooltipLinks: [
12
+ {
13
+ label: t('settings.agent.links.agentSystem'),
14
+ href: 'https://github.com/jrmatherly/shipit/blob/main/docs/architecture/agent-system.md',
15
+ },
16
+ {
17
+ label: t('settings.agent.links.addingAgents'),
18
+ href: 'https://github.com/jrmatherly/shipit/blob/main/docs/development/adding-agents.md',
19
+ },
20
+ {
21
+ label: t('settings.agent.links.configurationGuide'),
22
+ href: 'https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md',
23
+ },
24
+ ], children: _jsx(SettingsRow, { label: t('settings.agent.agentAndModel'), description: t('settings.agent.agentAndModelDescription'), tooltip: "Changing the agent switches which AI CLI tool runs your features. Each agent has different capabilities, speed, and cost tradeoffs.", htmlFor: "agent-model-picker", children: _jsx(AgentModelPicker, { initialAgentType: agentType, initialModel: settings.models.default, mode: "settings", onAgentModelChange: (newAgent) => setAgentType(newAgent), className: "w-55" }) }) }));
104
25
  }
@@ -11,7 +11,6 @@ declare const meta: {
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;
13
13
  export declare const Default: Story;
14
- export declare const TokenAuth: Story;
15
- export declare const CodexCli: Story;
16
- export declare const CopilotCli: Story;
14
+ export declare const GeminiAgent: Story;
15
+ export declare const CursorAgent: Story;
17
16
  //# sourceMappingURL=agent-settings-section.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/agent-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,QAAA,MAAM,IAAI;;;;;;;CAOmC,CAAC;AAE9C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC"}
1
+ {"version":3,"file":"agent-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/agent-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAMhE,QAAA,MAAM,IAAI;;;;;;;CAOmC,CAAC;AAE9C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { AgentSettingsSection } from './agent-settings-section.js';
2
- import { AgentType, AgentAuthMethod } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ import { createDefaultSettings } from '../../../../../../packages/core/src/domain/factories/settings-defaults.factory.js';
3
+ import { AgentType } from '../../../../../../packages/core/src/domain/generated/output.js';
4
+ const baseSettings = createDefaultSettings();
3
5
  const meta = {
4
6
  title: 'Features/Settings/AgentSettingsSection',
5
7
  component: AgentSettingsSection,
@@ -11,34 +13,28 @@ const meta = {
11
13
  export default meta;
12
14
  export const Default = {
13
15
  args: {
14
- agent: {
15
- type: AgentType.ClaudeCode,
16
- authMethod: AgentAuthMethod.Session,
17
- },
18
- },
19
- };
20
- export const TokenAuth = {
21
- args: {
22
- agent: {
23
- type: AgentType.GeminiCli,
24
- authMethod: AgentAuthMethod.Token,
25
- token: 'sk-test-token-12345',
26
- },
16
+ settings: baseSettings,
27
17
  },
28
18
  };
29
- export const CodexCli = {
19
+ export const GeminiAgent = {
30
20
  args: {
31
- agent: {
32
- type: AgentType.CodexCli,
33
- authMethod: AgentAuthMethod.Session,
21
+ settings: {
22
+ ...baseSettings,
23
+ agent: {
24
+ ...baseSettings.agent,
25
+ type: AgentType.GeminiCli,
26
+ },
34
27
  },
35
28
  },
36
29
  };
37
- export const CopilotCli = {
30
+ export const CursorAgent = {
38
31
  args: {
39
- agent: {
40
- type: AgentType.CopilotCli,
41
- authMethod: AgentAuthMethod.Session,
32
+ settings: {
33
+ ...baseSettings,
34
+ agent: {
35
+ ...baseSettings.agent,
36
+ type: AgentType.Cursor,
37
+ },
42
38
  },
43
39
  },
44
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ci-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/ci-settings-section.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAGxE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAQD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CA8JrE"}
1
+ {"version":3,"file":"ci-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/ci-settings-section.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAGxE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAQD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CA8KrE"}
@@ -52,19 +52,28 @@ export function CiSettingsSection({ settings }) {
52
52
  },
53
53
  };
54
54
  }
55
- return (_jsxs(SettingsSection, { icon: Activity, title: t('settings.ci.title'), description: t('settings.ci.description'), testId: "ci-settings-section", children: [_jsx(SettingsRow, { label: t('settings.ci.maxFixAttempts'), description: t('settings.ci.maxFixAttemptsDescription'), htmlFor: "ci-max-fix", children: _jsx(NumberStepper, { id: "ci-max-fix", testId: "ci-max-fix-input", placeholder: "3", value: ciMaxFix, onChange: setCiMaxFix, onBlur: () => {
55
+ return (_jsxs(SettingsSection, { icon: Activity, title: t('settings.ci.title'), description: t('settings.ci.description'), testId: "ci-settings-section", tooltip: t('settings.ci.hint'), tooltipLinks: [
56
+ {
57
+ label: t('settings.ci.links.cicdPipeline'),
58
+ href: 'https://github.com/jrmatherly/shipit/blob/main/docs/development/cicd.md',
59
+ },
60
+ {
61
+ label: t('settings.ci.links.ciSecurityGates'),
62
+ href: 'https://github.com/jrmatherly/shipit/blob/main/specs/003-cicd-security-gates/spec.md',
63
+ },
64
+ ], children: [_jsx(SettingsRow, { label: t('settings.ci.maxFixAttempts'), description: t('settings.ci.maxFixAttemptsDescription'), tooltip: "How many times the agent will attempt to fix failing CI checks before giving up. Higher values increase the chance of auto-resolution but consume more agent time and API calls.", htmlFor: "ci-max-fix", children: _jsx(NumberStepper, { id: "ci-max-fix", testId: "ci-max-fix-input", placeholder: "3", value: ciMaxFix, onChange: setCiMaxFix, onBlur: () => {
56
65
  if (ciMaxFix !== originalCiMaxFix)
57
66
  save(buildPayload({ ciMaxFix }));
58
- }, min: 1, max: 10 }) }), _jsx(SettingsRow, { label: t('settings.ci.watchTimeout'), description: t('settings.ci.watchTimeoutDescription'), htmlFor: "ci-timeout", children: _jsx(NumberStepper, { id: "ci-timeout", testId: "ci-timeout-input", placeholder: "300", value: ciTimeout, onChange: setCiTimeout, onBlur: () => {
67
+ }, min: 1, max: 10 }) }), _jsx(SettingsRow, { label: t('settings.ci.watchTimeout'), description: t('settings.ci.watchTimeoutDescription'), tooltip: "Maximum time the agent will wait for CI to finish. If CI hasn't completed within this window, the agent stops watching. Increase for repos with slow CI pipelines.", htmlFor: "ci-timeout", children: _jsx(NumberStepper, { id: "ci-timeout", testId: "ci-timeout-input", placeholder: "300", value: ciTimeout, onChange: setCiTimeout, onBlur: () => {
59
68
  if (ciTimeout !== originalCiTimeout)
60
69
  save(buildPayload({ ciTimeout }));
61
- }, min: 30, step: 30, suffix: "sec" }) }), _jsx(SettingsRow, { label: t('settings.ci.maxLogSize'), description: t('settings.ci.maxLogSizeDescription'), htmlFor: "ci-log-max", children: _jsx(NumberStepper, { id: "ci-log-max", testId: "ci-log-max-input", placeholder: "50000", value: ciLogMax, onChange: setCiLogMax, onBlur: () => {
70
+ }, min: 30, step: 30, suffix: "sec" }) }), _jsx(SettingsRow, { label: t('settings.ci.maxLogSize'), description: t('settings.ci.maxLogSizeDescription'), tooltip: "CI logs beyond this character limit are truncated before being sent to the agent for analysis. Keeps agent context focused and avoids excessive token usage.", htmlFor: "ci-log-max", children: _jsx(NumberStepper, { id: "ci-log-max", testId: "ci-log-max-input", placeholder: "50000", value: ciLogMax, onChange: setCiLogMax, onBlur: () => {
62
71
  if (ciLogMax !== originalCiLogMax)
63
72
  save(buildPayload({ ciLogMax }));
64
- }, min: 1000, step: 5000, suffix: "chars" }) }), _jsx(SettingsRow, { label: t('settings.ci.pollInterval'), description: t('settings.ci.pollIntervalDescription'), htmlFor: "ci-poll-interval", children: _jsx(NumberStepper, { id: "ci-poll-interval", testId: "ci-poll-interval-input", placeholder: "30", value: ciPollInterval, onChange: setCiPollInterval, onBlur: () => {
73
+ }, min: 1000, step: 5000, suffix: "chars" }) }), _jsx(SettingsRow, { label: t('settings.ci.pollInterval'), description: t('settings.ci.pollIntervalDescription'), tooltip: "How frequently the agent checks GitHub for CI status updates. Lower values give faster feedback but increase API call volume.", htmlFor: "ci-poll-interval", children: _jsx(NumberStepper, { id: "ci-poll-interval", testId: "ci-poll-interval-input", placeholder: "30", value: ciPollInterval, onChange: setCiPollInterval, onBlur: () => {
65
74
  if (ciPollInterval !== originalCiPollInterval)
66
75
  save(buildPayload({ ciPollInterval }));
67
- }, min: 5, step: 5, suffix: "sec" }) }), _jsx(SwitchRow, { label: t('settings.ci.hideCiStatus'), description: t('settings.ci.hideCiStatusDescription'), id: "hide-ci-status", testId: "switch-hide-ci-status", checked: hideCiStatus, onChange: (v) => {
76
+ }, min: 5, step: 5, suffix: "sec" }) }), _jsx(SwitchRow, { label: t('settings.ci.hideCiStatus'), description: t('settings.ci.hideCiStatusDescription'), tooltip: "When enabled, CI status indicators are hidden from the feature drawer and merge review panels. Useful if you monitor CI through GitHub directly.", id: "hide-ci-status", testId: "switch-hide-ci-status", checked: hideCiStatus, onChange: (v) => {
68
77
  setHideCiStatus(v);
69
78
  save(buildPayload({ hideCiStatus: v }));
70
79
  } })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"database-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/database-settings-section.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,YAAY,EACZ,UAAU,GACX,EAAE,4BAA4B,2CA+B9B"}
1
+ {"version":3,"file":"database-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/database-settings-section.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,YAAY,EACZ,UAAU,GACX,EAAE,4BAA4B,2CA2C9B"}
@@ -1,8 +1,18 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Database, Info } from 'lucide-react';
4
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../../ui/card.js';
5
- import { Label } from '../../ui/label.js';
3
+ import { Database } from 'lucide-react';
4
+ import { useTranslation } from 'react-i18next';
5
+ import { SettingsSection, SettingsRow } from './settings-section-utils.js';
6
6
  export function DatabaseSettingsSection({ shipitAiHome, dbFileSize, }) {
7
- return (_jsxs(Card, { id: "database", className: "scroll-mt-6", "data-testid": "database-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Database, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "Database Location" })] }), _jsx(CardDescription, { children: _jsxs("span", { className: "inline-flex items-center gap-1", children: [_jsx(Info, { className: "h-3 w-3" }), "Read-only information about your ShipIT AI data directory and database"] }) })] }), _jsxs(CardContent, { className: "bg-muted/50 space-y-3 rounded-b-lg", children: [_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-muted-foreground text-xs", children: "SHIPIT_AI_HOME Directory" }), _jsx("p", { className: "font-mono text-sm", "data-testid": "shipit-ai-home-path", children: shipitAiHome })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-muted-foreground text-xs", children: "Database File Size" }), _jsx("p", { className: "text-sm", "data-testid": "db-file-size", children: dbFileSize })] })] })] }));
7
+ const { t } = useTranslation('web');
8
+ return (_jsxs(SettingsSection, { icon: Database, title: t('settings.database.title'), description: t('settings.database.sectionDescription'), testId: "database-settings-section", tooltip: t('settings.database.hint'), tooltipLinks: [
9
+ {
10
+ label: t('settings.database.links.settingsService'),
11
+ href: 'https://github.com/jrmatherly/shipit/blob/main/docs/architecture/settings-service.md',
12
+ },
13
+ {
14
+ label: t('settings.database.links.settingsSpec'),
15
+ href: 'https://github.com/jrmatherly/shipit/blob/main/specs/005-global-settings-service/spec.md',
16
+ },
17
+ ], children: [_jsx(SettingsRow, { label: t('settings.database.location'), description: t('settings.database.locationDescription'), tooltip: "The directory where ShipIT stores its SQLite database, logs, and configuration files. Change this via the SHIPIT_AI_HOME environment variable.", children: _jsx("span", { className: "text-muted-foreground max-w-50 truncate font-mono text-xs", "data-testid": "shipit-ai-home-path", children: shipitAiHome }) }), _jsx(SettingsRow, { label: t('settings.database.size'), tooltip: "Current size of the SQLite database file on disk. Large databases may slow down startup; consider archiving old features if this grows significantly.", children: _jsx("span", { className: "text-muted-foreground text-xs", "data-testid": "db-file-size", children: dbFileSize }) })] }));
8
18
  }
@@ -1,8 +1,14 @@
1
- import type { EnvironmentConfig } from '../../../../../../packages/core/src/domain/generated/output.js';
1
+ import type { Settings } from '../../../../../../packages/core/src/domain/generated/output.js';
2
2
  import type { AvailableTerminal } from '../../../app/actions/get-available-terminals.js';
3
+ import type { AvailableEditor } from '../../../app/actions/get-available-editors.js';
4
+ import type { AvailableShell } from '../../../app/actions/get-available-shells.js';
5
+ export declare const DEFAULT_EDITOR_OPTIONS: AvailableEditor[];
6
+ export declare const DEFAULT_SHELL_OPTIONS: AvailableShell[];
3
7
  export interface EnvironmentSettingsSectionProps {
4
- environment: EnvironmentConfig;
8
+ settings: Settings;
9
+ availableEditors?: AvailableEditor[];
10
+ availableShells?: AvailableShell[];
5
11
  availableTerminals?: AvailableTerminal[];
6
12
  }
7
- export declare function EnvironmentSettingsSection({ environment, availableTerminals, }: EnvironmentSettingsSectionProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function EnvironmentSettingsSection({ settings, availableEditors, availableShells, availableTerminals, }: EnvironmentSettingsSectionProps): import("react/jsx-runtime").JSX.Element;
8
14
  //# sourceMappingURL=environment-settings-section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAgB/E,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED,wBAAgB,0BAA0B,CAAC,EACzC,WAAW,EACX,kBAAkB,GACnB,EAAE,+BAA+B,2CAuIjC"}
1
+ {"version":3,"file":"environment-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,eAAO,MAAM,sBAAsB,EAAE,eAAe,EAMnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAAc,EAIjD,CAAC;AAEF,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,QAAQ,CAAC;IACnB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,kBAAkB,GACnB,EAAE,+BAA+B,2CAkMjC"}
@@ -1,81 +1,91 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useState, useTransition, useRef, useEffect } from 'react';
4
- import { Terminal, Check } from 'lucide-react';
3
+ import { useState, useTransition } from 'react';
4
+ import { Terminal } from 'lucide-react';
5
5
  import { toast } from 'sonner';
6
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../../ui/card.js';
7
- import { Label } from '../../ui/label.js';
6
+ import { useTranslation } from 'react-i18next';
7
+ import { cn } from '../../../lib/utils.js';
8
8
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
9
+ import { Badge } from '../../ui/badge.js';
9
10
  import { updateSettingsAction } from '../../../app/actions/update-settings.js';
10
- import { EditorType, TerminalType } from '../../../../../../packages/core/src/domain/generated/output.js';
11
- const EDITOR_OPTIONS = [
12
- { value: EditorType.VsCode, label: 'VS Code' },
13
- { value: EditorType.Cursor, label: 'Cursor' },
14
- { value: EditorType.Windsurf, label: 'Windsurf' },
15
- { value: EditorType.Zed, label: 'Zed' },
16
- { value: EditorType.Antigravity, label: 'Antigravity' },
11
+ import { TerminalType } from '../../../../../../packages/core/src/domain/generated/output.js';
12
+ import { getEditorTypeIcon } from '../../common/editor-type-icons.js';
13
+ import { SettingsSection, SettingsRow } from './settings-section-utils.js';
14
+ export const DEFAULT_EDITOR_OPTIONS = [
15
+ { id: 'vscode', name: 'VS Code', available: true },
16
+ { id: 'cursor', name: 'Cursor', available: true },
17
+ { id: 'windsurf', name: 'Windsurf', available: true },
18
+ { id: 'zed', name: 'Zed', available: true },
19
+ { id: 'antigravity', name: 'Antigravity', available: true },
17
20
  ];
18
- const SHELL_OPTIONS = [
19
- { value: 'bash', label: 'Bash' },
20
- { value: 'zsh', label: 'Zsh' },
21
- { value: 'fish', label: 'Fish' },
21
+ export const DEFAULT_SHELL_OPTIONS = [
22
+ { id: 'bash', name: 'Bash', available: true },
23
+ { id: 'zsh', name: 'Zsh', available: true },
24
+ { id: 'fish', name: 'Fish', available: true },
22
25
  ];
23
- export function EnvironmentSettingsSection({ environment, availableTerminals, }) {
24
- const [editor, setEditor] = useState(environment.defaultEditor);
25
- const [shell, setShell] = useState(environment.shellPreference);
26
- const [terminal, setTerminal] = useState(environment.terminalPreference ?? TerminalType.System);
27
- const [isPending, startTransition] = useTransition();
28
- const [showSaved, setShowSaved] = useState(false);
29
- const prevPendingRef = useRef(false);
30
- useEffect(() => {
31
- if (prevPendingRef.current && !isPending) {
32
- setShowSaved(true);
33
- const timer = setTimeout(() => setShowSaved(false), 2000);
34
- return () => clearTimeout(timer);
35
- }
36
- prevPendingRef.current = isPending;
37
- }, [isPending]);
26
+ export function EnvironmentSettingsSection({ settings, availableEditors, availableShells, availableTerminals, }) {
27
+ const { t } = useTranslation('web');
28
+ const [, startTransition] = useTransition();
29
+ const [editor, setEditor] = useState(settings.environment.defaultEditor);
30
+ const [shell, setShell] = useState(settings.environment.shellPreference);
31
+ const [terminal, setTerminal] = useState(settings.environment.terminalPreference ?? TerminalType.System);
32
+ const terminalOptions = availableTerminals ?? [
33
+ {
34
+ id: TerminalType.System,
35
+ name: t('settings.environment.systemTerminal'),
36
+ available: true,
37
+ },
38
+ ];
39
+ const editorOptions = availableEditors ?? DEFAULT_EDITOR_OPTIONS;
40
+ const shellOptions = availableShells ?? DEFAULT_SHELL_OPTIONS;
38
41
  function save(payload) {
39
42
  startTransition(async () => {
40
43
  const result = await updateSettingsAction(payload);
41
44
  if (!result.success) {
42
- toast.error(result.error ?? 'Failed to save IDE & Terminal settings');
45
+ toast.error(result.error ?? t('settings.failedToSave'));
43
46
  }
44
47
  });
45
48
  }
46
- function handleEditorChange(value) {
47
- setEditor(value);
48
- save({
49
- environment: {
50
- defaultEditor: value,
51
- shellPreference: shell,
52
- terminalPreference: terminal,
49
+ return (_jsxs(SettingsSection, { icon: Terminal, title: t('settings.environment.sectionTitle'), description: t('settings.environment.sectionDescription'), testId: "environment-settings-section", tooltip: t('settings.environment.hint'), tooltipLinks: [
50
+ {
51
+ label: t('settings.environment.links.configurationGuide'),
52
+ href: 'https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md',
53
53
  },
54
- });
55
- }
56
- function handleShellChange(value) {
57
- setShell(value);
58
- save({
59
- environment: {
60
- defaultEditor: editor,
61
- shellPreference: value,
62
- terminalPreference: terminal,
63
- },
64
- });
65
- }
66
- function handleTerminalChange(value) {
67
- setTerminal(value);
68
- save({
69
- environment: {
70
- defaultEditor: editor,
71
- shellPreference: shell,
72
- terminalPreference: value,
73
- },
74
- });
75
- }
76
- // Filter to only show installed terminals
77
- const terminalOptions = availableTerminals
78
- ? availableTerminals.filter((t) => t.available)
79
- : [{ id: TerminalType.System, name: 'System Terminal', available: true }];
80
- return (_jsxs(Card, { id: "environment", className: "scroll-mt-6", "data-testid": "environment-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Terminal, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "IDE & Terminal" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure your default editor, shell, and terminal preferences" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "default-editor", children: "Default Editor" }), _jsxs(Select, { value: editor, onValueChange: handleEditorChange, children: [_jsx(SelectTrigger, { id: "default-editor", "data-testid": "editor-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: EDITOR_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "shell-preference", children: "Shell Preference" }), _jsxs(Select, { value: shell, onValueChange: handleShellChange, children: [_jsx(SelectTrigger, { id: "shell-preference", "data-testid": "shell-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SHELL_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "terminal-preference", children: "Terminal Emulator" }), _jsxs(Select, { value: terminal, onValueChange: handleTerminalChange, children: [_jsx(SelectTrigger, { id: "terminal-preference", "data-testid": "terminal-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: terminalOptions.map((opt) => (_jsx(SelectItem, { value: opt.id, children: opt.name }, opt.id))) })] })] })] })] }));
54
+ ], children: [_jsx(SettingsRow, { label: t('settings.environment.defaultEditor'), description: t('settings.environment.defaultEditorDescription'), tooltip: "The editor that opens when you click 'Launch' on a tool card or when ShipIT needs to open a file for review.", htmlFor: "default-editor", children: _jsxs(Select, { value: editor, onValueChange: (v) => {
55
+ setEditor(v);
56
+ save({
57
+ environment: {
58
+ defaultEditor: v,
59
+ shellPreference: shell,
60
+ terminalPreference: terminal,
61
+ },
62
+ });
63
+ }, children: [_jsx(SelectTrigger, { id: "default-editor", "data-testid": "editor-select", className: "w-64 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: editorOptions.map((opt) => {
64
+ const Icon = getEditorTypeIcon(opt.id);
65
+ return (_jsx(SelectItem, { value: opt.id, disabled: !opt.available, children: _jsxs("span", { className: "flex items-center gap-2 text-xs", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), opt.name, _jsx(Badge, { variant: "outline", className: cn('ml-auto px-1.5 py-0 text-[10px] leading-4 font-normal', opt.available
66
+ ? 'border-emerald-500/30 text-emerald-500'
67
+ : 'border-muted-foreground/30 text-muted-foreground'), children: opt.available ? 'Installed' : 'Not Installed' })] }) }, opt.id));
68
+ }) })] }) }), _jsx(SettingsRow, { label: t('settings.environment.shell'), description: t('settings.environment.shellDescription'), tooltip: "Controls which shell runs generated scripts like install commands and git operations. Match this to your daily driver shell.", htmlFor: "shell-preference", children: _jsxs(Select, { value: shell, onValueChange: (v) => {
69
+ setShell(v);
70
+ save({
71
+ environment: {
72
+ defaultEditor: editor,
73
+ shellPreference: v,
74
+ terminalPreference: terminal,
75
+ },
76
+ });
77
+ }, children: [_jsx(SelectTrigger, { id: "shell-preference", "data-testid": "shell-select", className: "w-64 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: shellOptions.map((opt) => (_jsx(SelectItem, { value: opt.id, disabled: !opt.available, children: _jsxs("span", { className: "flex items-center gap-2 text-xs", children: [opt.name, _jsx(Badge, { variant: "outline", className: cn('ml-auto px-1.5 py-0 text-[10px] leading-4 font-normal', opt.available
78
+ ? 'border-emerald-500/30 text-emerald-500'
79
+ : 'border-muted-foreground/30 text-muted-foreground'), children: opt.available ? 'Installed' : 'Not Installed' })] }) }, opt.id))) })] }) }), _jsx(SettingsRow, { label: t('settings.environment.terminal'), description: t('settings.environment.terminalDescription'), tooltip: "The terminal emulator launched when opening shell sessions from the web UI. Only affects web-launched terminals, not CLI usage.", htmlFor: "terminal-preference", children: _jsxs(Select, { value: terminal, onValueChange: (v) => {
80
+ setTerminal(v);
81
+ save({
82
+ environment: {
83
+ defaultEditor: editor,
84
+ shellPreference: shell,
85
+ terminalPreference: v,
86
+ },
87
+ });
88
+ }, children: [_jsx(SelectTrigger, { id: "terminal-preference", "data-testid": "terminal-select", className: "w-64 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: terminalOptions.map((opt) => (_jsx(SelectItem, { value: opt.id, disabled: !opt.available, children: _jsxs("span", { className: "flex items-center gap-2 text-xs", children: [opt.name, _jsx(Badge, { variant: "outline", className: cn('ml-auto px-1.5 py-0 text-[10px] leading-4 font-normal', opt.available
89
+ ? 'border-emerald-500/30 text-emerald-500'
90
+ : 'border-muted-foreground/30 text-muted-foreground'), children: opt.available ? 'Installed' : 'Not Installed' })] }) }, opt.id))) })] }) })] }));
81
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"environment-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAG5E,QAAA,MAAM,IAAI;;;;;;;CAOyC,CAAC;AAEpD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAe1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAC"}
1
+ {"version":3,"file":"environment-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAM5E,QAAA,MAAM,IAAI;;;;;;;CAOyC,CAAC;AAEpD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAa3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAmB1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAIhC,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { EnvironmentSettingsSection } from './environment-settings-section.js';
2
+ import { createDefaultSettings } from '../../../../../../packages/core/src/domain/factories/settings-defaults.factory.js';
2
3
  import { EditorType, TerminalType } from '../../../../../../packages/core/src/domain/generated/output.js';
4
+ const baseSettings = createDefaultSettings();
3
5
  const meta = {
4
6
  title: 'Features/Settings/EnvironmentSettingsSection',
5
7
  component: EnvironmentSettingsSection,
@@ -11,11 +13,7 @@ const meta = {
11
13
  export default meta;
12
14
  export const Default = {
13
15
  args: {
14
- environment: {
15
- defaultEditor: EditorType.VsCode,
16
- shellPreference: 'bash',
17
- terminalPreference: TerminalType.System,
18
- },
16
+ settings: baseSettings,
19
17
  availableTerminals: [
20
18
  { id: 'system', name: 'System Terminal', available: true },
21
19
  { id: 'warp', name: 'Warp', available: true },
@@ -25,20 +23,28 @@ export const Default = {
25
23
  };
26
24
  export const CursorWithZsh = {
27
25
  args: {
28
- environment: {
29
- defaultEditor: EditorType.Cursor,
30
- shellPreference: 'zsh',
31
- terminalPreference: TerminalType.System,
26
+ settings: {
27
+ ...baseSettings,
28
+ environment: {
29
+ ...baseSettings.environment,
30
+ defaultEditor: EditorType.Cursor,
31
+ shellPreference: 'zsh',
32
+ terminalPreference: TerminalType.System,
33
+ },
32
34
  },
33
35
  availableTerminals: [{ id: 'system', name: 'System Terminal', available: true }],
34
36
  },
35
37
  };
36
38
  export const WarpSelected = {
37
39
  args: {
38
- environment: {
39
- defaultEditor: EditorType.VsCode,
40
- shellPreference: 'zsh',
41
- terminalPreference: TerminalType.Warp,
40
+ settings: {
41
+ ...baseSettings,
42
+ environment: {
43
+ ...baseSettings.environment,
44
+ defaultEditor: EditorType.VsCode,
45
+ shellPreference: 'zsh',
46
+ terminalPreference: TerminalType.Warp,
47
+ },
42
48
  },
43
49
  availableTerminals: [
44
50
  { id: 'system', name: 'System Terminal', available: true },
@@ -51,10 +57,6 @@ export const WarpSelected = {
51
57
  };
52
58
  export const OnlySystemTerminal = {
53
59
  args: {
54
- environment: {
55
- defaultEditor: EditorType.VsCode,
56
- shellPreference: 'bash',
57
- terminalPreference: TerminalType.System,
58
- },
60
+ settings: baseSettings,
59
61
  },
60
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fab-layout-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/fab-layout-settings-section.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,yCAAyC,CAAC;AAGzF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE,6BAA6B,2CAoCnF"}
1
+ {"version":3,"file":"fab-layout-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/fab-layout-settings-section.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,yCAAyC,CAAC;AAGzF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE,6BAA6B,2CAsCnF"}
@@ -19,7 +19,7 @@ export function FabLayoutSettingsSection({ settings }) {
19
19
  }
20
20
  });
21
21
  }
22
- return (_jsx(SettingsSection, { icon: LayoutGrid, title: t('settings.fabLayout.title'), description: t('settings.fabLayout.description'), testId: "fab-layout-settings-section", children: _jsx(SwitchRow, { label: t('settings.fabLayout.swapPosition'), description: t('settings.fabLayout.swapPositionDescription'), id: "fab-swap-position", testId: "switch-fab-swap-position", checked: fabSwapPosition, onChange: (v) => {
22
+ return (_jsx(SettingsSection, { icon: LayoutGrid, title: t('settings.fabLayout.title'), description: t('settings.fabLayout.description'), testId: "fab-layout-settings-section", tooltip: t('settings.fabLayout.hint'), children: _jsx(SwitchRow, { label: t('settings.fabLayout.swapPosition'), description: t('settings.fabLayout.swapPositionDescription'), tooltip: "Swaps the Create button (bottom-right) and Chat button (bottom-left) positions on the control center canvas.", id: "fab-swap-position", testId: "switch-fab-swap-position", checked: fabSwapPosition, onChange: (v) => {
23
23
  setFabSwapPosition(v);
24
24
  save({ fabLayout: { swapPosition: v } });
25
25
  } }) }));