@deepseek-ai/dsh-experimental-client-ui-forge 0.2.3-alpha.2 → 0.2.3-alpha.4

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 (350) hide show
  1. package/README.i18n.yaml +10 -10
  2. package/README.md +37 -19
  3. package/README.zh.md +37 -19
  4. package/lib/client.js +22 -17
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +941 -188
  7. package/lib/typert.host.js +894 -175
  8. package/lib/typert.remote-client.d.ts +35 -17
  9. package/lib/typert.remote-client.d.ts.map +1 -1
  10. package/lib/typert.remote-client.js +751 -146
  11. package/lib/types/client/ActionToast.d.ts +1 -1
  12. package/lib/types/client/ActionToast.d.ts.map +1 -1
  13. package/lib/types/client/ActionToast.js.map +1 -1
  14. package/lib/types/client/BaseMenu.d.ts +6 -4
  15. package/lib/types/client/BaseMenu.d.ts.map +1 -1
  16. package/lib/types/client/BaseMenu.js.map +1 -1
  17. package/lib/types/client/BranchPicker.d.ts +84 -0
  18. package/lib/types/client/BranchPicker.d.ts.map +1 -0
  19. package/lib/types/client/BranchPicker.js.map +1 -0
  20. package/lib/types/client/ChangeRequestCard.d.ts +31 -13
  21. package/lib/types/client/ChangeRequestCard.d.ts.map +1 -1
  22. package/lib/types/client/ChangeRequestCard.js.map +1 -1
  23. package/lib/types/client/ChangeRequestOverview.d.ts +28 -6
  24. package/lib/types/client/ChangeRequestOverview.d.ts.map +1 -1
  25. package/lib/types/client/ChangeRequestOverview.js.map +1 -1
  26. package/lib/types/client/ChangeRequestsSection.d.ts +5 -3
  27. package/lib/types/client/ChangeRequestsSection.d.ts.map +1 -1
  28. package/lib/types/client/ChangeRequestsSection.js.map +1 -1
  29. package/lib/types/client/ChangeStatus.d.ts +41 -0
  30. package/lib/types/client/ChangeStatus.d.ts.map +1 -0
  31. package/lib/types/client/ChangeStatus.js.map +1 -0
  32. package/lib/types/client/ChangedFiles.d.ts +1 -1
  33. package/lib/types/client/ChangedFiles.d.ts.map +1 -1
  34. package/lib/types/client/ChangedFiles.js.map +1 -1
  35. package/lib/types/client/ChangesLoading.d.ts +1 -1
  36. package/lib/types/client/ChangesLoading.d.ts.map +1 -1
  37. package/lib/types/client/ChangesTab.d.ts +35 -12
  38. package/lib/types/client/ChangesTab.d.ts.map +1 -1
  39. package/lib/types/client/ChangesTab.js.map +1 -1
  40. package/lib/types/client/ChangesTabTitle.d.ts +1 -1
  41. package/lib/types/client/ChangesTabTitle.d.ts.map +1 -1
  42. package/lib/types/client/ChangesTabTitle.js.map +1 -1
  43. package/lib/types/client/CommitMenu.d.ts +11 -8
  44. package/lib/types/client/CommitMenu.d.ts.map +1 -1
  45. package/lib/types/client/CommitMenu.js.map +1 -1
  46. package/lib/types/client/CopyCommandButton.d.ts +19 -0
  47. package/lib/types/client/CopyCommandButton.d.ts.map +1 -0
  48. package/lib/types/client/CopyCommandButton.js.map +1 -0
  49. package/lib/types/client/DiffFile.d.ts +36 -5
  50. package/lib/types/client/DiffFile.d.ts.map +1 -1
  51. package/lib/types/client/DiffFile.js.map +1 -1
  52. package/lib/types/client/EnvironmentRows.d.ts +6 -6
  53. package/lib/types/client/EnvironmentRows.d.ts.map +1 -1
  54. package/lib/types/client/EnvironmentRows.js.map +1 -1
  55. package/lib/types/client/FileLabel.d.ts +5 -5
  56. package/lib/types/client/FileLabel.d.ts.map +1 -1
  57. package/lib/types/client/FileLabel.js.map +1 -1
  58. package/lib/types/client/HeadMenu.d.ts +35 -0
  59. package/lib/types/client/HeadMenu.d.ts.map +1 -0
  60. package/lib/types/client/HeadMenu.js.map +1 -0
  61. package/lib/types/client/HostSettings.d.ts +33 -0
  62. package/lib/types/client/HostSettings.d.ts.map +1 -0
  63. package/lib/types/client/HostSettings.js.map +1 -0
  64. package/lib/types/client/LensFilter.d.ts +2 -2
  65. package/lib/types/client/LensFilter.d.ts.map +1 -1
  66. package/lib/types/client/LensFilter.js.map +1 -1
  67. package/lib/types/client/ReasonButton.js.map +1 -1
  68. package/lib/types/client/RefreshGlyph.js.map +1 -1
  69. package/lib/types/client/ReviewComposer.d.ts +1 -1
  70. package/lib/types/client/ReviewComposer.d.ts.map +1 -1
  71. package/lib/types/client/ReviewComposer.js.map +1 -1
  72. package/lib/types/client/ReviewControls.d.ts +1 -1
  73. package/lib/types/client/ReviewControls.d.ts.map +1 -1
  74. package/lib/types/client/ReviewControls.js.map +1 -1
  75. package/lib/types/client/ReviewThread.d.ts +1 -1
  76. package/lib/types/client/ReviewThread.d.ts.map +1 -1
  77. package/lib/types/client/ReviewThread.js.map +1 -1
  78. package/lib/types/client/ReviewThreads.d.ts +21 -4
  79. package/lib/types/client/ReviewThreads.d.ts.map +1 -1
  80. package/lib/types/client/ReviewThreads.js.map +1 -1
  81. package/lib/types/client/SessionHoverForge.d.ts +1 -1
  82. package/lib/types/client/SessionHoverForge.d.ts.map +1 -1
  83. package/lib/types/client/SessionHoverForge.js.map +1 -1
  84. package/lib/types/client/SessionRowForge.d.ts +1 -1
  85. package/lib/types/client/SessionRowForge.d.ts.map +1 -1
  86. package/lib/types/client/SessionRowForge.js.map +1 -1
  87. package/lib/types/client/SubmitReview.d.ts +1 -1
  88. package/lib/types/client/SubmitReview.d.ts.map +1 -1
  89. package/lib/types/client/SubmitReview.js.map +1 -1
  90. package/lib/types/client/ThreadList.d.ts +3 -1
  91. package/lib/types/client/ThreadList.d.ts.map +1 -1
  92. package/lib/types/client/ThreadList.js.map +1 -1
  93. package/lib/types/client/ViewOptionsMenu.d.ts +1 -1
  94. package/lib/types/client/ViewOptionsMenu.d.ts.map +1 -1
  95. package/lib/types/client/ViewOptionsMenu.js.map +1 -1
  96. package/lib/types/client/WorktreeNameDialog.d.ts +1 -1
  97. package/lib/types/client/WorktreeNameDialog.d.ts.map +1 -1
  98. package/lib/types/client/WorktreeNameDialog.js.map +1 -1
  99. package/lib/types/client/WorktreeProgress.d.ts +1 -1
  100. package/lib/types/client/WorktreeProgress.d.ts.map +1 -1
  101. package/lib/types/client/WorktreeProgress.js.map +1 -1
  102. package/lib/types/client/WorktreeSettings.d.ts +1 -1
  103. package/lib/types/client/WorktreeSettings.d.ts.map +1 -1
  104. package/lib/types/client/WorktreeSettings.js.map +1 -1
  105. package/lib/types/client/WorktreeToggle.d.ts +1 -1
  106. package/lib/types/client/WorktreeToggle.d.ts.map +1 -1
  107. package/lib/types/client/WorktreeToggle.js.map +1 -1
  108. package/lib/types/client/annotations.d.ts +1 -1
  109. package/lib/types/client/annotations.d.ts.map +1 -1
  110. package/lib/types/client/branch-search.d.ts +1 -1
  111. package/lib/types/client/branch-search.d.ts.map +1 -1
  112. package/lib/types/client/branch-search.js.map +1 -1
  113. package/lib/types/client/changes-address.d.ts +1 -1
  114. package/lib/types/client/changes-address.d.ts.map +1 -1
  115. package/lib/types/client/changes-service.d.ts +1 -1
  116. package/lib/types/client/changes-service.d.ts.map +1 -1
  117. package/lib/types/client/changes-store.d.ts +25 -6
  118. package/lib/types/client/changes-store.d.ts.map +1 -1
  119. package/lib/types/client/changes-store.js.map +1 -1
  120. package/lib/types/client/checkout.d.ts +1 -1
  121. package/lib/types/client/checkout.d.ts.map +1 -1
  122. package/lib/types/client/code-selection.d.ts.map +1 -1
  123. package/lib/types/client/code-selection.js.map +1 -1
  124. package/lib/types/client/forge-copy.d.ts +8 -1
  125. package/lib/types/client/forge-copy.d.ts.map +1 -1
  126. package/lib/types/client/forge-copy.js.map +1 -1
  127. package/lib/types/client/format.d.ts +1 -1
  128. package/lib/types/client/format.d.ts.map +1 -1
  129. package/lib/types/client/format.js.map +1 -1
  130. package/lib/types/client/glyphs.d.ts +36 -1
  131. package/lib/types/client/glyphs.d.ts.map +1 -1
  132. package/lib/types/client/glyphs.js.map +1 -1
  133. package/lib/types/client/highlight-context.d.ts +1 -1
  134. package/lib/types/client/highlight-context.d.ts.map +1 -1
  135. package/lib/types/client/host-settings-form.d.ts +69 -0
  136. package/lib/types/client/host-settings-form.d.ts.map +1 -0
  137. package/lib/types/client/host-settings-form.js.map +1 -0
  138. package/lib/types/client/host-sign-in.d.ts +31 -0
  139. package/lib/types/client/host-sign-in.d.ts.map +1 -0
  140. package/lib/types/client/host-sign-in.js.map +1 -0
  141. package/lib/types/client/index.d.ts +1 -2
  142. package/lib/types/client/index.d.ts.map +1 -1
  143. package/lib/types/client/index.js.map +1 -1
  144. package/lib/types/client/local-writes.d.ts +47 -0
  145. package/lib/types/client/local-writes.d.ts.map +1 -0
  146. package/lib/types/client/local-writes.js.map +1 -0
  147. package/lib/types/client/locales.d.ts +111 -13
  148. package/lib/types/client/locales.d.ts.map +1 -1
  149. package/lib/types/client/locales.js.map +1 -1
  150. package/lib/types/client/minute-clock.d.ts +7 -0
  151. package/lib/types/client/minute-clock.d.ts.map +1 -0
  152. package/lib/types/client/minute-clock.js.map +1 -0
  153. package/lib/types/client/mount.d.ts +15 -1
  154. package/lib/types/client/mount.d.ts.map +1 -1
  155. package/lib/types/client/mount.js.map +1 -1
  156. package/lib/types/client/review-page/ReviewActivity.d.ts +44 -0
  157. package/lib/types/client/review-page/ReviewActivity.d.ts.map +1 -0
  158. package/lib/types/client/review-page/ReviewActivity.js.map +1 -0
  159. package/lib/types/client/review-page/ReviewChat.d.ts +1 -1
  160. package/lib/types/client/review-page/ReviewChat.d.ts.map +1 -1
  161. package/lib/types/client/review-page/ReviewChat.js.map +1 -1
  162. package/lib/types/client/review-page/ReviewDetail.d.ts +26 -9
  163. package/lib/types/client/review-page/ReviewDetail.d.ts.map +1 -1
  164. package/lib/types/client/review-page/ReviewDetail.js.map +1 -1
  165. package/lib/types/client/review-page/ReviewLabels.d.ts +1 -1
  166. package/lib/types/client/review-page/ReviewLabels.d.ts.map +1 -1
  167. package/lib/types/client/review-page/ReviewLabels.js.map +1 -1
  168. package/lib/types/client/review-page/ReviewList.d.ts +10 -8
  169. package/lib/types/client/review-page/ReviewList.d.ts.map +1 -1
  170. package/lib/types/client/review-page/ReviewList.js.map +1 -1
  171. package/lib/types/client/review-page/ReviewNav.d.ts +1 -1
  172. package/lib/types/client/review-page/ReviewNav.d.ts.map +1 -1
  173. package/lib/types/client/review-page/ReviewPage.d.ts +17 -14
  174. package/lib/types/client/review-page/ReviewPage.d.ts.map +1 -1
  175. package/lib/types/client/review-page/ReviewPage.js.map +1 -1
  176. package/lib/types/client/review-page/ReviewSkeleton.d.ts +26 -0
  177. package/lib/types/client/review-page/ReviewSkeleton.d.ts.map +1 -0
  178. package/lib/types/client/review-page/ReviewSkeleton.js.map +1 -0
  179. package/lib/types/client/review-page/ReviewStatus.d.ts +19 -13
  180. package/lib/types/client/review-page/ReviewStatus.d.ts.map +1 -1
  181. package/lib/types/client/review-page/ReviewStatus.js.map +1 -1
  182. package/lib/types/client/review-page/review-activity.d.ts +37 -0
  183. package/lib/types/client/review-page/review-activity.d.ts.map +1 -0
  184. package/lib/types/client/review-page/review-activity.js.map +1 -0
  185. package/lib/types/client/review-page/review-lists.d.ts +48 -13
  186. package/lib/types/client/review-page/review-lists.d.ts.map +1 -1
  187. package/lib/types/client/review-page/review-lists.js.map +1 -1
  188. package/lib/types/client/review-page/review-mount.d.ts +3 -1
  189. package/lib/types/client/review-page/review-mount.d.ts.map +1 -1
  190. package/lib/types/client/review-page/review-mount.js.map +1 -1
  191. package/lib/types/client/review-page/review-store.d.ts +19 -9
  192. package/lib/types/client/review-page/review-store.d.ts.map +1 -1
  193. package/lib/types/client/review-page/review-store.js.map +1 -1
  194. package/lib/types/client/review-queue.d.ts +1 -1
  195. package/lib/types/client/review-queue.d.ts.map +1 -1
  196. package/lib/types/client/review-queue.js.map +1 -1
  197. package/lib/types/client/review-threads.d.ts +15 -8
  198. package/lib/types/client/review-threads.d.ts.map +1 -1
  199. package/lib/types/client/review-threads.js.map +1 -1
  200. package/lib/types/client/review.d.ts +12 -1
  201. package/lib/types/client/review.d.ts.map +1 -1
  202. package/lib/types/client/review.js.map +1 -1
  203. package/lib/types/client/row-form-labels.d.ts +12 -0
  204. package/lib/types/client/row-form-labels.d.ts.map +1 -0
  205. package/lib/types/client/row-form-labels.js.map +1 -0
  206. package/lib/types/client/session-list.d.ts +1 -1
  207. package/lib/types/client/session-list.d.ts.map +1 -1
  208. package/lib/types/client/slots.d.ts +1 -1
  209. package/lib/types/client/slots.d.ts.map +1 -1
  210. package/lib/types/client/source.d.ts +1 -1
  211. package/lib/types/client/source.d.ts.map +1 -1
  212. package/lib/types/client/status.d.ts +7 -6
  213. package/lib/types/client/status.d.ts.map +1 -1
  214. package/lib/types/client/status.js.map +1 -1
  215. package/lib/types/client/thread-state.d.ts +2 -2
  216. package/lib/types/client/thread-state.d.ts.map +1 -1
  217. package/lib/types/client/thread-state.js.map +1 -1
  218. package/lib/types/client/toolbar-fold.d.ts +16 -6
  219. package/lib/types/client/toolbar-fold.d.ts.map +1 -1
  220. package/lib/types/client/toolbar-fold.js.map +1 -1
  221. package/lib/types/client/worktree-settings-form.d.ts +1 -1
  222. package/lib/types/client/worktree-settings-form.d.ts.map +1 -1
  223. package/lib/types/client/worktree-settings-form.js.map +1 -1
  224. package/lib/types/diff.d.ts.map +1 -1
  225. package/lib/types/diff.js.map +1 -1
  226. package/lib/types/git.d.ts +22 -0
  227. package/lib/types/git.d.ts.map +1 -1
  228. package/lib/types/git.js.map +1 -1
  229. package/lib/types/index.d.ts +137 -36
  230. package/lib/types/index.d.ts.map +1 -1
  231. package/lib/types/index.js.map +1 -1
  232. package/lib/types/local-diff.d.ts +81 -23
  233. package/lib/types/local-diff.d.ts.map +1 -1
  234. package/lib/types/local-diff.js.map +1 -1
  235. package/lib/types/local-write.d.ts +44 -0
  236. package/lib/types/local-write.d.ts.map +1 -0
  237. package/lib/types/local-write.js.map +1 -0
  238. package/lib/types/panel.js.map +1 -1
  239. package/lib/types/parse.d.ts +12 -3
  240. package/lib/types/parse.d.ts.map +1 -1
  241. package/lib/types/parse.js.map +1 -1
  242. package/lib/types/restore.d.ts +12 -0
  243. package/lib/types/restore.d.ts.map +1 -0
  244. package/lib/types/restore.js.map +1 -0
  245. package/lib/types/types.d.ts +128 -13
  246. package/lib/types/types.d.ts.map +1 -1
  247. package/lib/types/viewer-lists.d.ts +22 -13
  248. package/lib/types/viewer-lists.d.ts.map +1 -1
  249. package/lib/types/viewer-lists.js.map +1 -1
  250. package/lib/types/worktree.js.map +1 -1
  251. package/package.json +62 -58
  252. package/src/client/ActionToast.tsx +2 -2
  253. package/src/client/BaseMenu.module.css +15 -3
  254. package/src/client/BaseMenu.tsx +25 -88
  255. package/src/client/BranchPicker.tsx +170 -0
  256. package/src/client/ChangeRequestCard.tsx +194 -70
  257. package/src/client/ChangeRequestOverview.tsx +194 -82
  258. package/src/client/ChangeRequestsSection.tsx +45 -14
  259. package/src/client/ChangeStatus.module.css +70 -0
  260. package/src/client/ChangeStatus.tsx +104 -0
  261. package/src/client/ChangedFiles.tsx +22 -9
  262. package/src/client/ChangesLoading.tsx +1 -1
  263. package/src/client/ChangesTab.module.css +181 -33
  264. package/src/client/ChangesTab.tsx +499 -183
  265. package/src/client/ChangesTabTitle.tsx +2 -2
  266. package/src/client/CommitMenu.tsx +83 -42
  267. package/src/client/CopyCommandButton.tsx +25 -0
  268. package/src/client/DiffFile.tsx +147 -29
  269. package/src/client/EnvironmentRows.tsx +34 -28
  270. package/src/client/FileLabel.module.css +16 -18
  271. package/src/client/FileLabel.tsx +16 -32
  272. package/src/client/Forge.module.css +26 -6
  273. package/src/client/HeadMenu.tsx +69 -0
  274. package/src/client/HostSettings.module.css +194 -0
  275. package/src/client/HostSettings.tsx +194 -0
  276. package/src/client/LensFilter.tsx +13 -11
  277. package/src/client/ReasonButton.tsx +1 -1
  278. package/src/client/RefreshGlyph.tsx +1 -1
  279. package/src/client/ReviewComposer.tsx +31 -19
  280. package/src/client/ReviewControls.tsx +18 -9
  281. package/src/client/ReviewThread.tsx +65 -23
  282. package/src/client/ReviewThreads.tsx +133 -38
  283. package/src/client/SessionHoverForge.tsx +2 -2
  284. package/src/client/SessionRowForge.tsx +2 -2
  285. package/src/client/SubmitReview.tsx +7 -5
  286. package/src/client/ThreadList.module.css +4 -3
  287. package/src/client/ThreadList.tsx +11 -8
  288. package/src/client/ViewOptionsMenu.tsx +12 -10
  289. package/src/client/WorktreeNameDialog.tsx +17 -13
  290. package/src/client/WorktreeProgress.tsx +13 -11
  291. package/src/client/WorktreeSettings.tsx +8 -14
  292. package/src/client/WorktreeToggle.tsx +67 -37
  293. package/src/client/annotations.ts +1 -1
  294. package/src/client/branch-search.tsx +2 -2
  295. package/src/client/changes-address.ts +1 -1
  296. package/src/client/changes-service.ts +1 -1
  297. package/src/client/changes-store.ts +57 -10
  298. package/src/client/checkout.ts +1 -1
  299. package/src/client/code-selection.ts +3 -1
  300. package/src/client/forge-copy.ts +11 -1
  301. package/src/client/format.ts +2 -2
  302. package/src/client/glyphs.tsx +72 -5
  303. package/src/client/highlight-context.ts +1 -1
  304. package/src/client/host-settings-form.ts +115 -0
  305. package/src/client/host-sign-in.ts +46 -0
  306. package/src/client/index.ts +1 -2
  307. package/src/client/local-writes.ts +129 -0
  308. package/src/client/locales.ts +881 -97
  309. package/src/client/minute-clock.ts +19 -0
  310. package/src/client/mount.ts +121 -57
  311. package/src/client/review-page/ReviewActivity.tsx +406 -0
  312. package/src/client/review-page/ReviewChat.tsx +48 -19
  313. package/src/client/review-page/ReviewDetail.tsx +246 -78
  314. package/src/client/review-page/ReviewLabels.tsx +2 -2
  315. package/src/client/review-page/ReviewList.tsx +173 -151
  316. package/src/client/review-page/ReviewNav.tsx +1 -1
  317. package/src/client/review-page/ReviewPage.module.css +571 -23
  318. package/src/client/review-page/ReviewPage.tsx +84 -53
  319. package/src/client/review-page/ReviewSkeleton.tsx +108 -0
  320. package/src/client/review-page/ReviewStatus.tsx +74 -44
  321. package/src/client/review-page/review-activity.ts +64 -0
  322. package/src/client/review-page/review-lists.ts +85 -22
  323. package/src/client/review-page/review-mount.ts +24 -7
  324. package/src/client/review-page/review-store.ts +24 -7
  325. package/src/client/review-queue.ts +7 -3
  326. package/src/client/review-threads.ts +24 -12
  327. package/src/client/review.ts +20 -2
  328. package/src/client/row-form-labels.ts +17 -0
  329. package/src/client/session-list.ts +1 -1
  330. package/src/client/slots.ts +1 -1
  331. package/src/client/source.ts +1 -1
  332. package/src/client/status.ts +20 -9
  333. package/src/client/thread-state.ts +8 -7
  334. package/src/client/toolbar-fold.ts +59 -14
  335. package/src/client/worktree-settings-form.ts +1 -1
  336. package/src/diff.ts +8 -5
  337. package/src/git.ts +31 -1
  338. package/src/index.ts +319 -70
  339. package/src/local-diff.ts +151 -48
  340. package/src/local-write.ts +159 -0
  341. package/src/panel.ts +1 -1
  342. package/src/parse.ts +26 -4
  343. package/src/restore.ts +15 -0
  344. package/src/types.ts +121 -17
  345. package/src/viewer-lists.ts +124 -48
  346. package/src/worktree.ts +1 -1
  347. package/lib/types/client/AttentionIndicator.d.ts +0 -22
  348. package/lib/types/client/AttentionIndicator.d.ts.map +0 -1
  349. package/lib/types/client/AttentionIndicator.js.map +0 -1
  350. package/src/client/AttentionIndicator.tsx +0 -37
@@ -1,27 +1,38 @@
1
1
  /**
2
2
  * The review page's detail of one change request: its header with state, repository, labels, title, author, times, and
3
- * branches; the ready-or-merge and more actions; and the summary, changes, and chat tabs. The summary shows the
4
- * description beside the status column.
3
+ * branches; the merge action beside the actions that open the change request on its code host, copy its link, and read
4
+ * it again; and the summary, changes, and chat tabs. The summary shows the description and the activity beside the
5
+ * status column. While the change request is read, a skeleton of the same layout stands in for it. The header starts
6
+ * with the control that hides or shows the list column, or goes back to it where the page shows one column; that
7
+ * control names the page while the list column, whose heading names it, does not show, and its accessible name then
8
+ * starts with that name.
5
9
  */
6
10
 
7
- import { useEffect, useMemo, useState, type ReactNode } from 'react'
11
+ import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react'
8
12
  import clsx from 'clsx'
9
13
  import {
10
- Button, IconChevronLeftOutlineRegular, IconEllipsisOutlineRegular, IconPanelLeftOutlineRegular, MarkdownText, Menu,
11
- StateDot, Tooltip, type MenuEntry,
12
- } from '@deepseek-ai/dsh-client-ui-primitives'
13
- import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
14
- import type { ChangeRequestDescription, ChangeRequestSnapshot, ForgeFailure } from '@deepseek-ai/dsh-experimental-forge/types'
14
+ Button, IconCheckOutlineRegular, IconChevronLeftOutlineRegular, IconCopyOutlineRegular, IconEllipsisOutlineRegular,
15
+ MarkdownText, Menu, Tooltip, type MenuEntry,
16
+ } from '@deepseek-ai/dsh-client-ui-primitives/client'
17
+ import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots/client'
18
+ import type {
19
+ ChangeRequestActivity, ChangeRequestDescription, ChangeRequestSnapshot, ForgeDescription, ForgeFailure,
20
+ } from '@deepseek-ai/dsh-experimental-forge/types'
15
21
  import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol'
16
22
  import type { ForgeReviewChangeRequest } from '../../types.ts'
23
+ import loading from '../ChangesLoading.module.css'
17
24
  import { ChangeRequestPrimary, type ChangeRequestActions } from '../ChangeRequestCard.tsx'
25
+ import { openOnLabel } from '../forge-copy.ts'
18
26
  import { formatAgo } from '../format.ts'
19
- import { ChangeRequestGlyph } from '../glyphs.tsx'
27
+ import { ChangeRequestGlyph, ForgeGlyph, ListPanelGlyph } from '../glyphs.tsx'
28
+ import { RefreshGlyph } from '../RefreshGlyph.tsx'
20
29
  import type { StreamRead } from './host-stream.ts'
21
30
  import type { ForgePanelKey, NS } from '../locales.ts'
22
31
  import { descriptionMarkdown } from './review-lists.ts'
23
32
  import type { ReviewTab } from './review-store.ts'
33
+ import { ReviewActivity } from './ReviewActivity.tsx'
24
34
  import { ReviewLabels } from './ReviewLabels.tsx'
35
+ import { ActivitySkeleton, DescriptionSkeleton, HeaderSkeleton, StatusSkeleton } from './ReviewSkeleton.tsx'
25
36
  import { ReviewStatus } from './ReviewStatus.tsx'
26
37
  import { TONE_LABEL, toneOf } from '../status.ts'
27
38
  import css from './ReviewPage.module.css'
@@ -31,6 +42,9 @@ type Translate = PropsLocale<typeof NS>['t']
31
42
  /** How long before signed image addresses expire the description is read again, in milliseconds. */
32
43
  const IMAGE_RENEWAL_MS = 30_000
33
44
 
45
+ /** How long the copy action shows that it copied, in milliseconds. */
46
+ const COPIED_MS = 1500
47
+
34
48
  const FAILURE: Record<ForgeFailure['code'], ForgePanelKey> = {
35
49
  'not-found': 'reviewPage.notFound',
36
50
  'unauthenticated': 'change.failure.unauthenticated',
@@ -43,8 +57,18 @@ const FAILURE: Record<ForgeFailure['code'], ForgePanelKey> = {
43
57
 
44
58
  const TAB_ORDER: readonly ReviewTab[] = ['summary', 'changes', 'chat']
45
59
 
60
+ /** What the summary tab reads and writes on the code host. */
61
+ export interface ReviewSummaryFace {
62
+ /** Read the description and labels of a change request. */
63
+ readonly readDescription: (url: string, signal: AbortSignal) => Promise<RemoteResult<ChangeRequestDescription>>
64
+ /** Read the activity of a change request; null for a provider that reads none. */
65
+ readonly readActivity: (url: string, signal: AbortSignal) => Promise<RemoteResult<ChangeRequestActivity | null>>
66
+ /** Add a comment to a change request's conversation. */
67
+ readonly addComment: (url: string, body: string) => Promise<RemoteResult<void>>
68
+ }
69
+
46
70
  /** Props of the detail. */
47
- export interface ReviewDetailProps {
71
+ export interface ReviewDetailProps extends ReviewSummaryFace {
48
72
  /** URL of the change request. */
49
73
  readonly url: string
50
74
  /** The change request stream. */
@@ -53,6 +77,8 @@ export interface ReviewDetailProps {
53
77
  readonly tab: ReviewTab
54
78
  /** Show a tab. */
55
79
  readonly onTab: (tab: ReviewTab) => void
80
+ /** Show the changes tab with one commit chosen, named as the activity names it. */
81
+ readonly onOpenCommit: (sha: string) => void
56
82
  /** Whether the list column hides. */
57
83
  readonly listHidden: boolean
58
84
  /** Hide or show the list column. */
@@ -65,14 +91,16 @@ export interface ReviewDetailProps {
65
91
  readonly locale: string
66
92
  /** The card actions, acting on this change request. */
67
93
  readonly actions: ChangeRequestActions
68
- /** Read the description and labels. */
69
- readonly readDescription: (url: string, signal: AbortSignal) => Promise<RemoteResult<ChangeRequestDescription>>
94
+ /** Open the providers' host lists, offered for a URL no provider serves; undefined while they cannot be opened. */
95
+ readonly onAddHost: (() => void) | undefined
70
96
  /** The changes tab's content, kept while the detail shows so pending review comments survive tab switches. */
71
97
  readonly renderChanges: (frame: ForgeReviewChangeRequest) => ReactNode
72
98
  /** The chat tab's content. */
73
99
  readonly renderChat: (frame: ForgeReviewChangeRequest) => ReactNode
74
100
  /** Quotes added to the conversation while the chat tab was not shown. */
75
101
  readonly unseenQuotes: number
102
+ /** Whether the page's primary pointer is coarse, which keeps the reviewer search from focusing its field. */
103
+ readonly coarsePointer: boolean
76
104
  /** Forge panel copy. */
77
105
  readonly t: Translate
78
106
  }
@@ -115,69 +143,138 @@ function useDescription(url: string, updatedAt: string | null, read: ReviewDetai
115
143
  return { description: current?.description ?? null, failure: current?.failure ?? null, retry: () => { setAttempt(value => value + 1) } }
116
144
  }
117
145
 
146
+ /** The button that marks a draft ready for review. */
147
+ function ReadyButton({ frame, markReady, t }: {
148
+ readonly frame: ForgeReviewChangeRequest
149
+ readonly markReady: NonNullable<ChangeRequestActions['markReady']>
150
+ readonly t: Translate
151
+ }) {
152
+ // One request at a time: the action stays disabled until the previous one settles.
153
+ const [busy, setBusy] = useState(false)
154
+ const submit = useCallback((): void => {
155
+ setBusy(true)
156
+ void markReady(frame).finally(() => { setBusy(false) })
157
+ }, [frame, markReady])
158
+ return (
159
+ <Button size="sm" variant="outline" className={css.readyAction} disabled={busy} onClick={submit}>
160
+ {t('change.markReady')}
161
+ </Button>
162
+ )
163
+ }
164
+
118
165
  /** The ready-for-review action of an open draft, when the surface offers it. */
119
166
  function MarkReady({ frame, actions, t }: {
120
167
  readonly frame: ForgeReviewChangeRequest
121
168
  readonly actions: ChangeRequestActions
122
169
  readonly t: Translate
123
170
  }): ReactNode {
124
- // One request at a time: the action stays disabled until the previous one settles.
125
- const [busy, setBusy] = useState(false)
126
171
  const { markReady } = actions
127
172
  if (markReady === undefined) return null
128
173
  return (
129
174
  <div className={css.primary}>
130
- <Button size="sm" variant="outline" className={css.readyAction} disabled={busy} onClick={() => {
131
- setBusy(true)
132
- void markReady(frame).finally(() => { setBusy(false) })
133
- }}>
134
- {t('change.markReady')}
135
- </Button>
175
+ <ReadyButton frame={frame} markReady={markReady} t={t} />
136
176
  </div>
137
177
  )
138
178
  }
139
179
 
140
- /** The more-actions menu: open in the browser, copy the link, and read the status again. */
141
- function MoreMenu({ url, actions, t }: { readonly url: string; readonly actions: ChangeRequestActions; readonly t: Translate }): ReactNode {
180
+ /**
181
+ * The actions that leave the page or read again: open the change request on its code host, copy its link, and read its
182
+ * status again. They show as three icon buttons; where the header is narrow its style shows them folded into one menu
183
+ * instead, so both forms render.
184
+ */
185
+ function LinkActions({ url, forge, actions, onRefresh, t }: {
186
+ readonly url: string
187
+ readonly forge: ForgeDescription | null
188
+ readonly actions: ChangeRequestActions
189
+ /** Read the status again; a promise it returns settles when the read ends. */
190
+ readonly onRefresh: () => void | Promise<void>
191
+ readonly t: Translate
192
+ }): ReactNode {
142
193
  const [open, setOpen] = useState(false)
194
+ const [copied, setCopied] = useState(false)
195
+ const [refreshing, setRefreshing] = useState(false)
196
+ useEffect(() => {
197
+ if (!copied) return
198
+ const timer = setTimeout(() => { setCopied(false) }, COPIED_MS)
199
+ return () => { clearTimeout(timer) }
200
+ }, [copied])
201
+ const openLabel = openOnLabel(t, forge?.label ?? null)
202
+ const copy = useCallback((): void => {
203
+ actions.copyLink(url)
204
+ setCopied(true)
205
+ }, [actions, url])
206
+ const refresh = useCallback((): void => {
207
+ setRefreshing(true)
208
+ void Promise.resolve(onRefresh()).finally(() => { setRefreshing(false) })
209
+ }, [onRefresh])
210
+ const close = useCallback((): void => { setOpen(false) }, [])
211
+ const select = useCallback((id: string): void => {
212
+ setOpen(false)
213
+ if (id === 'open') actions.openLink(url)
214
+ else if (id === 'copy') copy()
215
+ else refresh()
216
+ }, [actions, copy, refresh, url])
143
217
  const items: MenuEntry[] = [
144
- { id: 'open', label: t('change.view') },
218
+ { id: 'open', label: openLabel },
145
219
  { id: 'copy', label: t('change.copy') },
146
220
  { id: 'refresh', label: t('reviewPage.refresh') },
147
221
  ]
148
222
  return (
149
- <Menu
150
- open={open}
151
- onClose={() => { setOpen(false) }}
152
- portal
153
- align="end"
154
- anchor={(
155
- <Tooltip label={t('reviewPage.more')} side="bottom">
156
- <button type="button" className={css.iconButton} aria-label={t('reviewPage.more')} aria-haspopup="menu" aria-expanded={open}
157
- onClick={() => { setOpen(!open) }}>
158
- <IconEllipsisOutlineRegular size={16} />
223
+ <>
224
+ <span className={css.linkActions} data-forge-review-actions="">
225
+ <Tooltip label={openLabel} side="bottom">
226
+ <button type="button" className={css.iconButton} aria-label={openLabel} onClick={() => { actions.openLink(url) }}>
227
+ <ForgeGlyph forge={forge?.forge ?? null} size={16} />
228
+ </button>
229
+ </Tooltip>
230
+ <Tooltip label={t(copied ? 'reviewPage.copied' : 'reviewPage.copyLink')} side="bottom">
231
+ <button type="button" className={css.iconButton} aria-label={t('reviewPage.copyLink')} onClick={copy}>
232
+ {copied ? <IconCheckOutlineRegular size={16} className={css.copied} /> : <IconCopyOutlineRegular size={16} />}
233
+ </button>
234
+ </Tooltip>
235
+ <Tooltip label={t('reviewPage.refresh')} side="bottom" align="end">
236
+ <button type="button" className={css.iconButton} aria-label={t('reviewPage.refresh')} onClick={refresh}>
237
+ <RefreshGlyph busy={refreshing} size={16} />
159
238
  </button>
160
239
  </Tooltip>
161
- )}
162
- items={items}
163
- onSelect={(id) => {
164
- setOpen(false)
165
- if (id === 'open') actions.openLink(url)
166
- else if (id === 'copy') actions.copyLink(url)
167
- else actions.retry()
168
- }}
169
- />
240
+ </span>
241
+ <span className={css.moreAction}>
242
+ <Menu
243
+ open={open}
244
+ onClose={close}
245
+ portal
246
+ align="end"
247
+ anchor={(
248
+ <Tooltip label={t('reviewPage.more')} side="bottom">
249
+ <button type="button" className={css.iconButton} aria-label={t('reviewPage.more')} aria-haspopup="menu" aria-expanded={open}
250
+ onClick={() => { setOpen(!open) }}>
251
+ <IconEllipsisOutlineRegular size={16} />
252
+ </button>
253
+ </Tooltip>
254
+ )}
255
+ items={items}
256
+ onSelect={select}
257
+ />
258
+ </span>
259
+ </>
170
260
  )
171
261
  }
172
262
 
173
- /** The summary tab: the description beside the card rows. */
174
- function Summary({ frame, snapshot, description, now, locale, actions, t }: {
263
+ /** The summary tab: the description and the activity beside the card rows. */
264
+ function Summary({
265
+ frame, snapshot, description, readActivity, addComment, onOpenChanges, onOpenCommit, now, locale, actions, coarsePointer, t,
266
+ }: {
175
267
  readonly frame: ForgeReviewChangeRequest
176
268
  readonly snapshot: ChangeRequestSnapshot
177
269
  readonly description: ReturnType<typeof useDescription>
270
+ readonly readActivity: ReviewDetailProps['readActivity']
271
+ readonly addComment: ReviewDetailProps['addComment']
272
+ readonly onOpenChanges: () => void
273
+ readonly onOpenCommit: ReviewDetailProps['onOpenCommit']
178
274
  readonly now: number
179
275
  readonly locale: string
180
276
  readonly actions: ChangeRequestActions
277
+ readonly coarsePointer: boolean
181
278
  readonly t: Translate
182
279
  }): ReactNode {
183
280
  const labels = useMemo(() => ({
@@ -193,23 +290,30 @@ function Summary({ frame, snapshot, description, now, locale, actions, t }: {
193
290
  const name = t('change.number', { number: frame.ref.number })
194
291
  return (
195
292
  <div className={css.summary}>
196
- <section className={css.document} aria-label={t('reviewPage.description')}>
197
- <h3 className={css.caption}>{t('reviewPage.description')}</h3>
198
- {markdown === null
199
- ? description.failure === null
200
- ? <StateDot state="ongoing" />
201
- : (
202
- <div className={css.notice} role="status">
203
- <span>{t('reviewPage.descriptionFailed', { message: description.failure })}</span>
204
- <Button size="sm" variant="outline" onClick={description.retry}>{t('retry')}</Button>
205
- </div>
206
- )
207
- : markdown.trim() === ''
208
- ? <p className={css.muted}>{t('reviewPage.descriptionEmpty')}</p>
209
- : <MarkdownText text={markdown} labels={labels} omitHtml />}
210
- </section>
293
+ <div className={css.document}>
294
+ <section aria-label={t('reviewPage.description')}>
295
+ <h3 className={css.caption}>{t('reviewPage.description')}</h3>
296
+ {markdown === null
297
+ ? description.failure === null
298
+ ? <DescriptionSkeleton />
299
+ : (
300
+ <div className={css.notice} role="status">
301
+ <span>{t('reviewPage.descriptionFailed', { message: description.failure })}</span>
302
+ <Button size="sm" variant="outline" onClick={description.retry}>{t('retry')}</Button>
303
+ </div>
304
+ )
305
+ : markdown.trim() === ''
306
+ ? <p className={css.muted}>{t('reviewPage.descriptionEmpty')}</p>
307
+ : <MarkdownText text={markdown} labels={labels} omitHtml />}
308
+ </section>
309
+ {/* A submitted review or a new comment changes the activity, and each moves one of the two values. */}
310
+ <ReviewActivity url={frame.url} revision={`${snapshot.updatedAt}\n${frame.reviewRevision}`} forge={frame.forge?.label ?? null}
311
+ read={readActivity} comment={addComment} onOpenChanges={onOpenChanges} onOpenCommit={onOpenCommit} openLink={actions.openLink}
312
+ now={now} markdown={labels} t={t} />
313
+ </div>
211
314
  <aside className={css.facts} aria-label={t('reviewPage.status')}>
212
- <ReviewStatus frame={frame} snapshot={snapshot} name={name} now={now} actions={actions} locale={locale} t={t} />
315
+ <ReviewStatus frame={frame} snapshot={snapshot} name={name} now={now} actions={actions} locale={locale}
316
+ coarsePointer={coarsePointer} t={t} />
213
317
  </aside>
214
318
  </div>
215
319
  )
@@ -217,49 +321,107 @@ function Summary({ frame, snapshot, description, now, locale, actions, t }: {
217
321
 
218
322
  /**
219
323
  * Render the detail of one change request.
220
- * @param props - the change request stream, the tab, actions, and copy.
324
+ * @param props - the change request stream, the tab, actions, the pointer accuracy, and copy.
221
325
  * @returns the detail.
222
326
  */
223
327
  export function ReviewDetail({
224
- url, read, tab, onTab, listHidden, onToggleList, onBack, now, locale, actions, readDescription, renderChanges, renderChat, unseenQuotes,
225
- t,
328
+ url, read, tab, onTab, onOpenCommit, listHidden, onToggleList, onBack, now, locale, actions, readDescription, readActivity, addComment,
329
+ onAddHost, renderChanges, renderChat, unseenQuotes, coarsePointer, t,
226
330
  }: ReviewDetailProps): ReactNode {
227
331
  const frame = read.frame
228
332
  const snapshot = frame?.snapshot ?? null
229
333
  const description = useDescription(url, snapshot?.updatedAt ?? null, readDescription)
334
+ // The list column's heading names the page. While that column does not show, the control that brings it back does.
335
+ const pageName = <span className={css.pageName}>{t('reviewPage.title')}</span>
336
+ // A control's accessible name is its content: the page name where it is drawn, then the action, which is never
337
+ // drawn. The space between them is a text node of the control itself, because a name computed from content drops
338
+ // the white space at the edges of each child and joins inline children without any.
339
+ const action = (text: string): ReactNode => <>{' '}<span className={css.visuallyHidden}>{text}</span></>
340
+ const toggleLabel = t(listHidden ? 'reviewPage.showList' : 'reviewPage.hideList')
230
341
  const listToggle = (
231
342
  <>
232
- <button type="button" className={clsx(css.iconButton, css.backButton)} aria-label={t('reviewPage.back')} onClick={onBack}>
343
+ <button type="button" className={clsx(css.iconButton, css.backButton, css.namedButton)} onClick={onBack}>
233
344
  <IconChevronLeftOutlineRegular size={16} />
345
+ {pageName}
346
+ {action(t('reviewPage.back'))}
234
347
  </button>
235
- <Tooltip label={t(listHidden ? 'reviewPage.showList' : 'reviewPage.hideList')} side="bottom">
236
- <button type="button" className={clsx(css.iconButton, css.listToggle)} aria-pressed={!listHidden}
237
- aria-label={t(listHidden ? 'reviewPage.showList' : 'reviewPage.hideList')} onClick={onToggleList}>
238
- <IconPanelLeftOutlineRegular size={16} />
348
+ <Tooltip label={toggleLabel} side="bottom">
349
+ <button type="button" className={clsx(css.iconButton, css.listToggle, listHidden && css.namedButton)} aria-pressed={!listHidden}
350
+ onClick={onToggleList}>
351
+ <ListPanelGlyph />
352
+ {listHidden && pageName}
353
+ {action(toggleLabel)}
239
354
  </button>
240
355
  </Tooltip>
241
356
  </>
242
357
  )
358
+ const forge = frame?.forge ?? null
359
+ const retryDetail = useCallback((): void => { void (read.stopped !== null ? read.retry : actions.retry)() }, [actions, read])
360
+ const openDetail = useCallback((): void => { actions.openLink(url) }, [actions, url])
361
+ const openChanges = useCallback((): void => { onTab('changes') }, [onTab])
243
362
  if (frame === undefined || snapshot === null) {
244
363
  const failure = frame?.update !== undefined && frame.update !== null && 'failure' in frame.update ? frame.update.failure : undefined
245
- let body: ReactNode = <StateDot state="ongoing" />
364
+ const stopped = read.stopped !== null
365
+ const links = <LinkActions url={url} forge={forge} actions={actions} onRefresh={stopped ? read.retry : actions.retry} t={t} />
366
+ if (!stopped && failure === undefined) {
367
+ // Nothing is read yet: the layout of the detail in skeleton rows, with the actions that need only the URL.
368
+ return (
369
+ <div className={css.detail} data-forge-review-detail={url} aria-busy="true">
370
+ <span className={css.visuallyHidden} role="status">{t('reviewPage.detailLoading')}</span>
371
+ <header className={css.detailHeader}>
372
+ <div className={css.detailBar}>
373
+ {listToggle}
374
+ <span className={clsx(loading.fill, css.skeletonChip)} aria-hidden="true" />
375
+ <span className={clsx(loading.fill, css.skeletonRepository)} aria-hidden="true" />
376
+ <span className={css.labelsSlot} />
377
+ <span className={css.headerActions}>{links}</span>
378
+ </div>
379
+ <HeaderSkeleton />
380
+ </header>
381
+ <div className={css.panel}>
382
+ <div className={css.summary}>
383
+ <div className={css.document}>
384
+ <section aria-label={t('reviewPage.description')}>
385
+ <h3 className={css.caption}>{t('reviewPage.description')}</h3>
386
+ <DescriptionSkeleton />
387
+ </section>
388
+ <section className={css.activity} aria-label={t('reviewPage.activity')}>
389
+ <h3 className={css.caption}>{t('reviewPage.activity')}</h3>
390
+ <ActivitySkeleton />
391
+ </section>
392
+ </div>
393
+ <StatusSkeleton />
394
+ </div>
395
+ </div>
396
+ </div>
397
+ )
398
+ }
399
+ let body: ReactNode
246
400
  if (read.stopped?.code === 'forgePanel/unrecognized-url') {
247
- body = <><p className={css.emptyTitle}>{t('reviewPage.unrecognized')}</p><p className={css.emptyHint}>{t('reviewPage.unrecognizedHint')}</p></>
248
- } else if (read.stopped !== null || failure !== undefined) {
401
+ body = (
402
+ <>
403
+ <p className={css.emptyTitle}>{t('reviewPage.unrecognized')}</p>
404
+ <p className={css.emptyHint}>{t('reviewPage.unrecognizedHint')}</p>
405
+ {onAddHost !== undefined && (
406
+ <div className={css.actions}><Button size="sm" variant="outline" onClick={onAddHost}>{t('reviewPage.addHost')}</Button></div>
407
+ )}
408
+ </>
409
+ )
410
+ } else {
249
411
  body = (
250
412
  <>
251
413
  <p className={css.emptyTitle}>{failure === undefined ? t('reviewPage.loadFailed') : t(FAILURE[failure.code])}</p>
252
414
  {failure !== undefined && failure.message !== '' && <p className={css.emptyHint}>{failure.message}</p>}
253
415
  <div className={css.actions}>
254
- <Button size="sm" variant="outline" onClick={read.stopped === null ? actions.retry : read.retry}>{t('retry')}</Button>
255
- <Button size="sm" variant="outline" onClick={() => { actions.openLink(url) }}>{t('change.view')}</Button>
416
+ <Button size="sm" variant="outline" onClick={retryDetail}>{t('retry')}</Button>
417
+ <Button size="sm" variant="outline" onClick={openDetail}>{openOnLabel(t, forge?.label ?? null)}</Button>
256
418
  </div>
257
419
  </>
258
420
  )
259
421
  }
260
422
  return (
261
423
  <div className={css.detail} data-forge-review-detail={url}>
262
- <div className={css.detailBar}>{listToggle}</div>
424
+ <div className={css.detailBar}>{listToggle}<span className={css.headerActions}>{links}</span></div>
263
425
  <div className={css.centered} role="status">{body}</div>
264
426
  </div>
265
427
  )
@@ -287,7 +449,8 @@ export function ReviewDetail({
287
449
  </span>
288
450
  <a className={css.repository} href={snapshot.url} target="_blank" rel="noreferrer"
289
451
  onClick={(event) => { event.preventDefault(); actions.openLink(snapshot.url) }}>
290
- {`${repository.owner}/${repository.name}`}<span className={css.number}>{name}</span>
452
+ <span className={css.repositoryName}>{`${repository.owner}/${repository.name}`}</span>
453
+ <span className={css.number}>{name}</span>
291
454
  </a>
292
455
  <span className={css.labelsSlot}>
293
456
  {description.description !== null && (
@@ -297,8 +460,11 @@ export function ReviewDetail({
297
460
  <span className={css.headerActions}>
298
461
  {snapshot.state === 'open' && snapshot.draft
299
462
  ? <MarkReady frame={frame} actions={actions} t={t} />
300
- : <ChangeRequestPrimary entry={frame} snapshot={snapshot} name={name} actions={actions} className={css.primary} t={t} />}
301
- <MoreMenu url={snapshot.url} actions={actions} t={t} />
463
+ : (
464
+ <ChangeRequestPrimary entry={frame} snapshot={snapshot} name={name} actions={actions} className={css.primary} blocked
465
+ t={t} />
466
+ )}
467
+ <LinkActions url={snapshot.url} forge={forge} actions={actions} onRefresh={actions.retry} t={t} />
302
468
  </span>
303
469
  </div>
304
470
  <h1 className={css.detailTitle}>{snapshot.title}</h1>
@@ -321,7 +487,9 @@ export function ReviewDetail({
321
487
  <div className={clsx(css.panel, tab !== 'summary' && css.panelFill)} role="tabpanel" id="forge-review-panel"
322
488
  aria-labelledby={`forge-review-tab-${tab}`}>
323
489
  {tab === 'summary' && (
324
- <Summary frame={frame} snapshot={snapshot} description={description} now={now} locale={locale} actions={actions} t={t} />
490
+ <Summary frame={frame} snapshot={snapshot} description={description} readActivity={readActivity} addComment={addComment}
491
+ onOpenChanges={openChanges} onOpenCommit={onOpenCommit} now={now} locale={locale} actions={actions}
492
+ coarsePointer={coarsePointer} t={t} />
325
493
  )}
326
494
  <div className={css.changes} hidden={tab !== 'changes'}>{renderChanges(frame)}</div>
327
495
  {tab === 'chat' && renderChat(frame)}
@@ -4,8 +4,8 @@
4
4
  */
5
5
 
6
6
  import { useLayoutEffect, useRef, useState, type CSSProperties, type ReactNode } from 'react'
7
- import { Tooltip } from '@deepseek-ai/dsh-client-ui-primitives'
8
- import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
7
+ import { Tooltip } from '@deepseek-ai/dsh-client-ui-primitives/client'
8
+ import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots/client'
9
9
  import type { ChangeRequestLabel } from '@deepseek-ai/dsh-experimental-forge/types'
10
10
  import type { NS } from '../locales.ts'
11
11
  import css from './ReviewPage.module.css'