fix(consumer-web): 修复评分表单字段绑定、时长校验与剧透状态同步问题 - #1
Closed
SXP-Simon wants to merge 1 commit into
Closed
Conversation
SXP-Simon
commented
Aug 22, 2026
Contributor
- 移除 FormItem 中 Checkbox 与 InputNumber 冗余的手动事件绑定,修复剧透勾选与状态冲突问题
- 重构 rate.schema.ts 中的 time_to_finish_hours 与 dimension 规则,支持退格清空(防 NaN)、小数时长换算与显式超限拦截
- 移除 InputNumber 静默截断属性,统一由 Valibot Schema 进行显式校验与错误提示
- 新增 12 个 Vitest 自动化单元测试用例,覆盖 4 类媒体的边界与换算场景
1. 移除 FormItem 中 Checkbox 与 InputNumber 冗余的手动事件绑定,修复剧透勾选与状态冲突问题 2. 重构 rate.schema.ts 中的 time_to_finish_hours 与 dimension 规则,支持退格清空(防 NaN)、小数时长换算与显式超限拦截 3. 移除 InputNumber 静默截断属性,统一由 Valibot Schema 进行显式校验与错误提示 4. 新增 12 个 Vitest 自动化单元测试用例,覆盖 4 类媒体的边界与换算场景
Ringyuki
self-requested a review
August 22, 2026 13:09
Member
|
Accepted for upstream integration. The imported private pull request is now running its upstream validation and will be mirrored back here after review and merge. |
Member
|
Merged into the upstream monorepo and published by the public source mirror. Thank you for the contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.