@vertesia/ui 0.79.0 → 0.79.1

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 (280) hide show
  1. package/lib/esm/core/components/Panel.js +8 -0
  2. package/lib/esm/core/components/Panel.js.map +1 -0
  3. package/lib/esm/core/components/SelectBox.js +1 -1
  4. package/lib/esm/core/components/SelectBox.js.map +1 -1
  5. package/lib/esm/core/components/SidePanel.js +2 -2
  6. package/lib/esm/core/components/SidePanel.js.map +1 -1
  7. package/lib/esm/core/components/index.js +1 -1
  8. package/lib/esm/core/components/index.js.map +1 -1
  9. package/lib/esm/core/components/shadcn/breadcrumb.js +29 -8
  10. package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -1
  11. package/lib/esm/core/components/shadcn/button.js +3 -2
  12. package/lib/esm/core/components/shadcn/button.js.map +1 -1
  13. package/lib/esm/core/components/shadcn/filters/filterBar.js +2 -2
  14. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
  15. package/lib/esm/core/components/shadcn/index.js +1 -0
  16. package/lib/esm/core/components/shadcn/index.js.map +1 -1
  17. package/lib/esm/core/components/shadcn/input.js +4 -1
  18. package/lib/esm/core/components/shadcn/input.js.map +1 -1
  19. package/lib/esm/core/components/shadcn/resizeable.js +2 -2
  20. package/lib/esm/core/components/shadcn/resizeable.js.map +1 -1
  21. package/lib/esm/core/components/shadcn/selectBox.js +15 -9
  22. package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
  23. package/lib/esm/core/components/shadcn/tabs.js +10 -3
  24. package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
  25. package/lib/esm/core/components/shadcn/textarea.js +7 -0
  26. package/lib/esm/core/components/shadcn/textarea.js.map +1 -0
  27. package/lib/esm/core/hooks/CompositeState.js +139 -1
  28. package/lib/esm/core/hooks/CompositeState.js.map +1 -1
  29. package/lib/esm/core/hooks/index.js +1 -0
  30. package/lib/esm/core/hooks/index.js.map +1 -1
  31. package/lib/esm/core/hooks/useScrollableSearch.js +92 -0
  32. package/lib/esm/core/hooks/useScrollableSearch.js.map +1 -0
  33. package/lib/esm/env/index.js +1 -1
  34. package/lib/esm/env/index.js.map +1 -1
  35. package/lib/esm/features/agent/PayloadBuilder.js +80 -55
  36. package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
  37. package/lib/esm/features/agent/chat/ModernAgentConversation.js +22 -24
  38. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
  39. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +2 -3
  40. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
  41. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +2 -2
  42. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
  43. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +15 -20
  44. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
  45. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +1 -0
  46. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -1
  47. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +3 -3
  48. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -1
  49. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +6 -6
  50. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
  51. package/lib/esm/features/facets/CollectionsFacetsNav.js +19 -0
  52. package/lib/esm/features/facets/CollectionsFacetsNav.js.map +1 -1
  53. package/lib/esm/features/facets/InteractionsFacetsNav.js +9 -3
  54. package/lib/esm/features/facets/InteractionsFacetsNav.js.map +1 -1
  55. package/lib/esm/features/facets/utils/VTypeFacet.js +4 -1
  56. package/lib/esm/features/facets/utils/VTypeFacet.js.map +1 -1
  57. package/lib/esm/features/layout/GenericPageNavHeader.js +58 -5
  58. package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -1
  59. package/lib/esm/features/store/collections/BrowseCollectionView.js +3 -0
  60. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
  61. package/lib/esm/features/store/collections/CreateCollection.js +2 -2
  62. package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
  63. package/lib/esm/features/store/collections/EditCollectionView.js +29 -30
  64. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
  65. package/lib/esm/features/store/collections/SelectCollection.js +46 -45
  66. package/lib/esm/features/store/collections/SelectCollection.js.map +1 -1
  67. package/lib/esm/features/store/objects/DocumentSearchResults.js +35 -9
  68. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
  69. package/lib/esm/features/store/objects/DocumentTable.js +6 -6
  70. package/lib/esm/features/store/objects/DocumentTable.js.map +1 -1
  71. package/lib/esm/features/store/objects/components/ContentOverview.js +158 -114
  72. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
  73. package/lib/esm/features/store/objects/components/DocumentIcon.js +5 -3
  74. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -1
  75. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +11 -2
  76. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -1
  77. package/lib/esm/features/store/objects/components/useDownloadObject.js +2 -2
  78. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +1 -1
  79. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +13 -1
  80. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +1 -1
  81. package/lib/esm/features/store/objects/layout/documentLayout.js +5 -5
  82. package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -1
  83. package/lib/esm/features/store/objects/layout/renderers.js +28 -12
  84. package/lib/esm/features/store/objects/layout/renderers.js.map +1 -1
  85. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +5 -1
  86. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
  87. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +1 -1
  88. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -1
  89. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +3 -2
  90. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -1
  91. package/lib/esm/features/store/objects/selection/SelectionActions.js +2 -0
  92. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
  93. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +10 -2
  94. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
  95. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +20 -2
  96. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -1
  97. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +15 -7
  98. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
  99. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +1 -1
  100. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -1
  101. package/lib/esm/features/user/UserInfo.js +2 -0
  102. package/lib/esm/features/user/UserInfo.js.map +1 -1
  103. package/lib/esm/router/HistoryNavigator.js +25 -2
  104. package/lib/esm/router/HistoryNavigator.js.map +1 -1
  105. package/lib/esm/router/Nav.js +3 -3
  106. package/lib/esm/router/Nav.js.map +1 -1
  107. package/lib/esm/session/UserSession.js +1 -0
  108. package/lib/esm/session/UserSession.js.map +1 -1
  109. package/lib/esm/session/UserSessionProvider.js +9 -2
  110. package/lib/esm/session/UserSessionProvider.js.map +1 -1
  111. package/lib/esm/session/auth/composable.js +66 -67
  112. package/lib/esm/session/auth/composable.js.map +1 -1
  113. package/lib/esm/widgets/form/Form.js +17 -30
  114. package/lib/esm/widgets/form/Form.js.map +1 -1
  115. package/lib/esm/widgets/form/FormContext.js +4 -2
  116. package/lib/esm/widgets/form/FormContext.js.map +1 -1
  117. package/lib/esm/widgets/form/ManagedObject.js +4 -0
  118. package/lib/esm/widgets/form/ManagedObject.js.map +1 -1
  119. package/lib/esm/widgets/form/fields.js +4 -3
  120. package/lib/esm/widgets/form/fields.js.map +1 -1
  121. package/lib/esm/widgets/form/inputs.js +2 -0
  122. package/lib/esm/widgets/form/inputs.js.map +1 -1
  123. package/lib/tsconfig.tsbuildinfo +1 -1
  124. package/lib/types/core/components/Panel.d.ts +11 -0
  125. package/lib/types/core/components/Panel.d.ts.map +1 -0
  126. package/lib/types/core/components/SidePanel.d.ts.map +1 -1
  127. package/lib/types/core/components/index.d.ts +1 -1
  128. package/lib/types/core/components/index.d.ts.map +1 -1
  129. package/lib/types/core/components/shadcn/breadcrumb.d.ts +3 -2
  130. package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +1 -1
  131. package/lib/types/core/components/shadcn/button.d.ts.map +1 -1
  132. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
  133. package/lib/types/core/components/shadcn/index.d.ts +1 -0
  134. package/lib/types/core/components/shadcn/index.d.ts.map +1 -1
  135. package/lib/types/core/components/shadcn/input.d.ts.map +1 -1
  136. package/lib/types/core/components/shadcn/selectBox.d.ts +3 -2
  137. package/lib/types/core/components/shadcn/selectBox.d.ts.map +1 -1
  138. package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
  139. package/lib/types/core/components/shadcn/textarea.d.ts +4 -0
  140. package/lib/types/core/components/shadcn/textarea.d.ts.map +1 -0
  141. package/lib/types/core/hooks/CompositeState.d.ts +115 -6
  142. package/lib/types/core/hooks/CompositeState.d.ts.map +1 -1
  143. package/lib/types/core/hooks/index.d.ts +1 -0
  144. package/lib/types/core/hooks/index.d.ts.map +1 -1
  145. package/lib/types/core/hooks/useScrollableSearch.d.ts +82 -0
  146. package/lib/types/core/hooks/useScrollableSearch.d.ts.map +1 -0
  147. package/lib/types/env/index.d.ts +3 -1
  148. package/lib/types/env/index.d.ts.map +1 -1
  149. package/lib/types/features/agent/PayloadBuilder.d.ts +11 -19
  150. package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
  151. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
  152. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +1 -1
  153. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
  154. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
  155. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -1
  156. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -1
  157. package/lib/types/features/facets/CollectionsFacetsNav.d.ts.map +1 -1
  158. package/lib/types/features/facets/InteractionsFacetsNav.d.ts +1 -0
  159. package/lib/types/features/facets/InteractionsFacetsNav.d.ts.map +1 -1
  160. package/lib/types/features/facets/utils/SearchInterface.d.ts +6 -1
  161. package/lib/types/features/facets/utils/SearchInterface.d.ts.map +1 -1
  162. package/lib/types/features/facets/utils/VTypeFacet.d.ts +2 -1
  163. package/lib/types/features/facets/utils/VTypeFacet.d.ts.map +1 -1
  164. package/lib/types/features/layout/GenericPageNavHeader.d.ts +2 -1
  165. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -1
  166. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
  167. package/lib/types/features/store/collections/CreateCollection.d.ts.map +1 -1
  168. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
  169. package/lib/types/features/store/collections/SelectCollection.d.ts +6 -4
  170. package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -1
  171. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
  172. package/lib/types/features/store/objects/DocumentTable.d.ts +4 -0
  173. package/lib/types/features/store/objects/DocumentTable.d.ts.map +1 -1
  174. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
  175. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +3 -1
  176. package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +1 -1
  177. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +1 -1
  178. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +1 -1
  179. package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +1 -1
  180. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +2 -1
  181. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +1 -1
  182. package/lib/types/features/store/objects/layout/documentLayout.d.ts +4 -2
  183. package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +1 -1
  184. package/lib/types/features/store/objects/layout/renderers.d.ts +1 -1
  185. package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -1
  186. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +1 -0
  187. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
  188. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
  189. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
  190. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +1 -0
  191. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +1 -1
  192. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -1
  193. package/lib/types/features/user/UserInfo.d.ts.map +1 -1
  194. package/lib/types/router/HistoryNavigator.d.ts.map +1 -1
  195. package/lib/types/router/Nav.d.ts +2 -1
  196. package/lib/types/router/Nav.d.ts.map +1 -1
  197. package/lib/types/session/UserSession.d.ts.map +1 -1
  198. package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
  199. package/lib/types/session/auth/composable.d.ts.map +1 -1
  200. package/lib/types/widgets/form/Form.d.ts +2 -1
  201. package/lib/types/widgets/form/Form.d.ts.map +1 -1
  202. package/lib/types/widgets/form/FormContext.d.ts +5 -2
  203. package/lib/types/widgets/form/FormContext.d.ts.map +1 -1
  204. package/lib/types/widgets/form/ManagedObject.d.ts.map +1 -1
  205. package/lib/types/widgets/form/fields.d.ts +2 -2
  206. package/lib/types/widgets/form/fields.d.ts.map +1 -1
  207. package/lib/types/widgets/form/inputs.d.ts.map +1 -1
  208. package/lib/vertesia-ui-core.js +1 -1
  209. package/lib/vertesia-ui-core.js.map +1 -1
  210. package/lib/vertesia-ui-env.js +1 -1
  211. package/lib/vertesia-ui-env.js.map +1 -1
  212. package/lib/vertesia-ui-features.js +1 -1
  213. package/lib/vertesia-ui-features.js.map +1 -1
  214. package/lib/vertesia-ui-router.js +1 -1
  215. package/lib/vertesia-ui-router.js.map +1 -1
  216. package/lib/vertesia-ui-session.js +1 -1
  217. package/lib/vertesia-ui-session.js.map +1 -1
  218. package/lib/vertesia-ui-shell.js.map +1 -1
  219. package/lib/vertesia-ui-widgets.js +1 -1
  220. package/lib/vertesia-ui-widgets.js.map +1 -1
  221. package/package.json +166 -166
  222. package/src/core/components/Panel.tsx +34 -0
  223. package/src/core/components/SidePanel.tsx +5 -3
  224. package/src/core/components/index.ts +1 -1
  225. package/src/core/components/shadcn/breadcrumb.tsx +49 -30
  226. package/src/core/components/shadcn/button.tsx +3 -2
  227. package/src/core/components/shadcn/filters/filterBar.tsx +3 -3
  228. package/src/core/components/shadcn/index.ts +2 -1
  229. package/src/core/components/shadcn/input.tsx +10 -7
  230. package/src/core/components/shadcn/resizeable.tsx +4 -4
  231. package/src/core/components/shadcn/selectBox.tsx +87 -67
  232. package/src/core/components/shadcn/tabs.tsx +10 -3
  233. package/src/core/components/shadcn/textarea.tsx +21 -0
  234. package/src/core/hooks/index.ts +1 -0
  235. package/src/core/hooks/useScrollableSearch.tsx +193 -0
  236. package/src/features/agent/chat/ModernAgentConversation.tsx +109 -118
  237. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +2 -22
  238. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +1 -9
  239. package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +39 -55
  240. package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +1 -0
  241. package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +8 -8
  242. package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +8 -8
  243. package/src/features/facets/CollectionsFacetsNav.tsx +21 -0
  244. package/src/features/facets/InteractionsFacetsNav.tsx +13 -3
  245. package/src/features/facets/utils/SearchInterface.tsx +5 -1
  246. package/src/features/facets/utils/VTypeFacet.tsx +6 -2
  247. package/src/features/layout/GenericPageNavHeader.tsx +73 -10
  248. package/src/features/store/collections/BrowseCollectionView.tsx +4 -0
  249. package/src/features/store/collections/CreateCollection.tsx +3 -4
  250. package/src/features/store/collections/EditCollectionView.tsx +91 -85
  251. package/src/features/store/collections/SelectCollection.tsx +105 -49
  252. package/src/features/store/objects/DocumentSearchResults.tsx +117 -51
  253. package/src/features/store/objects/DocumentTable.tsx +14 -4
  254. package/src/features/store/objects/components/ContentOverview.tsx +208 -110
  255. package/src/features/store/objects/components/DocumentIcon.tsx +11 -12
  256. package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +12 -2
  257. package/src/features/store/objects/layout/DocumentTableColumn.tsx +16 -1
  258. package/src/features/store/objects/layout/documentLayout.tsx +7 -5
  259. package/src/features/store/objects/layout/knowledge.md +10 -10
  260. package/src/features/store/objects/layout/renderers.tsx +39 -18
  261. package/src/features/store/objects/search/DocumentSearchContext.ts +6 -1
  262. package/src/features/store/objects/search/DocumentSearchProvider.tsx +1 -1
  263. package/src/features/store/objects/selection/ObjectsActionContext.tsx +3 -2
  264. package/src/features/store/objects/selection/SelectionActions.tsx +2 -0
  265. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +8 -2
  266. package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +22 -2
  267. package/src/features/store/objects/upload/DocumentUploadModal.tsx +18 -9
  268. package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +10 -7
  269. package/src/features/store/types/CreateOrUpdateTypeModal.tsx +1 -1
  270. package/src/router/HistoryNavigator.ts +33 -2
  271. package/src/router/Nav.tsx +4 -3
  272. package/src/widgets/form/Form.tsx +19 -43
  273. package/src/widgets/form/FormContext.ts +5 -2
  274. package/src/widgets/form/fields.tsx +8 -6
  275. package/src/widgets/form/inputs.tsx +1 -0
  276. package/lib/esm/core/components/Textarea.js +0 -15
  277. package/lib/esm/core/components/Textarea.js.map +0 -1
  278. package/lib/types/core/components/Textarea.d.ts +0 -8
  279. package/lib/types/core/components/Textarea.d.ts.map +0 -1
  280. package/src/core/components/Textarea.tsx +0 -25
@@ -1,33 +1,17 @@
1
+ import React, { useEffect, useMemo, useRef, useState } from "react";
2
+ import { Bot, Cpu, SendIcon, XIcon } from "lucide-react";
3
+ import { useUserSession } from "@vertesia/ui/session";
1
4
  import { AsyncExecutionResult, VertesiaClient } from "@vertesia/client";
2
- import {
3
- AgentMessage,
4
- AgentMessageType,
5
- Plan,
6
- UserInputSignal
7
- } from "@vertesia/common";
5
+ import { AgentMessage, AgentMessageType, Plan, UserInputSignal } from "@vertesia/common";
8
6
  import { Button, MessageBox, Spinner, useToast } from "@vertesia/ui/core";
9
- import { useUserSession } from "@vertesia/ui/session";
10
- import {
11
- Bot,
12
- Cpu,
13
- SendIcon,
14
- XIcon
15
- } from "lucide-react";
16
- import React, { useEffect, useMemo, useRef, useState } from "react";
17
- import {
18
- AnimatedThinkingDots,
19
- PulsatingCircle
20
- } from "./AnimatedThinkingDots";
7
+
8
+ import { AnimatedThinkingDots, PulsatingCircle } from "./AnimatedThinkingDots";
21
9
  import AllMessagesMixed from "./ModernAgentOutput/AllMessagesMixed";
22
10
  import Header from "./ModernAgentOutput/Header";
23
11
  import MessageInput from "./ModernAgentOutput/MessageInput";
24
- import PlanPanel from "./ModernAgentOutput/PlanPanel";
25
- import {
26
- getWorkstreamId,
27
- insertMessageInTimeline,
28
- isInProgress,
29
- } from "./ModernAgentOutput/utils";
12
+ import { getWorkstreamId, insertMessageInTimeline, isInProgress } from "./ModernAgentOutput/utils";
30
13
  import { ThinkingMessages } from "./WaitingMessages";
14
+ import InlineSlidingPlanPanel from "./ModernAgentOutput/InlineSlidingPlanPanel";
31
15
 
32
16
  type StartWorkflowFn = (
33
17
  initialMessage?: string,
@@ -177,7 +161,7 @@ function StartWorkflowView({
177
161
  <div className="flex items-center justify-between py-2 px-3 border-b border-gray-100 dark:border-gray-800 bg-white dark:bg-gray-900">
178
162
  <div className="flex items-center space-x-2">
179
163
  <div className="p-1">
180
- <Cpu className="h-3.5 w-3.5 text-gray-400 dark:text-gray-500" />
164
+ <Cpu className="size-3.5 text-muted" />
181
165
  </div>
182
166
  <span className="font-medium text-sm text-gray-700 dark:text-gray-300">
183
167
  {title}
@@ -193,7 +177,7 @@ function StartWorkflowView({
193
177
  title="Close"
194
178
  className="text-slate-500 hover:text-slate-700"
195
179
  >
196
- <XIcon className="h-4 w-4" />
180
+ <XIcon className="size-4" />
197
181
  </Button>
198
182
  )}
199
183
  </div>
@@ -239,7 +223,7 @@ function StartWorkflowView({
239
223
  {isSending ? (
240
224
  <Spinner size="sm" className="mr-1.5" />
241
225
  ) : (
242
- <SendIcon className="h-3.5 w-3.5 mr-1.5" />
226
+ <SendIcon className="size-3.5 mr-1.5" />
243
227
  )}
244
228
  {startButtonText}
245
229
  </Button>
@@ -269,9 +253,7 @@ function ModernAgentConversationInner({
269
253
  const [inputValue, setInputValue] = useState<string>("");
270
254
  const [isSending, setIsSending] = useState(false);
271
255
  const [viewMode, setViewMode] = useState<"stacked" | "sliding">("sliding");
272
- //TODO _setShowPlanPanel state not used
273
- const [showPlanPanel, _setShowPlanPanel] = useState<boolean>(false);
274
- const [showSlidingPanel, setShowSlidingPanel] = useState<boolean>(false);
256
+ const [showSlidingPanel, setShowSlidingPanel] = useState<boolean>(!isModal);
275
257
  // Keep track of multiple plans and their timestamps
276
258
  const [plans, setPlans] = useState<Array<{ plan: Plan; timestamp: number }>>(
277
259
  [],
@@ -602,103 +584,112 @@ function ModernAgentConversationInner({
602
584
  };
603
585
 
604
586
  return (
605
- <div
606
- className={`flex flex-col h-full min-h-0 ${isModal ? "rounded-lg overflow-hidden" : ""}`}
607
- >
608
- <Header
609
- title={actualTitle}
610
- isCompleted={isCompleted}
611
- onClose={onClose}
612
- isModal={isModal}
613
- run={run}
614
- viewMode={viewMode}
615
- onViewModeChange={setViewMode}
616
- showPlanPanel={showSlidingPanel}
617
- hasPlan={plans.length > 0}
618
- onTogglePlanPanel={() => {
619
- setShowSlidingPanel(!showSlidingPanel);
620
- // When opening the plan panel, mark that we've shown it
621
- if (!showSlidingPanel) {
622
- sessionStorage.setItem("plan-panel-shown", "true");
623
- }
624
- }}
625
- onDownload={downloadConversation}
626
- onCopyRunId={copyRunId}
627
- resetWorkflow={resetWorkflow}
628
- />
629
-
630
- {/* Inline Plan Panel - only shown when toggle is clicked */}
631
- {showPlanPanel && !showSlidingPanel && plans.length > 0 && (
632
- <PlanPanel
633
- plan={getActivePlan.plan}
634
- workstreamStatus={getActivePlan.workstreamStatus}
635
- isVisible={true}
636
- />
637
- )}
638
-
639
- {messages.length === 0 && !isCompleted ? (
640
- <div className="flex-1 flex flex-col items-center justify-center h-full text-center py-6 bg-white dark:bg-gray-900">
641
- <div className="bg-white dark:bg-slate-800 p-5 max-w-md border border-blue-200 dark:border-blue-900/50 rounded-lg shadow-sm">
642
- <div className="flex items-center space-x-3 mb-3">
643
- <PulsatingCircle size="sm" color="blue" />
644
- <div className="text-sm text-slate-600 dark:text-slate-300 font-medium">
645
- {ThinkingMessages[thinkingMessageIndex]}
646
- </div>
647
- </div>
648
- <div className="mt-4 flex justify-center">
649
- <AnimatedThinkingDots color="blue" className="mt-1" />
650
- </div>
651
- </div>
652
- </div>
653
- ) : (
654
- <AllMessagesMixed
655
- messages={messages}
656
- bottomRef={bottomRef as React.RefObject<HTMLDivElement>}
657
- viewMode={viewMode}
587
+ <div className="flex gap-2 h-full">
588
+ {/* Conversation Area - responsive width based on panel visibility */}
589
+ <div className={`flex flex-col h-full min-h-0 border-0 ${
590
+ showSlidingPanel ? 'lg:w-2/3 flex-1' : `flex-1 mx-auto ${!isModal ? 'max-w-4xl' : ''}`
591
+ }`}>
592
+ <Header
593
+ title={actualTitle}
658
594
  isCompleted={isCompleted}
659
- plan={getActivePlan.plan}
660
- workstreamStatus={getActivePlan.workstreamStatus}
595
+ onClose={onClose}
596
+ isModal={isModal}
597
+ run={run}
598
+ viewMode={viewMode}
599
+ onViewModeChange={setViewMode}
661
600
  showPlanPanel={showSlidingPanel}
601
+ hasPlan={plans.length > 0}
662
602
  onTogglePlanPanel={() => {
663
- console.log(
664
- "Toggle plan panel called, current state:",
665
- showSlidingPanel,
666
- );
667
603
  setShowSlidingPanel(!showSlidingPanel);
668
- }}
669
- plans={plans}
670
- activePlanIndex={activePlanIndex}
671
- onChangePlan={(index) => setActivePlanIndex(index)}
672
- taskLabels={getActivePlan.plan.plan?.reduce((acc, task) => {
673
- if (task.id && task.goal) {
674
- acc.set(task.id.toString(), task.goal);
604
+ // When opening the plan panel, mark that we've shown it
605
+ if (!showSlidingPanel) {
606
+ sessionStorage.setItem("plan-panel-shown", "true");
675
607
  }
676
- return acc;
677
- }, new Map<string, string>())}
608
+ }}
609
+ onDownload={downloadConversation}
610
+ onCopyRunId={copyRunId}
611
+ resetWorkflow={resetWorkflow}
678
612
  />
679
- )}
680
613
 
681
- {workflowStatus && (
682
- workflowStatus !== "RUNNING" ? (
683
- <MessageBox
684
- status={workflowStatus === "COMPLETED" ? 'success' : 'done'}
685
- icon={null}
686
- className="flex-shrink-0 m-2"
687
- >
688
- This Workflow is {workflowStatus}
689
- </MessageBox>
690
- ) : showInput && (
691
- <MessageInput
692
- value={inputValue}
693
- onChange={setInputValue}
694
- onSend={handleSendMessage}
695
- disabled={false}
696
- isSending={isSending}
614
+ {messages.length === 0 && !isCompleted ? (
615
+ <div className="flex-1 flex flex-col items-center justify-center h-full text-center py-6">
616
+ <div className="p-5 max-w-md border border-info rounded-lg shadow-sm">
617
+ <div className="flex items-center space-x-3 mb-3">
618
+ <PulsatingCircle size="sm" color="blue" />
619
+ <div className="text-sm text-muted font-medium">
620
+ {ThinkingMessages[thinkingMessageIndex]}
621
+ </div>
622
+ </div>
623
+ <div className="mt-4 flex justify-center">
624
+ <AnimatedThinkingDots color="blue" className="mt-1" />
625
+ </div>
626
+ </div>
627
+ </div>
628
+ ) : (
629
+ <AllMessagesMixed
630
+ messages={messages}
631
+ bottomRef={bottomRef as React.RefObject<HTMLDivElement>}
632
+ viewMode={viewMode}
697
633
  isCompleted={isCompleted}
698
- activeTaskCount={getActiveTaskCount()}
699
- placeholder={placeholder}
634
+ plan={getActivePlan.plan}
635
+ workstreamStatus={getActivePlan.workstreamStatus}
636
+ showPlanPanel={showSlidingPanel}
637
+ onTogglePlanPanel={() => {
638
+ console.log(
639
+ "Toggle plan panel called, current state:",
640
+ showSlidingPanel,
641
+ );
642
+ setShowSlidingPanel(!showSlidingPanel);
643
+ }}
644
+ plans={plans}
645
+ activePlanIndex={activePlanIndex}
646
+ onChangePlan={(index) => setActivePlanIndex(index)}
647
+ taskLabels={getActivePlan.plan.plan?.reduce((acc, task) => {
648
+ if (task.id && task.goal) {
649
+ acc.set(task.id.toString(), task.goal);
650
+ }
651
+ return acc;
652
+ }, new Map<string, string>())}
700
653
  />
701
- ))}
654
+ )}
655
+
656
+ {workflowStatus && (
657
+ workflowStatus !== "RUNNING" ? (
658
+ <MessageBox
659
+ status={workflowStatus === "COMPLETED" ? 'success' : 'done'}
660
+ icon={null}
661
+ className="flex-shrink-0 m-2"
662
+ >
663
+ This Workflow is {workflowStatus}
664
+ </MessageBox>
665
+ ) : showInput && (
666
+ <MessageInput
667
+ value={inputValue}
668
+ onChange={setInputValue}
669
+ onSend={handleSendMessage}
670
+ disabled={false}
671
+ isSending={isSending}
672
+ isCompleted={isCompleted}
673
+ activeTaskCount={getActiveTaskCount()}
674
+ placeholder={placeholder}
675
+ />
676
+ ))}
677
+ </div>
678
+
679
+ {/* Plan Panel Area - only rendered when panel should be shown */}
680
+ {showSlidingPanel && (
681
+ <div className="h-full lg:w-1/3 border-l">
682
+ <InlineSlidingPlanPanel
683
+ plan={getActivePlan.plan}
684
+ workstreamStatus={getActivePlan.workstreamStatus}
685
+ isOpen={showSlidingPanel}
686
+ onClose={() => setShowSlidingPanel(false)}
687
+ plans={plans}
688
+ activePlanIndex={activePlanIndex}
689
+ onChangePlan={setActivePlanIndex}
690
+ />
691
+ </div>
692
+ )}
702
693
  </div>
703
694
  );
704
695
  }
@@ -1,6 +1,5 @@
1
1
  import { AgentMessage, AgentMessageType, Plan } from "@vertesia/common";
2
2
  import React, { useEffect, useMemo, useState } from "react";
3
- import InlineSlidingPlanPanel from "./InlineSlidingPlanPanel";
4
3
  import MessageItem from "./MessageItem";
5
4
  import WorkstreamTabs, { extractWorkstreams, filterMessagesByWorkstream } from "./WorkstreamTabs";
6
5
  import { DONE_STATES, getWorkstreamId } from "./utils";
@@ -25,13 +24,6 @@ export default function AllMessagesMixed({
25
24
  bottomRef,
26
25
  viewMode = 'stacked',
27
26
  isCompleted = false,
28
- plan = { plan: [] },
29
- workstreamStatus = new Map(),
30
- showPlanPanel = false,
31
- onTogglePlanPanel = () => { },
32
- plans = [],
33
- activePlanIndex = 0,
34
- onChangePlan = () => { },
35
27
  }: AllMessagesMixedProps) {
36
28
  const containerRef = React.useRef<HTMLDivElement | null>(null);
37
29
  const [activeWorkstream, setActiveWorkstream] = useState<string>("all");
@@ -129,22 +121,10 @@ export default function AllMessagesMixed({
129
121
  ref={containerRef}
130
122
  className="flex-1 min-h-0 h-full overflow-y-auto py-2 px-4 sm:px-6 lg:px-8 flex flex-col relative"
131
123
  data-testid="all-messages-mixed"
132
- style={showPlanPanel ? { paddingRight: "350px" } : {}} // Only make space when panel is showing
133
124
  >
134
- {/* Plan panel - respect showPlanPanel flag */}
135
- <InlineSlidingPlanPanel
136
- plan={plan}
137
- workstreamStatus={workstreamStatus}
138
- isOpen={showPlanPanel}
139
- onClose={onTogglePlanPanel}
140
- plans={plans}
141
- activePlanIndex={activePlanIndex}
142
- onChangePlan={onChangePlan}
143
- />
144
-
145
125
 
146
126
  {/* Workstream tabs with completion indicators */}
147
- <div className="sticky top-0 bg-white dark:bg-gray-900 z-10">
127
+ <div className="sticky top-0 z-10">
148
128
  <WorkstreamTabs
149
129
  workstreams={workstreams}
150
130
  activeWorkstream={activeWorkstream}
@@ -156,7 +136,7 @@ export default function AllMessagesMixed({
156
136
 
157
137
  {displayMessages.length === 0 ? (
158
138
  <div className="flex items-center justify-center h-full text-center py-8">
159
- <div className="flex items-center px-4 py-3 text-gray-500 dark:text-gray-400">
139
+ <div className="flex items-center px-4 py-3 text-muted">
160
140
  {activeWorkstream === "all"
161
141
  ? "Waiting for agent response..."
162
142
  : "No messages in this workstream yet..."}
@@ -1,15 +1,7 @@
1
1
  import { AsyncExecutionResult } from "@vertesia/client";
2
2
  import { Button, Command, CommandGroup, CommandItem, CommandList, Popover, PopoverContent, PopoverTrigger, useToast } from "@vertesia/ui/core";
3
3
  import { useUserSession } from "@vertesia/ui/session";
4
- import {
5
- Bot,
6
- ClipboardList,
7
- CopyIcon,
8
- DownloadCloudIcon,
9
- ExternalLink,
10
- MoreVertical,
11
- XIcon,
12
- } from "lucide-react";
4
+ import { Bot, ClipboardList, CopyIcon, DownloadCloudIcon, ExternalLink, MoreVertical, XIcon } from "lucide-react";
13
5
  import { PayloadBuilderProvider, usePayloadBuilder } from "../../PayloadBuilder";
14
6
  import { getConversationUrl } from "./utils";
15
7
 
@@ -1,4 +1,5 @@
1
1
  import { Plan } from "@vertesia/common";
2
+ import { Badge, Button } from "@vertesia/ui/core";
2
3
  import { AlertCircle, CheckCircle, Circle, Clock, X } from "lucide-react";
3
4
 
4
5
  interface InlinePlanPanelProps {
@@ -27,21 +28,15 @@ export default function InlineSlidingPlanPanel({
27
28
 
28
29
  // Render the normal panel
29
30
  return (
30
- <div
31
- className="fixed top-24 right-8 bottom-24 z-50 bg-white dark:bg-gray-900 shadow-xl border border-gray-200 dark:border-gray-700 overflow-hidden"
32
- style={{ width: "350px" }}
33
- >
34
- <div className="flex items-center justify-between p-3 border-b border-gray-200 dark:border-gray-800">
35
- <h3 className="font-bold text-gray-800 dark:text-gray-200 text-base">
31
+ <div className="h-full shadow-xl border border-muted/20 overflow-hidden">
32
+ <div className="flex items-center justify-between p-3 border-b border-muted/20">
33
+ <h3 className="font-bold text-base">
36
34
  Plan
37
35
  </h3>
38
- <button
39
- className="p-1 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-full text-gray-500 dark:text-gray-400"
40
- onClick={onClose}
41
- >
42
- <X className="h-4 w-4" />
36
+ <Button variant={"ghost"} onClick={onClose} >
37
+ <X className="size-4" />
43
38
  <span className="sr-only">Close</span>
44
- </button>
39
+ </Button>
45
40
  </div>
46
41
  <div
47
42
  className="p-3 overflow-y-auto"
@@ -51,8 +46,8 @@ export default function InlineSlidingPlanPanel({
51
46
  }}
52
47
  >
53
48
  {/* Plan Summary - count only tasks, excluding main workstream */}
54
- <div className="mb-3 p-2 bg-blue-50 dark:bg-blue-900/20 rounded-md border border-blue-100 dark:border-blue-800">
55
- <div className="text-xs font-medium text-blue-700 dark:text-blue-300 mb-1">
49
+ <div className="mb-3 p-2 bg-info rounded-md border border-info">
50
+ <div className="text-xs font-medium text-info mb-1">
56
51
  Task Progress
57
52
  </div>
58
53
  <div className="flex items-center gap-2">
@@ -87,13 +82,13 @@ export default function InlineSlidingPlanPanel({
87
82
 
88
83
  return (
89
84
  <>
90
- <div className="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2">
85
+ <div className="w-full bg-muted rounded-full h-2">
91
86
  <div
92
- className="bg-blue-600 h-2 rounded-full"
87
+ className="bg-background h-2 rounded-full"
93
88
  style={{ width: `${progressPercentage}%` }}
94
89
  />
95
90
  </div>
96
- <span className="text-xs text-gray-600 dark:text-gray-400">
91
+ <span className="text-xs text-muted">
97
92
  {totalTasks > 0 ? `${completedTasks}/${totalTasks}` : "0/0"}
98
93
  </span>
99
94
  </>
@@ -105,39 +100,37 @@ export default function InlineSlidingPlanPanel({
105
100
  {/* Plan selector - only shown when multiple plans exist */}
106
101
  {plans.length > 1 && (
107
102
  <div className="mb-3 flex items-center justify-between">
108
- <button
109
- className="text-xs px-2 py-1 rounded-md bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-300 disabled:opacity-50"
103
+ <Button variant={"ghost"}
110
104
  onClick={() =>
111
105
  onChangePlan(Math.min(plans.length - 1, activePlanIndex + 1))
112
106
  }
113
107
  disabled={activePlanIndex >= plans.length - 1}
114
108
  >
115
109
  Older Plan
116
- </button>
117
- <div className="text-xs text-gray-500 dark:text-gray-400">
110
+ </Button>
111
+ <div className="text-xs text-muted">
118
112
  {plans[activePlanIndex]?.timestamp
119
113
  ? new Date(
120
114
  plans[activePlanIndex].timestamp,
121
115
  ).toLocaleTimeString()
122
116
  : "Unknown time"}
123
117
  </div>
124
- <button
125
- className="text-xs px-2 py-1 rounded-md bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-300 disabled:opacity-50"
118
+ <Button variant={"ghost"}
126
119
  onClick={() => onChangePlan(Math.max(0, activePlanIndex - 1))}
127
120
  disabled={activePlanIndex <= 0}
128
121
  >
129
122
  Newer Plan
130
- </button>
123
+ </Button>
131
124
  </div>
132
125
  )}
133
126
 
134
127
  {/* Detailed Plan Steps */}
135
- <div className="rounded-md border border-gray-200 dark:border-gray-800">
136
- <div className="p-2 border-b border-gray-200 dark:border-gray-800 bg-gray-50 dark:bg-gray-900/50">
128
+ <div className="rounded-md border border-muted/30">
129
+ <div className="p-2 border-b border-muted/30 bg-muted">
137
130
  <div className="font-medium text-xs">Step-by-Step Plan</div>
138
131
  </div>
139
132
 
140
- <div className="divide-y divide-gray-100 dark:divide-gray-800 max-h-[calc(100vh-350px)] overflow-y-auto">
133
+ <div className="divide-y divide-muted/20 max-h-[calc(100vh-350px)] overflow-y-auto">
141
134
  {plan.plan && plan.plan.length > 0 ? (
142
135
  plan.plan.map((task, index) => {
143
136
  // Extract task info with null checks
@@ -156,53 +149,44 @@ export default function InlineSlidingPlanPanel({
156
149
 
157
150
  // Determine status icon and style
158
151
  let StatusIcon = Circle;
159
- let statusColor = "text-gray-400";
160
- let bgColor = "";
152
+ let statusColor = "text-muted";
161
153
 
162
154
  if (status === "in_progress") {
163
155
  StatusIcon = Clock;
164
- statusColor = "text-blue-500";
165
- bgColor = "bg-blue-50/50 dark:bg-blue-900/10";
156
+ statusColor = "text-info";
166
157
  } else if (status === "completed") {
167
158
  StatusIcon = CheckCircle;
168
- statusColor = "text-green-500";
159
+ statusColor = "text-success";
169
160
  }
170
161
 
171
162
  return (
172
- <div key={index} className={`flex p-3 my-1 ${bgColor}`}>
173
- <div className={`mr-2 mt-0.5 flex-shrink-0 ${statusColor}`}>
174
- <StatusIcon className="h-3.5 w-3.5" />
163
+ <div key={index} className={`flex p-3 my-1`}>
164
+ <div className={`mr-2 mt-0.5 flex-shrink-0 text-muted`}>
165
+ {taskId}
175
166
  </div>
176
167
  <div className="w-full">
177
- <div className="text-sm font-medium text-gray-800 dark:text-gray-200 mb-2">
168
+ <div className="text-sm font-medium mb-2 text-muted">
178
169
  {taskGoal}
179
170
  </div>
180
- <div className="mt-1 flex justify-between items-center">
181
- <span className="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300">
182
- {taskId}
183
- </span>
184
- <span
185
- className={`ml-2 text-xs px-2 py-0.5 rounded-full ${status === "completed"
186
- ? "bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400"
187
- : status === "in_progress"
188
- ? "bg-blue-100 text-blue-600 dark:bg-blue-900/30 dark:text-blue-400"
189
- : "bg-gray-100 text-gray-500 dark:bg-gray-800 dark:text-gray-400"
190
- }`}
191
- >
171
+ <div className="mt-1 flex justify-end items-center">
172
+ <div className={`mr-2 mt-0.5 flex-shrink-0 ${statusColor}`}>
173
+ <StatusIcon className="size-3.5" />
174
+ </div>
175
+ <Badge variant={status === "completed" ? "success" : status === "in_progress" ? "info" : "default"}>
192
176
  {status === "completed"
193
177
  ? "Completed"
194
178
  : status === "in_progress"
195
179
  ? "In Progress"
196
180
  : "Pending"}
197
- </span>
181
+ </Badge>
198
182
  </div>
199
183
  </div>
200
184
  </div>
201
185
  );
202
186
  })
203
187
  ) : (
204
- <div className="p-3 text-center text-gray-500 dark:text-gray-400 italic">
205
- <AlertCircle className="h-4 w-4 mx-auto mb-2 text-amber-500" />
188
+ <div className="p-3 text-center text-muted italic">
189
+ <AlertCircle className="size-4 mx-auto mb-2 text-attention" />
206
190
  <p className="text-xs">No plan has been detected yet</p>
207
191
  <p className="text-xs mt-1">
208
192
  Plans will appear here when the agent creates one
@@ -242,13 +226,13 @@ export default function InlineSlidingPlanPanel({
242
226
 
243
227
  if (status === "in_progress") {
244
228
  StatusIcon = Clock;
245
- statusColor = "text-blue-500";
246
- statusBg = "bg-blue-100 dark:bg-blue-800/30";
229
+ statusColor = "text-info";
230
+ statusBg = "bg-info/20";
247
231
  statusText = "In Progress";
248
232
  } else if (status === "completed") {
249
233
  StatusIcon = CheckCircle;
250
- statusColor = "text-green-500";
251
- statusBg = "bg-green-100 dark:bg-green-800/30";
234
+ statusColor = "text-success";
235
+ statusBg = "bg-success/20";
252
236
  statusText = "Completed";
253
237
  }
254
238
 
@@ -7,6 +7,7 @@ interface PlanPanelProps {
7
7
  isVisible: boolean;
8
8
  }
9
9
 
10
+ // todo: remove this file
10
11
  export default function PlanPanel({ plan, workstreamStatus, isVisible }: PlanPanelProps) {
11
12
  if (!isVisible) return null;
12
13
 
@@ -12,14 +12,14 @@ interface PlanPanelProps {
12
12
  export default function SlidingPlanPanel({ plan, workstreamStatus, isOpen, onClose }: PlanPanelProps) {
13
13
  return (
14
14
  plan && (
15
- <SlideInPanel isOpen={isOpen} onClose={onClose} title="Agent Plan" width="350px">
15
+ <SlideInPanel isOpen={isOpen} onClose={onClose} title="Agent Plan">
16
16
  {/* Plan Summary */}
17
- <div className="mb-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-md border border-blue-100 dark:border-blue-800">
18
- <div className="text-sm font-medium text-blue-700 dark:text-blue-300 mb-1">Plan Progress</div>
17
+ <div className="mb-4 p-3 bg-info rounded-md border border-info">
18
+ <div className="text-sm font-medium text-info mb-1">Plan Progress</div>
19
19
  <div className="flex items-center gap-2">
20
- <div className="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2.5">
20
+ <div className="w-full bg-muted rounded-full h-2.5">
21
21
  <div
22
- className="bg-blue-600 h-2.5 rounded-full"
22
+ className="bg-info h-2.5 rounded-full"
23
23
  style={{
24
24
  width: `${plan.plan && plan.plan.length
25
25
  ? Math.round(
@@ -34,7 +34,7 @@ export default function SlidingPlanPanel({ plan, workstreamStatus, isOpen, onClo
34
34
  }}
35
35
  />
36
36
  </div>
37
- <span className="text-xs text-gray-600 dark:text-gray-400">
37
+ <span className="text-xs text-muted">
38
38
  {plan.plan && plan.plan.length
39
39
  ? `${Array.from(workstreamStatus.values()).filter((status) => status === "completed").length}/${workstreamStatus.size}`
40
40
  : "0/0"}
@@ -43,8 +43,8 @@ export default function SlidingPlanPanel({ plan, workstreamStatus, isOpen, onClo
43
43
  </div>
44
44
 
45
45
  {/* Detailed Plan Steps */}
46
- <div className="rounded-md border border-gray-200 dark:border-gray-800">
47
- <div className="p-3 border-b border-gray-200 dark:border-gray-800 bg-gray-50 dark:bg-gray-900/50">
46
+ <div className="rounded-md border border-muted">
47
+ <div className="p-3 border-b border-muted bg-muted/50">
48
48
  <div className="font-medium text-sm">Step-by-Step Plan</div>
49
49
  </div>
50
50
 
@@ -62,14 +62,14 @@ export default function WorkstreamTabs({
62
62
  }
63
63
 
64
64
  return (
65
- <div className="flex overflow-x-auto space-x-1 pb-2 mb-2 border-b-2 border-blue-200 dark:border-blue-900 sticky top-0 bg-white dark:bg-gray-900 z-10 pt-1">
65
+ <div className="flex overflow-x-auto space-x-1 mb-2 border-b-2 border-muted/20 sticky top-0 z-10 pt-1">
66
66
  {sortedWorkstreams.map(([id, name]) => (
67
67
  <button
68
68
  key={id}
69
69
  className={`px-3 py-1.5 text-xs font-medium whitespace-nowrap transition-colors flex items-center gap-1.5
70
70
  ${activeWorkstream === id
71
- ? "bg-blue-200 text-blue-800 dark:bg-blue-800 dark:text-blue-200 border-b-2 border-blue-500"
72
- : "text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800/30 border-b-2 border-transparent"
71
+ ? "bg-info text-info border-b-2 border-info"
72
+ : "text-muted hover:bg-muted border-b-2 border-transparent"
73
73
  }`}
74
74
  onClick={() => onSelectWorkstream(id)}
75
75
  title={name.length > 20 ? name : undefined}
@@ -79,10 +79,10 @@ export default function WorkstreamTabs({
79
79
  {count && count.has(id) && count.get(id)! > 0 && (
80
80
  <div className="flex items-center space-x-1">
81
81
  <span
82
- className={`inline-flex items-center justify-center w-4 h-4 text-xs
82
+ className={`inline-flex items-center justify-center size-4 text-xs rounded-full
83
83
  ${activeWorkstream === id
84
- ? "bg-blue-200 text-blue-800 dark:bg-blue-800 dark:text-blue-200"
85
- : "bg-gray-200 text-gray-600 dark:bg-gray-700 dark:text-gray-300"
84
+ ? "bg-info text-info"
85
+ : "bg-muted text-muted"
86
86
  }`}
87
87
  >
88
88
  {count.get(id)}
@@ -91,9 +91,9 @@ export default function WorkstreamTabs({
91
91
  {completionStatus &&
92
92
  id !== "all" &&
93
93
  (completionStatus.get(id) ? (
94
- <CheckCircle className="h-3 w-3 text-green-500" />
94
+ <CheckCircle className="size-3 text-success" />
95
95
  ) : (
96
- <Clock className="h-3 w-3 text-amber-500" />
96
+ <Clock className="size-3 text-attention" />
97
97
  ))}
98
98
  </div>
99
99
  )}