Skip to content
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

fix(graph): improve layout when target groups are empty or there are no groups #26555

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Jun 14, 2024

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.

Screenshot 2024-06-14 at 9 46 11 AM

After

If group is empty, don't render it. Also, if there are no groups then don't nest the ungrouped targets.

Screenshot 2024-06-14 at 9 46 29 AM

If there are groups, put the ungrouped targets into Others.

Screenshot 2024-06-14 at 9 45 55 AM

Copy link

vercel bot commented Jun 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jun 17, 2024 1:40pm

@jaysoo jaysoo force-pushed the fix/pdv-layout-improvements branch from 3ebae44 to 0a33bc4 Compare June 17, 2024 13:33
@jaysoo jaysoo merged commit 09a08c6 into master Jun 17, 2024
6 checks passed
@jaysoo jaysoo deleted the fix/pdv-layout-improvements branch June 17, 2024 16:28
FrozenPandaz pushed a commit that referenced this pull request Jun 21, 2024
…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">

(cherry picked from commit 09a08c6)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants