Skip to content

feat: optimize AIAgent components #561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liuxy0551
Copy link
Collaborator

@liuxy0551 liuxy0551 commented May 12, 2025

变更类型

请选择以下选项以描述 PR 的类型:

  • Bug 修复(修复现有问题)
  • 新功能(添加了一个功能)
  • 代码优化(性能改进、代码重构)
  • 文档更新
  • 单测新增或修改
  • 其他(请说明):

相关问题

  • 同步子产品的公共改动

变更内容

  • 其他细节优化

详细描述

对应 Previewer

@liuxy0551 liuxy0551 requested review from mortalYoung and LuckyFBB May 12, 2025 10:49
@liuxy0551 liuxy0551 marked this pull request as draft May 12, 2025 10:49
@liuxy0551 liuxy0551 force-pushed the feat_AIAgent branch 2 times, most recently from bf671a0 to 237f2fe Compare May 19, 2025 06:18

const handleCopy = () => {
setClipboard(text);
onCopy(text);
new CopyUtils().copy(text, () => onCopy(text));
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议把 copy 的改动单独拎出来一个 PR,单独只做一个事情

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已经单独提了一个 PR:#570

@@ -1,5 +1,8 @@
import { MutableRefObject, useEffect, useRef, useState } from 'react';

/**
* 自动观察元素是否可见,处理元素是否进入可是区域
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

注释一致,有需要单独修改

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个是 hooks 也是 AI 相关的,在当前 PR 应该算是合适的

@liuxy0551 liuxy0551 marked this pull request as ready for review May 28, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants