Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented May 17, 2025

Related PR

as a following PR for #50600
cc: @bbovenzi @pierrejeambrun

Why

since different people may want different sort order in the same instance. Make the sort be sticky would rather a good choice than be a global config

How

Update useTableURLState to store the sort into localStorage for pages using the table and use it as a default value. This solution could not only support for dag list pages but for all pages with sortable table.

local storage may look like

image

current ui

Screen.Recording.2025-05-17.at.4.34.36.PM.mov

^ 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 May 17, 2025
@guan404ming guan404ming changed the title Update useTableURLState hook for sticky table sort Update useTableURLState hook for sticky table sort May 17, 2025
Copy link
Collaborator

@aritra24 aritra24 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! Thanks!

@guan404ming
Copy link
Member Author

Thanks!

@bbovenzi bbovenzi added this to the Airflow 3.0.2 milestone May 20, 2025
@bbovenzi bbovenzi added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label May 20, 2025
@bbovenzi bbovenzi merged commit 06278ce into apache:main May 20, 2025
44 checks passed
github-actions bot pushed a commit that referenced this pull request May 20, 2025
(cherry picked from commit 06278ce)

Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
@github-actions
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request May 20, 2025
…e#50720)

(cherry picked from commit 06278ce)

Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
@guan404ming guan404ming deleted the stick-table-sort branch May 21, 2025 02:53
@guan404ming
Copy link
Member Author

Thanks!

pierrejeambrun pushed a commit that referenced this pull request May 21, 2025
… (#50858)

(cherry picked from commit 06278ce)

Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request May 21, 2025
dadonnelly316 pushed a commit to dadonnelly316/airflow that referenced this pull request May 26, 2025
kaxil pushed a commit that referenced this pull request Jun 3, 2025
… (#50858)

(cherry picked from commit 06278ce)

Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
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. backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants