Repository navigation
Fixes 34633: show map fields in agent forms as aligned key = value rows [2.0] - #35895
Conversation
…ws (#35698) * Show map fields in agent forms as aligned key = value rows A map entry's value widget repeated the entry's key as a label above itself, pushing it out of line with the key input, and RJSF filled every new entry with the text "New Value". Map values no longer take a label, new entries start empty, and the key input's placeholder reads "key". * Give map entry inputs accessible names With the value's visible label gone, screen readers announced an unnamed field. The value control is now named by its key, and the key input by "Key" rather than only a placeholder. * Keep RJSF's "New Value" default for new map entries An empty default made an untouched row look finished, so service forms saved {newKey: ''} into Connection Arguments and Connection Options. * Keep map entries consistent and drop untouched rows from agent forms Yes/no, list and object map values no longer repeat their key as a label or title. Agent forms now drop map rows that were added but never filled in, as service and app forms already do on save, and the cleanup is unit-tested. * Keep the description of object-valued map entries Hiding the repeated key dropped the whole titled panel, and with it the description. Hide only the title. * Fix UI checkstyle: sort imports in IngestionWorkflowForm * Align the map add button with the remove buttons The add button was 28px and the remove buttons 36px, left-aligned in a 40px column, so their right edges were 4px apart. Both are now 36px and end at the same edge. * Expect the map key placeholder to read "key" in the connection layout spec * Check that the map add and remove buttons share a right edge --------- Co-authored-by: anuj-kumary <[email protected]> (cherry picked from commit c87c846)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
The toggle test now renders the real Toggle and checks its accessible name, and the dbt form test submits an untouched Catalog Mapping row and checks it is not saved. (cherry picked from commit a03184a)
Code Review ✅ Approved🟡 Medium risk · Filtering map rows that retain RJSF defaults from ingestion submissions could omit legitimate configuration entries with those values. Renders agent form map fields as aligned 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 |
|



Fixes #34633
Backport of #35698 and #35905 (test follow-up) to
2.0.Cherry-pick of c87c846. Conflicts came from 2.0's older form code, so our changes were applied to 2.0's own version:
CoreObjectFieldTemplate.tsx: kept 2.0's structure; applied the larger add button and the hidden map-entry title there.CoreDateWidgetdoesn't exist on 2.0.CoreBooleanField.test.tsx: added theToggleimport the new test needs.Verified on 2.0: 561 UI tests across the form, ingestion, service and app suites pass; lint and Prettier are clean.
🤖 Generated with Claude Code
Summary by Gitar
key = valuerows, hiding redundant titles and labelsaria-labelkeyand added anaria-labelto map key inputsformatAdditionalPropertiesThis will update automatically on new commits.


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues remain.Summary
Updates map fields to show aligned
key = valuerows.No new actionable issues found. Tests and browser checks were not run; local UI dependencies are absent.
Reviews (3) · Last reviewed commit: "Merge branch '2.0' into backport-35698-2..." · Reviewed by Greptile