React New design changes for self service portal.#599
React New design changes for self service portal.#599SambhuPega wants to merge 3 commits intomainfrom
Conversation
| const [sourceList, setSourceList] = useState<any[] | null>(null); | ||
| const [galleryOpen, setGalleryOpen] = useState(false); | ||
|
|
||
| const configProps: any = pConn.getConfigProps(); |
There was a problem hiding this comment.
get config props
| @@ -0,0 +1,23 @@ | |||
| import { createContext, useContext, useState, useRef, type ReactNode, type MutableRefObject } from 'react'; | |||
There was a problem hiding this comment.
is this file required or not
| [class*='MuiInputAdornment-positionStart'] { | ||
| margin-right: 0 !important; | ||
| } | ||
|
|
There was a problem hiding this comment.
do we need mediaco styles in common
| if (!isMyWorklistChecked) { | ||
| const pegaMap = SdkComponentMap?.getPegaProvidedComponentMap?.(); | ||
| const OOTBTodo = pegaMap?.['Todo']; | ||
| if (OOTBTodo) { | ||
| return <OOTBTodo {...props} />; | ||
| } | ||
| return null; | ||
| } |
There was a problem hiding this comment.
import OOTBTodo directly from '@pega/react-sdk-components'
| @@ -0,0 +1,23 @@ | |||
| import { createContext, useContext, useState, useRef, type ReactNode, type MutableRefObject } from 'react'; | |||
There was a problem hiding this comment.
check why it is needed
| @@ -1,2 +1,69 @@ | |||
| .mediaco { | |||
| // Action Buttons styles for MediaCo sample app - start | |||
There was a problem hiding this comment.
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 |
| width: '100%', | ||
| minHeight: '100%', | ||
| backgroundColor: '#fff', | ||
| display: 'flex', | ||
| flexDirection: 'column' |
There was a problem hiding this comment.
move these inline styles to classes
| const OOTBSelfServiceCaseView = SdkComponentMap.getPegaProvidedComponentMap().SelfServiceCaseView; | ||
| return <OOTBSelfServiceCaseView {...props} />; |
There was a problem hiding this comment.
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; |
| const pegaMap = SdkComponentMap?.getPegaProvidedComponentMap?.(); | ||
| const OOTBListView = pegaMap?.['ListView']; | ||
| if (OOTBListView) { | ||
| return <OOTBListView {...props} />; | ||
| } | ||
| return null; |
| @@ -0,0 +1,89 @@ | |||
| /** | |||
| * Utility to build the SDK static content URL for icon/image assets. | |||
| * Mirrors the Angular Utils.getSDKStaticContentUrl / getImageSrc pattern. | |||
| } | ||
|
|
||
| /** | ||
| * Fetch work list data from a data page (mirrors Angular fetchMyWorkList). |
There was a problem hiding this comment.
Remove mirrors Angular fetchMyWorkList
| border-color: #6750a4 !important; | ||
| } | ||
|
|
||
| /* ========== MediaCo WSS: Assignment-routed banner (matches Angular mat-card style) ========== */ |
There was a problem hiding this comment.
Remove matches Angular mat-card style
|
|
||
| /** | ||
| * Custom ActionButtons for WSS (MediaCo) portal. | ||
| * Styled to match the Angular SDK's Material 3 button look: |
| * 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) |
There was a problem hiding this comment.
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. | |||
There was a problem hiding this comment.
Remove Angular mention
| )} | ||
| </div> | ||
|
|
||
| {/* Main case view with flex layout (matching Angular SDK) */} |
There was a problem hiding this comment.
Remove matching Angular SDK
| const isWssPortal = (PCore.getEnvironmentInfo() as any).environmentInfoObject?.pyPortalTemplate === 'wss'; | ||
| if (!isWssPortal) { | ||
| const OOTBActionButtons = SdkComponentMap.getPegaProvidedComponentMap().ActionButtons; | ||
| return <OOTBActionButtons {...props} />; |
There was a problem hiding this comment.
Import from the components repo
React new design changes for the self service portal