@shipit-ai/cli 1.167.1 → 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 (396) hide show
  1. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/antigravity.json +1 -1
  2. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/bash.json +1 -0
  3. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor-cli.json +1 -1
  4. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor.json +1 -1
  5. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/fish.json +1 -0
  6. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/powershell.json +1 -0
  7. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/zsh.json +1 -0
  8. package/dist/src/presentation/web/app/layout.d.ts.map +1 -1
  9. package/dist/src/presentation/web/app/layout.js +15 -2
  10. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts.map +1 -1
  11. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +4 -1
  12. package/dist/src/presentation/web/components/common/page-header/page-header.d.ts +3 -1
  13. package/dist/src/presentation/web/components/common/page-header/page-header.d.ts.map +1 -1
  14. package/dist/src/presentation/web/components/common/page-header/page-header.js +8 -2
  15. package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
  16. package/dist/src/presentation/web/components/common/repository-node/repository-node.js +6 -1
  17. package/dist/src/presentation/web/components/common/shipit-ai-logo/shipit-ai-logo.d.ts +9 -1
  18. package/dist/src/presentation/web/components/common/shipit-ai-logo/shipit-ai-logo.d.ts.map +1 -1
  19. package/dist/src/presentation/web/components/common/shipit-ai-logo/shipit-ai-logo.js +12 -6
  20. package/dist/src/presentation/web/components/common/sidebar-collapse-toggle/sidebar-collapse-toggle.d.ts.map +1 -1
  21. package/dist/src/presentation/web/components/common/sidebar-collapse-toggle/sidebar-collapse-toggle.js +5 -1
  22. package/dist/src/presentation/web/components/common/sidebar-nav-item/sidebar-nav-item.d.ts.map +1 -1
  23. package/dist/src/presentation/web/components/common/sidebar-nav-item/sidebar-nav-item.js +15 -0
  24. package/dist/src/presentation/web/components/features/chat/ChatSheet.d.ts.map +1 -1
  25. package/dist/src/presentation/web/components/features/chat/ChatSheet.js +18 -5
  26. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts.map +1 -1
  27. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.js +1 -1
  28. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
  29. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +5 -1
  30. package/dist/src/presentation/web/components/features/settings/agent-settings-section.d.ts +3 -3
  31. package/dist/src/presentation/web/components/features/settings/agent-settings-section.d.ts.map +1 -1
  32. package/dist/src/presentation/web/components/features/settings/agent-settings-section.js +23 -102
  33. package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.d.ts +2 -3
  34. package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.d.ts.map +1 -1
  35. package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.js +18 -22
  36. package/dist/src/presentation/web/components/features/settings/ci-settings-section.d.ts.map +1 -1
  37. package/dist/src/presentation/web/components/features/settings/ci-settings-section.js +14 -5
  38. package/dist/src/presentation/web/components/features/settings/database-settings-section.d.ts.map +1 -1
  39. package/dist/src/presentation/web/components/features/settings/database-settings-section.js +14 -4
  40. package/dist/src/presentation/web/components/features/settings/environment-settings-section.d.ts +9 -3
  41. package/dist/src/presentation/web/components/features/settings/environment-settings-section.d.ts.map +1 -1
  42. package/dist/src/presentation/web/components/features/settings/environment-settings-section.js +75 -65
  43. package/dist/src/presentation/web/components/features/settings/environment-settings-section.stories.d.ts.map +1 -1
  44. package/dist/src/presentation/web/components/features/settings/environment-settings-section.stories.js +20 -18
  45. package/dist/src/presentation/web/components/features/settings/fab-layout-settings-section.d.ts.map +1 -1
  46. package/dist/src/presentation/web/components/features/settings/fab-layout-settings-section.js +1 -1
  47. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts +3 -3
  48. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
  49. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +48 -50
  50. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
  51. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +25 -25
  52. package/dist/src/presentation/web/components/features/settings/interactive-agent-settings-section.d.ts.map +1 -1
  53. package/dist/src/presentation/web/components/features/settings/interactive-agent-settings-section.js +3 -3
  54. package/dist/src/presentation/web/components/features/settings/notification-settings-section.d.ts +3 -3
  55. package/dist/src/presentation/web/components/features/settings/notification-settings-section.d.ts.map +1 -1
  56. package/dist/src/presentation/web/components/features/settings/notification-settings-section.js +64 -47
  57. package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.d.ts.map +1 -1
  58. package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.js +32 -24
  59. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  60. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +28 -381
  61. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts +2 -0
  62. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
  63. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +13 -0
  64. package/dist/src/presentation/web/components/features/settings/settings-section-utils.d.ts +13 -10
  65. package/dist/src/presentation/web/components/features/settings/settings-section-utils.d.ts.map +1 -1
  66. package/dist/src/presentation/web/components/features/settings/settings-section-utils.js +10 -10
  67. package/dist/src/presentation/web/components/features/settings/settings-section-utils.stories.d.ts +1 -1
  68. package/dist/src/presentation/web/components/features/settings/settings-section-utils.stories.d.ts.map +1 -1
  69. package/dist/src/presentation/web/components/features/settings/settings-section-utils.stories.js +7 -7
  70. package/dist/src/presentation/web/components/features/settings/stage-timeouts-settings-section.d.ts.map +1 -1
  71. package/dist/src/presentation/web/components/features/settings/stage-timeouts-settings-section.js +1 -1
  72. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts +3 -3
  73. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
  74. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +118 -165
  75. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts +1 -1
  76. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
  77. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +26 -64
  78. package/dist/src/presentation/web/components/features/skills/category-filter.d.ts.map +1 -1
  79. package/dist/src/presentation/web/components/features/skills/category-filter.js +12 -2
  80. package/dist/src/presentation/web/components/features/skills/skill-card.d.ts.map +1 -1
  81. package/dist/src/presentation/web/components/features/skills/skill-card.js +3 -3
  82. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.d.ts.map +1 -1
  83. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.js +27 -1
  84. package/dist/src/presentation/web/components/features/skills/skill-list.js +2 -2
  85. package/dist/src/presentation/web/components/features/skills/skills-page-client.d.ts.map +1 -1
  86. package/dist/src/presentation/web/components/features/skills/skills-page-client.js +2 -2
  87. package/dist/src/presentation/web/components/features/tools/tool-card.d.ts.map +1 -1
  88. package/dist/src/presentation/web/components/features/tools/tool-card.js +20 -11
  89. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.js +1 -1
  90. package/dist/src/presentation/web/components/features/tools/tools-page-client.d.ts.map +1 -1
  91. package/dist/src/presentation/web/components/features/tools/tools-page-client.js +6 -1
  92. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  93. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +39 -43
  94. package/dist/src/presentation/web/components/ui/card.d.ts.map +1 -1
  95. package/dist/src/presentation/web/components/ui/card.js +9 -1
  96. package/dist/src/presentation/web/components/ui/drawer.d.ts.map +1 -1
  97. package/dist/src/presentation/web/components/ui/drawer.js +8 -2
  98. package/dist/src/presentation/web/components/ui/tooltip.d.ts.map +1 -1
  99. package/dist/src/presentation/web/components/ui/tooltip.js +3 -3
  100. package/dist/translations/ar/web.json +1 -0
  101. package/dist/translations/de/web.json +1 -0
  102. package/dist/translations/en/web.json +1 -0
  103. package/dist/translations/es/web.json +1 -0
  104. package/dist/translations/fr/web.json +1 -0
  105. package/dist/translations/he/web.json +1 -0
  106. package/dist/translations/pt/web.json +1 -0
  107. package/dist/translations/ru/web.json +1 -0
  108. package/dist/tsconfig.build.tsbuildinfo +1 -1
  109. package/package.json +1 -1
  110. package/web/.next/BUILD_ID +1 -1
  111. package/web/.next/build-manifest.json +3 -3
  112. package/web/.next/fallback-build-manifest.json +3 -3
  113. package/web/.next/prerender-manifest.json +3 -3
  114. package/web/.next/required-server-files.js +2 -2
  115. package/web/.next/required-server-files.json +2 -2
  116. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/next-font-manifest.json +6 -2
  117. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +29 -29
  118. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +1 -1
  119. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  120. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  121. package/web/.next/server/app/(dashboard)/@drawer/chat/page/next-font-manifest.json +6 -2
  122. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +27 -27
  123. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +1 -1
  124. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  125. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  126. package/web/.next/server/app/(dashboard)/@drawer/create/page/next-font-manifest.json +6 -2
  127. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +31 -31
  128. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  129. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  130. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  131. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/next-font-manifest.json +6 -2
  132. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  133. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +2 -2
  134. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  135. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  136. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/next-font-manifest.json +6 -2
  137. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +37 -37
  138. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +2 -2
  139. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  140. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  141. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/next-font-manifest.json +6 -2
  142. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  143. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +1 -1
  144. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  145. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  146. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/next-font-manifest.json +6 -2
  147. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  148. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  149. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  150. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  151. package/web/.next/server/app/(dashboard)/chat/page/next-font-manifest.json +6 -2
  152. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +27 -27
  153. package/web/.next/server/app/(dashboard)/chat/page.js +1 -1
  154. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  155. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  156. package/web/.next/server/app/(dashboard)/create/page/next-font-manifest.json +6 -2
  157. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +31 -31
  158. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  159. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  160. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  161. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/next-font-manifest.json +6 -2
  162. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  163. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +2 -2
  164. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  165. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  166. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/next-font-manifest.json +6 -2
  167. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +37 -37
  168. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +2 -2
  169. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  170. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  171. package/web/.next/server/app/(dashboard)/page/next-font-manifest.json +6 -2
  172. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +27 -27
  173. package/web/.next/server/app/(dashboard)/page.js +1 -1
  174. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  175. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  176. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/next-font-manifest.json +6 -2
  177. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  178. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +1 -1
  179. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  180. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  181. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/next-font-manifest.json +6 -2
  182. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  183. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  184. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  185. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  186. package/web/.next/server/app/_global-error.html +1 -1
  187. package/web/.next/server/app/_global-error.rsc +1 -1
  188. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  189. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  190. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  191. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  192. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  193. package/web/.next/server/app/_not-found/page/next-font-manifest.json +6 -2
  194. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +6 -6
  195. package/web/.next/server/app/_not-found/page.js +1 -1
  196. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  197. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  198. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  199. package/web/.next/server/app/api/dialog/pick-files/route.js.nft.json +1 -1
  200. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  201. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  202. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  203. package/web/.next/server/app/settings/page/next-font-manifest.json +6 -2
  204. package/web/.next/server/app/settings/page/server-reference-manifest.json +11 -11
  205. package/web/.next/server/app/settings/page.js +1 -1
  206. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  207. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  208. package/web/.next/server/app/skills/page/next-font-manifest.json +6 -2
  209. package/web/.next/server/app/skills/page/server-reference-manifest.json +11 -11
  210. package/web/.next/server/app/skills/page.js +1 -1
  211. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  212. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  213. package/web/.next/server/app/tools/page/next-font-manifest.json +6 -2
  214. package/web/.next/server/app/tools/page/server-reference-manifest.json +11 -11
  215. package/web/.next/server/app/tools/page.js +1 -1
  216. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  217. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  218. package/web/.next/server/app/version/page/next-font-manifest.json +6 -2
  219. package/web/.next/server/app/version/page/server-reference-manifest.json +6 -6
  220. package/web/.next/server/app/version/page.js +1 -1
  221. package/web/.next/server/app/version/page.js.nft.json +1 -1
  222. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  223. package/web/.next/server/chunks/[root-of-the-server]__0tb~wwk._.js +1 -1
  224. package/web/.next/server/chunks/ssr/08qz_lucide-react_dist_esm_icons_0c0dui7._.js +3 -0
  225. package/web/.next/server/chunks/ssr/08qz_lucide-react_dist_esm_icons_0c0dui7._.js.map +1 -0
  226. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js +1 -1
  227. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js.map +1 -1
  228. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js +2 -2
  229. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js.map +1 -1
  230. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js +1 -1
  231. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js.map +1 -1
  232. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js +1 -1
  233. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js.map +1 -1
  234. package/web/.next/server/chunks/ssr/[root-of-the-server]__05_qc0n._.js +1 -1
  235. package/web/.next/server/chunks/ssr/[root-of-the-server]__05_qc0n._.js.map +1 -1
  236. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0uy_5rw._.js → [root-of-the-server]__0ge~xny._.js} +2 -2
  237. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0uy_5rw._.js.map → [root-of-the-server]__0ge~xny._.js.map} +1 -1
  238. package/web/.next/server/chunks/ssr/[root-of-the-server]__0jy4nha._.js +3 -0
  239. package/web/.next/server/chunks/ssr/[root-of-the-server]__0jy4nha._.js.map +1 -0
  240. package/web/.next/server/chunks/ssr/{_0e5cv3q._.js → [root-of-the-server]__0n~o-g-._.js} +2 -2
  241. package/web/.next/server/chunks/ssr/[root-of-the-server]__0n~o-g-._.js.map +1 -0
  242. package/web/.next/server/chunks/ssr/{[root-of-the-server]__02.89uf._.js → [root-of-the-server]__0qda~yi._.js} +2 -2
  243. package/web/.next/server/chunks/ssr/{[root-of-the-server]__02.89uf._.js.map → [root-of-the-server]__0qda~yi._.js.map} +1 -1
  244. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0c0xoi_._.js → [root-of-the-server]__0qxd563._.js} +2 -2
  245. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0c0xoi_._.js.map → [root-of-the-server]__0qxd563._.js.map} +1 -1
  246. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rv1gci._.js +1 -1
  247. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rvrr1j._.js +1 -1
  248. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rvrr1j._.js.map +1 -1
  249. package/web/.next/server/chunks/ssr/[root-of-the-server]__0tq2syh._.js +1 -1
  250. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0r5zhk.._.js → [root-of-the-server]__0t~u8sd._.js} +2 -2
  251. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0r5zhk.._.js.map → [root-of-the-server]__0t~u8sd._.js.map} +1 -1
  252. package/web/.next/server/chunks/ssr/{[root-of-the-server]__04rq9lr._.js → [root-of-the-server]__10tll_l._.js} +2 -2
  253. package/web/.next/server/chunks/ssr/{[root-of-the-server]__04rq9lr._.js.map → [root-of-the-server]__10tll_l._.js.map} +1 -1
  254. package/web/.next/server/chunks/ssr/[root-of-the-server]__12j29w-._.js +1 -1
  255. package/web/.next/server/chunks/ssr/[root-of-the-server]__12j29w-._.js.map +1 -1
  256. package/web/.next/server/chunks/ssr/_0-09vq7._.js +1 -1
  257. package/web/.next/server/chunks/ssr/_0-09vq7._.js.map +1 -1
  258. package/web/.next/server/chunks/ssr/{_138qywk._.js → _01qdxy2._.js} +2 -2
  259. package/web/.next/server/chunks/ssr/{_138qywk._.js.map → _01qdxy2._.js.map} +1 -1
  260. package/web/.next/server/chunks/ssr/_01sesw0._.js +1 -1
  261. package/web/.next/server/chunks/ssr/_01sesw0._.js.map +1 -1
  262. package/web/.next/server/chunks/ssr/_069y.js._.js +2 -2
  263. package/web/.next/server/chunks/ssr/_069y.js._.js.map +1 -1
  264. package/web/.next/server/chunks/ssr/_09r54oy._.js +7 -0
  265. package/web/.next/server/chunks/ssr/_09r54oy._.js.map +1 -0
  266. package/web/.next/server/chunks/ssr/_0__4si~._.js +1 -1
  267. package/web/.next/server/chunks/ssr/_0__4si~._.js.map +1 -1
  268. package/web/.next/server/chunks/ssr/_0_m17kl._.js +1 -1
  269. package/web/.next/server/chunks/ssr/_0_m17kl._.js.map +1 -1
  270. package/web/.next/server/chunks/ssr/_0a_8rlj._.js +3 -0
  271. package/web/.next/server/chunks/ssr/_0a_8rlj._.js.map +1 -0
  272. package/web/.next/server/chunks/ssr/_0d4miu.._.js +1 -1
  273. package/web/.next/server/chunks/ssr/_0d4miu.._.js.map +1 -1
  274. package/web/.next/server/chunks/ssr/_0dy8.0k._.js +3 -0
  275. package/web/.next/server/chunks/ssr/_0dy8.0k._.js.map +1 -0
  276. package/web/.next/server/chunks/ssr/_0e8ern9._.js +1 -1
  277. package/web/.next/server/chunks/ssr/_0e8ern9._.js.map +1 -1
  278. package/web/.next/server/chunks/ssr/_0l2~~pi._.js +3 -0
  279. package/web/.next/server/chunks/ssr/_0l2~~pi._.js.map +1 -0
  280. package/web/.next/server/chunks/ssr/_0n.magx._.js +1 -1
  281. package/web/.next/server/chunks/ssr/_0p3~u8u._.js +2 -2
  282. package/web/.next/server/chunks/ssr/_0p3~u8u._.js.map +1 -1
  283. package/web/.next/server/chunks/ssr/{_00k65h-._.js → _0pa1dkv._.js} +2 -2
  284. package/web/.next/server/chunks/ssr/_0pa1dkv._.js.map +1 -0
  285. package/web/.next/server/chunks/ssr/_0r.3n~3._.js +1 -1
  286. package/web/.next/server/chunks/ssr/_0r.3n~3._.js.map +1 -1
  287. package/web/.next/server/chunks/ssr/_0t59q8r._.js +1 -1
  288. package/web/.next/server/chunks/ssr/_0t59q8r._.js.map +1 -1
  289. package/web/.next/server/chunks/ssr/_0vjw-e_._.js +7 -0
  290. package/web/.next/server/chunks/ssr/_0vjw-e_._.js.map +1 -0
  291. package/web/.next/server/chunks/ssr/_0vyfc4b._.js +1 -1
  292. package/web/.next/server/chunks/ssr/_0vyfc4b._.js.map +1 -1
  293. package/web/.next/server/chunks/ssr/_0w-_hww._.js +1 -1
  294. package/web/.next/server/chunks/ssr/_0w-_hww._.js.map +1 -1
  295. package/web/.next/server/chunks/ssr/{_0-.ckn5._.js → _0wor25i._.js} +2 -2
  296. package/web/.next/server/chunks/ssr/{_0-.ckn5._.js.map → _0wor25i._.js.map} +1 -1
  297. package/web/.next/server/chunks/ssr/_0zk-h5w._.js +1 -1
  298. package/web/.next/server/chunks/ssr/_0zk-h5w._.js.map +1 -1
  299. package/web/.next/server/chunks/ssr/{_0hwjfpu._.js → _0~0jkp_._.js} +2 -2
  300. package/web/.next/server/chunks/ssr/_0~0jkp_._.js.map +1 -0
  301. package/web/.next/server/chunks/ssr/_0~7lwu_._.js +1 -1
  302. package/web/.next/server/chunks/ssr/_0~7lwu_._.js.map +1 -1
  303. package/web/.next/server/chunks/ssr/_1161g9x._.js +1 -1
  304. package/web/.next/server/chunks/ssr/_1161g9x._.js.map +1 -1
  305. package/web/.next/server/chunks/ssr/src_presentation_web_0y11iiz._.js +1 -1
  306. package/web/.next/server/chunks/ssr/src_presentation_web_0y11iiz._.js.map +1 -1
  307. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_05m2q~u.js +1 -1
  308. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_05m2q~u.js.map +1 -1
  309. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_0.6zk.t.js +1 -1
  310. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_0.6zk.t.js.map +1 -1
  311. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_approve-feature_ts_0pjb_re._.js +1 -1
  312. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_0w2wqvu._.js +1 -1
  313. package/web/.next/server/chunks/ssr/src_presentation_web_components_0sk2qdt._.js +1 -1
  314. package/web/.next/server/chunks/ssr/src_presentation_web_components_0sk2qdt._.js.map +1 -1
  315. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js +1 -1
  316. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js.map +1 -1
  317. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_0aji.op._.js +1 -1
  318. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_0aji.op._.js.map +1 -1
  319. package/web/.next/server/middleware-build-manifest.js +3 -3
  320. package/web/.next/server/next-font-manifest.js +1 -1
  321. package/web/.next/server/next-font-manifest.json +60 -2
  322. package/web/.next/server/pages/500.html +1 -1
  323. package/web/.next/server/server-reference-manifest.js +1 -1
  324. package/web/.next/server/server-reference-manifest.json +50 -50
  325. package/web/.next/static/chunks/{05enics63g._-.js → 0-ud~1jj7chzu.js} +4 -4
  326. package/web/.next/static/chunks/00m_fbc2z1gyi.js +5 -0
  327. package/web/.next/static/chunks/{0q7ohuqneuur4.js → 09f2lesd_dd3~.js} +1 -1
  328. package/web/.next/static/chunks/0c0dau5pmseko.js +1 -0
  329. package/web/.next/static/chunks/{0ps5sykbi-z5-.js → 0dq50gtgaj63f.js} +1 -1
  330. package/web/.next/static/chunks/{11bi612fz8agh.js → 0in4l8mne5y~_.js} +1 -1
  331. package/web/.next/static/chunks/0inayq2zzadja.js +1 -0
  332. package/web/.next/static/chunks/{0t3xjndx2s1_j.css → 0j.1nx3ly591i.css} +1 -0
  333. package/web/.next/static/chunks/{0-woqr2brccx_.js → 0k0j7anrbg-of.js} +1 -1
  334. package/web/.next/static/chunks/{0ma7k9iohb3bb.js → 0o33urrd3lk~u.js} +1 -1
  335. package/web/.next/static/chunks/0o4m0k3642219.js +1 -0
  336. package/web/.next/static/chunks/0pt-d18f7zxvv.js +1 -0
  337. package/web/.next/static/chunks/{0ls0v8h_qbctm.js → 0u_27fdqa2jeg.js} +1 -1
  338. package/web/.next/static/chunks/0udlnp30o1kjd.js +5 -0
  339. package/web/.next/static/chunks/0xwh.0u-dexsl.js +1 -0
  340. package/web/.next/static/chunks/0yibymrb2j05t.css +1 -0
  341. package/web/.next/static/chunks/103xnw203o9k1.js +1 -0
  342. package/web/.next/static/chunks/{022nrd6snse79.js → 11vbir.u7_zf7.js} +1 -1
  343. package/web/.next/static/chunks/{02phgt~f2c-2q.js → 121v1_d_dfk2k.js} +1 -1
  344. package/web/.next/static/chunks/{0q8ax~44oybo2.js → 12axopx66pocj.js} +1 -1
  345. package/web/.next/static/chunks/12pd180jp8zu..js +5 -0
  346. package/web/.next/static/chunks/13fcwhkw7dle2.js +1 -0
  347. package/web/.next/static/chunks/13q1peb_t9vj8.js +1 -0
  348. package/web/.next/static/chunks/183ehj-b80a~o.js +1 -0
  349. package/web/.next/static/chunks/{0j.wph28jrce1.js → 1874_wt9rit96.js} +1 -1
  350. package/web/.next/static/media/1bffadaabf893a1e-s.16ipb6fqu393i.woff2 +0 -0
  351. package/web/.next/static/media/2bbe8d2671613f1f-s.067x_6k0k23tk.woff2 +0 -0
  352. package/web/.next/static/media/2c55a0e60120577a-s.0bjc5tiuqdqro.woff2 +0 -0
  353. package/web/.next/static/media/5476f68d60460930-s.0wxq9webf.ew4.woff2 +0 -0
  354. package/web/.next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2 +0 -0
  355. package/web/.next/static/media/9c72aa0f40e4eef8-s.0m6w47a4e5dy9.woff2 +0 -0
  356. package/web/.next/static/media/ad66f9afd8947f86-s.11u06r12fd6v_.woff2 +0 -0
  357. package/web/package.json +2 -2
  358. package/web/public/favicon.svg +10 -0
  359. package/web/public/icons/tools/antigravity.svg +1 -0
  360. package/web/public/icons/tools/bash.svg +38 -0
  361. package/web/public/icons/tools/cursor-cli.svg +12 -0
  362. package/web/public/icons/tools/cursor.svg +1 -0
  363. package/web/public/icons/tools/fish.svg +153 -0
  364. package/web/public/icons/tools/powershell.svg +29 -0
  365. package/web/public/icons/tools/zsh.svg +1 -0
  366. package/web/.next/server/chunks/ssr/08qz_lucide-react_dist_esm_icons_0zwb4s4._.js +0 -3
  367. package/web/.next/server/chunks/ssr/08qz_lucide-react_dist_esm_icons_0zwb4s4._.js.map +0 -1
  368. package/web/.next/server/chunks/ssr/[root-of-the-server]__0lslgap._.js +0 -7
  369. package/web/.next/server/chunks/ssr/[root-of-the-server]__0lslgap._.js.map +0 -1
  370. package/web/.next/server/chunks/ssr/_00k65h-._.js.map +0 -1
  371. package/web/.next/server/chunks/ssr/_08i-c2n._.js +0 -3
  372. package/web/.next/server/chunks/ssr/_08i-c2n._.js.map +0 -1
  373. package/web/.next/server/chunks/ssr/_0aaotn-._.js +0 -3
  374. package/web/.next/server/chunks/ssr/_0aaotn-._.js.map +0 -1
  375. package/web/.next/server/chunks/ssr/_0e5cv3q._.js.map +0 -1
  376. package/web/.next/server/chunks/ssr/_0hwjfpu._.js.map +0 -1
  377. package/web/.next/server/chunks/ssr/_0phryzt._.js +0 -3
  378. package/web/.next/server/chunks/ssr/_0phryzt._.js.map +0 -1
  379. package/web/.next/server/chunks/ssr/_12un22l._.js +0 -7
  380. package/web/.next/server/chunks/ssr/_12un22l._.js.map +0 -1
  381. package/web/.next/static/chunks/0-lu0b1ewsb0_.js +0 -1
  382. package/web/.next/static/chunks/01~dudieyb7wl.js +0 -5
  383. package/web/.next/static/chunks/02kpdawdtqcxm.js +0 -1
  384. package/web/.next/static/chunks/03s7z6w1lj0w~.js +0 -1
  385. package/web/.next/static/chunks/04~sw.nhpwy6s.css +0 -1
  386. package/web/.next/static/chunks/08611baheit.t.js +0 -1
  387. package/web/.next/static/chunks/0_9k2ybutuphq.js +0 -1
  388. package/web/.next/static/chunks/0m5~9kij3s~81.js +0 -1
  389. package/web/.next/static/chunks/0q~uf2s33.48w.js +0 -1
  390. package/web/.next/static/chunks/15m2wfd5k_7fj.js +0 -1
  391. package/web/.next/static/chunks/15rbgqykl.er8.js +0 -1
  392. package/web/.next/static/chunks/164dnpi666fv_.js +0 -5
  393. package/web/.next/static/chunks/17z2sq7c5z8cr.js +0 -5
  394. /package/web/.next/static/{GSG_c1emY-f_AA00vD56y → SNdaKJ9fpre8tUMRe1jlA}/_buildManifest.js +0 -0
  395. /package/web/.next/static/{GSG_c1emY-f_AA00vD56y → SNdaKJ9fpre8tUMRe1jlA}/_clientMiddlewareManifest.js +0 -0
  396. /package/web/.next/static/{GSG_c1emY-f_AA00vD56y → SNdaKJ9fpre8tUMRe1jlA}/_ssgManifest.js +0 -0
@@ -1,36 +1,20 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useState, useTransition, useRef, useEffect, useCallback } from 'react';
4
- import { Check, Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Globe, Settings2, Timer, MessageSquare, LayoutGrid, } from 'lucide-react';
5
- import { toast } from 'sonner';
3
+ import { useState, useEffect } from 'react';
4
+ import { Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Timer, MessageSquare, LayoutGrid, LayoutList, } from 'lucide-react';
6
5
  import { useTranslation } from 'react-i18next';
7
6
  import { cn } from '../../../lib/utils.js';
8
- import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
9
- import { Badge } from '../../ui/badge.js';
10
- import { updateSettingsAction } from '../../../app/actions/update-settings.js';
11
- import { Language, TerminalType, } from '../../../../../../packages/core/src/domain/generated/output.js';
12
- import { getEditorTypeIcon } from '../../common/editor-type-icons.js';
13
- import { AgentModelPicker } from '../../features/settings/AgentModelPicker/index.js';
14
- import { LanguageSettingsSection } from '../../features/settings/language-settings-section.js';
15
- import { CiSettingsSection } from '../../features/settings/ci-settings-section.js';
16
- import { StageTimeoutsSettingsSection } from '../../features/settings/stage-timeouts-settings-section.js';
17
- import { InteractiveAgentSettingsSection } from '../../features/settings/interactive-agent-settings-section.js';
18
- import { FabLayoutSettingsSection } from '../../features/settings/fab-layout-settings-section.js';
19
- import { SettingsSection, SettingsRow, SwitchRow, NumberStepper, SubsectionLabel, SectionHint, } from '../../features/settings/settings-section-utils.js';
20
- const DEFAULT_EDITOR_OPTIONS = [
21
- { id: 'vscode', name: 'VS Code', available: true },
22
- { id: 'cursor', name: 'Cursor', available: true },
23
- { id: 'windsurf', name: 'Windsurf', available: true },
24
- { id: 'zed', name: 'Zed', available: true },
25
- { id: 'antigravity', name: 'Antigravity', available: true },
26
- ];
27
- const DEFAULT_SHELL_OPTIONS = [
28
- { id: 'bash', name: 'Bash', available: true },
29
- { id: 'zsh', name: 'Zsh', available: true },
30
- { id: 'fish', name: 'Fish', available: true },
31
- ];
7
+ import { AgentSettingsSection } from './agent-settings-section.js';
8
+ import { EnvironmentSettingsSection } from './environment-settings-section.js';
9
+ import { WorkflowSettingsSection } from './workflow-settings-section.js';
10
+ import { CiSettingsSection } from './ci-settings-section.js';
11
+ import { StageTimeoutsSettingsSection } from './stage-timeouts-settings-section.js';
12
+ import { NotificationSettingsSection } from './notification-settings-section.js';
13
+ import { FeatureFlagsSettingsSection } from './feature-flags-settings-section.js';
14
+ import { InteractiveAgentSettingsSection } from './interactive-agent-settings-section.js';
15
+ import { FabLayoutSettingsSection } from './fab-layout-settings-section.js';
16
+ import { DatabaseSettingsSection } from './database-settings-section.js';
32
17
  const SECTIONS = [
33
- { id: 'language', labelKey: 'settings.sections.language', icon: Globe },
34
18
  { id: 'agent', labelKey: 'settings.sections.agent', icon: Bot },
35
19
  { id: 'environment', labelKey: 'settings.sections.environment', icon: Terminal },
36
20
  { id: 'workflow', labelKey: 'settings.sections.workflow', icon: GitBranch },
@@ -42,372 +26,35 @@ const SECTIONS = [
42
26
  { id: 'fab-layout', labelKey: 'settings.sections.layout', icon: LayoutGrid },
43
27
  { id: 'database', labelKey: 'settings.sections.database', icon: Database },
44
28
  ];
45
- function useSaveIndicator() {
46
- const { t } = useTranslation('web');
47
- const [isPending, startTransition] = useTransition();
48
- const [showSaving, setShowSaving] = useState(false);
49
- const [showSaved, setShowSaved] = useState(false);
50
- const minTimerRef = useRef(null);
51
- const pendingDoneRef = useRef(false);
52
- // Show "Saving..." with a minimum display time of 600ms
53
- useEffect(() => {
54
- if (isPending && !showSaving) {
55
- setShowSaving(true);
56
- pendingDoneRef.current = false;
57
- minTimerRef.current = setTimeout(() => {
58
- minTimerRef.current = null;
59
- if (pendingDoneRef.current) {
60
- setShowSaving(false);
61
- setShowSaved(true);
62
- setTimeout(() => setShowSaved(false), 2000);
63
- }
64
- }, 350);
65
- }
66
- if (!isPending && showSaving) {
67
- pendingDoneRef.current = true;
68
- // If min timer already elapsed, transition now
69
- if (!minTimerRef.current) {
70
- setShowSaving(false);
71
- setShowSaved(true);
72
- setTimeout(() => setShowSaved(false), 2000);
73
- }
74
- }
75
- }, [isPending, showSaving]);
76
- const save = useCallback((payload) => {
77
- startTransition(async () => {
78
- const result = await updateSettingsAction(payload);
79
- if (!result.success) {
80
- toast.error(result.error ?? t('settings.failedToSave'));
81
- }
82
- });
83
- }, [startTransition, t]);
84
- return { showSaving, showSaved, save };
85
- }
86
- /* ── Main component ── */
29
+ const TABS = [{ id: 'all', labelKey: 'settings.sections.all', icon: LayoutList }, ...SECTIONS];
87
30
  export function SettingsPageClient({ settings, shipitAiHome, dbFileSize, availableTerminals, availableEditors, availableShells, }) {
88
31
  const { t } = useTranslation('web');
89
- const { showSaving, showSaved, save } = useSaveIndicator();
90
- const featureFlags = settings.featureFlags ?? {
91
- skills: false,
92
- envDeploy: false,
93
- debug: false,
94
- githubImport: false,
95
- adoptBranch: false,
96
- gitRebaseSync: false,
97
- reactFileManager: false,
98
- };
99
- // Agent state
100
- const [agentType, setAgentType] = useState(settings.agent.type);
101
- // Environment state
102
- const [editor, setEditor] = useState(settings.environment.defaultEditor);
103
- const [shell, setShell] = useState(settings.environment.shellPreference);
104
- const [terminal, setTerminal] = useState(settings.environment.terminalPreference ?? TerminalType.System);
105
- const terminalOptions = availableTerminals ?? [
106
- {
107
- id: TerminalType.System,
108
- name: t('settings.environment.systemTerminal'),
109
- available: true,
110
- },
111
- ];
112
- const editorOptions = availableEditors ?? DEFAULT_EDITOR_OPTIONS;
113
- const shellOptions = availableShells ?? DEFAULT_SHELL_OPTIONS;
114
- // Workflow state
115
- const [openPr, setOpenPr] = useState(settings.workflow.openPrOnImplementationComplete);
116
- const [pushOnComplete, setPushOnComplete] = useState(settings.workflow.approvalGateDefaults.pushOnImplementationComplete);
117
- const [allowPrd, setAllowPrd] = useState(settings.workflow.approvalGateDefaults.allowPrd);
118
- const [allowPlan, setAllowPlan] = useState(settings.workflow.approvalGateDefaults.allowPlan);
119
- const [allowMerge, setAllowMerge] = useState(settings.workflow.approvalGateDefaults.allowMerge);
120
- const [enableEvidence, setEnableEvidence] = useState(settings.workflow.enableEvidence);
121
- const [commitEvidence, setCommitEvidence] = useState(settings.workflow.commitEvidence);
122
- const [ciWatchEnabled, setCiWatchEnabled] = useState(settings.workflow.ciWatchEnabled !== false);
123
- const [defaultFastMode, setDefaultFastMode] = useState(settings.workflow.defaultFastMode !== false);
124
- // Auto-archive state
125
- const [autoArchiveEnabled, setAutoArchiveEnabled] = useState((settings.workflow.autoArchiveDelayMinutes ?? 10) > 0);
126
- const [autoArchiveDelay, setAutoArchiveDelay] = useState(String(settings.workflow.autoArchiveDelayMinutes ?? 10));
127
- // Notification state
128
- const [inApp, setInApp] = useState(settings.notifications.inApp.enabled);
129
- const [events, setEvents] = useState({ ...settings.notifications.events });
130
- // Feature flags state
131
- const [flags, setFlags] = useState({ ...featureFlags });
132
- // Workflow helpers
133
- function buildWorkflowPayload(overrides = {}) {
134
- const archiveEnabled = overrides.autoArchiveEnabled ?? autoArchiveEnabled;
135
- const archiveDelay = parseInt(overrides.autoArchiveDelay ?? autoArchiveDelay, 10);
136
- return {
137
- workflow: {
138
- openPrOnImplementationComplete: overrides.openPr ?? openPr,
139
- approvalGateDefaults: {
140
- pushOnImplementationComplete: overrides.pushOnComplete ?? pushOnComplete,
141
- allowPrd: overrides.allowPrd ?? allowPrd,
142
- allowPlan: overrides.allowPlan ?? allowPlan,
143
- allowMerge: overrides.allowMerge ?? allowMerge,
144
- },
145
- enableEvidence: overrides.enableEvidence ?? enableEvidence,
146
- commitEvidence: overrides.commitEvidence ?? commitEvidence,
147
- ciWatchEnabled: overrides.ciWatchEnabled ?? ciWatchEnabled,
148
- defaultFastMode: overrides.defaultFastMode ?? defaultFastMode,
149
- autoArchiveDelayMinutes: archiveEnabled
150
- ? Number.isNaN(archiveDelay) || archiveDelay < 1
151
- ? 10
152
- : archiveDelay
153
- : 0,
154
- },
155
- };
156
- }
157
- // Notification helpers
158
- function buildNotificationPayload(overrides = {}) {
159
- return {
160
- notifications: {
161
- inApp: { enabled: overrides.inApp ?? inApp },
162
- events: overrides.events ?? events,
163
- },
164
- };
165
- }
166
- const [activeSection, setActiveSection] = useState('agent');
167
- // Track which section is in view via IntersectionObserver
32
+ const [activeTab, setActiveTab] = useState('all');
33
+ const [visibleSection, setVisibleSection] = useState('agent');
34
+ // Track which section is in view via IntersectionObserver (only on "All" tab)
168
35
  useEffect(() => {
36
+ if (activeTab !== 'all')
37
+ return;
169
38
  const els = SECTIONS.map((s) => document.getElementById(`section-${s.id}`)).filter(Boolean);
170
39
  if (els.length === 0)
171
40
  return;
172
41
  const observer = new IntersectionObserver((entries) => {
173
42
  for (const entry of entries) {
174
43
  if (entry.isIntersecting) {
175
- setActiveSection(entry.target.id.replace('section-', ''));
44
+ setVisibleSection(entry.target.id.replace('section-', ''));
176
45
  }
177
46
  }
178
47
  }, { rootMargin: '-65px 0px -60% 0px', threshold: 0 });
179
48
  for (const el of els)
180
49
  observer.observe(el);
181
50
  return () => observer.disconnect();
182
- }, []);
183
- const scrollToSection = useCallback((id) => {
184
- const el = document.getElementById(`section-${id}`);
185
- if (!el)
186
- return;
187
- el.scrollIntoView({ behavior: 'smooth', block: 'start' });
188
- // Flash highlight
189
- el.style.animation = 'none';
190
- // Force reflow
191
- void el.offsetHeight;
192
- el.style.animation = 'section-flash 1s ease-out';
193
- }, []);
194
- return (_jsxs("div", { "data-testid": "settings-page-client", className: "max-w-5xl", children: [_jsx("div", { className: "bg-background/95 supports-backdrop-filter:bg-background/80 sticky top-0 z-10 grid grid-cols-1 gap-x-5 pt-6 pb-4 backdrop-blur lg:grid-cols-[1fr_280px]", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Settings2, { className: "text-muted-foreground h-4 w-4" }), _jsx("h1", { className: "text-sm font-bold tracking-tight", children: t('settings.title') }), _jsxs("span", { className: "relative h-4 w-16", children: [_jsx("span", { className: cn('text-muted-foreground absolute inset-0 flex items-center text-xs transition-opacity duration-300', showSaving ? 'opacity-100' : 'opacity-0'), children: t('settings.saving') }), _jsxs("span", { className: cn('absolute inset-0 flex items-center gap-1 text-xs text-green-600 transition-opacity duration-300', showSaved && !showSaving ? 'opacity-100' : 'opacity-0'), children: [_jsx(Check, { className: "h-3 w-3" }), t('settings.saved')] })] }), _jsx("nav", { className: "ml-auto flex items-center gap-0.5", children: SECTIONS.map((s) => {
195
- const SectionIcon = s.icon;
196
- const isActive = activeSection === s.id;
197
- return (_jsxs("button", { type: "button", onClick: () => scrollToSection(s.id), className: cn('flex cursor-pointer items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-all', isActive
198
- ? 'bg-accent text-foreground font-medium'
199
- : 'text-muted-foreground/60 hover:text-foreground hover:bg-accent/50'), children: [_jsx(SectionIcon, { className: "h-3 w-3" }), _jsx("span", { className: "hidden sm:inline", children: t(s.labelKey) })] }, s.id));
200
- }) })] }) }), _jsxs("div", { className: "flex flex-col gap-3", children: [_jsx("div", { id: "section-language", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: _jsx(LanguageSettingsSection, { language: settings.user?.preferredLanguage ?? Language.English }) }), _jsxs("div", { id: "section-agent", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(SettingsSection, { icon: Bot, title: t('settings.agent.sectionTitle'), description: t('settings.agent.sectionDescription'), testId: "agent-settings-section", children: _jsx(SettingsRow, { label: t('settings.agent.agentAndModel'), description: t('settings.agent.agentAndModelDescription'), htmlFor: "agent-model-picker", children: _jsx(AgentModelPicker, { initialAgentType: agentType, initialModel: settings.models.default, mode: "settings", onAgentModelChange: (newAgent) => setAgentType(newAgent), className: "w-55" }) }) }), _jsx(SectionHint, { links: [
201
- {
202
- label: t('settings.agent.links.agentSystem'),
203
- href: 'https://github.com/jrmatherly/shipit/blob/main/docs/architecture/agent-system.md',
204
- },
205
- {
206
- label: t('settings.agent.links.addingAgents'),
207
- href: 'https://github.com/jrmatherly/shipit/blob/main/docs/development/adding-agents.md',
208
- },
209
- {
210
- label: t('settings.agent.links.configurationGuide'),
211
- href: 'https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md',
212
- },
213
- ], children: t('settings.agent.hint') })] }), _jsxs("div", { id: "section-environment", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Terminal, title: t('settings.environment.sectionTitle'), description: t('settings.environment.sectionDescription'), testId: "environment-settings-section", children: [_jsx(SettingsRow, { label: t('settings.environment.defaultEditor'), description: t('settings.environment.defaultEditorDescription'), htmlFor: "default-editor", children: _jsxs(Select, { value: editor, onValueChange: (v) => {
214
- setEditor(v);
215
- save({
216
- environment: {
217
- defaultEditor: v,
218
- shellPreference: shell,
219
- terminalPreference: terminal,
220
- },
221
- });
222
- }, 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) => {
223
- const Icon = getEditorTypeIcon(opt.id);
224
- 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
225
- ? 'border-emerald-500/30 text-emerald-500'
226
- : 'border-muted-foreground/30 text-muted-foreground'), children: opt.available ? 'Installed' : 'Not Installed' })] }) }, opt.id));
227
- }) })] }) }), _jsx(SettingsRow, { label: t('settings.environment.shell'), description: t('settings.environment.shellDescription'), htmlFor: "shell-preference", children: _jsxs(Select, { value: shell, onValueChange: (v) => {
228
- setShell(v);
229
- save({
230
- environment: {
231
- defaultEditor: editor,
232
- shellPreference: v,
233
- terminalPreference: terminal,
234
- },
235
- });
236
- }, 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
237
- ? 'border-emerald-500/30 text-emerald-500'
238
- : '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'), htmlFor: "terminal-preference", children: _jsxs(Select, { value: terminal, onValueChange: (v) => {
239
- setTerminal(v);
240
- save({
241
- environment: {
242
- defaultEditor: editor,
243
- shellPreference: shell,
244
- terminalPreference: v,
245
- },
246
- });
247
- }, 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
248
- ? 'border-emerald-500/30 text-emerald-500'
249
- : 'border-muted-foreground/30 text-muted-foreground'), children: opt.available ? 'Installed' : 'Not Installed' })] }) }, opt.id))) })] }) })] }), _jsx(SectionHint, { links: [
250
- {
251
- label: t('settings.environment.links.configurationGuide'),
252
- href: 'https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md',
253
- },
254
- ], children: t('settings.environment.hint') })] }), _jsxs("div", { id: "section-workflow", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: GitBranch, title: t('settings.workflow.title'), description: t('settings.workflow.sectionDescription'), testId: "workflow-settings-section", children: [_jsx(SwitchRow, { label: t('settings.workflow.defaultFastMode'), description: t('settings.workflow.defaultFastModeDescription'), id: "default-fast-mode", testId: "switch-default-fast-mode", checked: defaultFastMode, onChange: (v) => {
255
- setDefaultFastMode(v);
256
- save(buildWorkflowPayload({ defaultFastMode: v }));
257
- } }), _jsx(SubsectionLabel, { children: t('settings.workflow.subsections.approve') }), _jsx(SwitchRow, { label: t('settings.workflow.autoApprovePrd'), description: t('settings.workflow.autoApprovePrdDescription'), id: "allow-prd", testId: "switch-allow-prd", checked: allowPrd, onChange: (v) => {
258
- setAllowPrd(v);
259
- save(buildWorkflowPayload({ allowPrd: v }));
260
- } }), _jsx(SwitchRow, { label: t('settings.workflow.autoApprovePlan'), description: t('settings.workflow.autoApprovePlanDescription'), id: "allow-plan", testId: "switch-allow-plan", checked: allowPlan, onChange: (v) => {
261
- setAllowPlan(v);
262
- save(buildWorkflowPayload({ allowPlan: v }));
263
- } }), _jsx(SwitchRow, { label: t('settings.workflow.autoApproveMerge'), description: t('settings.workflow.autoApproveMergeDescription'), id: "allow-merge", testId: "switch-allow-merge", checked: allowMerge, onChange: (v) => {
264
- setAllowMerge(v);
265
- save(buildWorkflowPayload({ allowMerge: v }));
266
- } }), _jsx(SubsectionLabel, { children: t('settings.workflow.subsections.evidence') }), _jsx(SwitchRow, { label: t('settings.workflow.collectEvidence'), description: t('settings.workflow.collectEvidenceDescription'), id: "enable-evidence", testId: "switch-enable-evidence", checked: enableEvidence, onChange: (v) => {
267
- setEnableEvidence(v);
268
- if (!v) {
269
- setCommitEvidence(false);
270
- save(buildWorkflowPayload({ enableEvidence: v, commitEvidence: false }));
271
- }
272
- else {
273
- save(buildWorkflowPayload({ enableEvidence: v }));
274
- }
275
- } }), _jsx(SwitchRow, { label: t('settings.workflow.addEvidenceToPr'), description: t('settings.workflow.addEvidenceToPrDescription'), id: "commit-evidence", testId: "switch-commit-evidence", checked: commitEvidence, disabled: !enableEvidence || !openPr, onChange: (v) => {
276
- setCommitEvidence(v);
277
- save(buildWorkflowPayload({ commitEvidence: v }));
278
- } }), _jsx(SubsectionLabel, { children: t('settings.workflow.subsections.git') }), _jsx(SwitchRow, { label: t('settings.workflow.pushOnComplete'), description: t('settings.workflow.pushOnCompleteDescription'), id: "push-on-complete", testId: "switch-push-on-complete", checked: pushOnComplete, onChange: (v) => {
279
- setPushOnComplete(v);
280
- save(buildWorkflowPayload({ pushOnComplete: v }));
281
- } }), _jsx(SwitchRow, { label: t('settings.workflow.openPrOnComplete'), description: t('settings.workflow.openPrOnCompleteDescription'), id: "open-pr", testId: "switch-open-pr", checked: openPr, onChange: (v) => {
282
- setOpenPr(v);
283
- if (!v) {
284
- setCommitEvidence(false);
285
- save(buildWorkflowPayload({ openPr: v, commitEvidence: false }));
286
- }
287
- else {
288
- save(buildWorkflowPayload({ openPr: v }));
289
- }
290
- } }), _jsx(SwitchRow, { label: t('settings.workflow.watchCiAfterPush'), description: t('settings.workflow.watchCiAfterPushDescription'), id: "ci-watch-enabled", testId: "switch-ci-watch-enabled", checked: ciWatchEnabled, onChange: (v) => {
291
- setCiWatchEnabled(v);
292
- save(buildWorkflowPayload({ ciWatchEnabled: v }));
293
- } }), _jsx(SubsectionLabel, { children: "Archive" }), _jsx(SwitchRow, { label: "Auto-archive completed", description: "Automatically archive features after they reach the completed state", id: "auto-archive-enabled", testId: "switch-auto-archive-enabled", checked: autoArchiveEnabled, onChange: (v) => {
294
- setAutoArchiveEnabled(v);
295
- save(buildWorkflowPayload({ autoArchiveEnabled: v }));
296
- } }), _jsx(SettingsRow, { label: "Archive delay", description: "Minutes to wait after completion before archiving (1\u20131440)", htmlFor: "auto-archive-delay", children: _jsx(NumberStepper, { id: "auto-archive-delay", testId: "input-auto-archive-delay", value: autoArchiveDelay, placeholder: "10", min: 1, max: 1440, suffix: "min", onChange: (v) => {
297
- setAutoArchiveDelay(v);
298
- }, onBlur: () => {
299
- if (!autoArchiveEnabled)
300
- return;
301
- const n = parseInt(autoArchiveDelay, 10);
302
- const clamped = Number.isNaN(n) ? 10 : Math.min(1440, Math.max(1, n));
303
- setAutoArchiveDelay(String(clamped));
304
- save(buildWorkflowPayload({ autoArchiveDelay: String(clamped) }));
305
- } }) })] }), _jsx(SectionHint, { links: [
306
- {
307
- label: t('settings.workflow.links.approvalGates'),
308
- href: 'https://github.com/jrmatherly/shipit/blob/main/specs/016-hitl-approval-gates/spec.yaml',
309
- },
310
- {
311
- label: t('settings.workflow.links.pushAndPrFlags'),
312
- href: 'https://github.com/jrmatherly/shipit/blob/main/specs/037-feature-pr-push-flags/spec.yaml',
313
- },
314
- ], children: t('settings.workflow.hint') })] }), _jsxs("div", { id: "section-ci", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(CiSettingsSection, { settings: settings }), _jsx(SectionHint, { links: [
315
- {
316
- label: t('settings.ci.links.cicdPipeline'),
317
- href: 'https://github.com/jrmatherly/shipit/blob/main/docs/development/cicd.md',
318
- },
319
- {
320
- label: t('settings.ci.links.ciSecurityGates'),
321
- href: 'https://github.com/jrmatherly/shipit/blob/main/specs/003-cicd-security-gates/spec.md',
322
- },
323
- ], children: t('settings.ci.hint') })] }), _jsxs("div", { id: "section-stage-timeouts", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(StageTimeoutsSettingsSection, { settings: settings }), _jsx(SectionHint, { children: t('settings.stageTimeouts.hint') })] }), _jsxs("div", { id: "section-notifications", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Bell, title: t('settings.notifications.title'), description: t('settings.notifications.sectionDescription'), testId: "notification-settings-section", children: [_jsx(SubsectionLabel, { children: t('settings.notifications.channels') }), _jsx(SwitchRow, { label: t('settings.notifications.inAppLabel'), description: t('settings.notifications.inAppDescription'), id: "notif-in-app", testId: "switch-in-app", checked: inApp, onChange: (v) => {
324
- setInApp(v);
325
- save(buildNotificationPayload({ inApp: v }));
326
- } }), _jsx(SubsectionLabel, { children: t('settings.notifications.subsections.agentEvents') }), _jsx(SwitchRow, { label: t('settings.notifications.events.agentStarted'), id: "notif-event-agentStarted", testId: "switch-event-agentStarted", checked: events.agentStarted, onChange: (v) => {
327
- const newEvents = { ...events, agentStarted: v };
328
- setEvents(newEvents);
329
- save(buildNotificationPayload({ events: newEvents }));
330
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.phaseCompleted'), id: "notif-event-phaseCompleted", testId: "switch-event-phaseCompleted", checked: events.phaseCompleted, onChange: (v) => {
331
- const newEvents = { ...events, phaseCompleted: v };
332
- setEvents(newEvents);
333
- save(buildNotificationPayload({ events: newEvents }));
334
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.waitingApproval'), id: "notif-event-waitingApproval", testId: "switch-event-waitingApproval", checked: events.waitingApproval, onChange: (v) => {
335
- const newEvents = { ...events, waitingApproval: v };
336
- setEvents(newEvents);
337
- save(buildNotificationPayload({ events: newEvents }));
338
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.agentCompleted'), id: "notif-event-agentCompleted", testId: "switch-event-agentCompleted", checked: events.agentCompleted, onChange: (v) => {
339
- const newEvents = { ...events, agentCompleted: v };
340
- setEvents(newEvents);
341
- save(buildNotificationPayload({ events: newEvents }));
342
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.agentFailed'), id: "notif-event-agentFailed", testId: "switch-event-agentFailed", checked: events.agentFailed, onChange: (v) => {
343
- const newEvents = { ...events, agentFailed: v };
344
- setEvents(newEvents);
345
- save(buildNotificationPayload({ events: newEvents }));
346
- } }), _jsx(SubsectionLabel, { children: t('settings.notifications.subsections.pullRequestEvents') }), _jsx(SwitchRow, { label: t('settings.notifications.events.prMerged'), id: "notif-event-prMerged", testId: "switch-event-prMerged", checked: events.prMerged, onChange: (v) => {
347
- const newEvents = { ...events, prMerged: v };
348
- setEvents(newEvents);
349
- save(buildNotificationPayload({ events: newEvents }));
350
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.prClosed'), id: "notif-event-prClosed", testId: "switch-event-prClosed", checked: events.prClosed, onChange: (v) => {
351
- const newEvents = { ...events, prClosed: v };
352
- setEvents(newEvents);
353
- save(buildNotificationPayload({ events: newEvents }));
354
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.prChecksPassed'), id: "notif-event-prChecksPassed", testId: "switch-event-prChecksPassed", checked: events.prChecksPassed, onChange: (v) => {
355
- const newEvents = { ...events, prChecksPassed: v };
356
- setEvents(newEvents);
357
- save(buildNotificationPayload({ events: newEvents }));
358
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.prChecksFailed'), id: "notif-event-prChecksFailed", testId: "switch-event-prChecksFailed", checked: events.prChecksFailed, onChange: (v) => {
359
- const newEvents = { ...events, prChecksFailed: v };
360
- setEvents(newEvents);
361
- save(buildNotificationPayload({ events: newEvents }));
362
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.prBlocked'), id: "notif-event-prBlocked", testId: "switch-event-prBlocked", checked: events.prBlocked, onChange: (v) => {
363
- const newEvents = { ...events, prBlocked: v };
364
- setEvents(newEvents);
365
- save(buildNotificationPayload({ events: newEvents }));
366
- } }), _jsx(SwitchRow, { label: t('settings.notifications.events.mergeReviewReady'), id: "notif-event-mergeReviewReady", testId: "switch-event-mergeReviewReady", checked: events.mergeReviewReady, onChange: (v) => {
367
- const newEvents = { ...events, mergeReviewReady: v };
368
- setEvents(newEvents);
369
- save(buildNotificationPayload({ events: newEvents }));
370
- } })] }), _jsx(SectionHint, { links: [
371
- {
372
- label: t('settings.notifications.links.notificationSystem'),
373
- href: 'https://github.com/jrmatherly/shipit/blob/main/specs/021-agent-notifications/spec.yaml',
374
- },
375
- ], children: t('settings.notifications.hint') })] }), _jsxs("div", { id: "section-feature-flags", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Flag, title: t('settings.featureFlags.title'), description: t('settings.featureFlags.sectionDescription'), badge: t('settings.featureFlags.badge'), testId: "feature-flags-settings-section", children: [_jsx(SwitchRow, { label: t('settings.featureFlags.skills'), description: t('settings.featureFlags.skillsDescription'), id: "flag-skills", testId: "switch-flag-skills", checked: flags.skills, onChange: (v) => {
376
- const newFlags = { ...flags, skills: v };
377
- setFlags(newFlags);
378
- save({ featureFlags: newFlags });
379
- } }), _jsx(SwitchRow, { label: t('settings.featureFlags.deployments'), description: t('settings.featureFlags.deploymentsDescription'), id: "flag-envDeploy", testId: "switch-flag-envDeploy", checked: flags.envDeploy, onChange: (v) => {
380
- const newFlags = { ...flags, envDeploy: v };
381
- setFlags(newFlags);
382
- save({ featureFlags: newFlags });
383
- } }), _jsx(SwitchRow, { label: t('settings.featureFlags.debug'), description: t('settings.featureFlags.debugDescription'), id: "flag-debug", testId: "switch-flag-debug", checked: flags.debug, onChange: (v) => {
384
- const newFlags = { ...flags, debug: v };
385
- setFlags(newFlags);
386
- save({ featureFlags: newFlags });
387
- } }), _jsx(SwitchRow, { label: t('settings.featureFlags.githubImport'), description: t('settings.featureFlags.githubImportDescription'), id: "flag-githubImport", testId: "switch-flag-githubImport", checked: flags.githubImport, onChange: (v) => {
388
- const newFlags = { ...flags, githubImport: v };
389
- setFlags(newFlags);
390
- save({ featureFlags: newFlags });
391
- } }), _jsx(SwitchRow, { label: t('settings.featureFlags.adoptBranch'), description: t('settings.featureFlags.adoptBranchDescription'), id: "flag-adoptBranch", testId: "switch-flag-adoptBranch", checked: flags.adoptBranch, onChange: (v) => {
392
- const newFlags = { ...flags, adoptBranch: v };
393
- setFlags(newFlags);
394
- save({ featureFlags: newFlags });
395
- } }), _jsx(SwitchRow, { label: t('settings.featureFlags.gitRebaseSync'), description: t('settings.featureFlags.gitRebaseSyncDescription'), id: "flag-gitRebaseSync", testId: "switch-flag-gitRebaseSync", checked: flags.gitRebaseSync, onChange: (v) => {
396
- const newFlags = { ...flags, gitRebaseSync: v };
397
- setFlags(newFlags);
398
- save({ featureFlags: newFlags });
399
- } }), _jsx(SwitchRow, { label: t('settings.featureFlags.reactFileManager'), description: t('settings.featureFlags.reactFileManagerDescription'), id: "flag-reactFileManager", testId: "switch-flag-reactFileManager", checked: flags.reactFileManager, onChange: (v) => {
400
- const newFlags = { ...flags, reactFileManager: v };
401
- setFlags(newFlags);
402
- save({ featureFlags: newFlags });
403
- } })] }), _jsx(SectionHint, { children: t('settings.featureFlags.hint') })] }), _jsxs("div", { id: "section-interactive-agent", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(InteractiveAgentSettingsSection, { settings: settings }), _jsx(SectionHint, { children: t('settings.interactiveAgent.hint') })] }), _jsxs("div", { id: "section-fab-layout", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(FabLayoutSettingsSection, { settings: settings }), _jsx(SectionHint, { children: t('settings.fabLayout.hint') })] }), _jsxs("div", { id: "section-database", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Database, title: t('settings.database.title'), description: t('settings.database.sectionDescription'), testId: "database-settings-section", children: [_jsx(SettingsRow, { label: t('settings.database.location'), description: t('settings.database.locationDescription'), 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'), children: _jsx("span", { className: "text-muted-foreground text-xs", "data-testid": "db-file-size", children: dbFileSize }) })] }), _jsx(SectionHint, { links: [
404
- {
405
- label: t('settings.database.links.settingsService'),
406
- href: 'https://github.com/jrmatherly/shipit/blob/main/docs/architecture/settings-service.md',
407
- },
408
- {
409
- label: t('settings.database.links.settingsSpec'),
410
- href: 'https://github.com/jrmatherly/shipit/blob/main/specs/005-global-settings-service/spec.md',
411
- },
412
- ], children: t('settings.database.hint') })] })] })] }));
51
+ }, [activeTab]);
52
+ return (_jsxs("div", { "data-testid": "settings-page-client", className: "max-w-5xl px-8 pt-8", children: [_jsxs("div", { className: "bg-background/95 supports-backdrop-filter:bg-background/80 sticky top-0 z-10 pb-4 backdrop-blur", children: [_jsxs("div", { className: "mb-4 space-y-1.5", children: [_jsx("span", { className: "text-[10px] font-bold tracking-[0.2em] text-slate-400 uppercase", children: "Developer Portal" }), _jsx("div", { className: "flex items-baseline gap-3", children: _jsx("h1", { className: "text-foreground text-3xl font-black tracking-tight", children: t('settings.title') }) })] }), _jsx("nav", { className: "bg-card editorial-shadow flex flex-wrap items-center gap-0.5 rounded-lg p-1", children: TABS.map((tab) => {
53
+ const TabIcon = tab.icon;
54
+ const isActive = activeTab === tab.id ||
55
+ (activeTab === 'all' && tab.id !== 'all' && visibleSection === tab.id);
56
+ return (_jsxs("button", { type: "button", onClick: () => setActiveTab(tab.id), className: cn('flex cursor-pointer items-center gap-1 rounded-md px-2 py-1.5 text-[11px] font-bold transition-all', isActive
57
+ ? 'bg-muted text-primary shadow-sm ring-1 ring-slate-200/70 dark:ring-slate-700/50'
58
+ : 'text-muted-foreground hover:text-foreground hover:bg-accent/50'), children: [_jsx(TabIcon, { className: "h-3 w-3" }), _jsx("span", { className: "hidden sm:inline", children: t(tab.labelKey) })] }, tab.id));
59
+ }) })] }), _jsxs("div", { className: "flex flex-col gap-3", children: [(activeTab === 'all' || activeTab === 'agent') && (_jsx("div", { id: "section-agent", className: "scroll-mt-18 rounded-lg", children: _jsx(AgentSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'environment') && (_jsx("div", { id: "section-environment", className: "scroll-mt-18 rounded-lg", children: _jsx(EnvironmentSettingsSection, { settings: settings, availableEditors: availableEditors, availableShells: availableShells, availableTerminals: availableTerminals }) })), (activeTab === 'all' || activeTab === 'workflow') && (_jsx("div", { id: "section-workflow", className: "scroll-mt-18 rounded-lg", children: _jsx(WorkflowSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'ci') && (_jsx("div", { id: "section-ci", className: "scroll-mt-18 rounded-lg", children: _jsx(CiSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'stage-timeouts') && (_jsx("div", { id: "section-stage-timeouts", className: "scroll-mt-18 rounded-lg", children: _jsx(StageTimeoutsSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'notifications') && (_jsx("div", { id: "section-notifications", className: "scroll-mt-18 rounded-lg", children: _jsx(NotificationSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'feature-flags') && (_jsx("div", { id: "section-feature-flags", className: "scroll-mt-18 rounded-lg", children: _jsx(FeatureFlagsSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'interactive-agent') && (_jsx("div", { id: "section-interactive-agent", className: "scroll-mt-18 rounded-lg", children: _jsx(InteractiveAgentSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'fab-layout') && (_jsx("div", { id: "section-fab-layout", className: "scroll-mt-18 rounded-lg", children: _jsx(FabLayoutSettingsSection, { settings: settings }) })), (activeTab === 'all' || activeTab === 'database') && (_jsx("div", { id: "section-database", className: "scroll-mt-18 rounded-lg", children: _jsx(DatabaseSettingsSection, { shipitAiHome: shipitAiHome, dbFileSize: dbFileSize }) }))] })] }));
413
60
  }
@@ -14,4 +14,6 @@ export declare const Default: Story;
14
14
  export declare const AllSections: Story;
15
15
  export declare const EvidenceEnabled: Story;
16
16
  export declare const CustomTimeouts: Story;
17
+ /** Shows the settings page with only the Workflow tab active (simulated via play function). */
18
+ export declare const SingleTabView: Story;
17
19
  //# sourceMappingURL=settings-page-client.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-page-client.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;CAOiC,CAAC;AAE5C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAqBzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAa7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAsB5B,CAAC"}
1
+ {"version":3,"file":"settings-page-client.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;CAOiC,CAAC;AAE5C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAqBzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAa7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAsB5B,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAC"}
@@ -77,3 +77,16 @@ export const CustomTimeouts = {
77
77
  dbFileSize: '2.4 MB',
78
78
  },
79
79
  };
80
+ /** Shows the settings page with only the Workflow tab active (simulated via play function). */
81
+ export const SingleTabView = {
82
+ args: {
83
+ settings: defaultSettings,
84
+ shipitAiHome: '/home/user/.shipit-ai',
85
+ dbFileSize: '2.4 MB',
86
+ },
87
+ play: async ({ canvasElement }) => {
88
+ const tabs = canvasElement.querySelectorAll('nav button');
89
+ const wfTab = Array.from(tabs).find((btn) => btn.textContent?.includes('Workflow'));
90
+ wfTab?.click();
91
+ },
92
+ };
@@ -1,10 +1,12 @@
1
- export declare function SettingsRow({ label, description, htmlFor, children, }: {
1
+ export declare function SettingsRow({ label, description, htmlFor, tooltip, children, }: {
2
2
  label: string;
3
3
  description?: string;
4
4
  htmlFor?: string;
5
+ /** Explicit tooltip text. Falls back to `description` if not provided. */
6
+ tooltip?: string;
5
7
  children: React.ReactNode;
6
8
  }): import("react/jsx-runtime").JSX.Element;
7
- export declare function SwitchRow({ label, description, id, testId, checked, onChange, disabled, }: {
9
+ export declare function SwitchRow({ label, description, id, testId, checked, onChange, disabled, tooltip, }: {
8
10
  label: string;
9
11
  description?: string;
10
12
  id: string;
@@ -12,8 +14,9 @@ export declare function SwitchRow({ label, description, id, testId, checked, onC
12
14
  checked: boolean;
13
15
  onChange: (value: boolean) => void;
14
16
  disabled?: boolean;
17
+ tooltip?: string;
15
18
  }): import("react/jsx-runtime").JSX.Element;
16
- export declare function SettingsSection({ icon: Icon, title, description, badge, testId, children, }: {
19
+ export declare function SettingsSection({ icon: Icon, title, description, badge, testId, tooltip, tooltipLinks, children, }: {
17
20
  icon: React.ComponentType<{
18
21
  className?: string;
19
22
  }>;
@@ -21,6 +24,13 @@ export declare function SettingsSection({ icon: Icon, title, description, badge,
21
24
  description: string;
22
25
  badge?: string;
23
26
  testId: string;
27
+ /** Section-level tooltip describing the purpose of this settings group. */
28
+ tooltip?: string;
29
+ /** Documentation links rendered below the tooltip text. */
30
+ tooltipLinks?: {
31
+ label: string;
32
+ href: string;
33
+ }[];
24
34
  children: React.ReactNode;
25
35
  }): import("react/jsx-runtime").JSX.Element;
26
36
  export declare function NumberStepper({ id, testId, value, onChange, onBlur, placeholder, min, max, step, suffix, }: {
@@ -38,11 +48,4 @@ export declare function NumberStepper({ id, testId, value, onChange, onBlur, pla
38
48
  export declare function SubsectionLabel({ children }: {
39
49
  children: React.ReactNode;
40
50
  }): import("react/jsx-runtime").JSX.Element;
41
- export declare function SectionHint({ children, links, }: {
42
- children: React.ReactNode;
43
- links?: {
44
- label: string;
45
- href: string;
46
- }[];
47
- }): import("react/jsx-runtime").JSX.Element;
48
51
  //# sourceMappingURL=settings-section-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-section-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-section-utils.tsx"],"names":[],"mappings":"AAUA,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAcA;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,WAAW,EACX,EAAE,EACF,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,2CAaA;AAID,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EAAE,IAAI,EACV,KAAK,EACL,WAAW,EACX,KAAK,EACL,MAAM,EACN,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAkBA;AAED,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,MAAM,EACN,KAAK,EACL,QAAQ,EACR,MAAM,EACN,WAAW,EACX,GAAO,EACP,GAAG,EACH,IAAQ,EACR,MAAM,GACP,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,2CA4DA;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAQ1E;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC3C,2CAsBA"}
1
+ {"version":3,"file":"settings-section-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-section-utils.tsx"],"names":[],"mappings":"AAWA,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,OAAO,EACP,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CA6BA;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,WAAW,EACX,EAAE,EACF,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,2CAaA;AAID,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EAAE,IAAI,EACV,KAAK,EACL,WAAW,EACX,KAAK,EACL,MAAM,EACN,OAAO,EACP,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CA4CA;AAED,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,MAAM,EACN,KAAK,EACL,QAAQ,EACR,MAAM,EACN,WAAW,EACX,GAAO,EACP,GAAG,EACH,IAAQ,EACR,MAAM,GACP,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,2CA4DA;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAQ1E"}
@@ -1,20 +1,23 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Minus, Plus, ExternalLink } from 'lucide-react';
3
+ import { Minus, Plus, ExternalLink, Info } from 'lucide-react';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { cn } from '../../../lib/utils.js';
6
6
  import { Label } from '../../ui/label.js';
7
7
  import { Switch } from '../../ui/switch.js';
8
+ import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip.js';
8
9
  /* ── Reusable row components ── */
9
- export function SettingsRow({ label, description, htmlFor, children, }) {
10
- return (_jsxs("div", { className: "flex items-center justify-between gap-4 border-b py-2.5 last:border-b-0", children: [_jsxs("div", { className: "min-w-0", children: [_jsx(Label, { htmlFor: htmlFor, className: "cursor-pointer text-sm font-normal whitespace-nowrap", children: label }), description ? (_jsx("p", { className: "text-muted-foreground text-[11px] leading-tight", children: description })) : null] }), _jsx("div", { className: "flex shrink-0 items-center gap-2", children: children })] }));
10
+ export function SettingsRow({ label, description, htmlFor, tooltip, children, }) {
11
+ // Show the Info icon when there's either an explicit tooltip or a description to surface
12
+ const tooltipText = tooltip ?? description;
13
+ return (_jsxs("div", { className: "flex items-center justify-between gap-4 border-b py-2.5 last:border-b-0", children: [_jsxs("div", { className: "min-w-0", children: [_jsxs("span", { className: "flex items-center gap-1.5", children: [_jsx(Label, { htmlFor: htmlFor, className: "cursor-pointer text-sm font-normal whitespace-nowrap", children: label }), tooltipText ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Info, { className: "text-muted-foreground/40 hover:text-muted-foreground h-3.5 w-3.5 shrink-0 cursor-help transition-colors" }) }), _jsx(TooltipContent, { side: "top", className: "max-w-64 text-[11px] leading-relaxed", children: _jsx("span", { className: "text-muted-foreground", children: tooltipText }) })] })) : null] }), description ? (_jsx("p", { className: "text-muted-foreground text-[11px] leading-tight", children: description })) : null] }), _jsx("div", { className: "flex shrink-0 items-center gap-2", children: children })] }));
11
14
  }
12
- export function SwitchRow({ label, description, id, testId, checked, onChange, disabled, }) {
13
- return (_jsx(SettingsRow, { label: label, description: description, htmlFor: id, children: _jsx(Switch, { id: id, "data-testid": testId, checked: checked, onCheckedChange: onChange, disabled: disabled, className: cn('cursor-pointer', disabled && 'cursor-not-allowed opacity-50') }) }));
15
+ export function SwitchRow({ label, description, id, testId, checked, onChange, disabled, tooltip, }) {
16
+ return (_jsx(SettingsRow, { label: label, description: description, htmlFor: id, tooltip: tooltip, children: _jsx(Switch, { id: id, "data-testid": testId, checked: checked, onCheckedChange: onChange, disabled: disabled, className: cn('cursor-pointer', disabled && 'cursor-not-allowed opacity-50') }) }));
14
17
  }
15
18
  /* ── Section card wrapper ── */
16
- export function SettingsSection({ icon: Icon, title, description, badge, testId, children, }) {
17
- return (_jsxs("div", { className: "bg-background rounded-lg border", "data-testid": testId, children: [_jsxs("div", { className: "bg-muted/30 border-b px-4 py-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Icon, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("h2", { className: "text-sm font-semibold", children: title }), badge ? (_jsx("span", { className: "bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-[9px] font-medium tracking-wider uppercase", children: badge })) : null] }), _jsx("p", { className: "text-muted-foreground mt-0.5 text-[11px]", children: description })] }), _jsx("div", { className: "px-4", children: children })] }));
19
+ export function SettingsSection({ icon: Icon, title, description, badge, testId, tooltip, tooltipLinks, children, }) {
20
+ return (_jsxs("div", { className: "bg-background rounded-lg border", "data-testid": testId, children: [_jsxs("div", { className: "bg-muted/30 border-b px-4 py-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Icon, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("h2", { className: "text-sm font-semibold", children: title }), tooltip ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Info, { className: "text-muted-foreground/40 hover:text-muted-foreground h-3.5 w-3.5 shrink-0 cursor-help transition-colors" }) }), _jsxs(TooltipContent, { side: "bottom", className: "max-w-72 text-[11px] leading-relaxed", children: [_jsx("p", { className: "text-muted-foreground", children: tooltip }), tooltipLinks != null && tooltipLinks.length > 0 ? (_jsx("div", { className: "border-border/50 mt-1.5 flex flex-col gap-0.5 border-t pt-1.5", children: tooltipLinks.map((link) => (_jsxs("a", { href: link.href, target: "_blank", rel: "noopener noreferrer", className: "text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5 text-[10px] tracking-wide transition-colors", children: [_jsx(ExternalLink, { className: "h-2.5 w-2.5 shrink-0 opacity-50" }), link.label] }, link.href))) })) : null] })] })) : null, badge ? (_jsx("span", { className: "bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-[9px] font-medium tracking-wider uppercase", children: badge })) : null] }), _jsx("p", { className: "text-muted-foreground mt-0.5 text-[11px]", children: description })] }), _jsx("div", { className: "px-4", children: children })] }));
18
21
  }
19
22
  export function NumberStepper({ id, testId, value, onChange, onBlur, placeholder, min = 1, max, step = 1, suffix, }) {
20
23
  const { t } = useTranslation('web');
@@ -41,6 +44,3 @@ export function NumberStepper({ id, testId, value, onChange, onBlur, placeholder
41
44
  export function SubsectionLabel({ children }) {
42
45
  return (_jsx("div", { className: "border-b pt-3 pb-1", children: _jsx("span", { className: "text-muted-foreground text-[10px] font-semibold tracking-wider uppercase", children: children }) }));
43
46
  }
44
- export function SectionHint({ children, links, }) {
45
- return (_jsxs("div", { className: "hidden pt-2 lg:block", children: [_jsx("p", { className: "text-muted-foreground/70 text-[11px] leading-relaxed", children: children }), links != null && links.length > 0 ? (_jsx("div", { className: "mt-2 flex flex-col gap-1", children: links.map((link) => (_jsxs("a", { href: link.href, target: "_blank", rel: "noopener noreferrer", className: "text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-[10px] transition-colors", children: [_jsx(ExternalLink, { className: "h-2.5 w-2.5" }), link.label] }, link.href))) })) : null] }));
46
- }