Skip to content

Add notification UX for HITL actions - #68346

Merged
vatsrahul1001 merged 9 commits into
apache:mainfrom
parkhojeong:feat/notification-ux-for-hitl
Jun 16, 2026
Merged

vatsrahul1001 merged 9 commits into
apache:mainfrom
parkhojeong:feat/notification-ux-for-hitl

Conversation

@parkhojeong

@parkhojeong parkhojeong commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Create a HITL notification for quick actions. It helps users quickly respond to pending HITL tasks through a modal or drawer.

Modal: show pending HITL tasks with quick actions.

  • Home(/): When the Required Actions button is clicked, show a modal containing all pending HITL tasks.
  • Dags(/dags): When the Required Actions filter is active and the Required Actions badge is clicked, show a modal containing tasks for that DAG.
  • Dag page(/dags/{dag_id}): Replace the Required Actions tab with a Required Actions button. When the button is clicked, show a modal containing tasks for that DAG.
  • Dag Run page(dags/{dag_id}/runs/{dag_run_id}): Replace the Required Actions tab with a Required Actions button. When the button is clicked, show a modal containing tasks for that DAG run.

Notes

  • Filters: Pending (default) and All (except on /dags).
  • On DAG and DAG Run pages accessed via /required_actions, show the modal with the Pending filter selected by default for backward compatibility.

Drawer: show the action for pending HITL task.

  • Browse -> Required Actions(/required_actions): When a drawer icon button is clicked, show a drawer containing the task details.

Screenshots

  • Home(Modal)

    image image
  • Dags (Modal)

    • Card view: image
    • Table viewimage
  • Dag page (Modal)

    image
  • Dag Run page (Modal)

    image
  • Browse -> Required Actions(Drawer)

    image image

Recordings

  • Modal

    Screen.Recording.2026-06-16.at.23.28.38.mp4
  • Drawer

    Screen.Recording.2026-06-16.at.23.30.05.mp4

Was generative AI tooling used to co-author this PR?
  • Yes

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg Bot added area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default labels Jun 10, 2026
@bbovenzi bbovenzi added this to the Airflow 3.3.0 milestone Jun 11, 2026
@bbovenzi bbovenzi mentioned this pull request Jun 11, 2026
1 task done
@parkhojeong
parkhojeong marked this pull request as ready for review June 12, 2026 14:14
@choo121600

Copy link
Copy Markdown
Member

Nice work!

One suggestion: this PR changes the core Required Actions navigation (tab/page --> modal + drawer + route-sync deep-link), but the new flow isn't covered by e2e tests yet.

Would it be worth adding e2e scenarios for the new UX?

@parkhojeong
parkhojeong marked this pull request as draft June 14, 2026 18:33
@parkhojeong

parkhojeong commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor Author

@choo121600 Thanks for the suggestion!

I'm adding some E2E tests and temporarily marked the PR as a draft. Should be done soon.

@jscheffl

Copy link
Copy Markdown
Contributor

Nice work - I just tested from UX perspective (not reviewing code) and I like it. Just one nit: Compared to the rest of UI and other modals the font pitch is lower than in other areas. Font sizes should be adjusted to other UI standards.

@Lee-W Lee-W removed this from the Airflow 3.3.0 milestone Jun 15, 2026

@pierrejeambrun pierrejeambrun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Super cool! 🎉

Overall looking good and working as expected, a few suggestions though.

@parkhojeong

parkhojeong commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Nice work - I just tested from UX perspective (not reviewing code) and I like it. Just one nit: Compared to the rest of UI and other modals the font pitch is lower than in other areas. Font sizes should be adjusted to other UI standards.

Thanks!

Adjusted the sizes to match the UI standards and simplified the props.( 2f71255, 20a0db6)
Could you take another look?

Another Modal Another Table HITL Modal HITL Drawer
image image image image

@pierrejeambrun
pierrejeambrun force-pushed the feat/notification-ux-for-hitl branch from f10c8ae to 256c5c8 Compare June 16, 2026 10:58
@pierrejeambrun

pierrejeambrun commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

@parkhojeong I just added a commit to address my previous comments and fix some of the pagination / number displayed confusion, if you want to take a look.

I'll rebase the branch and fix conflicts.

What do you think is there left before we can make this 'ready for review'?

@pierrejeambrun

pierrejeambrun commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

Sorry to rush this, but it's actually blocking 3.3.0 beta release process. Just trying my best to help and make this move forward.

@parkhojeong

Copy link
Copy Markdown
Contributor Author

@parkhojeong I just added a commit to address my previous comments, if you want to take a look.

I'll rebase the branch and fix conflicts.

What do you think is there left before we can make this 'ready for review'?

Thanks!

I've addressed both jscheffl's and your comments. For now, your comments seem to be resolved. (the jscheffl's comment was about styling.)

The last remaining is choo's comment about E2E tests. I'm doing a final check and polishing things up a bit.

@parkhojeong

parkhojeong commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Sorry to rush this, but it's actually blocking 3.3.0 beta release process. Just trying my best to help and make this move forward.

Thanks for the work!

https://github.com/apache/airflow/compare/f10c8aee7d5317bb478da235fdba8f07a064c3c6..256c5c822c35233d517eaa62feba57e8a291f273.

130px -> 170px and onPrevious seem to have changed. Would it be okay if I take this and resolve the conflicts?

@parkhojeong

parkhojeong commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

@pierrejeambrun
If the E2E tests look good to you, I think it's ready for review once the conflicts are resolved.

@pierrejeambrun
pierrejeambrun force-pushed the feat/notification-ux-for-hitl branch from 256c5c8 to a152dfc Compare June 16, 2026 11:25
@pierrejeambrun

Copy link
Copy Markdown
Member

I just pushed the rebase for conflicts.

I'm now doing some testing, feel free to update the branch as you see fit

@pierrejeambrun
pierrejeambrun marked this pull request as ready for review June 16, 2026 12:03
@pierrejeambrun
pierrejeambrun marked this pull request as draft June 16, 2026 12:04
@pierrejeambrun
pierrejeambrun marked this pull request as ready for review June 16, 2026 12:04
Restore changes dropped during branch sync
Restore changes dropped during branch sync
@parkhojeong

Copy link
Copy Markdown
Contributor Author

I just pushed the rebase for conflicts.

I'm now doing some testing, feel free to update the branch as you see fit

I restored some dropped changes. 164adbd, e842d46

@pierrejeambrun

Copy link
Copy Markdown
Member

Nit: Could be nice to add a way to align right and left panel
Screenshot 2026-06-16 at 14 43 06

"Pending required actions (32)" is pushing down the left column.

@parkhojeong

parkhojeong commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Nit: Could be nice to add a way to align right and left panel Screenshot 2026-06-16 at 14 43 06

"Pending required actions (32)" is pushing down the left column.

Aligned the layout in cee799e.

image

@parkhojeong

parkhojeong commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Added horizontal scrolling for mobile ui. e8f658a, 8992ac7

Updated the PR description and screenshots/recordings based on the latest commits.

@pierrejeambrun

Copy link
Copy Markdown
Member

@parkhojeong thanks. Lets not make more change now, I think it's ready this needs to be merged.

@parkhojeong

parkhojeong commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

@parkhojeong thanks. Lets not make more change now, I think it's ready this needs to be merged.

Got it.

One thing I noticed. when the items exceed the limit(default is 50), the list header count may not match the list. Because total_entries could differ from hitl_details.length. Is that acceptable for merging?

For example, total_entries is 3 while the limit is set to 1.

image

@pierrejeambrun

pierrejeambrun commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

I think the number of action should be the 'real' number of actions. This implementation of the modal only allows to display and answer the first page. Which can be a follow up improvement.

@pierrejeambrun

pierrejeambrun commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

User needs to go to 'review all' to see all of them. Or answer the first 100 page. Then close and re-open the modal. It's just showing the first 100. (quick action on the first 100 items)

@pierrejeambrun

Copy link
Copy Markdown
Member

I'll add a small note, also we are missing a button on the 'daglist' modal

@parkhojeong

parkhojeong commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

User needs to go to 'review all' to see all of them. Or answer the first 100 page. Then close and re-open the modal. It's just showing the first 100. (quick action on the first 100 items)

I think the current approach provides a reasonable UX. We can improve it later if needed.

@parkhojeong

parkhojeong commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

I'll add a small note, also we are missing a button on the 'daglist' modal

Do you mean the /dags page by the "daglist" modal?

image

@pierrejeambrun

Copy link
Copy Markdown
Member

Button was missing here, it will end up on an 'unfiltered' list by default (no dag_id pattern filter setup), but still better than nothing and will go with the 'tooltip' I just added.
Screenshot 2026-06-16 at 17 49 06

Screenshot 2026-06-16 at 17 49 53

@pierrejeambrun

Copy link
Copy Markdown
Member

CI was failing I just pushed, this will restart the CI and we should be good.

@parkhojeong

Copy link
Copy Markdown
Contributor Author

Looks great, thanks!

@vatsrahul1001
vatsrahul1001 merged commit 250fbb2 into apache:main Jun 16, 2026
145 checks passed
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.3.0 milestone Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. full tests needed We need to run full set of tests for this PR to merge translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants