Skip to content

UI: Visual overhaul of Dag details layout for easier consumption - #71957

Merged
ryanahamilton merged 5 commits into
apache:mainfrom
astronomer:dag_breadcrumb
Aug 25, 2026
Merged

ryanahamilton merged 5 commits into
apache:mainfrom
astronomer:dag_breadcrumb

Conversation

@ryanahamilton

@ryanahamilton ryanahamilton commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

The details layout had accreted into something hard to read at a glance. The header was a flat stack of same-weight text, the breadcrumb gave no sign its levels were interactive, panels ran edge to edge with no boundary between chrome and content, and identifying the current Dag was split across three controls that did not acknowledge each other—a breadcrumb that named it, a search button beside it that replaced it wholesale, and a header card whose pause toggle only surfaced on deeper pages.

This is a visual overhaul of that layout. The organizing idea is that every region should be visibly a region, and every level of the hierarchy should read as one: surfaces are tinted and rounded so chrome separates from content, labels sit above the values they describe at a smaller muted weight, and anything clickable looks clickable.

Before:

file-205da06530e3604bb212643a1ad50529

After:

file-2a88b66da853e4fea3a430730de9c7f9

All of the same patterns have been carried over to the Asset detail pages as well.

image

Breadcrumb

Rebuilt as a single muted bar whose levels are ghost buttons, divided by chevron cutouts in the page background that the hover fill follows, so hovering highlights a whole level rather than a word. Each level carries a small caption above its value, the current level is bold, and run and task-instance states appear as compact badges.

The Dag level is a split control: the name navigates to the Dag, the chevron opens the Dag search in place. That replaces the separate search button that used to sit beside the breadcrumb, and mod+k now opens the switcher. The pause toggle has left the breadcrumb—a navigation element is the wrong home for a state change—and sits with the other Dag actions in the header, where it is now available on every Dag page instead of only the deeper ones.

Zight Recording 2026-08-21 at 01 27 31 PM

Chakra's breadcrumb primitive could express neither a split control nor a surface shared across levels, so the Dag and Asset breadcrumbs are built from shared parts in components/Breadcrumb/ and the wrapper is retired. The Asset breadcrumb gets the same treatment.

New placement for Pause toggle

Previously, The toggle was sometimes in the breadcrumb and sometimes in the Header. It is now in a fixed place and I've added a tooltip to it (on all implementations throughout the application).

image

Header cards

A muted rounded surface with the icon in a tinted circle, the object type captioned above the title, and stats as uppercase labels over their values. Each card now emits exactly one heading—its title—where previously every stat label was a heading, which made heading navigation useless. Action buttons are styled consistently across every details header; several were previously ghost on one page and outlined on another.

Before:

file-edf478b992723501bc8963d0087cf473

After:

file-ed0fedc77e932213635e32c2ce552dee

Panels and chrome

The main panel is a bordered, rounded container so the grid and graph read as content inside chrome rather than bleeding into the page. The graph's panel buttons overlay it instead of pushing it down, and the graph's download button joins the other controls in the xyflow control cluster instead of floating on its own.

Graph Panel Buttons - Before Graph Panel Buttons - After
file-4692576b0405ca006eec64d1baa92999 file-9abfcd8a2273192f39742109d75586ca
Download Button - Before Download Button - After
Zight 2026-08-21 at 1 53 00 PM Zight 2026-08-21 at 1 53 27 PM

Resize handles are subtle until hovered.

Before After
Zight Recording 2026-08-21 at 02 05 22 PM Zight Recording 2026-08-21 at 02 05 58 PM

Tabs use a 2px rule with a brand-colored active indicator.

Before:

dyn-7d164ff434ff862f02b5a7370bbd5d51

After:

dyn-f223a8e3a04278e35982337128fa0e49

Notes

The note preview is a tinted row when a note exists and a quiet placeholder button when it does not, and the whole row opens the editor. In the previous version the edit button was floating way off away from the placeholder text (that was unclickable).

Before:

Zight Recording 2026-08-21 at 01 57 43 PM

After:

Zight Recording 2026-08-21 at 01 58 32 PM

Fixes

Four bugs found while working in this code, each with a regression test:

  • A task inside a mapped task group reports is_mapped: false, so the breadcrumb's task level was not linkable on /mapped/:mapIndex routes, and the task-instance lookup behind its state badge requested a URL the API rejects with a 404 by design. The route is now the signal rather than task.is_mapped.
  • Saving a note appeared to fail. React propagates events out of a portal along the component tree, so a click on the modal's save button also ran the row's click handler, which reset the draft to the saved value and reopened the editor on top of the save.
  • Clicking a link in a note preview both followed the link and opened the editor.
  • Three tooltips rendered at the top-left corner of the viewport instead of under their control. IconButton's label prop wraps the button in a tooltip, and when that sits inside a Menu/Popover trigger's asChild slot the two compete for one element's id—which is how zag resolves a trigger—so the loser had no anchor.

Testing

DagBreadcrumb had no tests; it now has coverage for the crumb trail, the switcher, and the mapped-route linking. Note preview coverage was extended for the two fixes above. Full suite passes (1025 tests), along with eslint, tsc, and the pre-commit and manual prek stages.

Performed extensive manual testing in Light and dark modes.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

@boring-cyborg boring-cyborg Bot added area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default labels Aug 21, 2026
@ryanahamilton ryanahamilton changed the title UI: Add a Dag switcher to the breadcrumb and restyle details headers UI: Overhaul the details layout so pages are easier to scan Aug 21, 2026
@ryanahamilton ryanahamilton changed the title UI: Overhaul the details layout so pages are easier to scan UI: Visual overhaul of Dag details layout for easier consumption Aug 21, 2026
@raphaelauv

Copy link
Copy Markdown
Contributor

that's nice !
I'd love to have the 'Pause toggle' in a box with a clear label, like scheduling :

wdyt ?

@ashb

ashb commented Aug 21, 2026

Copy link
Copy Markdown
Member

Looks like a nice UX improvement. What does dark mode look like? My guess is it'll be as nice out of the box as Chakra/existing theming handles all these colurs but worth checking

@bbovenzi

Copy link
Copy Markdown
Contributor

Highlighted tab color in dark mode needs to be adjusted:

Screenshot 2026-08-21 at 3 33 55 PM

@ryanahamilton

Copy link
Copy Markdown
Contributor Author

Highlighted tab color in dark mode needs to be adjusted:

Good callout @bbovenzi. I fixed the contrast issues by going back to closer to the previous version in c8f34faa89f339349b82bfd1aeba56c3fe576877. Here are the updated presentations:

Dark Mode:

Zight Recording 2026-08-24 at 02 14 05 PM

Light Mode:

Zight Recording 2026-08-24 at 02 14 30 PM

@ryanahamilton
ryanahamilton requested a review from bbovenzi August 24, 2026 18:47
The details layout had accreted into something hard to read at a
glance: the header was a flat stack of same-weight text, the breadcrumb
gave no sign its levels were interactive, panels ran edge to edge with
no boundary between chrome and content, and identifying the current Dag
was split across three controls that did not acknowledge each other.

Every region should be visibly a region, and every level of the
hierarchy should read as one. Surfaces are tinted and rounded so chrome
separates from content, labels sit above the values they describe, and
anything clickable looks clickable.

Naming and switching a Dag now happen in one place, so the first
breadcrumb level both answers "which Dag am I looking at" and lets you
change the answer. Navigation levels no longer carry state-changing
controls; the pause toggle sits with the other Dag actions in the
header instead.

Chakra's breadcrumb primitive could express neither a split control nor
a surface shared across levels, so the Dag and Asset breadcrumbs are
built from shared parts and the wrapper is retired.
A level's state badge was only rendered once its state had arrived, so
the level took no room for it in between. Moving between runs and tasks
made the bar jump wider the moment each query resolved.

Levels that report a state now hold that room from the first paint.
Levels that never report one still take none, so the Dag level keeps
its name and chevron together.
@ryanahamilton
ryanahamilton merged commit 4ff4030 into apache:main Aug 25, 2026
89 checks passed
@ryanahamilton
ryanahamilton deleted the dag_breadcrumb branch August 25, 2026 16:17
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. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants