Skip to content

Fixes 34633: show map fields in agent forms as aligned key = value rows [2.0] - #35895

Merged
Khairajani merged 3 commits into
2.0from
backport-35698-2.0
Oct 22, 2026
Merged

Khairajani merged 3 commits into
2.0from
backport-35698-2.0

Conversation

@Khairajani

@Khairajani Khairajani commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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.
  • Kept 2.0's icon imports and password upload props; CoreDateWidget doesn't exist on 2.0.
  • CoreBooleanField.test.tsx: added the Toggle import 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

  • Map field layout:
    • Renders map entries as aligned key = value rows, hiding redundant titles and labels
    • Names map value inputs and toggles by their key via aria-label
  • Key input:
    • Changed the placeholder to key and added an aria-label to map key inputs
  • Form submit:
    • Drops untouched map rows on submit using formatAdditionalProperties
  • Tests:
    • Added unit tests for templates, widgets, boolean field, utilities, and the connection layout e2e spec

This will update automatically on new commits.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues remain.

Summary

Updates map fields to show aligned key = value rows.

  • Map entries show their editable key beside a clearly named value.
  • Ingestion workflow submissions leave untouched map rows out of the saved data.

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

…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)
@Khairajani
Khairajani requested a review from a team as a code owner October 21, 2026 11:58
@Khairajani
Khairajani requested review from sweta1308 and removed request for a team October 21, 2026 11:58
@Khairajani Khairajani added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.32% (82943/121388) 53.23% (51386/96521) 53.97% (15280/28310)

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)
@gitar-bot

gitar-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown
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 key = value rows, with hidden redundant titles, aria-labels on map inputs and toggles, and untouched map rows dropped on submit via formatAdditionalProperties. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@Khairajani
Khairajani merged commit c02357a into 2.0 Oct 22, 2026
69 of 73 checks passed
@Khairajani
Khairajani deleted the backport-35698-2.0 branch October 22, 2026 06:20

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants