-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(graph): improve layout when target groups are empty or there are …
…no groups (#26555) This PR fixes empty target groups and adds consistency between grouped and ungrouped targets. ## Before Empty groups have bad empty state -- we should not show it. The ungrouped targets being on their own without a group is also inconsistent. <img width="1153" alt="Screenshot 2024-06-14 at 9 46 11 AM" src="https://github.com/nrwl/nx/assets/53559/b6e96187-fc6f-4c3f-9b45-39744d02b0ec"> ## After If group is empty, don't render it. Also, if there are no groups then don't nest the ungrouped targets. <img width="1190" alt="Screenshot 2024-06-14 at 9 46 29 AM" src="https://github.com/nrwl/nx/assets/53559/76cd0b32-532b-470d-ad2f-85fc3aaf3997"> If there are groups, put the ungrouped targets into `Others`. <img width="1152" alt="Screenshot 2024-06-14 at 9 45 55 AM" src="https://github.com/nrwl/nx/assets/53559/465e64c7-e376-4555-b580-d6ecaafb61f5">
- Loading branch information
Showing
1 changed file
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters