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

feat(atomic): empty no-result-text prop hides component when no child results found #3042

Merged
merged 11 commits into from
Jul 21, 2023

Conversation

nathanlb
Copy link
Contributor

@nathanlb nathanlb commented Jul 18, 2023

Currently when there are no result children in a template that supports them we display a message.

For the builder use-case we use a dynamic templating engine that requires us to support folded results without knowing if they'll ever exist. So we need a way to completely hide the child results section when there are none to be shown.

This justification based solely on the very niche builder use case probably isn't super convincing but I can see regular users also preferring to show nothing rather than a label saying there is nothing.

Also reduced the excessive spacing around the folded results due to result-action changes.

Before After
Screenshot 2023-07-20 at 2 56 52 PM Screenshot 2023-07-20 at 2 54 48 PM

@github-actions
Copy link

github-actions bot commented Jul 18, 2023

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Manifest Files

@github-actions
Copy link

github-actions bot commented Jul 18, 2023

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 181.2 181.2 0
search 339.2 339.2 0
insight 294.3 294.3 0
product-listing 283.3 283.3 0
product-recommendation 156 156 0
recommendation 191.5 191.5 0

@nathanlb nathanlb changed the title feat(atomic): Added a prop to allow users to hide result children when there are none feat(atomic): added a prop to allow users to hide result children when there are none Jul 18, 2023
Copy link
Contributor

@dmbrooke dmbrooke left a comment

Choose a reason for hiding this comment

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

LGTM

@nathanlb nathanlb changed the title feat(atomic): added a prop to allow users to hide result children when there are none feat(atomic): empty no-result-text prop hides component when no child results found Jul 21, 2023
@nathanlb nathanlb merged commit 24df05b into master Jul 21, 2023
31 checks passed
@nathanlb nathanlb deleted the fix/SVCC-3086 branch July 21, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants