Skip to content

UI: Render dict/list rendered template fields as collapsible JSON#68033

Open
haydn-j-evans wants to merge 2 commits into
apache:mainfrom
haydn-j-evans:ui-rendered-templates-collapsible-json
Open

UI: Render dict/list rendered template fields as collapsible JSON#68033
haydn-j-evans wants to merge 2 commits into
apache:mainfrom
haydn-j-evans:ui-rendered-templates-collapsible-json

Conversation

@haydn-j-evans
Copy link
Copy Markdown

Object- and array-valued rendered template fields (e.g. the Spark operator's template_spec) were displayed as a single syntax-highlighted line. This renders them with the Monaco-based RenderedJsonField instead — a foldable JSON view, expanded by default — consistent with how XCom values and Dag run conf are shown. String/scalar fields keep the existing SyntaxHighlighter rendering.

RenderedJsonField gains an opt-in showStructureGuides prop (default false, so all existing usages are unchanged) that enables navigation aids for large, deeply nested JSON: bracket-pair colorization, indentation/bracket guides, sticky-scroll parent context, and always-visible folding controls. The rendered templates view opts in.

related: #61834


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Claude Opus 4.8)

Generated-by: Claude Code (Claude Opus 4.8) following the guidelines

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jun 4, 2026
@boring-cyborg
Copy link
Copy Markdown

boring-cyborg Bot commented Jun 4, 2026

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

haydn-j-evans pushed a commit to haydn-j-evans/airflow that referenced this pull request Jun 4, 2026
Haydn Evans added 2 commits June 5, 2026 08:01
Object- and array-valued rendered template fields (e.g. the Spark
operator's template_spec) were shown as a single syntax-highlighted line.
Render them with the Monaco-based RenderedJsonField instead, expanded by
default, consistent with how XCom values and Dag run conf are displayed.
String and scalar fields keep the existing SyntaxHighlighter rendering.

RenderedJsonField gains an opt-in showStructureGuides prop (default false,
so existing usages are unchanged) that enables navigation aids for large,
deeply-nested JSON: bracket-pair colorization, indentation/bracket guides,
sticky-scroll parent context, and always-visible folding controls. The
rendered templates view opts in.
@haydn-j-evans haydn-j-evans force-pushed the ui-rendered-templates-collapsible-json branch from 3058f78 to 2ff988b Compare June 5, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant