Skip to content

Commit

Permalink
Merge branch 'release/v1.6.0-RC4' into updates/CPLP-2973-connector-co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
manojava-gk committed Jul 27, 2023
2 parents 3924d22 + a455745 commit 2f023a1
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 25 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 1.6.0-RC3

### Change

- App Subscription Management
- Activation Approval Overlay (enhanced by customer name, bpn, technical user permission, appId)
- Technical User Management
- support managed tech user with app information
- Connector Registration
- managed connector option only available for app/service provider
- info message added for inactive select scenario

### Bugfix

- Managed connector registration api call - technicalUserID string empty instead of submitting the subscriptionID

## 1.6.0-RC2

### Change
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@catena-x/portal-frontend",
"version": "v1.6.0-RC2",
"version": "v1.6.0-RC3",
"description": "Catena-X Portal Frontend",
"author": "Catena-X Contributors",
"license": "Apache-2.0",
Expand Down
56 changes: 34 additions & 22 deletions src/components/pages/AdminCredential/AdminCredentialElements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { download } from 'utils/downloadUtils'
import { useFetchNewDocumentByIdMutation } from 'features/appManagement/apiSlice'
import { error, success } from 'services/NotifyService'
import { uniqueId } from 'lodash'
import { SubscriptionStatus } from 'features/apps/apiSlice'

export interface DummyData {
date: string
Expand Down Expand Up @@ -95,6 +96,7 @@ export default function AdminCredentialElements() {
status === StatusType.APPROVE
? success(t('content.adminCertificate.approvedMessage'))
: error(t('content.adminCertificate.declinedMessage'))
setRefresh(Date.now())
})
.catch(() => {
error(t('content.adminCertificate.errorMessage'))
Expand Down Expand Up @@ -165,28 +167,38 @@ export default function AdminCredentialElements() {
flex: 2.5,
renderCell: ({ row }: { row: CredentialData }) => (
<>
<Button
size="small"
color="error"
variant="contained"
className="statusBtn"
onClick={() =>
handleApproveDecline(row.credentialDetailId, StatusType.DECLINE)
}
>
{t('global.actions.decline')}
</Button>
<Button
size="small"
color="success"
variant="contained"
className="statusBtn ml-10"
onClick={() =>
handleApproveDecline(row.credentialDetailId, StatusType.APPROVE)
}
>
{t('global.actions.confirm')}
</Button>
{row.participantStatus === SubscriptionStatus.PENDING && (
<>
<Button
size="small"
color="error"
variant="contained"
className="statusBtn"
onClick={() =>
handleApproveDecline(
row.credentialDetailId,
StatusType.DECLINE
)
}
>
{t('global.actions.decline')}
</Button>
<Button
size="small"
color="success"
variant="contained"
className="statusBtn ml-10"
onClick={() =>
handleApproveDecline(
row.credentialDetailId,
StatusType.APPROVE
)
}
>
{t('global.actions.confirm')}
</Button>
</>
)}
</>
),
},
Expand Down
1 change: 1 addition & 0 deletions src/components/pages/AppOverview/AppOverview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
flex-wrap: wrap;
gap: 20px;
width: 1140px;
max-width: 100%;
margin: 0px auto;
padding-bottom: 40px;

Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/EdcConnector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const EdcConnector = () => {
} else if (selectedService.type === ConnectType.MANAGED_CONNECTOR) {
// body.append('providerBpn', data.ConnectorBPN)
body.append('subscriptionId', data.ConnectorSubscription.subscriptionId)
body.append('technicalUserId', data.ConnectorSubscription.subscriptionId)
body.append('technicalUserId', '')
await createManagedConnector(body)
.unwrap()
.then(() => showOverlay(true))
Expand Down
2 changes: 1 addition & 1 deletion src/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const ALL_PAGES: IPage[] = [
},
{
name: PAGES.APP_MANAGEMENT,
role: ROLES.SERVICEMANAGEMENT_VIEW,
role: ROLES.APPMANAGEMENT_VIEW,
element: <AppOverview />,
},
{
Expand Down

0 comments on commit 2f023a1

Please sign in to comment.