Repository navigation
Preview JSON fields as inline badges in tables - #72353
Conversation
|
@pierrejeambrun could use a approve if this looks good |
A collapsed JSON cell showed an anonymous `{ ... }` over two lines, taking
real estate in every table row while telling the reader nothing about the
payload. Summarising the top-level entries instead lets someone scan a conf
or an audit-log extra without opening anything, and keeps the full editor one
click away for the payloads a single line cannot describe.
caf07dd to
cdd00d9
Compare
|
Fixed. This is for the preview pages that allow expand/collapse. I'll do a follow up PR to check more places where we show the whole json blob all at once. |
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 082b596 v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
* UI: Preview JSON fields as inline badges in tables
A collapsed JSON cell showed an anonymous `{ ... }` over two lines, taking
real estate in every table row while telling the reader nothing about the
payload. Summarising the top-level entries instead lets someone scan a conf
or an audit-log extra without opening anything, and keeps the full editor one
click away for the payloads a single line cannot describe.
* Fix import statement for Chakra UI components
* pnpm format
* UI: Preview JSON fields as inline badges in tables
A collapsed JSON cell showed an anonymous `{ ... }` over two lines, taking
real estate in every table row while telling the reader nothing about the
payload. Summarising the top-level entries instead lets someone scan a conf
or an audit-log extra without opening anything, and keeps the full editor one
click away for the payloads a single line cannot describe.
* Fix import statement for Chakra UI components
* pnpm format

Our json preview took up two lines of space but without showing any useful context. Instead, we try to show a badge to preview the information with a "+X More" button similar to our LimitedItemsList component. When expanded, we go back to rendering the json object.
Was generative AI tooling used to co-author this PR?
Clause Opus 5
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.