Skip to content

chore: migrate to Gradio 6.0, Ant Design 6.0, Ant Design X 2.0#120

Merged
Col0ring merged 31 commits intomainfrom
next
Apr 21, 2026
Merged

chore: migrate to Gradio 6.0, Ant Design 6.0, Ant Design X 2.0#120
Col0ring merged 31 commits intomainfrom
next

Conversation

@Col0ring
Copy link
Copy Markdown
Collaborator

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 21, 2026

🦋 Changeset detected

Latest commit: 0e0beb0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a comprehensive suite of documentation for the ModelScope Studio API, covering Python backend components, Svelte frontend components, and the React-to-Svelte bridge system. The documentation includes detailed references for Ant Design and Ant Design X component families. Review feedback identifies several areas for refinement, such as fixing typos in Mermaid diagrams, replacing placeholder line ranges in file references with accurate values, and resolving inconsistencies regarding the implementation status of components like Select. Pruning the documentation to exclude unimplemented components is also suggested to ensure clarity for users.

subgraph "Frontend Packages"
BASE["@modelscope-studio/base"]
ANTD["@modelscope-studio/antd"]
ANTHDX["@modelscope-studio/antdx"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Typo in the Mermaid diagram node name: ANTHDX should be ANTDX to match the package name @modelscope-studio/antdx.

Suggested change
ANTHDX["@modelscope-studio/antdx"]
ANTDX["@modelscope-studio/antdx"]

end
BASE --> PRE
ANTD --> PRE
ANTHDX --> PRE
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Typo in the Mermaid diagram edge: ANTHDX should be ANTDX.

Suggested change
ANTHDX --> PRE
ANTDX --> PRE

- [image.tsx:1-89](file://frontend/antd/image/image.tsx#L1-L89)
- [list.tsx:1-36](file://frontend/antd/list/list.tsx#L1-L36)
- [popover.tsx:1-37](file://frontend/antd/popover/popover.tsx#L1-L37)
- [qr-code.tsx:1-200](file://frontend/antd/qr-code/qr-code.tsx#L1-L200)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The line range 1-200 appears to be a placeholder. It is recommended to remove the specific line range if it's not accurate, or update it to the correct range. This applies to multiple entries in the 'Diagram sources' and 'Component Details' sections.

Suggested change
- [qr-code.tsx:1-200](file://frontend/antd/qr-code/qr-code.tsx#L1-L200)
- [qr-code.tsx](file://frontend/antd/qr-code/qr-code.tsx)

- [backend/modelscope_studio/components/antd/list/**init**.py:11-101](file://backend/modelscope_studio/components/antd/list/__init__.py#L11-L101)
- [backend/modelscope_studio/components/antd/popover/**init**.py:10-124](file://backend/modelscope_studio/components/antd/popover/__init__.py#L10-L124)
- [backend/modelscope_studio/components/antd/qr_code/**init**.py:10-96](file://backend/modelscope_studio/components/antd/qr_code/__init__.py#L10-L96)
- [backend/modelscope_studio/components/antd/tabs/**init**.py:1-145](file://backend/modelscope_studio/components/antd/tabs/__init__.py#L1-L145)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The line range 1-145 appears to be a placeholder. It is recommended to remove the specific line range if it's not accurate. This applies to multiple entries in the 'Diagram sources' section.

Suggested change
- [backend/modelscope_studio/components/antd/tabs/**init**.py:1-145](file://backend/modelscope_studio/components/antd/tabs/__init__.py#L1-L145)
- [backend/modelscope_studio/components/antd/tabs/__init__.py](file://backend/modelscope_studio/components/antd/tabs/__init__.py)


## Introduction

This document is the Python API reference for Antd data entry components, covering the following components: AutoComplete, Cascader, Checkbox, ColorPicker, DatePicker, Form, Input, InputNumber, Mentions (not found in known backend files), Radio (not found in known backend files), Rate (not found in known backend files), Select (not found in known backend files), Slider (not found in known backend files), Switch (not found in known backend files), TimePicker (not found in known backend files), Transfer (not found in known backend files), TreeSelect (not found in known backend files), Upload (not found in known backend files).
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This list contains many components marked as "not found in known backend files". It is recommended to only list implemented components in the API reference to avoid confusion.

- Recommendation: If needed, refer to the Antd official documentation and frontend implementation, and add the backend adapter layer.

### Select (not found in backend)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Inconsistency detected: this section states that the Select component is "not found in backend", but Antd Components API.md (lines 12, 106, 229) lists it as implemented. Please verify the status of the Select component and update the documentation accordingly.

@Col0ring Col0ring merged commit 0234a61 into main Apr 21, 2026
3 checks passed
@Col0ring Col0ring deleted the next branch April 21, 2026 06:11
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.

1 participant