Add section_collapsed param to control default accordion state#61968
Open
fenix7 wants to merge 2 commits intoapache:mainfrom
Open
Add section_collapsed param to control default accordion state#61968fenix7 wants to merge 2 commits intoapache:mainfrom
fenix7 wants to merge 2 commits intoapache:mainfrom
Conversation
…DAG trigger form Allow DAG authors to define which param sections start collapsed in the trigger form by setting section_collapsed=True on a Param. Sections without this flag (or with section_collapsed=False) start expanded. When no section uses the flag, the existing default behavior is preserved. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
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 (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
Four sections with different collapsed states: - "Basic settings" and "Notification settings" start expanded - "Advanced options" and "Debug" start collapsed (section_collapsed=True) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
section_collapsedboolean property to the Param schema, allowing DAG authors to control which sections in the trigger form start collapsedsection_collapsed=Trueon their first param start collapsed; others start expandedmultipleto Accordion.Root so multiple sections can be open simultaneouslyexample_params_ui_tutorial.pyon the "Special advanced stuff with form fields" sectionTest plan
pnpm test) — 92/93 passing (1 pre-existing failure unrelated to this change)example_params_ui_tutorialDAG and verify "Special advanced stuff with form fields" starts collapsedsection_collapsedretain the original behavior