Roo-Code/webview-ui/src/__mocks__
Sam Hoang Van a9c1dad2ce
feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485)
* feat: add MCP viewer and enhanced UI

- Add McpExecutionStatus type with discriminated union for execution states
- Implement McpExecution component with live status updates and collapsible output
- Replace inline MCP UI in ChatRow with dedicated McpExecution component
- Add comprehensive test coverage for useMcpToolTool
- Enhance CodeAccordian to support custom headers
- Improve combineCommandSequences to handle MCP execution flows

* refactor: merge loops in combineCommandSequences for better efficiency

- Reduced from 3 separate loops to 1 main processing loop
- Improved time complexity from O(n²) to O(n)
- Reduced total passes through array from 4 to 2
- Better memory access patterns and cache utilization

* feat: enhance JSON parsing and rendering in McpExecution component

* feat: add mock implementations for react-markdown and remark-gfm

* fix: remove unreachable return statement in ChatRowContent component

* feat(i18n): add execution status messages and error handling for invalid JSON arguments

* test: add parameter validation tests for missing server_name and tool_name

* Update McpExecution component to show server name in header and tool name in approval section

---------

Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-06-12 00:46:07 -04:00
..
@vscode/webview-ui-toolkit Use the Slider component everywhere (#1786) 2025-03-18 15:27:28 -07:00
components/chat Re-work support for reasoning models, including "hybrid" reasoning models (#3870) 2025-05-23 01:40:17 -07:00
i18n Add i18n 2025-03-12 11:23:06 -04:00
utils feat(read_file): enhance file reading capabilities with multi-file support and improved parameter handling (#2886) 2025-05-30 17:09:42 -04:00
lucide-react.ts Marketplace (#4538) 2025-06-11 17:28:12 -04:00
posthog-js.ts Add telemetry and privacy policy 2025-03-07 03:03:44 -05:00
pretty-bytes.js Shadow git checkpoints 2025-02-12 13:17:43 -08:00
react-markdown.tsx feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
remark-gfm.ts feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
shiki.ts feat(read_file): enhance file reading capabilities with multi-file support and improved parameter handling (#2886) 2025-05-30 17:09:42 -04:00
vscrui.ts Use the Slider component everywhere (#1786) 2025-03-18 15:27:28 -07:00