Skip to content

Conversation

@shaohuzhang1
Copy link
Contributor

chore: add description field to FieldFormDialog --story=1019827 --user=刘瑞斌 工具- 使用参数同启用参数一样增加 提示信息字段,目前参数没有说明,不方便使用 https://www.tapd.cn/62980211/s/1782428

--story=1019827 --user=刘瑞斌 工具- 使用参数同启用参数一样增加 提示信息字段,目前参数没有说明,不方便使用 https://www.tapd.cn/62980211/s/1782428
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Oct 9, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Oct 9, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

desc: '',
source: 'reference',
is_required: true,
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code has no major irregularities or significant potential issues. However, there are some minor aspects to consider:

  1. Empty Value Check for Description: The @blur event handler currently trims the description only if it's defined (form.desc?.trim()). This might cause an error if someone tries to trim a non-string value.
// Ensure that form.desc is not null before trimming
if (form.desc) {
  form.desc = form.desc.trim();
}
  1. Autosize Configuration Update: The autosize configuration for the textarea seems outdated. You can use { maxRows: 5 } instead of { minRows: 3 } for better flexibility and readability.
// Updated autosize configuration:
@autosize="{ maxRows: 5 }"

These improvements will help improve user experience and prevent runtime errors when dealing with empty values in the description field.

@liuruibin liuruibin merged commit 8e8948c into v2 Oct 9, 2025
3 of 6 checks passed
@liuruibin liuruibin deleted the pr@v2@chore_desc branch October 9, 2025 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants