Skip to content
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

feat: New Component - ThoughtChain #86

Merged
merged 38 commits into from
Aug 30, 2024
Merged

feat: New Component - ThoughtChain #86

merged 38 commits into from
Aug 30, 2024

Conversation

YumoImer
Copy link
Collaborator

@YumoImer YumoImer commented Aug 20, 2024

🔥 feat: New Component - ThoughtChain
📚 RFC: #80

Summary by CodeRabbit

  • 新功能

    • 引入了 ThoughtChain 组件,用于可视化和管理思维链。
    • 实现了可折叠功能,以便在 ThoughtChain 中更好地组织内容。
    • 添加了 ThoughtChainNode 组件,用于显示思维链中的单个节点。
    • 引入了用于管理折叠动画的功能,增强了用户界面的交互性。
    • 添加了动态状态更新的 status 组件,展示思维链的实时状态变化。
    • 更新了文档以支持 ThoughtChain 组件的多语言描述。
  • 文档

    • 更新了 README 文件,以反映新的品牌名称 @ant-design/x
    • 提供了关于 ThoughtChain 组件的全面文档,包括用例和示例。
  • 错误修复

    • 更新了 favicon URL,以改善应用界面的视觉表现。
  • 杂项

    • 修改了包引用并添加了新依赖,以提高功能和性能。
    • 增强了 ThoughtChain 组件的测试覆盖率,以确保可靠性。

YumoImer and others added 14 commits August 18, 2024 00:03
* docs: Update README-zh_CN.md to reflect Ant Design X

Update `README-zh_CN.md` and `package.json` to reflect Ant Design X.

* **README-zh_CN.md**
  - Update title and description to reflect Ant Design X.
  - Replace all instances of Ant Design with Ant Design X.
  - Update badges and links to point to Ant Design X.
  - Update features to reflect Ant Design X capabilities.
  - Update installation instructions for Ant Design X.
  - Update usage examples to reflect Ant Design X components.

* **package.json**
  - Update `unpkg` path to `dist/antd-x.min.js`.
  - Update `size-limit` path to `dist/antd-x.min.js`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ant-design/x?shareId=XXXX-XXXX-XXXX-XXXX).

* Update README-zh_CN.md

* Update README-zh_CN.md
Update `README.md` to reference "Ant Design X" instead of "Ant Design" and include "@ant-design/x".

* **Title and Description**
  - Change the title to "Ant Design X".
  - Update the description to "Crafting AI-driven interfaces with React, seamlessly integrating smart chat components and API services at your fingertips."

* **Installation Instructions**
  - Update the installation instructions to use "@ant-design/x".

* **Usage Example**
  - Update the usage example to use "@ant-design/x".

* **Links**
  - Update the links to point to the new repository and documentation for "Ant Design X".

* **Features**
  - Update the features section to match the content in `README-zh_CN.md`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ant-design/x?shareId=XXXX-XXXX-XXXX-XXXX).
* docs: update site favicons

* chore(dependencies): add rc-motion
@YumoImer YumoImer requested a review from a team August 20, 2024 12:08
Copy link

github-actions bot commented Aug 20, 2024

Preview is ready

Copy link
Contributor

coderabbitai bot commented Aug 20, 2024

Walkthrough

Walkthrough

最近的更改标志着Ant Design库向@ant-design/x的重大品牌重塑和增强。此次更新引入了ThoughtChain组件,用于可视化代理系统中的动作序列,伴随全面的双语文档、新的演示组件和改进的样式。对AI集成和设计一致性的强调提升了整体用户体验。

Changes

文件 更改摘要
.dumi/preset/components-changelog-*.json "Sender"替换为"ThoughtChain"以反映结构变化并引入新功能。
.dumirc.ts 更新了图标网址以保持品牌一致性。
README-zh_CN.md, README.md antd全面重塑为@ant-design/x,强调AI功能并更新所有相关引用。
components/_util/motion.ts 引入了折叠动画处理程序并定义了SelectCommonPlacement用于样式。
components/thought-chain/demo/*.md ThoughtChain组件的各种功能引入了双语文档。
components/thought-chain/demo/*.tsx 添加了新的演示组件,展示ThoughtChain的基本用法、可折叠性、自定义和状态跟踪。
components/thought-chain/index.*.md 记录了ThoughtChain的功能、用例和API引用,提供中英文版本。
components/thought-chain/style/index.ts ThoughtChain定义了样式和标记,增强了模块化和主题集成。
package.json 更新了分发文件路径并添加了新的动画依赖。
components/thought-chain/__tests__/*.test.ts 引入了新的测试文件以验证ThoughtChain组件的功能和演示测试。

Sequence Diagram(s)

sequenceDiagram
    participant 用户
    participant ThoughtChain
    participant API

    用户->>ThoughtChain: 查看动作序列
    ThoughtChain->>API: 获取动作数据
    API-->>ThoughtChain: 返回动作数据
    ThoughtChain->>用户: 显示带状态的动作
Loading

🐰 在明亮的花园中,
新的思绪链要分享,
颜色鲜艳,步伐清晰,
我们的库欢快跳跃!
拥抱变化,一起玩耍,
@ant-design/x将永远存在! 🌼


Note

Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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>.
    • Generate unit testing code for this file.
    • 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. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

Documentation and Community

  • 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: 6

Outside diff range, codebase verification and nitpick comments (1)
components/thought-chain/index.en-US.md (1)

21-21: Consider adding punctuation for clarity.

A punctuation mark might be missing between the demo entries for better readability.

<code src="./demo/collapsible.tsx" background="grey">Collapsible</code>
+ 
<code src="./demo/status.tsx" background="grey">Item Status</code>
Tools
LanguageTool

[uncategorized] ~21-~21: A punctuation mark might be missing here.
Context: ...sx" background="grey">Collapsible <code src="./demo/status.tsx" background...

(AI_EN_LECTOR_MISSING_PUNCTUATION)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3bb49d7 and b32c4b5.

Files selected for processing (25)
  • .dumi/preset/components-changelog-cn.json (1 hunks)
  • .dumi/preset/components-changelog-en.json (1 hunks)
  • .dumirc.ts (1 hunks)
  • README-zh_CN.md (6 hunks)
  • README.md (5 hunks)
  • components/_util/motion.ts (1 hunks)
  • components/config-provider/index.ts (1 hunks)
  • components/index.ts (1 hunks)
  • components/theme/components.ts (1 hunks)
  • components/theme/genStyleUtils.ts (1 hunks)
  • components/thought-chain/demo/basic.md (1 hunks)
  • components/thought-chain/demo/basic.tsx (1 hunks)
  • components/thought-chain/demo/collapsible.md (1 hunks)
  • components/thought-chain/demo/collapsible.tsx (1 hunks)
  • components/thought-chain/demo/customization.md (1 hunks)
  • components/thought-chain/demo/customization.tsx (1 hunks)
  • components/thought-chain/demo/nested.md (1 hunks)
  • components/thought-chain/demo/nested.tsx (1 hunks)
  • components/thought-chain/demo/status.md (1 hunks)
  • components/thought-chain/demo/status.tsx (1 hunks)
  • components/thought-chain/index.en-US.md (1 hunks)
  • components/thought-chain/index.tsx (1 hunks)
  • components/thought-chain/index.zh-CN.md (1 hunks)
  • components/thought-chain/style/index.ts (1 hunks)
  • package.json (3 hunks)
Files skipped from review due to trivial changes (7)
  • .dumirc.ts
  • components/config-provider/index.ts
  • components/thought-chain/demo/basic.md
  • components/thought-chain/demo/collapsible.md
  • components/thought-chain/demo/customization.md
  • components/thought-chain/demo/nested.md
  • components/thought-chain/demo/status.md
Additional context used
Gitleaks
components/thought-chain/demo/status.tsx

9-9: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


14-14: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


19-19: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


24-24: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


29-29: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


34-34: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/thought-chain/demo/basic.tsx

10-10: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


16-16: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


22-22: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


29-29: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/thought-chain/demo/collapsible.tsx

34-34: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


40-40: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/thought-chain/demo/nested.tsx

10-10: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


37-37: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/thought-chain/demo/customization.tsx

41-41: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


51-51: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


61-61: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


70-70: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


79-79: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

LanguageTool
components/thought-chain/index.en-US.md

[uncategorized] ~21-~21: A punctuation mark might be missing here.
Context: ...sx" background="grey">Collapsible <code src="./demo/status.tsx" background...

(AI_EN_LECTOR_MISSING_PUNCTUATION)

Biome
components/thought-chain/style/index.ts

[error] 47-66: Prefer for...of instead of forEach.

forEach may lead to performance issues when working with large arrays. When combined with functions like filter or map, this causes multiple iterations over the same type.

(lint/complexity/noForEach)


[error] 61-61: The computed expression can be simplified to a string literal.

Unsafe fix: Use a literal key instead.

(lint/complexity/useLiteralKeys)


[error] 61-61: Do not use template literals if interpolation and special-character handling are not needed.

Unsafe fix: Replace with string literal

(lint/style/noUnusedTemplateLiteral)


[error] 105-106: The computed expression can be simplified to a string literal.

Unsafe fix: Use a literal key instead.

(lint/complexity/useLiteralKeys)


[error] 105-106: Do not use template literals if interpolation and special-character handling are not needed.

Unsafe fix: Replace with string literal

(lint/style/noUnusedTemplateLiteral)


[error] 111-111: The computed expression can be simplified to a string literal.

Unsafe fix: Use a literal key instead.

(lint/complexity/useLiteralKeys)


[error] 111-111: Do not use template literals if interpolation and special-character handling are not needed.

Unsafe fix: Replace with string literal

(lint/style/noUnusedTemplateLiteral)


[error] 111-112: The computed expression can be simplified to a string literal.

Unsafe fix: Use a literal key instead.

(lint/complexity/useLiteralKeys)


[error] 111-112: Do not use template literals if interpolation and special-character handling are not needed.

Unsafe fix: Replace with string literal

(lint/style/noUnusedTemplateLiteral)

components/thought-chain/index.tsx

[error] 184-196: Enforce to have the onClick mouse event with the onKeyUp, the onKeyDown, or the onKeyPress keyboard event.

Actions triggered using mouse events should have corresponding keyboard events to account for keyboard-only navigation.

(lint/a11y/useKeyWithClickEvents)


[error] 1-1: All these imports are only used as types.

Importing the types with import type ensures that they are removed by the transpilers and avoids loading unnecessary modules.
Safe fix: Use import type.

(lint/style/useImportType)

Markdownlint
README-zh_CN.md

136-136: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


137-137: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


138-138: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


139-139: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


142-142: null
Bare URL used

(MD034, no-bare-urls)

Additional comments not posted (20)
.dumi/preset/components-changelog-cn.json (1)

1-1: Addition of "ThoughtChain" to the changelog.

The addition of the "ThoughtChain" key in the JSON structure reflects the introduction of a new component. Ensure that corresponding documentation is updated to describe the new component's functionality and usage.

.dumi/preset/components-changelog-en.json (1)

1-1: Addition of "ThoughtChain" to the changelog.

The inclusion of the "ThoughtChain" key in the JSON structure indicates the introduction of a new component. Ensure that the documentation provides details on the new component's functionality and usage.

components/index.ts (1)

8-9: New exports for ThoughtChain.

The ThoughtChain component and its props are now exported, which makes them available for use in other parts of the application. Ensure that these exports are correctly utilized in the relevant modules.

components/theme/components.ts (1)

5-12: Update to ComponentTokenMap interface.

The ThoughtChain component token has been added to the ComponentTokenMap interface, allowing for specific styling tokens. This update enhances the customization and styling capabilities for the new component.

components/theme/genStyleUtils.ts (1)

3-3: LGTM! Import path updated for optimization.

The change to the import path for useAntdToken from 'antd/lib/theme/useToken' to 'antd/es/theme/useToken' is a good practice for optimizing bundle size by using ES module paths.

components/thought-chain/index.zh-CN.md (1)

1-33: LGTM! Well-structured documentation.

The documentation for the ThoughtChain component is clear and well-organized, providing useful information and examples.

components/thought-chain/demo/status.tsx (1)

34-34: Duplicate key detected in items array.

The key 'ThoughtChainItem5' is used twice in the items array. Consider using unique keys for each item to avoid rendering issues.

  {
    key: 'ThoughtChainItem5',
    title: 'Pending - Thought Chain Item',
    status: 'pending',
  },
  {
-   key: 'ThoughtChainItem5',
+   key: 'ThoughtChainItem6',
    title: 'Pending - Thought Chain Item',
    status: 'pending',
  },

Likely invalid or redundant comment.

Tools
Gitleaks

34-34: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/thought-chain/demo/basic.tsx (1)

10-10: Verify potential API key exposure.

The static analysis tool flagged these lines as potentially exposing a generic API key. Verify that the key values are not sensitive data.

Also applies to: 16-16, 22-22, 29-29

Tools
Gitleaks

10-10: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/thought-chain/demo/collapsible.tsx (1)

34-34: Verify potential API key exposure.

The static analysis tool flagged these lines as potentially exposing a generic API key. Verify that the key values are not sensitive data.

Also applies to: 40-40

Verification successful

No sensitive data exposure in key values.

The key values in the codebase are used as identifiers for React components and test cases. They do not represent sensitive data or API keys. Therefore, there is no risk of API key exposure in these instances.

  • Examples of non-sensitive key values:
    • ThoughtChainItem1
    • demo1
    • item1
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the `key` values in the ThoughtChain items are not sensitive data.

# Test: Search for the usage of `key` values in the codebase. Expect: No sensitive data exposure.
rg --type js --type ts --type tsx 'key:'

Length of output: 68


Script:

#!/bin/bash
# Description: Verify that the `key` values in the ThoughtChain items are not sensitive data.

# Test: Search for the usage of `key` values in the codebase. Expect: No sensitive data exposure.
rg --type js --type ts --type tsx 'key:' --glob '*.tsx'

Length of output: 83


Script:

#!/bin/bash
# Description: Verify that the `key` values in the ThoughtChain items are not sensitive data.

# Test: Search for the usage of `key` values in the codebase. Expect: No sensitive data exposure.
rg 'key:' --glob '*.js' --glob '*.ts' --glob '*.tsx'

Length of output: 6148

Tools
Gitleaks

34-34: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/_util/motion.ts (1)

1-42: LGTM!

The utility functions for motion and transitions are well-structured and follow best practices.

components/thought-chain/demo/nested.tsx (1)

10-10: Verify potential API key exposure.

The static analysis tool flagged these lines as potentially exposing a generic API key. Verify that the key values are not sensitive data.

Also applies to: 37-37

Verification successful

No sensitive data exposure found in key values.

The key values used in the codebase, such as 'ThoughtChainItem1', 'item1', and 'operation1', are identifiers for components or data structures and do not expose sensitive information like API keys or credentials. These are typical usages in UI frameworks and do not pose a security risk.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the `key` values in the ThoughtChain items are not sensitive data.

# Test: Search for the usage of `key` values in the codebase. Expect: No sensitive data exposure.
rg --type js --type ts --type tsx 'key:'

Length of output: 68


Script:

#!/bin/bash
# Description: Verify that the `key` values in the ThoughtChain items are not sensitive data.

# Corrected Test: Search for the usage of `key` values in the codebase. Expect: No sensitive data exposure.
rg --type js --type ts --type tsx 'key:'

Length of output: 68


Script:

#!/bin/bash
# Description: Verify that the `key` values in the ThoughtChain items are not sensitive data.

# Find all .js, .ts, and .tsx files and search for the usage of `key` values in them.
fd --extension js --extension ts --extension tsx --exec rg 'key:'

Length of output: 2456

Tools
Gitleaks

10-10: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

components/thought-chain/demo/customization.tsx (2)

41-41: False positive: Generic API Key detection.

The keys detected by Gitleaks are not actual API keys but rather identifiers for the ThoughtChain items.

Also applies to: 51-51, 61-61, 70-70, 79-79

Tools
Gitleaks

41-41: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


1-93: LGTM!

The customization demo for the ThoughtChain component is well-structured and demonstrates various states and icons effectively.

Tools
Gitleaks

41-41: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


51-51: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


61-61: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


70-70: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


79-79: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

package.json (3)

122-122: Confirm the necessity and integration of rc-motion.

Ensure that the rc-motion dependency is required for the new functionality and is properly integrated into the project.

Verification successful

rc-motion Dependency is Necessary and Integrated

The rc-motion package is actively used in the project for handling animations, as evidenced by its imports in the components/thought-chain/index.tsx and components/_util/motion.ts files. This confirms its necessity and integration into the codebase.

  • components/thought-chain/index.tsx: Imports CSSMotion and CSSMotionProps.
  • components/_util/motion.ts: Imports CSSMotionProps, MotionEndEventHandler, MotionEventHandler, and MotionEvent.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of `rc-motion` in the codebase.

# Test: Search for `rc-motion` usage in the codebase. Expect: Relevant import statements and usage.
rg --type js --type ts 'rc-motion'

Length of output: 514


37-37: Verify the new unpkg path.

Ensure that the file dist/antd-x.min.js exists in the distribution to prevent broken links.


308-308: Verify the new size-limit path.

Ensure that the size limit configuration correctly points to ./dist/antd-x.min.js and that the file exists.

README.md (4)

5-7: Ensure consistent rebranding to "Ant Design X".

Verify that all references to "Ant Design" have been updated to "Ant Design X" throughout the document to maintain consistency.


Line range hint 105-123: Verify the accessibility of updated links.

Ensure that all updated links pointing to https://x.ant.design/ are correct and accessible.


79-83: Verify the availability of the new package name @ant-design/x.

Ensure that the package @ant-design/x is published and available in the npm registry.


93-100: Verify the existence and correctness of the Bubble component.

Ensure that the Bubble component is included in the @ant-design/x package and that the usage example is accurate.

Verification successful

Let's correct the file type specification and rerun the search for the Bubble component in the codebase.


Let's search the entire repository for the Bubble component without assuming a specific directory structure.


The Bubble component exists and is correctly used in the example.

The Bubble component is defined and exported in the codebase, confirming its presence in the @ant-design/x package. The usage example in the README is consistent with the component's definition.

  • The Bubble component is exported from components/index.ts.
  • It is implemented in components/bubble/Bubble.tsx.
  • The component is used in various demo files, such as components/bubble/demo/basic.tsx.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the existence of the `Bubble` component in the `@ant-design/x` package.

# Test: Search for the `Bubble` component in the `@ant-design/x` package codebase. Expect: Relevant component definition.
rg --type ts --type tsx 'Bubble' src

Length of output: 64


Script:

#!/bin/bash
# Corrected: Verify the existence of the `Bubble` component in the `@ant-design/x` package.

# Test: Search for the `Bubble` component in TypeScript and TSX files.
rg --type-add 'tsx:*.tsx' --type ts --type tsx 'Bubble' src

Length of output: 103


Script:

#!/bin/bash
# Search for the `Bubble` component in TypeScript and TSX files across the entire repository.

rg --type-add 'tsx:*.tsx' --type ts --type tsx 'Bubble'

Length of output: 9848

components/thought-chain/style/index.ts Outdated Show resolved Hide resolved
components/thought-chain/style/index.ts Outdated Show resolved Hide resolved
components/thought-chain/index.tsx Show resolved Hide resolved
components/thought-chain/index.tsx Outdated Show resolved Hide resolved
README-zh_CN.md Outdated Show resolved Hide resolved
README-zh_CN.md Outdated Show resolved Hide resolved
@YumoImer YumoImer changed the title [WIP] feat: New Component - ThoughtChain feat: New Component - ThoughtChain Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 96.49123% with 4 lines in your changes missing coverage. Please review.

Project coverage is 98.26%. Comparing base (1506c5e) to head (3f782f5).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
components/_util/motion.ts 62.50% 3 Missing ⚠️
components/thought-chain/hooks/useCollapsible.ts 95.45% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
- Coverage   98.93%   98.26%   -0.68%     
==========================================
  Files          26       33       +7     
  Lines         377      518     +141     
  Branches      109      152      +43     
==========================================
+ Hits          373      509     +136     
- Misses          4        9       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cloudflare-workers-and-pages bot commented Aug 29, 2024

Deploying x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3f782f5
Status: ✅  Deploy successful!
Preview URL: https://fe28d232.x-73x.pages.dev
Branch Preview URL: https://feat-thought-chain.x-73x.pages.dev

View logs

Copy link
Contributor

@ONLY-yours ONLY-yours left a comment

Choose a reason for hiding this comment

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

+1 优雅!

@afc163
Copy link
Member

afc163 commented Aug 29, 2024

演示看上去比较死板,缺一个动态的效果。

@YumoImer
Copy link
Collaborator Author

演示看上去比较死板,缺一个动态的效果。

好的,我加一个 demo

components/_util/motion.ts Outdated Show resolved Hide resolved
@YumoImer
Copy link
Collaborator Author

演示看上去比较死板,缺一个动态的效果。

已添加:
image

@YumoImer YumoImer merged commit 05f5b34 into main Aug 30, 2024
11 of 13 checks passed
@YumoImer YumoImer deleted the feat/thought-chain branch August 30, 2024 03:49
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.

4 participants