Skip to content

feat: [APL-898] - Network Policies Page#609

Merged
dennisvankekem merged 37 commits into
mainfrom
APL-898
Jul 28, 2025
Merged

feat: [APL-898] - Network Policies Page#609
dennisvankekem merged 37 commits into
mainfrom
APL-898

Conversation

@dennisvankekem
Copy link
Copy Markdown
Collaborator

Considerations

  • I have tested the changes in both light and dark mode.
  • I have considered the need for new unit tests.
  • I have tested the changes on a cluster.
  • I have included relevant documentation updates.
  • I have an approved Figma design or have reflected my changes in Figma
  • I have verified that the UI/UX is consistent in major browsers (e.g., Chrome, Firefox, Safari, Edge).
  • I have tested the changes for responsiveness in different screen resolutions.
  • I have tested expected error states and verified that the user is presented with informative error messages.
  • I have tested the feature with unusual or extreme inputs (e.g., very long strings, empty states, clicking a button multiple times quickly).

@ferruhcihan ferruhcihan self-assigned this Jul 16, 2025
@ElderMatt ElderMatt self-assigned this Jul 16, 2025
@ElderMatt
Copy link
Copy Markdown
Contributor

Deployed on cluster and without having any services or workloads I see the following for both outbound and inbound rules.
image

@dennisvankekem dennisvankekem marked this pull request as ready for review July 16, 2025 09:45
@dennisvankekem dennisvankekem changed the title [APL-898] - Network Policies Page feat: [APL-898] - Network Policies Page Jul 16, 2025
@ElderMatt
Copy link
Copy Markdown
Contributor

Should it be allowed to target the same source?
image

@ElderMatt
Copy link
Copy Markdown
Contributor

Why is the first source allowed to be removed? It would be nice if the remove button only shows up for the sources if there is more than 1.

@ElderMatt
Copy link
Copy Markdown
Contributor

I dont get an error when trying to create a rule and not having a source.
image

@ElderMatt
Copy link
Copy Markdown
Contributor

ElderMatt commented Jul 17, 2025

Error handling is also missing for the Inbound rule name and workload target

@ElderMatt
Copy link
Copy Markdown
Contributor

ElderMatt commented Jul 17, 2025

Im am unable to have inbound and outbound rule with the same name, I get why but it looks weird because they are in separate tables. I think we should change the error so that it is clear that inbound and outbound rules cannot have the same name.
image

Comment thread package.json Outdated
Comment thread src/pages/network-policies/create-edit/NetworkPoliciesEgressCreateEditPage.tsx Outdated
Comment thread src/pages/network-policies/create-edit/NetworkPoliciesIngressCreateEditPage.tsx Outdated
Comment thread src/App.tsx
Comment thread src/pages/network-policies/create-edit/NetworkPoliciesIngressCreateEditPage.tsx Outdated
Comment thread src/pages/network-policies/overview/NetworkPoliciesOverviewPage.tsx Outdated
@dennisvankekem
Copy link
Copy Markdown
Collaborator Author

Should it be allowed to target the same source? image

Strangly enough, yes.

Copy link
Copy Markdown
Collaborator

@ferruhcihan ferruhcihan left a comment

Choose a reason for hiding this comment

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

Reviewed and tested with a cluster. I was able to create inbound and outbound rules successfully, and they worked as expected.

However, some pages and components need adjustments:

  • Inbound Rules: When I search and select the label of the target, : turns into =.
  • Inbound Rules: When I click an existing inbound rule or reload the page, I lose my actual labels and they default to the first items in their lists.
  • Outbound Rules: When I try to update an existing outbound rule, I can enter invalid port numbers and still submit the form. No error message is shown. It doesn’t affect the actual value in the values repository, but it's confusing.
  • There are some unresolved issues.

Screenshots:
Screenshot 2025-07-23 at 15 10 28
Screenshot 2025-07-23 at 15 12 32
Screenshot 2025-07-23 at 15 29 12

Comment thread public/i18n/en/common.json Outdated
Comment thread src/App.tsx
Comment thread src/pages/network-policies/create-edit/NetworkPoliciesIngressCreateEditPage.tsx Outdated
Comment thread src/pages/network-policies/create-edit/NetworkPoliciesEgressCreateEditPage.tsx Outdated
Comment thread src/pages/network-policies/overview/NetworkPoliciesOverviewPage.tsx Outdated
dennisvankekem and others added 2 commits July 24, 2025 09:52
…e.tsx

Co-authored-by: Ferruh <63190600+ferruhcihan@users.noreply.github.com>
@ElderMatt
Copy link
Copy Markdown
Contributor

At the moment on the overview page I am missing certain columns, in the design we had for inbound (name, source, target) and for outbound we had (name, port ,protocol). At the moment we have rule type which makes no sense because they are already split between inbound and outbound.
Screenshot 2025-07-24 at 1 40 53 PM

@ElderMatt
Copy link
Copy Markdown
Contributor

Reviewed and tested with a cluster. I was able to create inbound and outbound rules successfully, and they worked as expected.

However, some pages and components need adjustments:

  • Inbound Rules: When I search and select the label of the target, : turns into =.
  • Inbound Rules: When I click an existing inbound rule or reload the page, I lose my actual labels and they default to the first items in their lists.
  • Outbound Rules: When I try to update an existing outbound rule, I can enter invalid port numbers and still submit the form. No error message is shown. It doesn’t affect the actual value in the values repository, but it's confusing.
  • There are some unresolved issues.

Screenshots: Screenshot 2025-07-23 at 15 10 28 Screenshot 2025-07-23 at 15 12 32 Screenshot 2025-07-23 at 15 29 12

Can confirm that these are still there.

@ElderMatt
Copy link
Copy Markdown
Contributor

I am not able to submit, but also dont see an error.
image

@ElderMatt
Copy link
Copy Markdown
Contributor

Can you remove the graph and put it in a separate branch?

@dennisvankekem dennisvankekem merged commit 159e317 into main Jul 28, 2025
6 checks passed
@dennisvankekem dennisvankekem deleted the APL-898 branch July 28, 2025 14:29
Ani1357 added a commit that referenced this pull request Aug 18, 2025
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.

5 participants