Skip to content

React New design changes for self service portal.#599

Open
SambhuPega wants to merge 3 commits intomainfrom
AI/AtoRv2
Open

React New design changes for self service portal.#599
SambhuPega wants to merge 3 commits intomainfrom
AI/AtoRv2

Conversation

@SambhuPega
Copy link
Contributor

React new design changes for the self service portal

image

const [sourceList, setSourceList] = useState<any[] | null>(null);
const [galleryOpen, setGalleryOpen] = useState(false);

const configProps: any = pConn.getConfigProps();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

get config props

@@ -0,0 +1,23 @@
import { createContext, useContext, useState, useRef, type ReactNode, type MutableRefObject } from 'react';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this file required or not

[class*='MuiInputAdornment-positionStart'] {
margin-right: 0 !important;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we need mediaco styles in common

Comment on lines +120 to +127
if (!isMyWorklistChecked) {
const pegaMap = SdkComponentMap?.getPegaProvidedComponentMap?.();
const OOTBTodo = pegaMap?.['Todo'];
if (OOTBTodo) {
return <OOTBTodo {...props} />;
}
return null;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

import OOTBTodo directly from '@pega/react-sdk-components'

@@ -0,0 +1,23 @@
import { createContext, useContext, useState, useRef, type ReactNode, type MutableRefObject } from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

check why it is needed

@@ -1,2 +1,69 @@
.mediaco {
// Action Buttons styles for MediaCo sample app - start
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is no import for this file anywhere

import TopLevelApp from '../src/samples/TopLevelApp';
import './common.css';

// Suppress "Uncaught runtime errors" overlay for non-fatal Axios errors from
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this

Comment on lines +152 to +156
width: '100%',
minHeight: '100%',
backgroundColor: '#fff',
display: 'flex',
flexDirection: 'column'
Copy link
Collaborator

Choose a reason for hiding this comment

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

move these inline styles to classes

Comment on lines +58 to +59
const OOTBSelfServiceCaseView = SdkComponentMap.getPegaProvidedComponentMap().SelfServiceCaseView;
return <OOTBSelfServiceCaseView {...props} />;
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here, import from components repo directly

// Delegate to OOTB MultiStep when not on the WSS portal
const isWssPortal = (PCore.getEnvironmentInfo() as any).environmentInfoObject?.pyPortalTemplate === 'wss';
if (!isWssPortal) {
const OOTBMultiStep = SdkComponentMap.getPegaProvidedComponentMap().MultiStep;
Copy link
Collaborator

Choose a reason for hiding this comment

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

modify the import

Comment on lines +30 to +35
const pegaMap = SdkComponentMap?.getPegaProvidedComponentMap?.();
const OOTBListView = pegaMap?.['ListView'];
if (OOTBListView) {
return <OOTBListView {...props} />;
}
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

update this

@@ -0,0 +1,89 @@
/**
* Utility to build the SDK static content URL for icon/image assets.
* Mirrors the Angular Utils.getSDKStaticContentUrl / getImageSrc pattern.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this

}

/**
* Fetch work list data from a data page (mirrors Angular fetchMyWorkList).
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove mirrors Angular fetchMyWorkList

border-color: #6750a4 !important;
}

/* ========== MediaCo WSS: Assignment-routed banner (matches Angular mat-card style) ========== */
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove matches Angular mat-card style


/**
* Custom ActionButtons for WSS (MediaCo) portal.
* Styled to match the Angular SDK's Material 3 button look:
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this too

* Styled to match the Angular SDK's Material 3 button look:
* - Primary: filled pill buttons with purple background
* - Secondary: outlined pill buttons
* - Layout: left-aligned secondary, right-aligned primary (matching Angular's button-bar)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove matching Angular's button-bar

@@ -0,0 +1,53 @@
/**
* ListView-specific helpers — co-located with the ListView component.
* Mirrors Angular's list-view/listViewHelpers.ts + utils.ts pattern.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove Angular mention

)}
</div>

{/* Main case view with flex layout (matching Angular SDK) */}
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove matching Angular SDK

const isWssPortal = (PCore.getEnvironmentInfo() as any).environmentInfoObject?.pyPortalTemplate === 'wss';
if (!isWssPortal) {
const OOTBActionButtons = SdkComponentMap.getPegaProvidedComponentMap().ActionButtons;
return <OOTBActionButtons {...props} />;
Copy link
Contributor

Choose a reason for hiding this comment

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

Import from the components repo

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.

4 participants