Magento_CompanyRelation (Company Hierarchy)
# Magento Modules:
- Magento_Company
- Magento_CompanyRelation
> Only `Magento_Company` contains frontend affecting changes for compatibility purposes
# Adobe Commerce Packages
- magento/module-company
- magento/module-company-relation
# Repository
> Note: this repo is only accessible with a Hyvä Enterprise license or as a contributor.
>
> For more details, see: https://www.hyva.io/hyva-enterprise.html.
https://gitlab.hyva.io/hyva-enterprise/b2b/magento2-ee-magento-company
## Features
> All points are rated according to priority as P1 (critical), P2 (important), P3 (minor).
- [x] basic - does not break layout/design
> Note: All below features assume output only if company accounts are enabled in Stores > Configuration: `btob/website_configuration/company_active`.
### Reset Theme Updates
- [x] [P1] Add layout updates to reset theme for the above modules
### Global
> Dev note: all functionality below is part of the `Magento_Company` module, not `Magento_CompanyRelation`, which only handles the backend logic.
- [x] [P1] Add the current users available company data to the `company-permissions-loaded` event
- See: [`MagentoCompany::company/private-content-permissions.phtml`](https://gitlab.hyva.io/hyva-enterprise/b2b/magento2-ee-magento-company/-/blob/main/src/view/frontend/templates/company/private-content-permissions.phtml)
#### Customer Account Header Navigation Menu
- [x] [P1] Add company switcher within navigation menu
> Note: this placement is inside the account menu, rather than the header for the below reasons:
> 1. To keep the main header cleaner
> 2. It only displays when logged in (to a company account)
> 3. To avoid CLS given the output is all client side rendered (part of private section data)
## Contributors
## Voting
Use :thumbsup: to cast your vote.
issue