Skip to content

feat: support read_only property for Input & upgrade to antd 5.27.0, antdx 1.6.0#87

Merged
Col0ring merged 2 commits intomainfrom
dev
Aug 14, 2025
Merged

feat: support read_only property for Input & upgrade to antd 5.27.0, antdx 1.6.0#87
Col0ring merged 2 commits intomainfrom
dev

Conversation

@Col0ring
Copy link
Copy Markdown
Collaborator

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Aug 14, 2025

🦋 Changeset detected

Latest commit: 1a91063

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.

Summary of Changes

Hello @Col0ring, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new read_only property for various input components, enhancing user interface control. It also includes a significant upgrade of Ant Design and Ant Design X libraries to their latest versions, ensuring compatibility and leveraging new features. Additionally, several Ant Design components have received minor enhancements and type refinements.

Highlights

  • Input Read-Only Property: Implemented a read_only property across Input, OTP, Password, Search, and TextArea components, providing better control over user input fields.
  • Library Upgrades: Upgraded antd to 5.27.0 and antdx to 1.6.0, along with numerous development dependencies, ensuring the project uses the latest stable versions and benefits from their improvements and bug fixes.
  • AntdCard Enhancements: Expanded AntdCard component with new slots for tabBarExtraContent (including left and right sub-slots) and tabProps (including addIcon, removeIcon, renderTabBar, tabBarExtraContent, and more.icon), offering greater customization for card layouts.
  • Component Property Expansions: Enhanced AntdProgress to support list[str] or dict for stroke_color, AntdTable.RowSelection with get_title_checkbox_props, AntdTagCheckableTag with an icon slot, and AntdXAttachmentsFileCard with icon and type properties and an icon slot.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

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 primarily focuses on two areas: adding a read_only property to various Input components and upgrading antd to version 5.27.0 and antdx to 1.6.0. The changes are well-structured and also include updates to frontend components to support new features from the upgraded libraries. My review has identified a recurring issue with an invalid TypeScript type (Uint8Array<ArrayBuffer>) used across several files related to audio processing. Correcting this will improve type safety and code clarity. Please see the specific comments for details.

Comment on lines +36 to +38
const handle_upload = async (
blobs: Uint8Array<ArrayBuffer>[] | Blob[]
): Promise<void> => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The type Uint8Array<ArrayBuffer> is not a standard TypeScript type. Uint8Array is a typed array of 8-bit unsigned integers and does not accept a generic type parameter. The correct type should be Uint8Array.

  const handle_upload = async (
    blobs: Uint8Array[] | Blob[]
  ): Promise<void> => {

Comment on lines +122 to +126
await process_audio(audio_buffer).then(
(audio: Uint8Array<ArrayBuffer>) => {
handle_upload([audio]);
}
);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The type Uint8Array<ArrayBuffer> is not a standard TypeScript type. Uint8Array is a typed array of 8-bit unsigned integers and does not accept a generic type parameter. The correct type should be Uint8Array.

        await process_audio(audio_buffer).then(
          (audio: Uint8Array) => {
            handle_upload([audio]);
          }
        );

Comment on lines +19 to +21
export function audioBufferToWav(
audioBuffer: AudioBuffer
): Uint8Array<ArrayBuffer> {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The type Uint8Array<ArrayBuffer> is not a standard TypeScript type. Uint8Array is a specific view on an ArrayBuffer and does not take a generic type parameter. The correct return type for this function should be Uint8Array.

Suggested change
export function audioBufferToWav(
audioBuffer: AudioBuffer
): Uint8Array<ArrayBuffer> {
export function audioBufferToWav(
audioBuffer: AudioBuffer
): Uint8Array {

Comment on lines +1 to +3
export function audioBufferToWav(
audioBuffer: AudioBuffer
): Uint8Array<ArrayBuffer> {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The type Uint8Array<ArrayBuffer> is not a standard TypeScript type. Uint8Array is a specific view on an ArrayBuffer and does not take a generic type parameter. The correct return type for this function should be Uint8Array.

Suggested change
export function audioBufferToWav(
audioBuffer: AudioBuffer
): Uint8Array<ArrayBuffer> {
export function audioBufferToWav(
audioBuffer: AudioBuffer
): Uint8Array {

@Col0ring Col0ring merged commit cb4a962 into main Aug 14, 2025
2 checks passed
@Col0ring Col0ring deleted the dev branch August 14, 2025 08:33
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