fix(channels): avoid expanding advanced settings for model mapping

- remove model mapping from advanced settings error detection so visible model configuration errors do not expand the advanced panel.
- update the edit-time advanced settings auto-expand check to only depend on fields actually rendered in the advanced section.
- add regression coverage to verify model_mapping errors are not classified as advanced settings errors.
This commit is contained in:
QuentinHsu
2026-06-02 12:31:32 +08:00
parent 4d20e053cb
commit cb5c0453f5
3 changed files with 11 additions and 2 deletions
@@ -30,7 +30,6 @@ const ADVANCED_SETTINGS_FIELDS = new Set<FieldPath<ChannelFormValues>>([
'auto_ban',
'tag',
'remark',
'model_mapping',
'param_override',
'header_override',
'status_code_mapping',