Skip to content

Commit

Permalink
resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
petarmarkov9449 committed Oct 17, 2024
2 parents 47d7a57 + 0393225 commit 25217fb
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ export interface FeatureTogglesInterface {
*/
showSearchingCustomerByOrderInASM?: boolean;

/**
* New REDESIGNED search-box component
*/
searchBoxV2?: boolean;

/**
* Some Changes for input of cart Number and text of Customer360View in ASM view
*/
Expand All @@ -71,6 +76,11 @@ export interface FeatureTogglesInterface {
*/
recentSearches?: boolean;

/**
* In `SearchBoxComponent` it shows the trending searches.
*/
trendingSearches?: boolean;

/**
* In `InvoicesListComponent` it sorts invoices by the date of the invoice itself.
* Previously the sorting was done by the date of creating an invoice entry.
Expand Down Expand Up @@ -356,7 +366,8 @@ export interface FeatureTogglesInterface {
/**
* Stops the focus indicator from overflowing and being obstructed by other elements.
* Modifies the 'visible-focus' mixin. Includes style changes for:
* 'StarRatingComponent', AddToWishListComponent, StarRatingComponent, 'SkipLinkComponent'
* `StarRatingComponent`, `AddToWishListComponent`, `StarRatingComponent`, `SkipLinkComponent`,
* `StoreComponent`, `SetPreferredStoreComponent`, `WishListComponent`
*/
a11yVisibleFocusOverflows?: boolean;

Expand All @@ -369,6 +380,12 @@ export interface FeatureTogglesInterface {
*/
a11yTruncatedTextForResponsiveView?: boolean;

/**
* When enabled focus outline on the close button inside `ProductImageZoomDialogComponent`
* will be fully visible
*/
a11yCloseProductImageBtnFocus?: boolean;

/**
* Modifies getAriaLabel method in 'PaginationComponent' to return a sematic label.
*/
Expand Down Expand Up @@ -549,6 +566,12 @@ export interface FeatureTogglesInterface {
*/
a11yDialogsHeading?: boolean;

/**
* When enabled, the focus will be returned to the trigger element after the dialog is closed.
* Affected components: 'AddtoCartComponent', 'PickupOptionsComponent', CartPickupOptionsContainerComponent, PDPPickupOptionsContainerComponent
*/
a11yDialogTriggerRefocus?: boolean;

/**
* The 'AddToWishListComponent' will restore focus to the button after adding or removing an item from the wishlist.
*/
Expand All @@ -564,6 +587,12 @@ export interface FeatureTogglesInterface {
*/
a11yQTY2Quantity?: boolean;

/**
* `StoreComponent and MyPreferredStoreComponent` an icon in a button that triggers showing
* store's opening hours has an acceptable contrast ratio in a default theme
*/
a11yViewHoursButtonIconContrast?: boolean;

/**
* In OCC cart requests, it puts parameters of a cart name and cart description
* into a request body, instead of query params.
Expand Down Expand Up @@ -626,48 +655,50 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
showBillingAddressInDigitalPayments: false,
showDownloadProposalButton: false,
showPromotionsInPDP: true,
searchBoxV2: false,
recentSearches: true,
pdfInvoicesSortByInvoiceDate: false,
trendingSearches: false,
pdfInvoicesSortByInvoiceDate: true,
storeFrontLibCardParagraphTruncated: true,
useProductCarouselBatchApi: false,
productConfiguratorAttributeTypesV2: true,
propagateErrorsToServer: false,
ssrStrictErrorHandlingForHttpAndNgrx: false,
productConfiguratorDeltaRendering: false,
a11yRequiredAsterisks: false,
a11yQuantityOrderTabbing: false,
a11yNavigationUiKeyboardControls: false,
a11yRequiredAsterisks: true,
a11yQuantityOrderTabbing: true,
a11yNavigationUiKeyboardControls: true,
a11yNavMenuExpandStateReadout: false,
a11yOrderConfirmationHeadingOrder: false,
a11yStarRating: false,
a11yViewChangeAssistiveMessage: false,
a11yOrderConfirmationHeadingOrder: true,
a11yStarRating: true,
a11yViewChangeAssistiveMessage: true,
a11yPreventHorizontalScroll: false,
a11yReorderDialog: false,
a11yPopoverFocus: false,
a11yScheduleReplenishment: false,
a11yScrollToTop: false,
a11ySavedCartsZoom: false,
a11ySortingOptionsTruncation: false,
a11yExpandedFocusIndicator: false,
a11yCheckoutDeliveryFocus: false,
a11yMobileVisibleFocus: false,
a11yOrganizationsBanner: false,
a11yOrganizationListHeadingOrder: false,
a11yReorderDialog: true,
a11yPopoverFocus: true,
a11yScheduleReplenishment: true,
a11yScrollToTop: true,
a11ySavedCartsZoom: true,
a11ySortingOptionsTruncation: true,
a11yExpandedFocusIndicator: true,
a11yCheckoutDeliveryFocus: true,
a11yMobileVisibleFocus: true,
a11yOrganizationsBanner: true,
a11yOrganizationListHeadingOrder: true,
a11yCartImportConfirmationMessage: false,
a11yReplenishmentOrderFieldset: false,
a11yListOversizedFocus: false,
a11yStoreFinderOverflow: false,
a11yReplenishmentOrderFieldset: true,
a11yListOversizedFocus: true,
a11yStoreFinderOverflow: true,
a11yMobileFocusOnFirstNavigationItem: false,
a11yCartSummaryHeadingOrder: false,
a11yCartSummaryHeadingOrder: true,
a11ySearchBoxMobileFocus: false,
a11yFacetKeyboardNavigation: false,
a11yUnitsListKeyboardControls: false,
a11yCartItemsLinksStyles: false,
a11yUnitsListKeyboardControls: true,
a11yCartItemsLinksStyles: true,
a11yHideSelectBtnForSelectedAddrOrPayment: false,
a11yFocusableCarouselControls: false,
a11yFocusableCarouselControls: true,
a11yUseTrapTabInsteadOfTrapInDialogs: false,
cmsGuardsServiceUseGuardsComposer: false,
cartQuickOrderRemoveListeningToFailEvent: false,
cartQuickOrderRemoveListeningToFailEvent: true,
a11yKeyboardAccessibleZoom: false,
a11yOrganizationLinkableCells: false,
a11yVisibleFocusOverflows: false,
Expand All @@ -676,6 +707,7 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
a11yPreventCartItemsFormRedundantRecreation: false,
a11yPreventSRFocusOnHiddenElements: false,
a11yMyAccountLinkOutline: false,
a11yCloseProductImageBtnFocus: false,
a11yNotificationPreferenceFieldset: false,
a11yImproveContrast: false,
a11yEmptyWishlistHeading: false,
Expand All @@ -701,9 +733,11 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
a11yQuickOrderAriaControls: false,
a11yRemoveStatusLoadedRole: false,
a11yDialogsHeading: false,
a11yDialogTriggerRefocus: false,
a11yAddToWishlistFocus: false,
a11ySearchBoxFocusOnEscape: false,
a11yQTY2Quantity: false,
a11yViewHoursButtonIconContrast: false,
occCartNameAndDescriptionInHttpRequestBody: false,
cmsBottomHeaderSlotUsingFlexStyles: false,
useSiteThemeService: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ if (environment.cpq) {
provide: USE_MY_ACCOUNT_V2_NOTIFICATION_PREFERENCE,
useValue: environment.myAccountV2,
},
// CXSPA-6793: refactor to`provideFeatureToggles` and `satisfies` keyword
provideFeatureTogglesFactory(() => {
const appFeatureToggles: Required<FeatureToggles> = {
showDeliveryOptionsTranslation: true,
Expand All @@ -294,8 +293,10 @@ if (environment.cpq) {
showBillingAddressInDigitalPayments: false,
showDownloadProposalButton: false,
showPromotionsInPDP: false,
searchBoxV2: false,
recentSearches: true,
pdfInvoicesSortByInvoiceDate: false,
trendingSearches: false,
pdfInvoicesSortByInvoiceDate: true,
storeFrontLibCardParagraphTruncated: true,
useProductCarouselBatchApi: true,
productConfiguratorAttributeTypesV2: true,
Expand Down Expand Up @@ -344,6 +345,7 @@ if (environment.cpq) {
a11ySemanticPaginationLabel: true,
a11yPreventCartItemsFormRedundantRecreation: true,
a11yMyAccountLinkOutline: true,
a11yCloseProductImageBtnFocus: true,
a11yNotificationPreferenceFieldset: true,
a11yImproveContrast: true,
a11yEmptyWishlistHeading: true,
Expand Down Expand Up @@ -371,9 +373,11 @@ if (environment.cpq) {
a11yQuickOrderAriaControls: true,
a11yRemoveStatusLoadedRole: true,
a11yDialogsHeading: true,
a11yDialogTriggerRefocus: true,
a11yAddToWishlistFocus: true,
a11ySearchBoxFocusOnEscape: true,
a11yQTY2Quantity: true,
a11yViewHoursButtonIconContrast: true,
cmsBottomHeaderSlotUsingFlexStyles: true,
useSiteThemeService: false,
enableConsecutiveCharactersPasswordRequirement: true,
Expand Down

0 comments on commit 25217fb

Please sign in to comment.