@shepai/cli 1.129.4 → 1.130.0-pr418.a8c8c58

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 (330) hide show
  1. package/apis/json-schema/FeatureFlags.yaml +5 -0
  2. package/apis/json-schema/WorkflowConfig.yaml +3 -0
  3. package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
  4. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -0
  5. package/dist/packages/core/src/domain/generated/output.d.ts +8 -0
  6. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  7. package/dist/packages/core/src/infrastructure/persistence/sqlite/legacy-migrations.d.ts +2 -2
  8. package/dist/packages/core/src/infrastructure/persistence/sqlite/legacy-migrations.d.ts.map +1 -1
  9. package/dist/packages/core/src/infrastructure/persistence/sqlite/legacy-migrations.js +13 -2
  10. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +2 -0
  11. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  12. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +4 -0
  13. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/042-add-hide-ci-status.d.ts +14 -0
  14. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/042-add-hide-ci-status.d.ts.map +1 -0
  15. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/042-add-hide-ci-status.js +19 -0
  16. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts +3 -3
  17. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +4 -4
  18. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
  19. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +3 -0
  20. package/dist/src/presentation/web/app/actions/get-feature-drawer-data.d.ts.map +1 -1
  21. package/dist/src/presentation/web/app/actions/get-feature-drawer-data.js +1 -0
  22. package/dist/src/presentation/web/app/actions/get-merge-review-data.d.ts.map +1 -1
  23. package/dist/src/presentation/web/app/actions/get-merge-review-data.js +5 -1
  24. package/dist/src/presentation/web/app/api/directory/list/route.d.ts +3 -0
  25. package/dist/src/presentation/web/app/api/directory/list/route.d.ts.map +1 -0
  26. package/dist/src/presentation/web/app/api/directory/list/route.js +76 -0
  27. package/dist/src/presentation/web/app/build-feature-node-data.d.ts +2 -0
  28. package/dist/src/presentation/web/app/build-feature-node-data.d.ts.map +1 -1
  29. package/dist/src/presentation/web/app/build-feature-node-data.js +1 -0
  30. package/dist/src/presentation/web/app/layout.d.ts +1 -0
  31. package/dist/src/presentation/web/app/layout.d.ts.map +1 -1
  32. package/dist/src/presentation/web/app/layout.js +1 -0
  33. package/dist/src/presentation/web/components/common/add-repository-button/add-repository-button.d.ts.map +1 -1
  34. package/dist/src/presentation/web/components/common/add-repository-button/add-repository-button.js +23 -2
  35. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  36. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +50 -19
  37. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map +1 -1
  38. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +3 -3
  39. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +2 -0
  40. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  41. package/dist/src/presentation/web/components/common/index.d.ts +1 -0
  42. package/dist/src/presentation/web/components/common/index.d.ts.map +1 -1
  43. package/dist/src/presentation/web/components/common/index.js +1 -0
  44. package/dist/src/presentation/web/components/common/merge-review/merge-review-config.d.ts +2 -0
  45. package/dist/src/presentation/web/components/common/merge-review/merge-review-config.d.ts.map +1 -1
  46. package/dist/src/presentation/web/components/common/merge-review/merge-review.js +2 -2
  47. package/dist/src/presentation/web/components/common/react-file-manager-dialog/index.d.ts +3 -0
  48. package/dist/src/presentation/web/components/common/react-file-manager-dialog/index.d.ts.map +1 -0
  49. package/dist/src/presentation/web/components/common/react-file-manager-dialog/index.js +1 -0
  50. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog-config.d.ts +17 -0
  51. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog-config.d.ts.map +1 -0
  52. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog-config.js +1 -0
  53. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.d.ts +3 -0
  54. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.d.ts.map +1 -0
  55. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.js +116 -0
  56. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.stories.d.ts +9 -0
  57. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.stories.d.ts.map +1 -0
  58. package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.stories.js +27 -0
  59. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts.map +1 -1
  60. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.js +22 -1
  61. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
  62. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +3 -0
  63. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
  64. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +3 -0
  65. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  66. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +5 -0
  67. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
  68. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +1 -0
  69. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
  70. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +3 -1
  71. package/dist/src/presentation/web/components/layouts/app-shell/app-shell.d.ts.map +1 -1
  72. package/dist/src/presentation/web/components/layouts/app-shell/app-shell.js +21 -2
  73. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.d.ts.map +1 -1
  74. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.js +1 -0
  75. package/dist/src/presentation/web/hooks/feature-flags-context.d.ts.map +1 -1
  76. package/dist/src/presentation/web/hooks/feature-flags-context.js +1 -0
  77. package/dist/src/presentation/web/lib/feature-flags.d.ts +2 -0
  78. package/dist/src/presentation/web/lib/feature-flags.d.ts.map +1 -1
  79. package/dist/src/presentation/web/lib/feature-flags.js +5 -0
  80. package/dist/tsconfig.build.tsbuildinfo +1 -1
  81. package/package.json +2 -1
  82. package/web/.next/BUILD_ID +1 -1
  83. package/web/.next/app-path-routes-manifest.json +1 -0
  84. package/web/.next/build-manifest.json +6 -6
  85. package/web/.next/fallback-build-manifest.json +2 -2
  86. package/web/.next/prerender-manifest.json +3 -3
  87. package/web/.next/required-server-files.js +3 -3
  88. package/web/.next/required-server-files.json +3 -3
  89. package/web/.next/routes-manifest.json +6 -0
  90. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/build-manifest.json +4 -4
  91. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/react-loadable-manifest.json +8 -1
  92. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +24 -24
  93. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +1 -1
  94. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  95. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  96. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +4 -4
  97. package/web/.next/server/app/(dashboard)/@drawer/create/page/react-loadable-manifest.json +8 -1
  98. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +24 -24
  99. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  100. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  101. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  102. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  103. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/react-loadable-manifest.json +8 -1
  104. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +30 -30
  105. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  106. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  107. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  108. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +4 -4
  109. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/react-loadable-manifest.json +8 -1
  110. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +30 -30
  111. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  112. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  113. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  114. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +4 -4
  115. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/react-loadable-manifest.json +8 -1
  116. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +22 -22
  117. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  118. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  119. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  120. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +4 -4
  121. package/web/.next/server/app/(dashboard)/create/page/react-loadable-manifest.json +8 -1
  122. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +24 -24
  123. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  124. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  125. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  126. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  127. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/react-loadable-manifest.json +8 -1
  128. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +30 -30
  129. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  130. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  131. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  132. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +4 -4
  133. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/react-loadable-manifest.json +8 -1
  134. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +30 -30
  135. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  136. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  137. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  138. package/web/.next/server/app/(dashboard)/page/build-manifest.json +4 -4
  139. package/web/.next/server/app/(dashboard)/page/react-loadable-manifest.json +8 -1
  140. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +22 -22
  141. package/web/.next/server/app/(dashboard)/page.js +1 -1
  142. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  143. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  144. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +4 -4
  145. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/react-loadable-manifest.json +8 -1
  146. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +22 -22
  147. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  148. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  149. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  150. package/web/.next/server/app/_global-error/page/build-manifest.json +4 -4
  151. package/web/.next/server/app/_global-error.html +2 -2
  152. package/web/.next/server/app/_global-error.rsc +1 -1
  153. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  154. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  155. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  156. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  157. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  158. package/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
  159. package/web/.next/server/app/_not-found/page/react-loadable-manifest.json +8 -1
  160. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +3 -3
  161. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  162. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  163. package/web/.next/server/app/api/attachments/preview/route.js +1 -1
  164. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  165. package/web/.next/server/app/api/directory/list/route/app-paths-manifest.json +3 -0
  166. package/web/.next/server/app/api/directory/list/route/build-manifest.json +11 -0
  167. package/web/.next/server/app/api/directory/list/route/server-reference-manifest.json +4 -0
  168. package/web/.next/server/app/api/directory/list/route.js +7 -0
  169. package/web/.next/server/app/api/directory/list/route.js.map +5 -0
  170. package/web/.next/server/app/api/directory/list/route.js.nft.json +1 -0
  171. package/web/.next/server/app/api/directory/list/route_client-reference-manifest.js +2 -0
  172. package/web/.next/server/app/api/evidence/route.js +1 -1
  173. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  174. package/web/.next/server/app/api/feature-logs/route.js +1 -1
  175. package/web/.next/server/app/api/feature-logs/route.js.nft.json +1 -1
  176. package/web/.next/server/app/api/graph-data/route.js +1 -1
  177. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  178. package/web/.next/server/app/settings/page/build-manifest.json +4 -4
  179. package/web/.next/server/app/settings/page/react-loadable-manifest.json +8 -1
  180. package/web/.next/server/app/settings/page/server-reference-manifest.json +8 -8
  181. package/web/.next/server/app/settings/page.js +1 -1
  182. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  183. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  184. package/web/.next/server/app/skills/page/build-manifest.json +4 -4
  185. package/web/.next/server/app/skills/page/react-loadable-manifest.json +8 -1
  186. package/web/.next/server/app/skills/page/server-reference-manifest.json +8 -8
  187. package/web/.next/server/app/skills/page.js +1 -1
  188. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  189. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  190. package/web/.next/server/app/tools/page/build-manifest.json +4 -4
  191. package/web/.next/server/app/tools/page/react-loadable-manifest.json +8 -1
  192. package/web/.next/server/app/tools/page/server-reference-manifest.json +8 -8
  193. package/web/.next/server/app/tools/page.js +1 -1
  194. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  195. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  196. package/web/.next/server/app/version/page/build-manifest.json +4 -4
  197. package/web/.next/server/app/version/page/react-loadable-manifest.json +8 -1
  198. package/web/.next/server/app/version/page/server-reference-manifest.json +3 -3
  199. package/web/.next/server/app/version/page.js.nft.json +1 -1
  200. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  201. package/web/.next/server/app-paths-manifest.json +1 -0
  202. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_directory_list_route_actions_9e35153e.js +3 -0
  203. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_directory_list_route_actions_9e35153e.js.map +1 -0
  204. package/web/.next/server/chunks/{[root-of-the-server]__53013576._.js → [root-of-the-server]__25f23d5d._.js} +2 -2
  205. package/web/.next/server/chunks/{[root-of-the-server]__92078db6._.js → [root-of-the-server]__26565141._.js} +2 -2
  206. package/web/.next/server/chunks/{[root-of-the-server]__d8037e14._.js → [root-of-the-server]__2b1074db._.js} +2 -2
  207. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  208. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  209. package/web/.next/server/chunks/{[root-of-the-server]__bc532286._.js → [root-of-the-server]__d1dc8fcd._.js} +2 -2
  210. package/web/.next/server/chunks/[root-of-the-server]__d1dc8fcd._.js.map +1 -0
  211. package/web/.next/server/chunks/[root-of-the-server]__fc6fd958._.js +3 -0
  212. package/web/.next/server/chunks/[root-of-the-server]__fc6fd958._.js.map +1 -0
  213. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4e741df2.js +1 -1
  214. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4e741df2.js.map +1 -1
  215. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  216. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  217. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_026fdffa.js +1 -1
  218. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_026fdffa.js.map +1 -1
  219. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_8b91e197.js +1 -1
  220. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_8b91e197.js.map +1 -1
  221. package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
  222. package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js +1 -1
  223. package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js.map +1 -1
  224. package/web/.next/server/chunks/ssr/{[root-of-the-server]__60684242._.js → [root-of-the-server]__5142820f._.js} +3 -3
  225. package/web/.next/server/chunks/ssr/[root-of-the-server]__5142820f._.js.map +1 -0
  226. package/web/.next/server/chunks/ssr/{[root-of-the-server]__a21eef5a._.js → [root-of-the-server]__57018345._.js} +2 -2
  227. package/web/.next/server/chunks/ssr/[root-of-the-server]__57018345._.js.map +1 -0
  228. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
  229. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
  230. package/web/.next/server/chunks/ssr/[root-of-the-server]__755cfe02._.js +1 -1
  231. package/web/.next/server/chunks/ssr/[root-of-the-server]__755cfe02._.js.map +1 -1
  232. package/web/.next/server/chunks/ssr/[root-of-the-server]__7894f27f._.js +3 -0
  233. package/web/.next/server/chunks/ssr/[root-of-the-server]__7894f27f._.js.map +1 -0
  234. package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js +1 -1
  235. package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js.map +1 -1
  236. package/web/.next/server/chunks/ssr/{[root-of-the-server]__62cdea24._.js → [root-of-the-server]__84f72684._.js} +3 -3
  237. package/web/.next/server/chunks/ssr/[root-of-the-server]__99ab2519._.js +1 -1
  238. package/web/.next/server/chunks/ssr/[root-of-the-server]__a628fb91._.js +1 -1
  239. package/web/.next/server/chunks/ssr/[root-of-the-server]__a628fb91._.js.map +1 -1
  240. package/web/.next/server/chunks/ssr/[root-of-the-server]__bfba58e6._.js +1 -1
  241. package/web/.next/server/chunks/ssr/[root-of-the-server]__bfba58e6._.js.map +1 -1
  242. package/web/.next/server/chunks/ssr/[root-of-the-server]__c3ab8422._.js +1 -1
  243. package/web/.next/server/chunks/ssr/[root-of-the-server]__c3ab8422._.js.map +1 -1
  244. package/web/.next/server/chunks/ssr/_0020fddd._.js +1 -1
  245. package/web/.next/server/chunks/ssr/_0020fddd._.js.map +1 -1
  246. package/web/.next/server/chunks/ssr/_02ec1aea._.js +1 -1
  247. package/web/.next/server/chunks/ssr/_02ec1aea._.js.map +1 -1
  248. package/web/.next/server/chunks/ssr/_1b7dae9a._.js +3 -0
  249. package/web/.next/server/chunks/ssr/_1b7dae9a._.js.map +1 -0
  250. package/web/.next/server/chunks/ssr/_7dca1882._.js +1 -1
  251. package/web/.next/server/chunks/ssr/_7dca1882._.js.map +1 -1
  252. package/web/.next/server/chunks/ssr/_81fe6d3b._.js +3 -0
  253. package/web/.next/server/chunks/ssr/{_26c20380._.js.map → _81fe6d3b._.js.map} +1 -1
  254. package/web/.next/server/chunks/ssr/{_df70217b._.js → _a191486b._.js} +2 -2
  255. package/web/.next/server/chunks/ssr/{_df70217b._.js.map → _a191486b._.js.map} +1 -1
  256. package/web/.next/server/chunks/ssr/_a37f5f18._.js +1 -1
  257. package/web/.next/server/chunks/ssr/_a37f5f18._.js.map +1 -1
  258. package/web/.next/server/chunks/ssr/_a9f57758._.js +1 -1
  259. package/web/.next/server/chunks/ssr/_a9f57758._.js.map +1 -1
  260. package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +1 -1
  261. package/web/.next/server/chunks/ssr/_d8575088._.js +1 -1
  262. package/web/.next/server/chunks/ssr/_d8575088._.js.map +1 -1
  263. package/web/.next/server/chunks/ssr/_f39a1adb._.js +1 -1
  264. package/web/.next/server/chunks/ssr/_f39a1adb._.js.map +1 -1
  265. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  266. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  267. package/web/.next/server/chunks/ssr/src_presentation_web_8e7fe0d1._.js +2 -2
  268. package/web/.next/server/chunks/ssr/src_presentation_web_8e7fe0d1._.js.map +1 -1
  269. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_ca051134.js +1 -1
  270. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_ca051134.js.map +1 -1
  271. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js +1 -1
  272. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js.map +1 -1
  273. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js +1 -1
  274. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js.map +1 -1
  275. package/web/.next/server/chunks/ssr/src_presentation_web_b9023017._.js +2 -2
  276. package/web/.next/server/chunks/ssr/src_presentation_web_b9023017._.js.map +1 -1
  277. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
  278. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
  279. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  280. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  281. package/web/.next/server/chunks/ssr/src_presentation_web_e367fa33._.js +3 -0
  282. package/web/.next/server/chunks/ssr/{src_presentation_web_eb13df7b._.js.map → src_presentation_web_e367fa33._.js.map} +1 -1
  283. package/web/.next/server/middleware-build-manifest.js +4 -4
  284. package/web/.next/server/pages/500.html +2 -2
  285. package/web/.next/server/server-reference-manifest.js +1 -1
  286. package/web/.next/server/server-reference-manifest.json +38 -38
  287. package/web/.next/static/chunks/{b5eff80f41163060.js → 066d7f0dca9782f9.js} +1 -1
  288. package/web/.next/static/chunks/{d34a91958ca566fa.js → 0b7fe2ac4f078f54.js} +1 -1
  289. package/web/.next/static/chunks/0ea15b83aeca7b1a.css +1 -0
  290. package/web/.next/static/chunks/{dbcb999ae8247914.js → 2528e9ccd1cd5557.js} +2 -2
  291. package/web/.next/static/chunks/{f28016900dc9baea.js → 2b49eb0402144759.js} +1 -1
  292. package/web/.next/static/chunks/{73d01c063ddb619b.js → 358c71bcbc3bc759.js} +1 -1
  293. package/web/.next/static/chunks/4cec255f2754e5ec.js +1 -0
  294. package/web/.next/static/chunks/5c12c5f9d517f0c0.js +1 -0
  295. package/web/.next/static/chunks/{e3eb64f3e2b71c2c.js → 5d2185185234aab9.js} +1 -1
  296. package/web/.next/static/chunks/644a9a08f25d68fa.js +2 -0
  297. package/web/.next/static/chunks/6d7b999c99d6d175.js +9 -0
  298. package/web/.next/static/chunks/{a819286e092d6779.js → 74286bb77c219a67.js} +1 -1
  299. package/web/.next/static/chunks/{33e8656cd8fcd8f3.js → 7b0d2388eabee729.js} +1 -1
  300. package/web/.next/static/chunks/8180973e9cd6a99e.css +1 -0
  301. package/web/.next/static/chunks/83fc7ea32e18c9a5.js +1 -0
  302. package/web/.next/static/chunks/{269012ed01bb54b3.js → 9e2e71313f8016b8.js} +1 -1
  303. package/web/.next/static/chunks/c7e793951b20a67f.js +1 -0
  304. package/web/.next/static/chunks/e16fcc91470e9687.js +1 -0
  305. package/web/.next/static/chunks/ed5e5916930412d8.js +1 -0
  306. package/web/.next/static/chunks/{turbopack-080e470ea902d0ba.js → turbopack-c2d183e05f30c7dc.js} +1 -1
  307. package/web/.next/server/chunks/[root-of-the-server]__bc532286._.js.map +0 -1
  308. package/web/.next/server/chunks/ssr/[root-of-the-server]__0e842eba._.js +0 -3
  309. package/web/.next/server/chunks/ssr/[root-of-the-server]__0e842eba._.js.map +0 -1
  310. package/web/.next/server/chunks/ssr/[root-of-the-server]__60684242._.js.map +0 -1
  311. package/web/.next/server/chunks/ssr/[root-of-the-server]__a21eef5a._.js.map +0 -1
  312. package/web/.next/server/chunks/ssr/_26c20380._.js +0 -3
  313. package/web/.next/server/chunks/ssr/_b4b8a636._.js +0 -3
  314. package/web/.next/server/chunks/ssr/_b4b8a636._.js.map +0 -1
  315. package/web/.next/server/chunks/ssr/src_presentation_web_eb13df7b._.js +0 -3
  316. package/web/.next/static/chunks/2c5a88b90c52d160.js +0 -2
  317. package/web/.next/static/chunks/31ddce9ebee38ab1.css +0 -1
  318. package/web/.next/static/chunks/5e816d8bfa88e38c.js +0 -1
  319. package/web/.next/static/chunks/610ae73585c51f7e.js +0 -1
  320. package/web/.next/static/chunks/84a181ff3270fd9f.js +0 -1
  321. package/web/.next/static/chunks/89aac43287d73b02.js +0 -1
  322. package/web/.next/static/chunks/a98b057ce6b40740.js +0 -1
  323. package/web/.next/static/chunks/f259386f4875e70c.js +0 -1
  324. /package/web/.next/server/chunks/{[root-of-the-server]__53013576._.js.map → [root-of-the-server]__25f23d5d._.js.map} +0 -0
  325. /package/web/.next/server/chunks/{[root-of-the-server]__92078db6._.js.map → [root-of-the-server]__26565141._.js.map} +0 -0
  326. /package/web/.next/server/chunks/{[root-of-the-server]__d8037e14._.js.map → [root-of-the-server]__2b1074db._.js.map} +0 -0
  327. /package/web/.next/server/chunks/ssr/{[root-of-the-server]__62cdea24._.js.map → [root-of-the-server]__84f72684._.js.map} +0 -0
  328. /package/web/.next/static/{pKNtnYRxwr5XM3dfLB6Fs → MbjU8FLnhr_Qim8W9Pgm2}/_buildManifest.js +0 -0
  329. /package/web/.next/static/{pKNtnYRxwr5XM3dfLB6Fs → MbjU8FLnhr_Qim8W9Pgm2}/_clientMiddlewareManifest.json +0 -0
  330. /package/web/.next/static/{pKNtnYRxwr5XM3dfLB6Fs → MbjU8FLnhr_Qim8W9Pgm2}/_ssgManifest.js +0 -0
@@ -6,17 +6,24 @@ import { Button } from '../../ui/button.js';
6
6
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip.js';
7
7
  import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover.js';
8
8
  import { GitHubImportDialog } from '../../common/github-import-dialog/index.js';
9
- import { pickFolder } from './pick-folder.js';
10
9
  import { useFeatureFlags } from '../../../hooks/feature-flags-context.js';
10
+ import { ReactFileManagerDialog } from '../../common/react-file-manager-dialog/index.js';
11
+ import { pickFolder } from './pick-folder.js';
11
12
  export function AddRepositoryButton({ onSelect, onGitHubImport }) {
12
13
  const featureFlags = useFeatureFlags();
13
14
  const [loading, setLoading] = useState(false);
14
15
  const [popoverOpen, setPopoverOpen] = useState(false);
15
16
  const [githubDialogOpen, setGithubDialogOpen] = useState(false);
17
+ const [showReactPicker, setShowReactPicker] = useState(false);
18
+ const { reactFileManager: useReactFileManager } = featureFlags;
16
19
  async function handleLocalFolder() {
17
20
  setPopoverOpen(false);
18
21
  if (loading)
19
22
  return;
23
+ if (useReactFileManager) {
24
+ setShowReactPicker(true);
25
+ return;
26
+ }
20
27
  setLoading(true);
21
28
  try {
22
29
  const path = await pickFolder();
@@ -24,6 +31,10 @@ export function AddRepositoryButton({ onSelect, onGitHubImport }) {
24
31
  onSelect?.(path);
25
32
  }
26
33
  }
34
+ catch {
35
+ // Native picker failed — fall back to React file manager
36
+ setShowReactPicker(true);
37
+ }
27
38
  finally {
28
39
  setLoading(false);
29
40
  }
@@ -38,5 +49,15 @@ export function AddRepositoryButton({ onSelect, onGitHubImport }) {
38
49
  onSelect?.(repository.path);
39
50
  }
40
51
  }
41
- return (_jsxs(_Fragment, { children: [_jsxs(Popover, { open: popoverOpen, onOpenChange: setPopoverOpen, children: [_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon", "aria-label": "Add Repository", "data-testid": "add-repository-button", disabled: loading, children: loading ? (_jsx(Loader2, { className: "h-5 w-5 animate-spin" })) : (_jsx(Plus, { className: "h-5 w-5" })) }) }) }), _jsx(TooltipContent, { children: "Add Repository" })] }) }), _jsxs(PopoverContent, { className: "w-48 p-1", align: "start", children: [_jsxs("button", { type: "button", className: "hover:bg-accent flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm", onClick: handleLocalFolder, "data-testid": "add-repo-local-folder", children: [_jsx(FolderPlus, { className: "h-4 w-4" }), "Local folder"] }), featureFlags.githubImport ? (_jsxs("button", { type: "button", className: "hover:bg-accent flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm", onClick: handleFromGitHub, "data-testid": "add-repo-from-github", children: [_jsx(Github, { className: "h-4 w-4" }), "From GitHub"] })) : null] })] }), featureFlags.githubImport ? (_jsx(GitHubImportDialog, { open: githubDialogOpen, onOpenChange: setGithubDialogOpen, onImportComplete: handleImportComplete })) : null] }));
52
+ function handleReactPickerSelect(path) {
53
+ if (path) {
54
+ onSelect?.(path);
55
+ }
56
+ setShowReactPicker(false);
57
+ }
58
+ return (_jsxs(_Fragment, { children: [_jsxs(Popover, { open: popoverOpen, onOpenChange: setPopoverOpen, children: [_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon", "aria-label": "Add Repository", "data-testid": "add-repository-button", disabled: loading, children: loading ? (_jsx(Loader2, { className: "h-5 w-5 animate-spin" })) : (_jsx(Plus, { className: "h-5 w-5" })) }) }) }), _jsx(TooltipContent, { children: "Add Repository" })] }) }), _jsxs(PopoverContent, { className: "w-48 p-1", align: "start", children: [_jsxs("button", { type: "button", className: "hover:bg-accent flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm", onClick: handleLocalFolder, "data-testid": "add-repo-local-folder", children: [_jsx(FolderPlus, { className: "h-4 w-4" }), "Local folder"] }), featureFlags.githubImport ? (_jsxs("button", { type: "button", className: "hover:bg-accent flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm", onClick: handleFromGitHub, "data-testid": "add-repo-from-github", children: [_jsx(Github, { className: "h-4 w-4" }), "From GitHub"] })) : null] })] }), featureFlags.githubImport ? (_jsx(GitHubImportDialog, { open: githubDialogOpen, onOpenChange: setGithubDialogOpen, onImportComplete: handleImportComplete })) : null, _jsx(ReactFileManagerDialog, { open: showReactPicker, onOpenChange: (open) => {
59
+ if (!open) {
60
+ setShowReactPicker(false);
61
+ }
62
+ }, onSelect: handleReactPickerSelect })] }));
42
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"feature-create-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAO5E,YAAY,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC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B,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,cAAc,EACd,YAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,GACnB,EAAE,wBAAwB,2CAwzB1B;AAmJD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,eAAe,EACf,QAAQ,GACT,EAAE,uBAAuB,2CA8JzB"}
1
+ {"version":3,"file":"feature-create-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAS5E,YAAY,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC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C;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,cAAc,EACd,YAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,GACnB,EAAE,wBAAwB,2CAwzB1B;AAmJD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,eAAe,EACf,QAAQ,GACT,EAAE,uBAAuB,2CAiNzB"}
@@ -19,6 +19,8 @@ import { AttachmentChip } from '../../common/attachment-chip/index.js';
19
19
  import { AgentModelPicker } from '../../features/settings/AgentModelPicker/index.js';
20
20
  import { Separator } from '../../ui/separator.js';
21
21
  import { pickFolder } from '../../common/add-repository-button/pick-folder.js';
22
+ import { ReactFileManagerDialog } from '../../common/react-file-manager-dialog/index.js';
23
+ import { useFeatureFlags } from '../../../hooks/feature-flags-context.js';
22
24
  import { addRepository } from '../../../app/actions/add-repository.js';
23
25
  import { pickFiles } from './pick-files.js';
24
26
  const MAX_FILE_SIZE = 10 * 1024 * 1024; // 10 MB
@@ -492,7 +494,9 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
492
494
  const [query, setQuery] = useState('');
493
495
  const [isAdding, setIsAdding] = useState(false);
494
496
  const [addError, setAddError] = useState(null);
497
+ const [showReactPicker, setShowReactPicker] = useState(false);
495
498
  const inputRef = useRef(null);
499
+ const { reactFileManager: useReactFileManager } = useFeatureFlags();
496
500
  const selectedRepo = repositories.find((r) => r.path === value);
497
501
  const filtered = query.trim()
498
502
  ? repositories.filter((r) => r.name.toLowerCase().includes(query.toLowerCase()) ||
@@ -503,9 +507,32 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
503
507
  setOpen(false);
504
508
  setQuery('');
505
509
  }, [onChange]);
510
+ const addRepoFromPath = useCallback(async (folderPath) => {
511
+ const result = await addRepository({ path: folderPath });
512
+ if (result.error) {
513
+ setAddError(result.error);
514
+ setIsAdding(false);
515
+ return;
516
+ }
517
+ if (result.repository) {
518
+ const newRepo = {
519
+ id: result.repository.id,
520
+ name: result.repository.name,
521
+ path: result.repository.path,
522
+ };
523
+ onAddRepository?.(newRepo);
524
+ onChange(newRepo.path);
525
+ setOpen(false);
526
+ setQuery('');
527
+ }
528
+ }, [onAddRepository, onChange]);
506
529
  const handleAddRepository = useCallback(async () => {
507
530
  if (isAdding)
508
531
  return;
532
+ if (useReactFileManager) {
533
+ setShowReactPicker(true);
534
+ return;
535
+ }
509
536
  setIsAdding(true);
510
537
  setAddError(null);
511
538
  try {
@@ -514,23 +541,24 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
514
541
  setIsAdding(false);
515
542
  return;
516
543
  }
517
- const result = await addRepository({ path: folderPath });
518
- if (result.error) {
519
- setAddError(result.error);
520
- setIsAdding(false);
521
- return;
522
- }
523
- if (result.repository) {
524
- const newRepo = {
525
- id: result.repository.id,
526
- name: result.repository.name,
527
- path: result.repository.path,
528
- };
529
- onAddRepository?.(newRepo);
530
- onChange(newRepo.path);
531
- setOpen(false);
532
- setQuery('');
533
- }
544
+ await addRepoFromPath(folderPath);
545
+ }
546
+ catch {
547
+ // Native picker failed — fall back to React file manager
548
+ setShowReactPicker(true);
549
+ }
550
+ finally {
551
+ setIsAdding(false);
552
+ }
553
+ }, [isAdding, useReactFileManager, addRepoFromPath]);
554
+ const handleReactPickerSelect = useCallback(async (path) => {
555
+ setShowReactPicker(false);
556
+ if (!path)
557
+ return;
558
+ setIsAdding(true);
559
+ setAddError(null);
560
+ try {
561
+ await addRepoFromPath(path);
534
562
  }
535
563
  catch (err) {
536
564
  setAddError(err instanceof Error ? err.message : 'Failed to add repository');
@@ -538,7 +566,7 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
538
566
  finally {
539
567
  setIsAdding(false);
540
568
  }
541
- }, [isAdding, onAddRepository, onChange]);
569
+ }, [addRepoFromPath]);
542
570
  useEffect(() => {
543
571
  if (open) {
544
572
  setTimeout(() => inputRef.current?.focus(), 0);
@@ -547,5 +575,8 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
547
575
  setQuery('');
548
576
  }
549
577
  }, [open]);
550
- return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", role: "combobox", "aria-expanded": open, "aria-label": "Repository", disabled: disabled, "data-testid": "repository-combobox", className: cn('border-input bg-background ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50', !selectedRepo && 'text-muted-foreground'), children: [_jsx("span", { className: "truncate", children: selectedRepo ? selectedRepo.name : 'Select repository...' }), _jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "repository-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: "Search repositories...", value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "repository-search" }) }), _jsx("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Repositories", children: filtered.length === 0 ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", "data-testid": "repository-empty", children: "No repositories found." })) : (filtered.map((r) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === r.path, onClick: () => handleSelect(r.path), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === r.path && 'bg-accent/50'), "data-testid": `repository-option-${r.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== r.path && 'invisible') }), _jsxs("span", { className: "flex flex-col items-start truncate", children: [_jsx("span", { className: "truncate", children: r.name }), _jsx("span", { className: "text-muted-foreground truncate text-xs", children: r.path })] })] }, r.id)))) }), _jsx(Separator, {}), _jsxs("button", { type: "button", onClick: handleAddRepository, disabled: isAdding, className: "hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm", "data-testid": "add-repository-item", children: [isAdding ? (_jsx(Loader2, { className: "h-4 w-4 shrink-0 animate-spin" })) : (_jsx(FolderPlus, { className: "h-4 w-4 shrink-0" })), _jsx("span", { children: "Add new repository..." })] }), addError ? (_jsx("p", { className: "px-3 pb-2 text-xs text-red-500", "data-testid": "add-repository-error", children: addError })) : null] }) })] }));
578
+ return (_jsxs(_Fragment, { children: [_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", role: "combobox", "aria-expanded": open, "aria-label": "Repository", disabled: disabled, "data-testid": "repository-combobox", className: cn('border-input bg-background ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50', !selectedRepo && 'text-muted-foreground'), children: [_jsx("span", { className: "truncate", children: selectedRepo ? selectedRepo.name : 'Select repository...' }), _jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "repository-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: "Search repositories...", value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "repository-search" }) }), _jsx("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Repositories", children: filtered.length === 0 ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", "data-testid": "repository-empty", children: "No repositories found." })) : (filtered.map((r) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === r.path, onClick: () => handleSelect(r.path), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === r.path && 'bg-accent/50'), "data-testid": `repository-option-${r.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== r.path && 'invisible') }), _jsxs("span", { className: "flex flex-col items-start truncate", children: [_jsx("span", { className: "truncate", children: r.name }), _jsx("span", { className: "text-muted-foreground truncate text-xs", children: r.path })] })] }, r.id)))) }), _jsx(Separator, {}), _jsxs("button", { type: "button", onClick: handleAddRepository, disabled: isAdding, className: "hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm", "data-testid": "add-repository-item", children: [isAdding ? (_jsx(Loader2, { className: "h-4 w-4 shrink-0 animate-spin" })) : (_jsx(FolderPlus, { className: "h-4 w-4 shrink-0" })), _jsx("span", { children: "Add new repository..." })] }), addError ? (_jsx("p", { className: "px-3 pb-2 text-xs text-red-500", "data-testid": "add-repository-error", children: addError })) : null] }) })] }), _jsx(ReactFileManagerDialog, { open: showReactPicker, onOpenChange: (isOpen) => {
579
+ if (!isOpen)
580
+ setShowReactPicker(false);
581
+ }, onSelect: handleReactPickerSelect })] }));
551
582
  }
@@ -1 +1 @@
1
- {"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAQxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CA+DrD"}
1
+ {"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAQxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAiErD"}
@@ -15,7 +15,7 @@ import { getModelMeta } from '../../../lib/model-metadata.js';
15
15
  import { formatDuration } from '../../../lib/format-duration.js';
16
16
  export function OverviewTab({ data }) {
17
17
  const isCompleted = data.lifecycle === 'maintain';
18
- return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null, (data.state === 'running' || data.state === 'action-required') && data.onStop ? (_jsxs("button", { "data-testid": "feature-drawer-stop-button", onClick: () => data.onStop(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(Square, { className: "h-3.5 w-3.5" }), "Stop"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? _jsx(FeaturePrInfo, { pr: data.pr }) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr }) })] })) : null, _jsx(FeatureDetails, { data: data }), _jsx(FeatureSettings, { data: data })] }));
18
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null, (data.state === 'running' || data.state === 'action-required') && data.onStop ? (_jsxs("button", { "data-testid": "feature-drawer-stop-button", onClick: () => data.onStop(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(Square, { className: "h-3.5 w-3.5" }), "Stop"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? (_jsx(FeaturePrInfo, { pr: data.pr, hideCiStatus: data.hideCiStatus })) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr, hideCiStatus: data.hideCiStatus }) })] })) : null, _jsx(FeatureDetails, { data: data }), _jsx(FeatureSettings, { data: data })] }));
19
19
  }
20
20
  function FeatureStateBadge({ data }) {
21
21
  const config = featureNodeStateConfig[data.state];
@@ -63,8 +63,8 @@ const prStatusStyles = {
63
63
  [PrStatus.Merged]: 'border-transparent bg-purple-50 text-purple-700 hover:bg-purple-50',
64
64
  [PrStatus.Closed]: 'border-transparent bg-red-50 text-red-700 hover:bg-red-50',
65
65
  };
66
- function FeaturePrInfo({ pr }) {
67
- return (_jsx("div", { "data-testid": "feature-drawer-pr", children: _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("a", { href: pr.url, target: "_blank", rel: "noopener noreferrer", className: "text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2", children: ["PR #", pr.number, _jsx(ExternalLink, { className: "h-3.5 w-3.5" })] }), _jsx(Badge, { className: prStatusStyles[pr.status], children: pr.status })] }), pr.ciStatus ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "CI Status" }), _jsx(CiStatusBadge, { status: pr.ciStatus })] })) : null, pr.mergeable === false ? (_jsxs("div", { "data-testid": "pr-merge-conflict", className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Merge Status" }), _jsxs(Badge, { className: "border-transparent bg-orange-50 text-orange-700 hover:bg-orange-50", children: [_jsx(AlertTriangle, { className: "mr-1 h-3.5 w-3.5" }), "Conflicts"] })] })) : null, pr.commitHash ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Commit" }), _jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(GitCommitHorizontal, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("code", { className: "bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]", children: pr.commitHash.slice(0, 7) })] })] })) : null] }) }));
66
+ function FeaturePrInfo({ pr, hideCiStatus, }) {
67
+ return (_jsx("div", { "data-testid": "feature-drawer-pr", children: _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("a", { href: pr.url, target: "_blank", rel: "noopener noreferrer", className: "text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2", children: ["PR #", pr.number, _jsx(ExternalLink, { className: "h-3.5 w-3.5" })] }), _jsx(Badge, { className: prStatusStyles[pr.status], children: pr.status })] }), pr.ciStatus && hideCiStatus !== true ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "CI Status" }), _jsx(CiStatusBadge, { status: pr.ciStatus })] })) : null, pr.mergeable === false ? (_jsxs("div", { "data-testid": "pr-merge-conflict", className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Merge Status" }), _jsxs(Badge, { className: "border-transparent bg-orange-50 text-orange-700 hover:bg-orange-50", children: [_jsx(AlertTriangle, { className: "mr-1 h-3.5 w-3.5" }), "Conflicts"] })] })) : null, pr.commitHash ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Commit" }), _jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(GitCommitHorizontal, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("code", { className: "bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]", children: pr.commitHash.slice(0, 7) })] })] })) : null] }) }));
68
68
  }
69
69
  // ── Details section ──────────────────────────────────────────────────
70
70
  /** Hook that returns a live-updating elapsed time string for running features. */
@@ -77,6 +77,8 @@ export interface FeatureNodeData {
77
77
  enableEvidence?: boolean;
78
78
  /** Whether evidence is committed to the PR body */
79
79
  commitEvidence?: boolean;
80
+ /** Whether to hide CI status badges from UI */
81
+ hideCiStatus?: boolean;
80
82
  /** Whether the feature has an associated agent run (for log tab visibility) */
81
83
  hasAgentRun?: boolean;
82
84
  /** Whether the feature has plan data available */
@@ -1 +1 @@
1
- {"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,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AAE,OAAO,EACvB,OAAO,CAAC,EAAE,OAAO,KACd,IAAI,CAAC;IACV,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CAiFnF,CAAC"}
1
+ {"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB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AC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,CACT,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,OAAO,EACjB,aAAa,CAAC,EAAE,OAAO,EACvB,OAAO,CAAC,EAAE,OAAO,KACd,IAAI,CAAC;IACV,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CAiFnF,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export { computeDrawerView, type DrawerView } from './control-center-drawer/index.js';
2
2
  export { AddRepositoryButton } from './add-repository-button/index.js';
3
+ export { ReactFileManagerDialog, type ReactFileManagerDialogProps, } from './react-file-manager-dialog/index.js';
3
4
  export { FloatingActionButton, type FloatingActionButtonProps, type FloatingActionButtonAction, } from './floating-action-button/index.js';
4
5
  export { ElapsedTime, formatElapsed } from './elapsed-time/index.js';
5
6
  export { EmptyState, type EmptyStateProps } from './empty-state/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources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,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,KAAK,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,GAChC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,KAAK,mBAAmB,EACxB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AK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export { computeDrawerView } from './control-center-drawer/index.js';
2
2
  export { AddRepositoryButton } from './add-repository-button/index.js';
3
+ export { ReactFileManagerDialog, } from './react-file-manager-dialog/index.js';
3
4
  export { FloatingActionButton, } from './floating-action-button/index.js';
4
5
  export { ElapsedTime, formatElapsed } from './elapsed-time/index.js';
5
6
  export { EmptyState } from './empty-state/index.js';
@@ -67,6 +67,8 @@ export interface MergeReviewData {
67
67
  warning?: string;
68
68
  /** Evidence captured during implementation (paths are absolute) */
69
69
  evidence?: MergeReviewEvidence[];
70
+ /** Whether to hide CI status badges from UI (global workflow setting) */
71
+ hideCiStatus?: boolean;
70
72
  }
71
73
  /** Props for the merge review content component */
72
74
  export interface MergeReviewProps {
@@ -1 +1 @@
1
- {"version":3,"file":"merge-review-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/merge-review/merge-review-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,yCAAyC;AACzC,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,gCAAgC;AAChC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gCAAgC;AAChC,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,mBAAmB,EAAE,CAAC;C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AAC;CACtB"}
1
+ {"version":3,"file":"merge-review-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/merge-review/merge-review-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,yCAAyC;AACzC,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,gCAAgC;AAChC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gCAAgC;AAChC,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IACrD,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,QAAQ,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,qEAAqE;IACr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EAAE,OAAO,CAAC;IACtB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,wDAAwD;AACxD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAC5E,6CAA6C;IAC7C,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC;IAC7B,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,wCAAwC;IACxC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -58,12 +58,12 @@ function EvidenceList({ evidence }) {
58
58
  return (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "px-4 py-3", children: [_jsxs("div", { className: "mb-3 flex items-center gap-2", children: [_jsx(Camera, { className: "text-muted-foreground h-4 w-4" }), _jsx("span", { className: "text-foreground text-xs font-semibold", children: "Evidence" }), _jsx(Badge, { variant: "secondary", className: "text-[10px]", children: evidence.length })] }), _jsx("ul", { className: "space-y-2", children: evidence.map((e) => (_jsx(EvidenceItem, { evidence: e }, `${e.type}-${e.relativePath}`))) })] }) }));
59
59
  }
60
60
  export function MergeReview({ data, readOnly = false, onApprove, onReject, isProcessing = false, isRejecting = false, chatInput, onChatInputChange, }) {
61
- const { pr, diffSummary, fileDiffs, branch, warning, evidence } = data;
61
+ const { pr, diffSummary, fileDiffs, branch, warning, evidence, hideCiStatus } = data;
62
62
  const hasConflicts = pr?.mergeable === false;
63
63
  const handleApproveOrResolve = hasConflicts && onReject ? () => onReject('Resolve merge conflicts', []) : onApprove;
64
64
  return (_jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [_jsxs("div", { className: "flex-1 space-y-4 overflow-y-auto p-4", children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsx("div", { className: "mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full bg-emerald-500" }), _jsxs("div", { className: "flex-1", children: [_jsx("h2", { className: "text-foreground text-sm font-bold", children: readOnly ? 'Merge History' : 'Merge Review' }), _jsx("p", { className: "text-muted-foreground mt-1 text-xs leading-relaxed", children: readOnly
65
65
  ? 'This feature was merged. Review the pull request details and evidence below.'
66
66
  : pr
67
67
  ? 'Review the pull request details and approve to merge.'
68
- : 'Review the changes and approve to merge.' })] })] }), branch ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "flex items-center gap-2 px-4 py-3", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4 shrink-0" }), _jsx(Badge, { variant: "secondary", className: "font-mono text-[11px]", children: branch.source }), _jsx(ArrowRight, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }), _jsx(Badge, { variant: "outline", className: "font-mono text-[11px]", children: branch.target })] }) })) : null, pr ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "space-y-3 px-4 py-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("a", { href: pr.url, target: "_blank", rel: "noopener noreferrer", className: "text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2", children: ["PR #", pr.number, _jsx(ExternalLink, { className: "h-3.5 w-3.5" })] }), _jsx(Badge, { variant: "outline", className: "text-xs", children: pr.status })] }), pr.mergeable === false ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Merge Status" }), _jsxs(Badge, { className: "border-transparent bg-orange-50 text-orange-700 hover:bg-orange-50", children: [_jsx(AlertTriangle, { className: "mr-1 h-3.5 w-3.5" }), "Conflicts"] })] })) : null, pr.ciStatus ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "CI Status" }), _jsx(CiStatusBadge, { status: pr.ciStatus })] })) : null, pr.commitHash ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Commit" }), _jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(GitCommitHorizontal, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("code", { className: "bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]", children: pr.commitHash.slice(0, 7) })] })] })) : null] }) })) : null, diffSummary ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "px-4 py-3", children: [_jsxs("div", { className: "mb-3 flex items-center gap-2", children: [_jsx(FileDiff, { className: "text-muted-foreground h-4 w-4" }), _jsx("span", { className: "text-foreground text-xs font-semibold", children: "Changes" })] }), _jsxs("div", { className: "grid grid-cols-4 gap-3", children: [_jsxs("div", { className: "text-center", children: [_jsx("div", { className: "text-foreground text-sm font-bold", children: diffSummary.filesChanged }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "files" })] }), _jsxs("div", { className: "text-center", children: [_jsxs("div", { className: "text-sm font-bold text-green-600", children: ["+", diffSummary.additions] }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "additions" })] }), _jsxs("div", { className: "text-center", children: [_jsxs("div", { className: "text-sm font-bold text-red-600", children: ["-", diffSummary.deletions] }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "deletions" })] }), _jsxs("div", { className: "text-center", children: [_jsx("div", { className: "text-foreground text-sm font-bold", children: diffSummary.commitCount }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "commits" })] })] })] }) })) : warning ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "flex items-center gap-2 px-4 py-3", children: [_jsx(AlertTriangle, { className: "text-muted-foreground h-4 w-4 shrink-0" }), _jsx("span", { className: "text-muted-foreground text-xs", children: warning })] }) })) : null, evidence && evidence.length > 0 ? _jsx(EvidenceList, { evidence: evidence }) : null, fileDiffs && fileDiffs.length > 0 ? _jsx(DiffView, { fileDiffs: fileDiffs }) : null] }), !readOnly && (_jsx(DrawerActionBar, { onReject: onReject, onApprove: handleApproveOrResolve, approveLabel: hasConflicts ? 'Resolve Conflicts' : 'Approve Merge', approveVariant: hasConflicts ? 'warning' : 'default', revisionPlaceholder: "Ask AI to revise before merging...", isProcessing: isProcessing, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange }))] }));
68
+ : 'Review the changes and approve to merge.' })] })] }), branch ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "flex items-center gap-2 px-4 py-3", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4 shrink-0" }), _jsx(Badge, { variant: "secondary", className: "font-mono text-[11px]", children: branch.source }), _jsx(ArrowRight, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }), _jsx(Badge, { variant: "outline", className: "font-mono text-[11px]", children: branch.target })] }) })) : null, pr ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "space-y-3 px-4 py-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("a", { href: pr.url, target: "_blank", rel: "noopener noreferrer", className: "text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2", children: ["PR #", pr.number, _jsx(ExternalLink, { className: "h-3.5 w-3.5" })] }), _jsx(Badge, { variant: "outline", className: "text-xs", children: pr.status })] }), pr.mergeable === false ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Merge Status" }), _jsxs(Badge, { className: "border-transparent bg-orange-50 text-orange-700 hover:bg-orange-50", children: [_jsx(AlertTriangle, { className: "mr-1 h-3.5 w-3.5" }), "Conflicts"] })] })) : null, pr.ciStatus && hideCiStatus !== true ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "CI Status" }), _jsx(CiStatusBadge, { status: pr.ciStatus })] })) : null, pr.commitHash ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Commit" }), _jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(GitCommitHorizontal, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("code", { className: "bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]", children: pr.commitHash.slice(0, 7) })] })] })) : null] }) })) : null, diffSummary ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "px-4 py-3", children: [_jsxs("div", { className: "mb-3 flex items-center gap-2", children: [_jsx(FileDiff, { className: "text-muted-foreground h-4 w-4" }), _jsx("span", { className: "text-foreground text-xs font-semibold", children: "Changes" })] }), _jsxs("div", { className: "grid grid-cols-4 gap-3", children: [_jsxs("div", { className: "text-center", children: [_jsx("div", { className: "text-foreground text-sm font-bold", children: diffSummary.filesChanged }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "files" })] }), _jsxs("div", { className: "text-center", children: [_jsxs("div", { className: "text-sm font-bold text-green-600", children: ["+", diffSummary.additions] }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "additions" })] }), _jsxs("div", { className: "text-center", children: [_jsxs("div", { className: "text-sm font-bold text-red-600", children: ["-", diffSummary.deletions] }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "deletions" })] }), _jsxs("div", { className: "text-center", children: [_jsx("div", { className: "text-foreground text-sm font-bold", children: diffSummary.commitCount }), _jsx("div", { className: "text-muted-foreground text-[10px]", children: "commits" })] })] })] }) })) : warning ? (_jsx("div", { className: "border-border rounded-lg border", children: _jsxs("div", { className: "flex items-center gap-2 px-4 py-3", children: [_jsx(AlertTriangle, { className: "text-muted-foreground h-4 w-4 shrink-0" }), _jsx("span", { className: "text-muted-foreground text-xs", children: warning })] }) })) : null, evidence && evidence.length > 0 ? _jsx(EvidenceList, { evidence: evidence }) : null, fileDiffs && fileDiffs.length > 0 ? _jsx(DiffView, { fileDiffs: fileDiffs }) : null] }), !readOnly && (_jsx(DrawerActionBar, { onReject: onReject, onApprove: handleApproveOrResolve, approveLabel: hasConflicts ? 'Resolve Conflicts' : 'Approve Merge', approveVariant: hasConflicts ? 'warning' : 'default', revisionPlaceholder: "Ask AI to revise before merging...", isProcessing: isProcessing, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange }))] }));
69
69
  }
@@ -0,0 +1,3 @@
1
+ export { ReactFileManagerDialog } from './react-file-manager-dialog.js';
2
+ export type { ReactFileManagerDialogProps } from './react-file-manager-dialog-config.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/react-file-manager-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,YAAY,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1 @@
1
+ export { ReactFileManagerDialog } from './react-file-manager-dialog.js';
@@ -0,0 +1,17 @@
1
+ export interface ReactFileManagerDialogProps {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ onSelect: (path: string | null) => void;
5
+ initialPath?: string;
6
+ }
7
+ export interface DirectoryEntry {
8
+ name: string;
9
+ path: string;
10
+ isDirectory: true;
11
+ updatedAt: string;
12
+ }
13
+ export interface DirectoryListResponse {
14
+ entries: DirectoryEntry[];
15
+ currentPath: string;
16
+ }
17
+ //# sourceMappingURL=react-file-manager-dialog-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-file-manager-dialog-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ import type { ReactFileManagerDialogProps } from './react-file-manager-dialog-config.js';
2
+ export declare function ReactFileManagerDialog({ open, onOpenChange, onSelect, initialPath, }: ReactFileManagerDialogProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=react-file-manager-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-file-manager-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAGV,2BAA2B,EAC5B,MAAM,oCAAoC,CAAC;AA2C5C,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,WAAW,GACZ,EAAE,2BAA2B,2CAgI7B"}
@@ -0,0 +1,116 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useCallback, useEffect, useRef, useState } from 'react';
4
+ import dynamic from 'next/dynamic';
5
+ import { Loader2 } from 'lucide-react';
6
+ import { toast } from 'sonner';
7
+ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '../../ui/dialog.js';
8
+ import { Button } from '../../ui/button.js';
9
+ const FileManager = dynamic(() => import('@cubone/react-file-manager').then((mod) => mod.FileManager), { ssr: false, loading: () => _jsx(FileManagerSkeleton, {}) });
10
+ function FileManagerSkeleton() {
11
+ return (_jsx("div", { className: "flex h-full w-full items-center justify-center", children: _jsx(Loader2, { className: "text-muted-foreground h-8 w-8 animate-spin" }) }));
12
+ }
13
+ function toFileManagerFiles(entries) {
14
+ // The @cubone/react-file-manager component filters visible files by matching
15
+ // file.path === currentPath + "/" + file.name. Since we dynamically fetch
16
+ // directory contents on each navigation, we present all entries at the
17
+ // FileManager's root level by using path = "/" + name. The real absolute
18
+ // path is preserved in a custom `absolutePath` field for selection/navigation.
19
+ return entries.map((entry) => ({
20
+ name: entry.name,
21
+ isDirectory: true,
22
+ path: `/${entry.name}`,
23
+ absolutePath: entry.path,
24
+ updatedAt: entry.updatedAt,
25
+ }));
26
+ }
27
+ async function fetchDirectory(dirPath) {
28
+ const params = new URLSearchParams();
29
+ if (dirPath) {
30
+ params.set('path', dirPath);
31
+ }
32
+ const res = await fetch(`/api/directory/list?${params.toString()}`);
33
+ if (!res.ok) {
34
+ const body = await res.json().catch(() => ({ error: 'Failed to load directory' }));
35
+ throw new Error(body.error ?? 'Failed to load directory');
36
+ }
37
+ return res.json();
38
+ }
39
+ export function ReactFileManagerDialog({ open, onOpenChange, onSelect, initialPath, }) {
40
+ const [entries, setEntries] = useState([]);
41
+ const [currentPath, setCurrentPath] = useState('');
42
+ const [isLoading, setIsLoading] = useState(false);
43
+ const [selectedPath, setSelectedPath] = useState(null);
44
+ const hasLoadedRef = useRef(false);
45
+ const loadDirectory = useCallback(async (dirPath) => {
46
+ setIsLoading(true);
47
+ setSelectedPath(null);
48
+ try {
49
+ const data = await fetchDirectory(dirPath);
50
+ setEntries(data.entries);
51
+ setCurrentPath(data.currentPath);
52
+ }
53
+ catch (error) {
54
+ const message = error instanceof Error ? error.message : 'Failed to load directory';
55
+ toast.error(message);
56
+ }
57
+ finally {
58
+ setIsLoading(false);
59
+ }
60
+ }, []);
61
+ useEffect(() => {
62
+ if (open && !hasLoadedRef.current) {
63
+ hasLoadedRef.current = true;
64
+ loadDirectory(initialPath);
65
+ }
66
+ if (!open) {
67
+ hasLoadedRef.current = false;
68
+ }
69
+ }, [open, initialPath, loadDirectory]);
70
+ const handleFileOpen = useCallback((file) => {
71
+ // Use absolutePath (real filesystem path) for navigation, not the
72
+ // virtual path used by the FileManager tree.
73
+ const realPath = file.absolutePath;
74
+ if (file.isDirectory && realPath) {
75
+ loadDirectory(realPath);
76
+ }
77
+ }, [loadDirectory]);
78
+ const handleSelectionChange = useCallback((files) => {
79
+ if (files.length === 1 && files[0].isDirectory) {
80
+ const realPath = files[0].absolutePath;
81
+ setSelectedPath(realPath ?? null);
82
+ }
83
+ else {
84
+ setSelectedPath(null);
85
+ }
86
+ }, []);
87
+ function handleSelect() {
88
+ if (selectedPath) {
89
+ onSelect(selectedPath);
90
+ onOpenChange(false);
91
+ }
92
+ }
93
+ function handleSelectCurrentPath() {
94
+ if (currentPath) {
95
+ onSelect(currentPath);
96
+ onOpenChange(false);
97
+ }
98
+ }
99
+ function handleCancel() {
100
+ onSelect(null);
101
+ onOpenChange(false);
102
+ }
103
+ return (_jsx(Dialog, { open: open, onOpenChange: (isOpen) => {
104
+ if (!isOpen) {
105
+ handleCancel();
106
+ }
107
+ }, children: _jsxs(DialogContent, { className: "flex h-[95dvh] max-w-[95vw] flex-col", onCloseAutoFocus: (e) => e.preventDefault(), children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Select Folder" }), _jsx(DialogDescription, { className: "truncate font-mono text-xs", children: currentPath || 'Loading...' })] }), _jsx("div", { className: "shep-file-manager min-h-0 flex-1 overflow-hidden rounded-md border", children: _jsx(FileManager, { files: toFileManagerFiles(entries), isLoading: isLoading, height: "100%", width: "100%", layout: "list", enableFilePreview: false, permissions: {
108
+ upload: false,
109
+ delete: false,
110
+ create: false,
111
+ download: false,
112
+ copy: false,
113
+ move: false,
114
+ rename: false,
115
+ }, onFileOpen: handleFileOpen, onSelectionChange: handleSelectionChange, onRefresh: () => loadDirectory(currentPath) }, currentPath) }), _jsxs(DialogFooter, { children: [_jsx(Button, { variant: "outline", onClick: handleCancel, children: "Cancel" }), _jsx(Button, { variant: "secondary", onClick: handleSelectCurrentPath, disabled: !currentPath, children: "Select Current Folder" }), _jsx(Button, { onClick: handleSelect, disabled: !selectedPath, children: "Select Folder" })] })] }) }));
116
+ }
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactFileManagerDialog } from './react-file-manager-dialog.js';
3
+ declare const meta: Meta<typeof ReactFileManagerDialog>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ReactFileManagerDialog>;
6
+ export declare const Default: Story;
7
+ export declare const WithInitialPath: Story;
8
+ export declare const Closed: Story;
9
+ //# sourceMappingURL=react-file-manager-dialog.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-file-manager-dialog.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,sBAAsB,CAY7C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAErD,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,eAAe,EAAE,KAI7B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAIpB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { fn } from '@storybook/test';
2
+ import { ReactFileManagerDialog } from './react-file-manager-dialog.js';
3
+ const meta = {
4
+ title: 'Composed/ReactFileManagerDialog',
5
+ component: ReactFileManagerDialog,
6
+ tags: ['autodocs'],
7
+ parameters: {
8
+ layout: 'centered',
9
+ },
10
+ args: {
11
+ open: true,
12
+ onOpenChange: fn().mockName('onOpenChange'),
13
+ onSelect: fn().mockName('onSelect'),
14
+ },
15
+ };
16
+ export default meta;
17
+ export const Default = {};
18
+ export const WithInitialPath = {
19
+ args: {
20
+ initialPath: '/tmp',
21
+ },
22
+ };
23
+ export const Closed = {
24
+ args: {
25
+ open: false,
26
+ },
27
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"control-center-empty-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-empty-state.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,uBAAuB,CAAC,EACtC,kBAAkB,EAClB,SAAS,GACV,EAAE,4BAA4B,kDA8J9B"}
1
+ {"version":3,"file":"control-center-empty-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-empty-state.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,uBAAuB,CAAC,EACtC,kBAAkB,EAClB,SAAS,GACV,EAAE,4BAA4B,kDAuL9B"}