Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/Patterns.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ import UXCIntegration from "./UXCIntegration.js"

# UXC Integration

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.

**Key features illustrated in this example include:**

- **Side Navigation**: An organized layout presenting a clear hierarchical structure.
- **Shell Bar**: Incorporates all required elements, such as:
- Side Navigation access
- Branding element
- ShellBar action help
- User profile with access to the user menu
- Optional components like notifications or settings
- **ShellBar Search**: Provides search functionality fully aligned with SAP's usability guidelines.
- **User Settings**: Offers personalization options for users to tailor their experience, such as theming and language preferences.
- **Notification Experience**: Delivers real-time alerts and updates, complete with badge indicators and intuitive interaction patterns.

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.

<UXCIntegration/>

<Footer/>
4 changes: 2 additions & 2 deletions patterns/navigation-layout/src/NLShellBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
SearchItem,
SearchScope,
ShellBar,
ShellBarBranding,
ShellBarItem,
ShellBarSearch,
ShellBarSpacer,
Expand Down Expand Up @@ -80,7 +81,6 @@ export function NLShellBar(props: NLShellBarProps) {
<ShellBar
{...rest}
id="shellbar"
primaryTitle="VEGA CRM"
notificationsCount="10"
showNotifications
showProductSwitch
Expand All @@ -95,7 +95,7 @@ export function NLShellBar(props: NLShellBarProps) {
onClick={handleMenuBtnClick}
/>
}
logo={<img src={SapLogoSvg} alt="SAP Logo" />}
branding={<ShellBarBranding logo={<img src={SapLogoSvg} alt="SAP Logo" />}>Vega CRM</ShellBarBranding>}
content={
<>
<Tag design="Set2" colorScheme="7" data-hide-order="2">
Expand Down
21 changes: 0 additions & 21 deletions patterns/navigation-layout/src/NotificationsPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
IllustratedMessage,
Menu,
MenuItem,
MessageStrip,
NotificationList,
NotificationListGroupItem,
NotificationListItem,
Expand Down Expand Up @@ -51,7 +50,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
const [notificationsToday, setTodayNotifications] = useState<Notification[]>(initialNotificationsToday);
const [notificationsYesterday, setYesterdayNotifications] = useState<Notification[]>(initialNotificationsYesterday);
const [groupLoading, setGroupLoading] = useState(false);
const [showMessageStrip, setShowMessageStrip] = useState(false);
const [clearAllOpen, setClearAllOpen] = useState(false);
const [sortMenuOpen, setSortMenuOpen] = useState(false);

Expand Down Expand Up @@ -129,14 +127,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
startContent={<Title level="H5">Notifications</Title>}
endContent={
<>
<Button
onClick={() => {
setShowMessageStrip(true);
}}
design="Emphasized"
>
Show M. Strip
</Button>
<Button
design="Transparent"
accessibilityAttributes={{ hasPopup: 'dialog' }}
Expand All @@ -159,17 +149,6 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
</>
}
/>
{showMessageStrip && (
<MessageStrip
className="notificationsMessageStrip"
design="Negative"
onClose={() => {
setShowMessageStrip(false);
}}
>
Something went wrong.
</MessageStrip>
)}
</div>
}
>
Expand Down
5 changes: 0 additions & 5 deletions patterns/navigation-layout/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ body {
box-shadow: none;
}

.notificationsMessageStrip {
margin: 0.5rem;
width: auto;
}

/* End notifications */

/* User Settings Dialog */
Expand Down
Loading