Skip to content

Commit

Permalink
feat/CXSPA-7587:add help icon on shell bar link to help portal(#19019) (
Browse files Browse the repository at this point in the history
#19019)

Add an icon button "sys-help" on the shellbar which helps customers easy access to ASM help portal.
When customer clicks on this icon button, the browser will open up a new tab with the URL:
https://help.sap.com/docs/SAP_COMMERCE_COMPOSABLE_STOREFRONT/d1ca9a1517f847a5b57b4e08400807c1/2367ff04ccb649ac82a3795ecf72a804.html?locale=en-US.
  • Loading branch information
clordc authored Jul 17, 2024
1 parent 28dce71 commit 378db08
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions feature-libs/asm/assets/translations/en/asm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"mainTitle": "Assisted Service Mode",
"logout": "Sign Out",
"hideUi": "Close ASM",
"helpPortalUrl": "Help",
"customers": "Customers",
"asmCustomer360Button": "Customer 360 View",
"createCustomerSuccessfullyAlert": "The customer account has been created and the customer session has started.",
Expand Down
12 changes: 12 additions & 0 deletions feature-libs/asm/components/asm-main-ui/asm-main-ui.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
</div>
</div>
<div class="asm-bar-actions">
<div class="cx-asm-help-portal">
<a
href="https://help.sap.com/docs/SAP_COMMERCE_COMPOSABLE_STOREFRONT/d1ca9a1517f847a5b57b4e08400807c1/2367ff04ccb649ac82a3795ecf72a804.html?locale=en-US"
target="_blank"
rel="noopener noreferrer"
role="button"
>
<cx-icon [type]="iconTypes.HELP"></cx-icon>
<span>{{ 'asm.helpPortalUrl' | cxTranslate }}</span></a
>
</div>

<div
class="cx-asm-customer-list"
*ngIf="customerSupportAgentLoggedIn$ | async"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
.cx-asm-customer-list-link {
color: #0064d9;
text-decoration: none;
padding-inline-end: 1.4rem;
}
.cx-asm-customer-list-link:hover {
text-decoration: underline;
Expand Down Expand Up @@ -196,3 +197,10 @@
}
}
}

.cx-asm-help-portal {
padding-inline-end: 1.5rem;
.fa-circle-question {
padding-inline-end: 0.3rem;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
align-items: center;
height: 16px;

margin: 0 15px;
margin: 0 15px 0 0;

.label {
margin: 0 6px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
align-items: center;

height: 16px;
margin: 0 15px;
margin: 0 1.2rem 0 0;

.toggleUi {
display: inherit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const fontawesomeIconConfig: IconConfig = {
ARROW_UP: 'fas fa-arrow-up',
C360_INVOICE: 'fas fa-file-invoice',
C360_CIRCLE_USER: 'fas fa-circle-user',
HELP: 'far fa-circle-question',
},
resources: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export enum ICON_TYPE {
ARROW_UP = 'ARROW_UP',
C360_CIRCLE_USER = 'C360_CIRCLE_USER',
C360_INVOICE = 'C360_INVOICE',
HELP = 'HELP',
}

@Injectable({
Expand Down

0 comments on commit 378db08

Please sign in to comment.