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(policies): ensure legacy policies section has an empty state #2269

Merged
merged 1 commit into from Mar 14, 2024

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Mar 5, 2024

Whilst playing around with kuma I spotted a bug when using non-federated/single-zone mode where we show a legacy policies section but we don't show an empty state, and instead its just a blank space which looks broken:

Before:

Screenshot 2024-03-05 at 11 37 17

After:

Screenshot 2024-03-05 at 11 39 56

I noticed that this was for "sidecar" dataplanes only, "gateway" dataplanes where showing an empty state, but I decided to add a KCard around the empty state in both places so there is a little change there also to make them consistent.

Theres a question about whether we should show the "Legacy Policies" block at all if its empty, but seeing as we do for gateway dataplanes I decided at least for the moment to continue to show it.

I stopped short of doing a bit more work here as I know there is work in progress that is altering this code for different reasons, but there is likely to be a follow up in this area later.

Copy link

netlify bot commented Mar 5, 2024

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit ec5f9af
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/65e720619e9cbf0008b8473e
😎 Deploy Preview https://deploy-preview-2269--kuma-gui.netlify.app/gui
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@johncowen johncowen marked this pull request as ready for review March 5, 2024 11:53
@johncowen johncowen requested a review from a team as a code owner March 5, 2024 11:53
@johncowen johncowen requested review from kleinfreund and removed request for a team March 5, 2024 11:53
@johncowen johncowen self-assigned this Mar 5, 2024
Signed-off-by: John Cowen <john.cowen@konghq.com>
@johncowen
Copy link
Contributor Author

This is another place where we could use Object.groupBy (#2287) but we can circle round later.

@johncowen johncowen merged commit 485b23e into kumahq:master Mar 14, 2024
15 checks passed
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.

None yet

2 participants