Skip to content

Commit e86c030

Browse files
authored
fix: UI fixes in mediaco self-service portal (#654)
1 parent 432518f commit e86c030

File tree

9 files changed

+42
-25
lines changed

9 files changed

+42
-25
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@angular/platform-browser": "^19.2.14",
6262
"@angular/platform-browser-dynamic": "^19.2.14",
6363
"@angular/router": "^19.2.14",
64-
"@pega/angular-sdk-components": "~0.25.5",
64+
"@pega/angular-sdk-components": "~0.25.6",
6565
"@pega/auth": "~0.2.34",
6666
"@pega/cosmos-react-condition-builder": "^7.0.4",
6767
"@pega/cosmos-react-core": "^7.0.4",
@@ -86,7 +86,7 @@
8686
"@angular/compiler-cli": "^19.2.14",
8787
"@angular/language-service": "^19.2.14",
8888
"@chromatic-com/storybook": "^3.2.7",
89-
"@pega/angular-sdk-overrides": "~0.25.5",
89+
"@pega/angular-sdk-overrides": "~0.25.6",
9090
"@pega/configs": "^0.16.3",
9191
"@pega/constellationjs": "~25.1.0",
9292
"@pega/dx-component-builder-sdk": "~0.25.7",

sdk-config.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,31 @@
55
"theme": "light",
66
"authConfig": {
77
"authService": "pega",
8-
98
"mashupClient_comment": "Client ID and Client secret from the OAuth 2.0 Client Registration record used for mashup use case",
109
"mashupClient_comment2": "See SDK Guide for instructions on how to generate and obtain the proper values for the following entries",
1110
"mashupClientId": "69184022781147469983",
1211
"mashupUserIdentifier": "customer@mediaco",
1312
"mashupClient_comment3": "Note: mashupPassword requires Base64 encoding",
1413
"mashupPassword": "",
15-
1614
"portalClientId_comment": "Client ID from the OAuth 2.0 Client Registration record used for portal use case",
1715
"portalClientId": "69184022781147469983"
1816
},
19-
2017
"serverConfig": {
2118
"infinityRestServerUrl_comment": "Full path to Infinity REST server",
2219
"infinityRestServerUrl": "https://localhost:1080/prweb",
23-
2420
"appAlias_comment": "appAlias of the application which operators will be accessing (e.g., MediaCo)",
2521
"appAlias": "",
26-
2722
"sdkContentServerUrl_comment": "If specified, the given URL will be used. If left blank, window.location.origin will be used.",
2823
"sdkContentServerUrl": "",
29-
3024
"appPortal_comment": "If specified, the given appPortal will be loaded. If left blank, the operator's default Portal is used. Ignored for Embedded use",
3125
"appPortal": "",
32-
3326
"appMashupCaseType_comment": "If specified, uses this case type for mashup. Otherwise, uses the first case type found for the app",
3427
"appMashupCaseType": "DIXL-MediaCo-Work-PurchasePhone",
35-
3628
"excludePortals_comment": "Array of specific portals to avoid attempting to load with SDK",
3729
"excludePortals": ["pxExpress", "Developer", "pxPredictionStudio", "pxAdminStudio", "pyCaseWorker", "pyCaseManager7"],
38-
3930
"showModalsInEmbeddedMode_comment": "If true, modals will be shown in embedded mode",
4031
"showModalsInEmbeddedMode": false
4132
},
42-
4333
"dxcbConfig": {
4434
"publishAccess": {
4535
"rulesetName": "CustomDXComponents",
@@ -60,7 +50,6 @@
6050
"user": "",
6151
"password": ""
6252
},
63-
6453
"componentDefaults": {
6554
"organization": "YourOrg",
6655
"library": "YourComponentLib",
@@ -71,7 +60,6 @@
7160
"icon": "",
7261
"lintAction": "show"
7362
},
74-
7563
"componentTemplates": {
7664
"componentTemplates_comment": "Optional paths for location of custom or override templates.",
7765
"customTemplatesPath": "",

src/app/_samples/full-portal/full-portal.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</div>
1818
</div>
1919
<div *ngIf="bPCoreReady$">
20-
<div *ngIf="sComponentName$ === 'RootContainer'">
20+
<div *ngIf="sComponentName$ === 'RootContainer'" id="pega-portal-container">
2121
<component-mapper name="RootContainer" [props]="{ pConn$ }"></component-mapper>
2222
</div>
2323
</div>

src/app/_samples/mediaco/components/banner/banner.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
row-gap: calc(2 * 0.5rem);
2020
align-items: start;
2121
padding: 1rem;
22+
23+
& > *:nth-child(1) {
24+
min-width: 0;
25+
}
2226
}
2327

2428
.psdk-grid-filter-narrow-wide {

src/app/_samples/mediaco/components/wss-nav-bar/wss-nav-bar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<mat-icon class="circle-icon">person</mat-icon>
5454
</div>
5555
</mat-list-item>
56-
<mat-menu #menu="matMenu">
56+
<mat-menu #menu="matMenu" class="custom-menu-no-padding">
5757
<button mat-menu-item (click)="navPanelLogoutClick()">{{ localizedVal('Log off', localeCategory) }}</button>
5858
</mat-menu>
5959
<mat-list-item>

src/app/_samples/mediaco/components/wss-nav-bar/wss-nav-bar.component.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,11 @@ mat-nav-list {
189189
.mat-drawer {
190190
background-color: #fef7ff !important;
191191
}
192+
193+
.psdk-nav-header {
194+
cursor: pointer;
195+
}
196+
197+
::ng-deep .custom-menu-no-padding .mat-mdc-menu-content {
198+
padding: 0 !important;
199+
}

src/app/_samples/mediaco/mediaCoStyles.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
border-top-left-radius: 2rem !important;
2525
border-bottom: gray 0.0625rem solid !important;
2626

27-
h2 {
27+
h2:nth-child(1) {
2828
color: #46185a;
2929
font-weight: 700;
3030
font-size: 36px;
@@ -34,4 +34,20 @@
3434
}
3535
}
3636
// Self Service Case View styles for MediaCo sample app - end
37+
38+
// Confirmation screen styles for MediaCo sample app - start
39+
.done-button {
40+
justify-content: start !important;
41+
padding-inline: 1rem;
42+
43+
button {
44+
color: var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));
45+
background-color: var(--mdc-filled-button-container-color, var(--mat-sys-primary));
46+
box-shadow: none;
47+
}
48+
}
49+
50+
.confirmation-details {
51+
padding-inline: 1rem;
52+
}
3753
}

src/containerStyles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ app-view-container {
7070

7171
.psdk-view-container-top {
7272
padding: 0;
73+
scroll-margin-top: 64px;
7374
}
7475
}

0 commit comments

Comments
 (0)