Skip to content

Add Admin and DevPortal UI for DevPortal Governance templates - #1346

Open
ashiduDissanayake wants to merge 3 commits into
wso2:mainfrom
ashiduDissanayake:feature/devportal-governance
Open

Add Admin and DevPortal UI for DevPortal Governance templates#1346
ashiduDissanayake wants to merge 3 commits into
wso2:mainfrom
ashiduDissanayake:feature/devportal-governance

feat: refine governance template experience

5cccd12
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 10, 2026 in 1m 41s

Quality Gate failed

Failed conditions
3 Security Hotspots
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 79 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/TemplateWizard.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The empty object is useless.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutcNwyfbI-4OJMYY&open=AZ4TutcNwyfbI-4OJMYY&pullRequest=1346

Check warning on line 148 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/ApplicationCreateForm.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.application.attributes' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZKwyfbI-4OJMXR&open=AZ4TutZKwyfbI-4OJMXR&pullRequest=1346

Check warning on line 134 in portals/admin/src/main/webapp/source/src/app/components/Governance/RulesetCatalog/AddEditRuleset.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`CONSUMER_RULE_TYPES` should be a `Set`, and use `CONSUMER_RULE_TYPES.has()` to check existence or non-existence.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutcnwyfbI-4OJMYb&open=AZ4TutcnwyfbI-4OJMYb&pullRequest=1346

Check warning on line 1091 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/steps/FormBuilderStep.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The empty object is useless.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutbSwyfbI-4OJMX8&open=AZ4TutbSwyfbI-4OJMX8&pullRequest=1346

Check warning on line 145 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/ApplicationCreateForm.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.application' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZKwyfbI-4OJMXM&open=AZ4TutZKwyfbI-4OJMXM&pullRequest=1346

Check warning on line 1077 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/steps/FormBuilderStep.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'templateState.formConfig.application.attributes' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutbSwyfbI-4OJMX4&open=AZ4TutbSwyfbI-4OJMX4&pullRequest=1346

Check warning on line 1139 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/TokenManager.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.keyManagers' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZ1wyfbI-4OJMXg&open=AZ4TutZ1wyfbI-4OJMXg&pullRequest=1346

Check warning on line 862 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/steps/FormBuilderStep.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'kmConfig.grantTypes' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutbSwyfbI-4OJMXz&open=AZ4TutbSwyfbI-4OJMXz&pullRequest=1346

Check warning on line 1138 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/TokenManager.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.keyManagers' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZ1wyfbI-4OJMXf&open=AZ4TutZ1wyfbI-4OJMXf&pullRequest=1346

Check warning on line 861 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/steps/FormBuilderStep.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'kmConfig.grantTypes' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutbSwyfbI-4OJMXx&open=AZ4TutbSwyfbI-4OJMXx&pullRequest=1346

Check warning on line 188 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/KeyConfiguration.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.keyGeneration' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutahwyfbI-4OJMXl&open=AZ4TutahwyfbI-4OJMXl&pullRequest=1346

Check warning on line 188 in portals/devportal/src/main/webapp/source/src/app/components/Apis/Listing/SubscriptionPolicySelect.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'applicationId' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutYawyfbI-4OJMXK&open=AZ4TutYawyfbI-4OJMXK&pullRequest=1346

Check warning on line 708 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/steps/ReviewPublishStep.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'templateState.formConfig.application' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutbtwyfbI-4OJMYM&open=AZ4TutbtwyfbI-4OJMYM&pullRequest=1346

Check warning on line 146 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/ApplicationCreateForm.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.application[].required' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZKwyfbI-4OJMXP&open=AZ4TutZKwyfbI-4OJMXP&pullRequest=1346

Check warning on line 188 in portals/devportal/src/main/webapp/source/src/app/components/Apis/Listing/SubscriptionPolicySelect.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'handleSubscribe' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutYawyfbI-4OJMXJ&open=AZ4TutYawyfbI-4OJMXJ&pullRequest=1346

Check warning on line 1146 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/steps/FormBuilderStep.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'templateState.formConfig.application' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutbSwyfbI-4OJMYB&open=AZ4TutbSwyfbI-4OJMYB&pullRequest=1346

Check warning on line 185 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/ListTemplates.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this component definition out of the parent component and pass data as props.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4Tutb9wyfbI-4OJMYT&open=AZ4Tutb9wyfbI-4OJMYT&pullRequest=1346

Check warning on line 67 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/DeleteTemplate.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutcEwyfbI-4OJMYX&open=AZ4TutcEwyfbI-4OJMYX&pullRequest=1346

Check warning on line 188 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/KeyConfiguration.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.keyGeneration.grantTypes' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutahwyfbI-4OJMXm&open=AZ4TutahwyfbI-4OJMXm&pullRequest=1346

Check warning on line 151 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/ApplicationCreateForm.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.application' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZKwyfbI-4OJMXT&open=AZ4TutZKwyfbI-4OJMXT&pullRequest=1346

Check warning on line 151 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/ApplicationCreateForm.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.application.attributes[].required' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZKwyfbI-4OJMXV&open=AZ4TutZKwyfbI-4OJMXV&pullRequest=1346

Check warning on line 92 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/steps/RulesetBindingsStep.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutbgwyfbI-4OJMYG&open=AZ4TutbgwyfbI-4OJMYG&pullRequest=1346

Check warning on line 465 in portals/devportal/src/main/webapp/source/src/app/components/Shared/AppsAndKeys/TokenManager.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.some(…)` over `.find(…)`.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutZ1wyfbI-4OJMXZ&open=AZ4TutZ1wyfbI-4OJMXZ&pullRequest=1346

Check failure on line 1 in portals/admin/src/main/webapp/source/src/app/components/Governance/Templates/index.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Specify the rules you want to disable.

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4Tutb0wyfbI-4OJMYR&open=AZ4Tutb0wyfbI-4OJMYR&pullRequest=1346

Check warning on line 111 in portals/devportal/src/main/webapp/source/src/app/components/Applications/Details/SubscriptionTableData.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'formConfig.subscription' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=wso2_apim-apps&issues=AZ4TutUOwyfbI-4OJMW4&open=AZ4TutUOwyfbI-4OJMW4&pullRequest=1346