Skip to content

Commit 3728e1f

Browse files
authored
docs(UXC Integration): update pattern & add description (#7652)
1 parent 1f9c8f0 commit 3728e1f

File tree

4 files changed

+19
-28
lines changed

4 files changed

+19
-28
lines changed

docs/Patterns.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ import UXCIntegration from "./UXCIntegration.js"
66

77
# UXC Integration
88

9+
This code sample demonstrates full adherence to the UXC Product Consistency standards currently available within SAP. It serves as a comprehensive reference implementation, showcasing the integration of all mandatory and some optional UI elements and interaction patterns required for a consistent user experience across SAP products.
10+
11+
**Key features illustrated in this example include:**
12+
13+
- **Side Navigation**: An organized layout presenting a clear hierarchical structure.
14+
- **Shell Bar**: Incorporates all required elements, such as:
15+
- Side Navigation access
16+
- Branding element
17+
- ShellBar action help
18+
- User profile with access to the user menu
19+
- Optional components like notifications or settings
20+
- **ShellBar Search**: Provides search functionality fully aligned with SAP's usability guidelines.
21+
- **User Settings**: Offers personalization options for users to tailor their experience, such as theming and language preferences.
22+
- **Notification Experience**: Delivers real-time alerts and updates, complete with badge indicators and intuitive interaction patterns.
23+
24+
This example is ideal for developers and designers looking to align their applications with SAP's UXC standards, ensuring consistency, usability, and compliance across the SAP ecosystem.
25+
926
<UXCIntegration/>
1027

1128
<Footer/>

patterns/navigation-layout/src/NLShellBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
SearchItem,
1818
SearchScope,
1919
ShellBar,
20+
ShellBarBranding,
2021
ShellBarItem,
2122
ShellBarSearch,
2223
ShellBarSpacer,
@@ -80,7 +81,6 @@ export function NLShellBar(props: NLShellBarProps) {
8081
<ShellBar
8182
{...rest}
8283
id="shellbar"
83-
primaryTitle="VEGA CRM"
8484
notificationsCount="10"
8585
showNotifications
8686
showProductSwitch
@@ -95,7 +95,7 @@ export function NLShellBar(props: NLShellBarProps) {
9595
onClick={handleMenuBtnClick}
9696
/>
9797
}
98-
logo={<img src={SapLogoSvg} alt="SAP Logo" />}
98+
branding={<ShellBarBranding logo={<img src={SapLogoSvg} alt="SAP Logo" />}>Vega CRM</ShellBarBranding>}
9999
content={
100100
<>
101101
<Tag design="Set2" colorScheme="7" data-hide-order="2">

patterns/navigation-layout/src/NotificationsPopover.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
IllustratedMessage,
1919
Menu,
2020
MenuItem,
21-
MessageStrip,
2221
NotificationList,
2322
NotificationListGroupItem,
2423
NotificationListItem,
@@ -51,7 +50,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
5150
const [notificationsToday, setTodayNotifications] = useState<Notification[]>(initialNotificationsToday);
5251
const [notificationsYesterday, setYesterdayNotifications] = useState<Notification[]>(initialNotificationsYesterday);
5352
const [groupLoading, setGroupLoading] = useState(false);
54-
const [showMessageStrip, setShowMessageStrip] = useState(false);
5553
const [clearAllOpen, setClearAllOpen] = useState(false);
5654
const [sortMenuOpen, setSortMenuOpen] = useState(false);
5755

@@ -129,14 +127,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
129127
startContent={<Title level="H5">Notifications</Title>}
130128
endContent={
131129
<>
132-
<Button
133-
onClick={() => {
134-
setShowMessageStrip(true);
135-
}}
136-
design="Emphasized"
137-
>
138-
Show M. Strip
139-
</Button>
140130
<Button
141131
design="Transparent"
142132
accessibilityAttributes={{ hasPopup: 'dialog' }}
@@ -159,17 +149,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
159149
</>
160150
}
161151
/>
162-
{showMessageStrip && (
163-
<MessageStrip
164-
className="notificationsMessageStrip"
165-
design="Negative"
166-
onClose={() => {
167-
setShowMessageStrip(false);
168-
}}
169-
>
170-
Something went wrong.
171-
</MessageStrip>
172-
)}
173152
</div>
174153
}
175154
>

patterns/navigation-layout/src/index.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ body {
5050
box-shadow: none;
5151
}
5252

53-
.notificationsMessageStrip {
54-
margin: 0.5rem;
55-
width: auto;
56-
}
57-
5853
/* End notifications */
5954

6055
/* User Settings Dialog */

0 commit comments

Comments
 (0)