From fc170572f801b76aa92475115392018e34a333b0 Mon Sep 17 00:00:00 2001 From: BLasan Date: Thu, 11 Jan 2024 08:57:09 +0530 Subject: [PATCH 01/42] Improve: Validation for API Context --- .../src/main/webapp/source/src/app/data/APIValidation.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/data/APIValidation.js b/portals/publisher/src/main/webapp/source/src/app/data/APIValidation.js index 7bef690a934..0cbb107ebd8 100644 --- a/portals/publisher/src/main/webapp/source/src/app/data/APIValidation.js +++ b/portals/publisher/src/main/webapp/source/src/app/data/APIValidation.js @@ -134,7 +134,11 @@ const definition = { }); return tmpErrors; }), - apiContext: Joi.string().max(200).regex(/(?!.*\/t\/.*|.*\/t$)^[^~!@#:%^&*+=|\\<>"',&\s[\]]*$/).required() + apiContext: Joi.string().max(200).regex(/(?!.*\/t\/.*|.*\/t$)^[^`~!@#?:%^&*+=|\\<>"',&\s[\]]*$/).required() + .error((errors) => { + return errors.map((error) => ({ ...error, message: 'Context ' + getMessage(error.type, 200) })); + }), + apiContextWithoutKeyWords: Joi.string().max(200).regex(/^[^{}]*$/).required() .error((errors) => { return errors.map((error) => ({ ...error, message: 'Context ' + getMessage(error.type, 200) })); }), From 5d65e7fe0760985178c28315c242aaa4487af214 Mon Sep 17 00:00:00 2001 From: Sahan Randika Date: Tue, 5 Mar 2024 15:29:11 +0530 Subject: [PATCH 02/42] fix policies button align issue --- .../source/src/app/components/CommonPolicies/DeletePolicy.jsx | 1 + .../webapp/source/src/app/components/CommonPolicies/Listing.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/CommonPolicies/DeletePolicy.jsx b/portals/publisher/src/main/webapp/source/src/app/components/CommonPolicies/DeletePolicy.jsx index 8e543291803..3e8040f3221 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/CommonPolicies/DeletePolicy.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/CommonPolicies/DeletePolicy.jsx @@ -67,6 +67,7 @@ const DeletePolicy = ({ policyId, policyName, fetchCommonPolicies }) => { <> - - :null} - - - - - + } + placement='bottom-start' + > + + + + + {!isRestricted(['apim:gateway_policy_manage']) + ? + + + :null} + + + + + + ); }; From 6a1b4b474f07d5729580e0be60f428b6b3a93d19 Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Wed, 13 Mar 2024 14:55:50 +0530 Subject: [PATCH 06/42] Fix https://github.com/wso2/api-manager/issues/2593 --- .../app/components/Apis/Listing/Landing/Menus/RestAPIMenu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/RestAPIMenu.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/RestAPIMenu.jsx index 105ae542a55..037145bc07c 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/RestAPIMenu.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/RestAPIMenu.jsx @@ -100,7 +100,7 @@ const RestAPIMenu = (props) => { {(!isCreateMenu || (isCreateMenu && alwaysShowDeploySampleButton)) && showSampleDeploy && !apkGatewayType && ( <> - + From 82a490dc269df8925b1180477eb6bcedd6b9295b Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Wed, 13 Mar 2024 15:28:17 +0530 Subject: [PATCH 07/42] Fix https://github.com/wso2/api-manager/issues/2568 --- .../Apis/Details/Configuration/components/Tags.jsx | 2 +- .../webapp/source/src/app/components/Shared/ChipInput.js | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/Tags.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/Tags.jsx index a95d43bf470..3435e19ed4e 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/Tags.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/Tags.jsx @@ -116,8 +116,8 @@ export default function Tags(props) { }} style={{ backgroundColor: (regexPattern.test(value) || value.length > 30) ? red[300] : null, - margin: '0 8px 12px 0', float: 'left', + marginRight: '8px', }} /> )} diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Shared/ChipInput.js b/portals/publisher/src/main/webapp/source/src/app/components/Shared/ChipInput.js index c77c41e854f..371f0272d3a 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Shared/ChipInput.js +++ b/portals/publisher/src/main/webapp/source/src/app/components/Shared/ChipInput.js @@ -81,9 +81,6 @@ const StyledFormControl = styled(FormControl)(({ theme }) => { } }, [`& .${classes.outlined}`]: { - '& input': { - padding: theme.spacing(2), - } }, [`& .${classes.standard}`]: {}, [`& .${classes.filled}`]: { @@ -181,9 +178,6 @@ const StyledFormControl = styled(FormControl)(({ theme }) => { float: 'left' }, [`& .${classes.marginDense}`]: {}, - [`& .MuiChip-root`]: { - margin: '0 !important', - }, }; }); @@ -763,7 +757,7 @@ export const defaultChipRenderer = ({ value, text, isFocused, isDisabled, isRead className={className} style={{ pointerEvents: isDisabled || isReadOnly ? 'none' : undefined, - backgroundColor: isFocused ? blue[300] : undefined + backgroundColor: isFocused ? blue[300] : undefined, }} onClick={handleClick} onDelete={handleDelete} From 860b00587c0e612dfb26fe0a4c65eeeb5d440524 Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Wed, 13 Mar 2024 15:56:54 +0530 Subject: [PATCH 08/42] Fix https://github.com/wso2/api-manager/issues/2567 --- .../src/app/components/Scopes/EditScope.jsx | 5 +- .../app/components/Scopes/Listing/Listing.jsx | 107 +++++++++--------- 2 files changed, 55 insertions(+), 57 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Scopes/EditScope.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Scopes/EditScope.jsx index d9d18538c5e..d2b0eac3b65 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Scopes/EditScope.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Scopes/EditScope.jsx @@ -389,15 +389,14 @@ class EditScope extends React.Component { return ; } return ( - - + {/* Following two grids control the placement of whole create page For centering the content better use `container` props, but instead used an empty grid item for flexibility */} - +
diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Scopes/Listing/Listing.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Scopes/Listing/Listing.jsx index f2027ecc38c..2ee3ddd0b36 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Scopes/Listing/Listing.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Scopes/Listing/Listing.jsx @@ -62,11 +62,10 @@ const classes = { buttonLeft: `${PREFIX}-buttonLeft` }; -const Root = styled('div')(( - { - theme - } -) => ({ +const Root = styled('div')(({ theme }) => ({ + '&': { + padding: `${theme.spacing(1)} ${theme.spacing(3)}`, + }, [`& .${classes.contentInside}`]: { padding: theme.spacing(3), paddingTop: theme.spacing(2), @@ -196,9 +195,7 @@ function ScopeTablePagination(props) { } return ( - +
@@ -217,7 +214,7 @@ function ScopeTablePagination(props) { size='large'> - +
); } @@ -445,55 +442,57 @@ class Listing extends React.Component { } return ( -
- - - - - - - - {isRestricted(['apim:shared_scope_manage']) && ( - - + + +
+ + + {isRestricted(['apim:shared_scope_manage']) && ( + + + + + + )} + + + + +
+ ); } } From 02efe7fa9c19cfe984fbe69793d384d65a5b84bb Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Fri, 15 Mar 2024 14:39:41 +0530 Subject: [PATCH 09/42] Fix https://github.com/wso2/api-manager/issues/2622 --- .../Configuration/components/DescriptionEditor.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/DescriptionEditor.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/DescriptionEditor.jsx index 08df3c30404..1738f928471 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/DescriptionEditor.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/DescriptionEditor.jsx @@ -58,7 +58,7 @@ const classes = { }; -const Root = styled('div')(() => ({ +const StyledDialog = styled(Dialog)(({ theme }) => ({ [`& .${classes.flex}`]: { flex: 1, }, @@ -72,7 +72,6 @@ const Root = styled('div')(() => ({ [`& .${classes.splitWrapper}`]: { padding: 0, paddingTop: 2, - border: '1px solid #red', }, [`& .${classes.editorHeader}`]: { @@ -83,6 +82,7 @@ const Root = styled('div')(() => ({ [`& .${classes.markdownViewWrapper}`]: { height: '100vh', overflowY: 'auto', + padding: theme.spacing(2), }, [`& .${classes.appBar}`]: { @@ -169,7 +169,7 @@ export default function DescriptionEditor(props) { const markdownWithApiData = addApiContent(content); return ( - +
- +
- + { descriptionType === CONSTS.DESCRIPTION_TYPES.DESCRIPTION ? ( @@ -347,8 +347,8 @@ export default function DescriptionEditor(props) { )}
-
- + +
); } From c079db2aaa36c619d718f1b4d29ea8057d874bec Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Fri, 15 Mar 2024 14:49:21 +0530 Subject: [PATCH 10/42] Fix https://github.com/wso2/api-manager/issues/2608 --- .../Apis/Details/Documents/MarkdownEditor.jsx | 10 +++++----- .../components/Apis/Details/Documents/TextEditor.jsx | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/MarkdownEditor.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/MarkdownEditor.jsx index f66e51da3e1..fe4bad2741f 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/MarkdownEditor.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/MarkdownEditor.jsx @@ -50,7 +50,7 @@ const classes = { button: `${PREFIX}-button` }; -const Root = styled('div')({ +const StyledDialog = styled(Dialog)({ [`& .${classes.appBar}`]: { position: 'relative', }, @@ -175,7 +175,7 @@ function MarkdownEditor(props) { const { docName } = props; return ( - +
- + close @@ -257,8 +257,8 @@ function MarkdownEditor(props) {
- -
+ + ); } diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/TextEditor.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/TextEditor.jsx index 8e230b6381a..740a4377a26 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/TextEditor.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/TextEditor.jsx @@ -50,7 +50,7 @@ const classes = { button: `${PREFIX}-button` }; -const Root = styled('div')({ +const StyledDialog = styled(Dialog)({ [`& .${classes.appBar}`]: { position: 'relative', }, @@ -154,7 +154,7 @@ function TextEditor(props) { const { docName } = props; return ( - +
- + close @@ -196,8 +196,8 @@ function TextEditor(props) { onEditorStateChange={onEditorStateChange} />
- -
+ + ); } From d6a8f06c6afae43f1fd6c4a0d9ab6cb77c30a671 Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Fri, 15 Mar 2024 15:27:27 +0530 Subject: [PATCH 11/42] Fix document edit metadata UI --- .../components/Apis/Details/Documents/Edit.jsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Edit.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Edit.jsx index 665d37ee7cb..e3f76ef509c 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Edit.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Edit.jsx @@ -45,7 +45,7 @@ const classes = { editMetaButton: `${PREFIX}-editMetaButton` }; -const Root = styled('div')({ +const StyledDialog = styled(Dialog)({ [`& .${classes.appBar}`]: { position: 'relative', }, @@ -68,9 +68,6 @@ const Root = styled('div')({ height: 30, marginLeft: 30, }, - [`& .${classes.editMetaButton}`]: { - whiteSpace: 'nowrap', - }, }); function Transition(props) { @@ -138,11 +135,11 @@ function Edit(props) { const { docId, apiId, docName } = props; return ( - +
- + close @@ -188,8 +185,8 @@ function Edit(props) { setSaveDisabled={setSaveDisabled} />
- -
+ + ); } Edit.propTypes = { From 03e486f6ef78d924df574e4bc7a92078d61ab20f Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Mon, 18 Mar 2024 10:06:25 +0530 Subject: [PATCH 12/42] Fix https://github.com/wso2/api-manager/issues/2598 --- .../Details/Environments/Environments.jsx | 81 +++++++------------ 1 file changed, 31 insertions(+), 50 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx index 1507a0cdbe8..8b18511be72 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx @@ -16,6 +16,7 @@ * under the License. */ +/* eslint-disable */ import React, { useContext, useEffect, useState } from 'react'; import { styled } from '@mui/material/styles'; import { APIContext } from 'AppComponents/Apis/Details/components/ApiContext'; @@ -1224,36 +1225,30 @@ export default function Environments() { /> -
- +
+ {revName} - + {revDescription} -
- - {moment(revCreatedTime).fromNow()} - -
+ + {moment(revCreatedTime).fromNow()} +
@@ -1366,15 +1361,12 @@ export default function Environments() { /> -
- +
+ {revName} - + {revDescription} -
- - {moment(revCreatedTime).fromNow()} - -
+ + {moment(revCreatedTime).fromNow()} +
@@ -1429,29 +1419,21 @@ export default function Environments() { /> -
- - {revDescription} - -
+ {revDescription}
@@ -1478,15 +1460,14 @@ export default function Environments() { {item1} {allRevisions[revision].displayName} - {allRevisions[revision].description && <> - - {infoIconItem} - - } + {allRevisions[revision].description && ( + <> + + {infoIconItem} + + )} - +
- - + )} - + From 85b7fea8d2a12f1cdbfabf8684714563c9a261f1 Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Wed, 20 Mar 2024 14:37:34 +0530 Subject: [PATCH 18/42] Enable eslinting --- .../app/components/Apis/Details/Environments/Environments.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx index c675141f8db..e158e1ca715 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Environments/Environments.jsx @@ -16,7 +16,6 @@ * under the License. */ -/* eslint-disable */ import React, { useContext, useEffect, useState } from 'react'; import { styled } from '@mui/material/styles'; import { APIContext } from 'AppComponents/Apis/Details/components/ApiContext'; From fb5f9540874f5ba76c5b84aeec0e3d708b4ab3e2 Mon Sep 17 00:00:00 2001 From: WSO2 Builder Date: Wed, 20 Mar 2024 09:15:53 +0000 Subject: [PATCH 19/42] [WSO2 Release] [Jenkins #799] [Release 9.1.13] prepare release v9.1.13 --- pom.xml | 4 ++-- portals/admin/pom.xml | 2 +- portals/devportal/pom.xml | 2 +- portals/pom.xml | 4 ++-- portals/publisher/pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 18b9c6c1328..07da063a7c4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps pom - 9.1.13-SNAPSHOT + 9.1.13 WSO2 API Manager UI - Parent https://wso2.org @@ -21,7 +21,7 @@ https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git - HEAD + v9.1.13 diff --git a/portals/admin/pom.xml b/portals/admin/pom.xml index b4781207b69..3c938bf29a5 100644 --- a/portals/admin/pom.xml +++ b/portals/admin/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13-SNAPSHOT + 9.1.13 ../../pom.xml diff --git a/portals/devportal/pom.xml b/portals/devportal/pom.xml index 4de898d3490..38ccc8fc7a7 100644 --- a/portals/devportal/pom.xml +++ b/portals/devportal/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13-SNAPSHOT + 9.1.13 ../../pom.xml diff --git a/portals/pom.xml b/portals/pom.xml index edc2ec603be..832033f2e37 100644 --- a/portals/pom.xml +++ b/portals/pom.xml @@ -20,14 +20,14 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13-SNAPSHOT + 9.1.13 ../pom.xml 4.0.0 apim.ui.apps.portals pom - 9.1.13-SNAPSHOT + 9.1.13 WSO2 API Manager UI Portals - Parent https://wso2.org diff --git a/portals/publisher/pom.xml b/portals/publisher/pom.xml index 14878f3470e..3cc195bbc50 100644 --- a/portals/publisher/pom.xml +++ b/portals/publisher/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13-SNAPSHOT + 9.1.13 ../../pom.xml From 9b65440c19b4acfe6f930121764d8df801e4a242 Mon Sep 17 00:00:00 2001 From: WSO2 Builder Date: Wed, 20 Mar 2024 09:15:54 +0000 Subject: [PATCH 20/42] [WSO2 Release] [Jenkins #799] [Release 9.1.13] prepare for next development iteration --- pom.xml | 4 ++-- portals/admin/pom.xml | 2 +- portals/devportal/pom.xml | 2 +- portals/pom.xml | 4 ++-- portals/publisher/pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 07da063a7c4..8c33d43c8ee 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps pom - 9.1.13 + 9.1.14-SNAPSHOT WSO2 API Manager UI - Parent https://wso2.org @@ -21,7 +21,7 @@ https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git - v9.1.13 + HEAD diff --git a/portals/admin/pom.xml b/portals/admin/pom.xml index 3c938bf29a5..b463ba4c704 100644 --- a/portals/admin/pom.xml +++ b/portals/admin/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13 + 9.1.14-SNAPSHOT ../../pom.xml diff --git a/portals/devportal/pom.xml b/portals/devportal/pom.xml index 38ccc8fc7a7..1822136a0ff 100644 --- a/portals/devportal/pom.xml +++ b/portals/devportal/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13 + 9.1.14-SNAPSHOT ../../pom.xml diff --git a/portals/pom.xml b/portals/pom.xml index 832033f2e37..89886527b63 100644 --- a/portals/pom.xml +++ b/portals/pom.xml @@ -20,14 +20,14 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13 + 9.1.14-SNAPSHOT ../pom.xml 4.0.0 apim.ui.apps.portals pom - 9.1.13 + 9.1.14-SNAPSHOT WSO2 API Manager UI Portals - Parent https://wso2.org diff --git a/portals/publisher/pom.xml b/portals/publisher/pom.xml index 3cc195bbc50..06edc0387f9 100644 --- a/portals/publisher/pom.xml +++ b/portals/publisher/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.13 + 9.1.14-SNAPSHOT ../../pom.xml From 554a697f256e02f6270c33f917796da323667f30 Mon Sep 17 00:00:00 2001 From: lasanthaS Date: Wed, 20 Mar 2024 15:42:41 +0530 Subject: [PATCH 21/42] Fix openAPI validation errors --- .../OpenAPI/Steps/ValidationResults.tsx | 32 ++++++------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/Steps/ValidationResults.tsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/Steps/ValidationResults.tsx index 88894b64d60..fc51968259a 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/Steps/ValidationResults.tsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/Steps/ValidationResults.tsx @@ -15,8 +15,8 @@ * specific language governing permissions and limitations * under the License. */ + import React, { useState } from "react"; -import { styled } from '@mui/material/styles'; import { Accordion, AccordionDetails, AccordionSummary, Box, CircularProgress, Grid, List, ListItem, ListItemIcon, ListItemText, Typography } from '@mui/material'; import { ExpandMore } from '@mui/icons-material'; @@ -26,19 +26,6 @@ import APILintingSummary from "AppComponents/Apis/Details/APIDefinition/Linting/ import { spectralSeverityMap as severityMap } from "../../../Details/APIDefinition/Linting/Linting" -const PREFIX = 'ValidationResults'; - -const classes = { - importDefinitionDialogHeader: `${PREFIX}-importDefinitionDialogHeader` -}; - - -const Root = styled('div')(() => ({ - [`& .${classes.importDefinitionDialogHeader}`]: { - fontWeight: 600, - } -})); - type APILintingProps = { inputValue: any, isValidating: boolean, @@ -56,8 +43,8 @@ export default function ValidationResults(props: APILintingProps) { return ( - ( - + (<> + {inputValue && isValidating && ( @@ -84,7 +71,7 @@ export default function ValidationResults(props: APILintingProps) { {!isValidating && validationErrors.length>0 && ( - + {setExpandValidationErrors(!expandValidationErrors)}}> @@ -94,7 +81,7 @@ export default function ValidationResults(props: APILintingProps) { id='panel1bh-header'> - + )} {!isLinting && linterResults.length>0 && ( - + {setExpandLinterResults(!expandLinterResults)}}> @@ -137,7 +124,7 @@ export default function ValidationResults(props: APILintingProps) { id='panel1bh-header'> - + - )} - ) + ) ); } \ No newline at end of file From 2dc341fcf2a5ac705da60bffda14c251a4b2bc20 Mon Sep 17 00:00:00 2001 From: WSO2 Builder Date: Wed, 20 Mar 2024 14:49:19 +0000 Subject: [PATCH 22/42] [WSO2 Release] [Jenkins #801] [Release 9.1.14] prepare release v9.1.14 --- pom.xml | 4 ++-- portals/admin/pom.xml | 2 +- portals/devportal/pom.xml | 2 +- portals/pom.xml | 4 ++-- portals/publisher/pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 8c33d43c8ee..f6125677537 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps pom - 9.1.14-SNAPSHOT + 9.1.14 WSO2 API Manager UI - Parent https://wso2.org @@ -21,7 +21,7 @@ https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git - HEAD + v9.1.14 diff --git a/portals/admin/pom.xml b/portals/admin/pom.xml index b463ba4c704..6f8c599ab24 100644 --- a/portals/admin/pom.xml +++ b/portals/admin/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14-SNAPSHOT + 9.1.14 ../../pom.xml diff --git a/portals/devportal/pom.xml b/portals/devportal/pom.xml index 1822136a0ff..f558ea15bd9 100644 --- a/portals/devportal/pom.xml +++ b/portals/devportal/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14-SNAPSHOT + 9.1.14 ../../pom.xml diff --git a/portals/pom.xml b/portals/pom.xml index 89886527b63..7090b6b26b1 100644 --- a/portals/pom.xml +++ b/portals/pom.xml @@ -20,14 +20,14 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14-SNAPSHOT + 9.1.14 ../pom.xml 4.0.0 apim.ui.apps.portals pom - 9.1.14-SNAPSHOT + 9.1.14 WSO2 API Manager UI Portals - Parent https://wso2.org diff --git a/portals/publisher/pom.xml b/portals/publisher/pom.xml index 06edc0387f9..7484d1148b6 100644 --- a/portals/publisher/pom.xml +++ b/portals/publisher/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14-SNAPSHOT + 9.1.14 ../../pom.xml From f4f5289c531b6ea8d0058a901e5b29416ed97306 Mon Sep 17 00:00:00 2001 From: WSO2 Builder Date: Wed, 20 Mar 2024 14:49:20 +0000 Subject: [PATCH 23/42] [WSO2 Release] [Jenkins #801] [Release 9.1.14] prepare for next development iteration --- pom.xml | 4 ++-- portals/admin/pom.xml | 2 +- portals/devportal/pom.xml | 2 +- portals/pom.xml | 4 ++-- portals/publisher/pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index f6125677537..5018b178c51 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps pom - 9.1.14 + 9.1.15-SNAPSHOT WSO2 API Manager UI - Parent https://wso2.org @@ -21,7 +21,7 @@ https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git - v9.1.14 + HEAD diff --git a/portals/admin/pom.xml b/portals/admin/pom.xml index 6f8c599ab24..d6f23009eec 100644 --- a/portals/admin/pom.xml +++ b/portals/admin/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14 + 9.1.15-SNAPSHOT ../../pom.xml diff --git a/portals/devportal/pom.xml b/portals/devportal/pom.xml index f558ea15bd9..4aecca02ba7 100644 --- a/portals/devportal/pom.xml +++ b/portals/devportal/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14 + 9.1.15-SNAPSHOT ../../pom.xml diff --git a/portals/pom.xml b/portals/pom.xml index 7090b6b26b1..4b7c4e3242e 100644 --- a/portals/pom.xml +++ b/portals/pom.xml @@ -20,14 +20,14 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14 + 9.1.15-SNAPSHOT ../pom.xml 4.0.0 apim.ui.apps.portals pom - 9.1.14 + 9.1.15-SNAPSHOT WSO2 API Manager UI Portals - Parent https://wso2.org diff --git a/portals/publisher/pom.xml b/portals/publisher/pom.xml index 7484d1148b6..3e5fe68066d 100644 --- a/portals/publisher/pom.xml +++ b/portals/publisher/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.14 + 9.1.15-SNAPSHOT ../../pom.xml From ab3f0d450c4b27f656cc4a892b175f472c4e1aaa Mon Sep 17 00:00:00 2001 From: WSO2 Builder Date: Wed, 20 Mar 2024 16:23:09 +0000 Subject: [PATCH 24/42] [WSO2 Release] [Jenkins #803] [Release 9.1.15] prepare release v9.1.15 --- pom.xml | 4 ++-- portals/admin/pom.xml | 2 +- portals/devportal/pom.xml | 2 +- portals/pom.xml | 4 ++-- portals/publisher/pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 5018b178c51..5ba30542a07 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps pom - 9.1.15-SNAPSHOT + 9.1.15 WSO2 API Manager UI - Parent https://wso2.org @@ -21,7 +21,7 @@ https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git - HEAD + v9.1.15 diff --git a/portals/admin/pom.xml b/portals/admin/pom.xml index d6f23009eec..9febe4d928f 100644 --- a/portals/admin/pom.xml +++ b/portals/admin/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15-SNAPSHOT + 9.1.15 ../../pom.xml diff --git a/portals/devportal/pom.xml b/portals/devportal/pom.xml index 4aecca02ba7..b19ab031be8 100644 --- a/portals/devportal/pom.xml +++ b/portals/devportal/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15-SNAPSHOT + 9.1.15 ../../pom.xml diff --git a/portals/pom.xml b/portals/pom.xml index 4b7c4e3242e..46844eb3ac0 100644 --- a/portals/pom.xml +++ b/portals/pom.xml @@ -20,14 +20,14 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15-SNAPSHOT + 9.1.15 ../pom.xml 4.0.0 apim.ui.apps.portals pom - 9.1.15-SNAPSHOT + 9.1.15 WSO2 API Manager UI Portals - Parent https://wso2.org diff --git a/portals/publisher/pom.xml b/portals/publisher/pom.xml index 3e5fe68066d..1a3db0dd8e4 100644 --- a/portals/publisher/pom.xml +++ b/portals/publisher/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15-SNAPSHOT + 9.1.15 ../../pom.xml From 5ef46eed7ffc0aacdf5d2647e442f697454289ec Mon Sep 17 00:00:00 2001 From: WSO2 Builder Date: Wed, 20 Mar 2024 16:23:11 +0000 Subject: [PATCH 25/42] [WSO2 Release] [Jenkins #803] [Release 9.1.15] prepare for next development iteration --- pom.xml | 4 ++-- portals/admin/pom.xml | 2 +- portals/devportal/pom.xml | 2 +- portals/pom.xml | 4 ++-- portals/publisher/pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 5ba30542a07..600311e1387 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps pom - 9.1.15 + 9.1.16-SNAPSHOT WSO2 API Manager UI - Parent https://wso2.org @@ -21,7 +21,7 @@ https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git scm:git:https://github.com/wso2/apim-apps.git - v9.1.15 + HEAD diff --git a/portals/admin/pom.xml b/portals/admin/pom.xml index 9febe4d928f..a94a52f6f13 100644 --- a/portals/admin/pom.xml +++ b/portals/admin/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15 + 9.1.16-SNAPSHOT ../../pom.xml diff --git a/portals/devportal/pom.xml b/portals/devportal/pom.xml index b19ab031be8..e1350369ea4 100644 --- a/portals/devportal/pom.xml +++ b/portals/devportal/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15 + 9.1.16-SNAPSHOT ../../pom.xml diff --git a/portals/pom.xml b/portals/pom.xml index 46844eb3ac0..13305b40d0a 100644 --- a/portals/pom.xml +++ b/portals/pom.xml @@ -20,14 +20,14 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15 + 9.1.16-SNAPSHOT ../pom.xml 4.0.0 apim.ui.apps.portals pom - 9.1.15 + 9.1.16-SNAPSHOT WSO2 API Manager UI Portals - Parent https://wso2.org diff --git a/portals/publisher/pom.xml b/portals/publisher/pom.xml index 1a3db0dd8e4..6029ea53e88 100644 --- a/portals/publisher/pom.xml +++ b/portals/publisher/pom.xml @@ -20,7 +20,7 @@ org.wso2.carbon.apimgt.ui apim.ui.apps - 9.1.15 + 9.1.16-SNAPSHOT ../../pom.xml From 3a8333623dba21641dea95fc99ee978f6af6f374 Mon Sep 17 00:00:00 2001 From: Krishanx92 Date: Thu, 21 Mar 2024 11:47:37 +0530 Subject: [PATCH 26/42] Add default business plan --- .../Apis/Create/OpenAPI/ApiCreateOpenAPI.jsx | 2 +- .../components/ApplicationLevel.jsx | 35 +++++++++---------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/ApiCreateOpenAPI.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/ApiCreateOpenAPI.jsx index afdfb473418..76c74eba38b 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/ApiCreateOpenAPI.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Create/OpenAPI/ApiCreateOpenAPI.jsx @@ -120,7 +120,7 @@ export default function ApiCreateOpenAPI(props) { function createAPI() { setCreating(true); const { - name, version, context, endpoint, gatewayType, policies, inputValue, inputType, + name, version, context, endpoint, gatewayType, policies = ["Unlimited"], inputValue, inputType, } = apiInputs; let defaultGatewayType; if (settings && settings.gatewayTypes.length === 1 && settings.gatewayTypes.includes('Regular')) { diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/APISecurity/components/ApplicationLevel.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/APISecurity/components/ApplicationLevel.jsx index 7cf8cfe0add..4fe7113f21f 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/APISecurity/components/ApplicationLevel.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Configuration/components/APISecurity/components/ApplicationLevel.jsx @@ -216,25 +216,22 @@ export default function ApplicationLevel(props) { label='Basic' /> )} - {(apiFromContext.gatewayType === 'wso2/synapse' || - apiFromContext.apiType === API.CONSTS.APIProduct) && ( - configDispatcher({ - action: 'securityScheme', - event: { checked, value }, - })} - value={API_SECURITY_API_KEY} - color='primary' - id='api-security-api-key-checkbox' - /> - )} - label='Api Key' - /> - )} + configDispatcher({ + action: 'securityScheme', + event: { checked, value }, + })} + value={API_SECURITY_API_KEY} + color='primary' + id='api-security-api-key-checkbox' + /> + )} + label='Api Key' + /> Date: Thu, 21 Mar 2024 12:53:23 +0530 Subject: [PATCH 27/42] Fix https://github.com/wso2/api-manager/issues/2640 --- .../Apis/Details/Credentials/Credentials.jsx | 15 ++++++++---- .../Shared/AppsAndKeys/SubscribeToApi.jsx | 23 ++++--------------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Credentials/Credentials.jsx b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Credentials/Credentials.jsx index 18876896991..281aa2f579f 100755 --- a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Credentials/Credentials.jsx +++ b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Credentials/Credentials.jsx @@ -257,7 +257,16 @@ class Credentials extends React.Component { const { api, applicationsAvailable } = this.context; const { subscriptionRequest } = this.state; const newSubscriptionRequest = { ...subscriptionRequest, apiId: api.id }; - const throttlingPolicyList = api.tiers; + const throttlingPolicyList = api.tiers.sort((a, b) => { + // Sort by 'COMMERCIAL' tier plan first + if (a.tierPlan === 'COMMERCIAL' && b.tierPlan !== 'COMMERCIAL') { + return -1; + } else if (a.tierPlan !== 'COMMERCIAL' && b.tierPlan === 'COMMERCIAL') { + return 1; + } + // For options within the same tier plan, sort alphabetically + return a.tierName.localeCompare(b.tierName); + }); if (throttlingPolicyList && throttlingPolicyList[0]) { newSubscriptionRequest.throttlingPolicy = throttlingPolicyList[0].tierName; } @@ -512,9 +521,7 @@ class Credentials extends React.Component { applicationsAvailable={applicationsAvailable} subscriptionRequest={subscriptionRequest} throttlingPolicyList={throttlingPolicyList} - updateSubscriptionRequest={ - this.updateSubscriptionRequest - } + updateSubscriptionRequest={this.updateSubscriptionRequest} renderSmall />