Repository navigation
Fixes #35412: Report CoreEnumMultiSelectField focus to the form's doc panel - #35414
Conversation
… panel CoreArrayField and CoreBooleanField report focus through formContext.handleFocus so a form's doc panel follows the active field; CoreEnumMultiSelectField did not, so treeSelect arrays never highlighted their doc section. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
Code Review ✅ Approved🟡 Medium risk · Reporting enum-multiselect focus to the form changes doc-panel navigation; an incorrect field ID could highlight mismatched documentation. Fixes the doc panel not following VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Fixes #35412
CoreEnumMultiSelectFieldnow reports focus throughformContext.handleFocus, asCoreArrayFieldandCoreBooleanFieldalready do. Forms whose doc panel follows the active field, such as app configuration, now highlight the docs foruiFieldType: "treeSelect"arrays:entitiesin Search Indexing, Cache Warmup, RDF Index and Data Insights, and Metadata ExportereventTypes.Raised in review of open-metadata/openmetadata-collate#7462, which drops a Collate override that used to report this focus. Companion to #35404, which fixes the same field's dropdown position. I couldn't add this to #35404 because it's already in the merge queue.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
uiFieldType: "treeSelect"array field calls the form'shandleFocuswith the field's id (root/entities), so the doc panel can follow it.Unit tests
CoreEnumMultiSelectField.test.tsx: new test, "reports focus to the form so its doc panel can follow the field". It fails without the change and passes with it; the file passes 6/6.make ui-checkstyle-changedis clean.Backend integration tests
make java_affected: no Java tests impacted.Ingestion integration tests
Playwright (UI) tests
make playwright_affectedselects 35 specs, since everyFormBuilderV1form maps here. I have no OSS server locally (only a Collate one), so I couldn't run them meaningfully; left to the merge queue. The change only adds anonFocuscallback that is a no-op unless the form passeshandleFocus.Not run against an OSS server (see above).
Manual testing performed
None beyond the unit test. The doc-panel side was already checked for
CoreBooleanFieldon the Collate app configuration page (open-metadata/openmetadata-collate#7265): toggling Search Indexing'sautoTunehighlights its doc section.🤖 Generated with Claude Code