diff --git a/docs/guides/migrations.md b/docs/guides/migrations.md index f5fce07a0d..d37a6c17ef 100644 --- a/docs/guides/migrations.md +++ b/docs/guides/migrations.md @@ -9,6 +9,12 @@ kb_sync_latest_only ## 3.3 to 4.0 +The account navigation was reworked to support navigation grouping (used in `b2b` theme, see [`account-navigation.items.ts`](https://github.com/intershop/intershop-pwa/blob/4.0.0/src/app/pages/account/account-navigation/account-navigation.items.ts)). +For better maintainability and brand specific overriding the account navigation items were externalized in an extra file `account-navigation.items.ts` used by the `account-navigation.component.ts`. +Also with this rework the navigation items data structure was changed from a key value object to a simpler `NavigationItem` Array. +With this data structure accessing the data was changed for the key access from `item.key` to `item.routerLink` or for the value example from `item.value.localizationKey` to `item.localizationKey`. +To migrate to this new account navigation item handling any account navigation customization needs to be adapted accordingly. + The deprecated SSR environment variable `ICM_IDENTITY_PROVIDER` was completely removed. Use the variable `IDENTITY_PROVIDER` instead to select the identity provider to be used if it is not the default `ICM`. Removed default `identityProvider` configuration from `environment.model.ts` so only hardcoded fallback from `configuration.effects.ts` works as fallback. diff --git a/e2e/cypress/e2e/pages/account/my-account.page.ts b/e2e/cypress/e2e/pages/account/my-account.page.ts index cb94accd99..307e1635b5 100644 --- a/e2e/cypress/e2e/pages/account/my-account.page.ts +++ b/e2e/cypress/e2e/pages/account/my-account.page.ts @@ -10,7 +10,7 @@ export class MyAccountPage { } navigateToQuoting() { - cy.get('a[data-testing-id="quote-list-link"]').click(); + cy.get('a[data-testing-id="quotes-nav-link"]').click(); } get respondedQuotesCount() { @@ -22,18 +22,18 @@ export class MyAccountPage { } navigateToAddresses() { - cy.get('a[data-testing-id="addresses-link"]').click(); + cy.get('a[data-testing-id="addresses-nav-link"]').click(); } navigateToWishlists() { - cy.get('a[data-testing-id="wishlists-link"]').click(); + cy.get('a[data-testing-id="wishlists-nav-link"]').click(); } navigateToOrderTemplates() { - cy.get('a[data-testing-id="order-templates-link"]').click(); + cy.get('a[data-testing-id="order-templates-nav-link"]').click(); } navigateToPayments() { - cy.get('a[data-testing-id="payments-link"]').click(); + cy.get('a[data-testing-id="payment-nav-link"]').click(); } } diff --git a/e2e/cypress/e2e/pages/account/order-templates-details.page.ts b/e2e/cypress/e2e/pages/account/order-templates-details.page.ts index f99f88f6ad..8840a84bd3 100644 --- a/e2e/cypress/e2e/pages/account/order-templates-details.page.ts +++ b/e2e/cypress/e2e/pages/account/order-templates-details.page.ts @@ -9,7 +9,7 @@ export class OrderTemplatesDetailsPage { readonly breadcrumb = new BreadcrumbModule(); static navigateToOverviewPage() { - cy.get('a[data-testing-id="order-templates-link"]').click(); + cy.get('a[data-testing-id="order-templates-nav-link"]').click(); } get listItem() { diff --git a/src/app/core/icon.module.ts b/src/app/core/icon.module.ts index 519792fbab..e92fa28d51 100644 --- a/src/app/core/icon.module.ts +++ b/src/app/core/icon.module.ts @@ -12,6 +12,7 @@ import { faBalanceScale, faBan, faBars, + faBriefcase, faCalendarDay, faCheck, faCheckCircle, @@ -20,6 +21,7 @@ import { faEnvelope, faFastForward, faFax, + faGear, faGlobeAmericas, faHeart, faHome, @@ -36,6 +38,7 @@ import { faPlus, faPrint, faQuestionCircle, + faRightFromBracket, faSearch, faShoppingCart, faSpinner, @@ -63,22 +66,29 @@ export class IconModule { faAngleLeft, faAngleRight, faAngleUp, - faArrowsAlt, faArrowAltCircleRight, + faArrowsAlt, faBalanceScale, faBan, faBars, + faBriefcase, faCalendarDay, faCheck, faCheckCircle, faCog, faCogs, + faEnvelope, + faFastForward, + faFax, + faGear, faGlobeAmericas, + faHeart, faHome, faInbox, faInfoCircle, faList, faListAlt, + faMapMarkerAlt, faMinus, faPaperPlane, faPencilAlt, @@ -87,23 +97,19 @@ export class IconModule { faPlus, faPrint, faQuestionCircle, + faRightFromBracket, faSearch, faShoppingCart, faSpinner, + faStar, + faStarHalf, faTh, faTimes, faTimesCircle, faTrashAlt, faUndo, faUser, - faUserCheck, - faStar, - faStarHalf, - faHeart, - faFastForward, - faMapMarkerAlt, - faEnvelope, - faFax + faUserCheck ); } } diff --git a/src/app/pages/account/account-navigation/account-navigation.component.html b/src/app/pages/account/account-navigation/account-navigation.component.html index 4c71487c97..8c46181aa9 100644 --- a/src/app/pages/account/account-navigation/account-navigation.component.html +++ b/src/app/pages/account/account-navigation/account-navigation.component.html @@ -1,56 +1,108 @@ - -