Skip to content

Conversation

@RoyLee1224
Copy link
Contributor

@RoyLee1224 RoyLee1224 commented Oct 2, 2025

Related

closes: #56325

Changes

  • Added react-resizable dependency to handle the resizing logic.
  • Set maxConstraints={[1200, 800]}, minConstraints={[512, 600]}
  • Improved the resize indicator visibility, as the default indicator was not easily noticeable.
  • Use brand.muted to align with Dag Note UI design

Screenshots

Before

current

After

resize.mp4

Default resize indicator

doc_before

Styled resize indicator

doc_after

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Oct 2, 2025
@RoyLee1224
Copy link
Contributor Author

Should I modify Dag Note UI as well or save it to another PR?

@jscheffl
Copy link
Contributor

jscheffl commented Oct 2, 2025

Should I modify Dag Note UI as well or save it to another PR?

Would be great and of course can be another PR.

@RoyLee1224
Copy link
Contributor Author

RoyLee1224 commented Oct 2, 2025

Update

  • make ResizableWrapper reusable for other dialogs
  • Add usePersistentResizableState hook to remember user preference for dialog size
resize_memorize.mp4

Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for the persistence extension!

Before merge, maybe a second pair of review eyes?

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions, tested locally and look great. Can't wait to see the same implemented for TI and DagRun notes.

@RoyLee1224
Copy link
Contributor Author

RoyLee1224 commented Oct 5, 2025

Follow up PR:

Add resize function for Dag Note

@bbovenzi bbovenzi added this to the Airflow 3.1.1 milestone Oct 8, 2025
Copy link
Member

@guan404ming guan404ming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test and lgtm!

@bbovenzi bbovenzi merged commit aab7f16 into apache:main Oct 16, 2025
57 checks passed
kaxil pushed a commit that referenced this pull request Oct 16, 2025
* feat: Add dialog resize function

* feat: Memorize resize state

* refactor: replace inline style and use useLocalStorage

* fix: remove redundent style

* refactor: optimize state management

(cherry picked from commit aab7f16)
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
* feat: Add dialog resize function

* feat: Memorize resize state

* refactor: replace inline style and use useLocalStorage

* fix: remove redundent style

* refactor: optimize state management
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
* feat: Add dialog resize function

* feat: Memorize resize state

* refactor: replace inline style and use useLocalStorage

* fix: remove redundent style

* refactor: optimize state management
@RoyLee1224 RoyLee1224 deleted the doc-resize branch October 20, 2025 00:24
TyrellHaywood pushed a commit to TyrellHaywood/airflow that referenced this pull request Oct 22, 2025
* feat: Add dialog resize function

* feat: Memorize resize state

* refactor: replace inline style and use useLocalStorage

* fix: remove redundent style

* refactor: optimize state management
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.

Add option to be able to modify how the Dag Documentation pop-up is displayed

5 participants