-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Add resize function for Dag Documentation #56344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Should I modify Dag Note UI as well or save it to another PR? |
Would be great and of course can be another PR. |
airflow-core/src/airflow/ui/src/components/DisplayMarkdownButton.tsx
Outdated
Show resolved
Hide resolved
Update
resize_memorize.mp4 |
jscheffl
left a comment
There was a problem hiding this 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?
pierrejeambrun
left a comment
There was a problem hiding this 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.
airflow-core/src/airflow/ui/src/components/ui/ResizableWrapper.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/components/DisplayMarkdownButton.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/utils/usePersistentResizableState.ts
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/utils/usePersistentResizableState.ts
Outdated
Show resolved
Hide resolved
Follow up PR:Add resize function for Dag Note |
guan404ming
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test and lgtm!
* 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)
* feat: Add dialog resize function * feat: Memorize resize state * refactor: replace inline style and use useLocalStorage * fix: remove redundent style * refactor: optimize state management
* feat: Add dialog resize function * feat: Memorize resize state * refactor: replace inline style and use useLocalStorage * fix: remove redundent style * refactor: optimize state management
* feat: Add dialog resize function * feat: Memorize resize state * refactor: replace inline style and use useLocalStorage * fix: remove redundent style * refactor: optimize state management
Related
closes: #56325
Changes
react-resizabledependency to handle the resizing logic.maxConstraints={[1200, 800]},minConstraints={[512, 600]}brand.mutedto align with Dag Note UI designScreenshots
Before
After
resize.mp4
Default resize indicator
Styled resize indicator
^ 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.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.