Skip to content

fix: Modify some version issues#1582

Merged
hexqi merged 7 commits intoopentiny:release/v2.8.xfrom
xuanlid:fix/2.8.x
Aug 15, 2025
Merged

fix: Modify some version issues#1582
hexqi merged 7 commits intoopentiny:release/v2.8.xfrom
xuanlid:fix/2.8.x

Conversation

@xuanlid
Copy link
Contributor

@xuanlid xuanlid commented Aug 14, 2025

English | 简体中文

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Background and solution

  1. MCP的市场下添加事件修改
  2. 隐藏MCP下的市场
  3. 隐藏MCP已添加插件删除功能
  4. 隐藏AI对话框顶部的拖动工具条
  5. MCP已添加插件默认展开
  6. 在无痕浏览器粘贴url打开画布,会发现提示错位
  7. tiny-robot版本修改

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

  • Refactor

    • Delay showing help tour steps by 1 second when the tour is inactive for smoother transitions.
    • MCP server list now opens the engine server expanded by default.
    • MCP server status handling improved to mark servers as “added” reliably.
  • Style

    • Scoped style adjustments to target internal containers and hide the dragging handle.
    • MCP Server Picker: market tab hidden; confirmation control in plugin operations hidden; tab navigation width adjusted.
  • Chore

    • Updated robot-related UI library dependencies to a release candidate.

@github-actions github-actions bot added bug Something isn't working release merge to release/ branch, before release period labels Aug 14, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 14, 2025

Walkthrough

Defers toggling the help tour step by 1s when the tour is inactive; updates scoped styles and hides a robot dragging handle; hides the market tab and a popconfirm in the MCP picker; marks MCP servers as added and expands the initial server by default; upgrades three robot deps to 0.3.0-rc.0.

Changes

Cohort / File(s) Summary of Changes
Help tour timing
packages/plugins/help/src/HelpIcon.vue
Defers toggling state.showStep by 1s via setTimeout when the tour is not active; still sets state.helpBox = false in that branch.
Robot UI styling
packages/plugins/robot/src/Main.vue
Changed <style lang="less" scope><style lang="less" scoped> and used a deep selector for .tiny-container; added rule to hide .tr-container__dragging-bar.
MCP server picker UI
packages/plugins/robot/src/mcp/McpServer.vue
Added :show-market-tab="false" to mcp-server-picker, adjusted tab-nav width, and added CSS to hide tiny-popconfirm inside plugin-card__operations for picker items.
MCP state management
packages/plugins/robot/src/mcp/useMcp.ts
Initial in-use MCP server entry now has expanded = true; updateMcpServerStatus sets server.added = added before add/remove logic and subsequent engine updates.
Dependencies
packages/plugins/robot/package.json
Bumped @opentiny/tiny-robot, @opentiny/tiny-robot-kit, and @opentiny/tiny-robot-svgs from 0.3.0-alpha.140.3.0-rc.0.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant HelpIcon
  participant Timer
  participant State

  User->>HelpIcon: trigger help step toggle
  HelpIcon->>State: set helpBox = false
  alt Tour inactive
    HelpIcon->>Timer: setTimeout(1s)
    Timer-->>HelpIcon: timeout
    HelpIcon->>State: toggle showStep
  else Tour active
    HelpIcon->>State: toggle showStep (immediate)
  end
Loading
sequenceDiagram
  participant UI
  participant useMcp
  participant Servers as inUseMcpServers

  UI->>useMcp: updateMcpServerStatus(server, added)
  useMcp->>useMcp: server.added = added
  alt added == true
    useMcp->>Servers: create/push server entry
  else added == false
    useMcp->>Servers: remove server entry
  end
  note over Servers: initial engine server: expanded = true
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15 minutes

Poem

I twitch my whiskers at the UI sky,
A step waits one second before it sighs,
Handles hide and markets nap,
Servers spring open on my map—
A happy hop through code and light. 🥕🐇

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these settings in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d4dab83 and facee36.

📒 Files selected for processing (1)
  • packages/plugins/robot/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • packages/plugins/robot/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: push-check
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🔭 Outside diff range comments (2)
packages/plugins/robot/src/mcp/useMcp.ts (1)

116-145: Align with “expand on add” objective and avoid duplicate installs.

Two improvements suggested:

  • Expand newly added plugins by default (PR objective).
  • Prevent duplicate entries in inUseMcpServers when re-adding the same server.

Apply this diff:

 const updateMcpServerStatus = async (server: PluginInfo, added: boolean) => {
   // 市场添加状态修改
   server.added = added
   if (added) {
+    // Avoid duplicates if the server is already in use
+    const existing = inUseMcpServers.value.find((p) => p.id === server.id)
+    if (existing) {
+      existing.enabled = true
+      existing.added = true
+      existing.expanded = true
+      existing.tools = server.tools || existing.tools || []
+      existing.toolCount = existing.tools?.length || 0
+      if (server.id === ENGINE_MCP_SERVER.id) {
+        await updateEngineTools()
+        updateEngineServer(existing, added)
+      }
+      connectMcpServer(existing)
+      return
+    }
     const newServer: PluginInfo = {
       ...server,
       id: server.id || `mcp-server-${Date.now()}`,
       enabled: true,
       added: true,
-      expanded: false,
+      expanded: true,
       tools: server.tools || [],
       toolCount: server.tools?.length || 0
     }
     inUseMcpServers.value.push(newServer)
     if (server.id === ENGINE_MCP_SERVER.id) {
       await updateEngineTools()
       updateEngineServer(newServer, added)
     }
     // TODO: 连接MCP Server
     connectMcpServer(newServer)

Note: Mutating server.added (the market list item) is fine if the UI expects live reflection; otherwise, consider cloning or synchronizing through a dedicated store action.

packages/plugins/robot/src/mcp/McpServer.vue (1)

18-23: Remove unsupported :show-market-tab prop from McpServerPicker — fix required

Verified: @opentiny/tiny-robot's McpServerPicker does not expose a show-market-tab prop, so that attribute is ignored and should be removed or replaced with a supported workaround.

Files to update:

  • packages/plugins/robot/src/mcp/McpServer.vue (around lines 18–23)

Suggested change (remove the unsupported prop):

    @plugin-expand="handlePluginExpand"
    @plugin-add="updateMcpServerStatus"
    @plugin-toggle="handlePluginToggle"
    @tool-toggle="updateMcpServerToolStatus"
  />

Options:

  • Remove the prop (as above).
  • Hide the market tab with CSS in your app if needed.
  • Create a small wrapper around McpServerPicker to programmatically remove the tab entry.
🧹 Nitpick comments (1)
packages/plugins/robot/src/mcp/McpServer.vue (1)

83-89: Hiding delete popconfirm via CSS is brittle; prefer a prop/slot or narrowed selector.

CSS-based suppression of .tiny-popconfirm under .plugin-card__operations can be fragile against library DOM changes and may hide other confirmations unintentionally. If the picker supports disabling remove actions via props or slots, use that. If not, add a more specific selector or an inline comment explaining the intent.

Example of a narrower selector (adjust if a more specific class exists for “installed” items):

:deep(.mcp-server-picker__content-item.installed) {
  .plugin-card__operations {
    .tiny-popconfirm {
      display: none !important;
    }
  }
}

Add a short comment:
// Hide delete confirmation for installed MCP plugins per product requirements

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1811da2 and d577c20.

📒 Files selected for processing (4)
  • packages/plugins/help/src/HelpIcon.vue (1 hunks)
  • packages/plugins/robot/src/Main.vue (1 hunks)
  • packages/plugins/robot/src/mcp/McpServer.vue (2 hunks)
  • packages/plugins/robot/src/mcp/useMcp.ts (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: push-check
🔇 Additional comments (1)
packages/plugins/robot/src/mcp/useMcp.ts (1)

53-54: Default expand for engine MCP server: LGTM.

Setting expanded: true for the built-in engine server aligns with the “expand by default” objective and improves discoverability.

@hexqi hexqi merged commit 61bee59 into opentiny:release/v2.8.x Aug 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working release merge to release/ branch, before release period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants