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

UI for the XACML Connector #7313

Merged
merged 90 commits into from
Jan 17, 2025
Merged

Conversation

JeethJJ
Copy link
Contributor

@JeethJJ JeethJJ commented Jan 16, 2025

Purpose

As a part of the effort to make XACML a connector, we are introducing a new UI for the react console.

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.04%. Comparing base (1463149) to head (563925f).
Report is 88 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7313   +/-   ##
=======================================
  Coverage   36.04%   36.04%           
=======================================
  Files          42       42           
  Lines         899      899           
  Branches      222      217    -5     
=======================================
  Hits          324      324           
+ Misses        575      529   -46     
- Partials        0       46   +46     
Flag Coverage Δ
@wso2is/core 36.04% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 13 files with indirect coverage changes

@pavinduLakshan
Copy link
Contributor

Let's add the changeset, and a screencast/screenshot of the UI.

JeethJJ and others added 12 commits January 17, 2025 12:36
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
…nistration-page-layout.tsx

Co-authored-by: Pavindu Lakshan <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's get rid of index files. we are moving away from using index files.

https://josselinbuils.dev/blog/stop-using-index-files

features/admin.policy-administration.v1/rollup.config.cjs Outdated Show resolved Hide resolved
features/admin.policy-administration.v1/types/imports.d.ts Outdated Show resolved Hide resolved
value: 1
},
{
description: "The permit overrides combining algorithm is intended for those cases where a permit " +
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use i18n for string literals

@@ -0,0 +1,5 @@
.policy-inactive-list{
Copy link
Contributor

Choose a reason for hiding this comment

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

Add license header

@wso2-jenkins-bot
Copy link
Contributor

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

@JeethJJ
Copy link
Contributor Author

JeethJJ commented Jan 17, 2025

Rest of the comments will be addressed by @adibmbrk during improvements.

@brionmario
Copy link
Member

Lets address the lint issues and the existing PR comments in a followup PR.

+1 to merge this.

@JeethJJ JeethJJ merged commit ba4fe33 into wso2:master Jan 17, 2025
5 of 6 checks passed
icon: getSidePanelIcons().policyAdministration
},
id: "policyAdministration",
name: "Policy Administration",
Copy link
Member

Choose a reason for hiding this comment

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

Add i18n keys

@@ -891,6 +891,7 @@
"scopes": {
Copy link
Member

Choose a reason for hiding this comment

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

Check if all the RBAC related configs are added.

  • J2 Mappings
  • default.json updates
  • console ui scopes registered

* @param {boolean} shouldFetch - Flag to determine if the data should be fetched.
* @return {RequestResultInterface} Response as a promise.
*/
export const useGetAlgorithm = <Data = AlgorithmResponseInterface, Error = RequestErrorInterface>(
Copy link
Member

Choose a reason for hiding this comment

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

Shall we make this a bit more specific.

useGetEntitlementPolicyCombiningAlgorithm

padding: 0;
}

#active-policy-list-container{
Copy link
Member

Choose a reason for hiding this comment

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

Lets not use ids to identify elements.

Suggested change
#active-policy-list-container{
#active-policy-list-container {

}

}, [ activePolicyArray ]);

Copy link
Member

Choose a reason for hiding this comment

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

Remove these extra line breaks in all the files.

Suggested change

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