Skip to content

Commit 6f9c99a

Browse files
committed
docs(UXC Integration): update pattern & add description
1 parent 1f9c8f0 commit 6f9c99a

File tree

4 files changed

+19
-27
lines changed

4 files changed

+19
-27
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 & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
5151
const [notificationsToday, setTodayNotifications] = useState<Notification[]>(initialNotificationsToday);
5252
const [notificationsYesterday, setYesterdayNotifications] = useState<Notification[]>(initialNotificationsYesterday);
5353
const [groupLoading, setGroupLoading] = useState(false);
54-
const [showMessageStrip, setShowMessageStrip] = useState(false);
5554
const [clearAllOpen, setClearAllOpen] = useState(false);
5655
const [sortMenuOpen, setSortMenuOpen] = useState(false);
5756

@@ -129,14 +128,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
129128
startContent={<Title level="H5">Notifications</Title>}
130129
endContent={
131130
<>
132-
<Button
133-
onClick={() => {
134-
setShowMessageStrip(true);
135-
}}
136-
design="Emphasized"
137-
>
138-
Show M. Strip
139-
</Button>
140131
<Button
141132
design="Transparent"
142133
accessibilityAttributes={{ hasPopup: 'dialog' }}
@@ -159,17 +150,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
159150
</>
160151
}
161152
/>
162-
{showMessageStrip && (
163-
<MessageStrip
164-
className="notificationsMessageStrip"
165-
design="Negative"
166-
onClose={() => {
167-
setShowMessageStrip(false);
168-
}}
169-
>
170-
Something went wrong.
171-
</MessageStrip>
172-
)}
173153
</div>
174154
}
175155
>

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)