-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the new sidebar menu design #5893
Comments
Considerations
|
The changes that are not related to the Wazuh applications must be changed by editing the source code of Wazuh dashboard package. I saw that OpenSearch Dashboards 2.9.0 includes some applications that are not specified in the desired design for Wazuh dashboard. We should decide what to do. In 2.9.0, the For another hand, in OpenSearch Dashboards 2.9.0 the EDIT: We will use OpenSearch Dashboards 2.10.0 (that is unreleased at the moment), so we will need the required changes there. I got some changes that are working in OpenSearch Dashboards 2.9.0 that could be useful for OpenSearch Dashboards 2.10.0 Changes in OpenSearch Dashboards 2.9.0## Define categories
category_explore='{id:"explore",label:"Explore",order:5e3,euiIconType:"managementApp"}'
category_dashboard_management='{id:"management",label:"Dashboard Management",order:5e3,euiIconType:"managementApp"}'
## Add custom categories (explore) to the built-in
sed -i -e "s|DEFAULT_APP_CATEGORIES=Object.freeze({|DEFAULT_APP_CATEGORIES=Object.freeze({explore:${category_explore},|" src/core/target/public/core.entry.js
## Replace management built-in app category
sed -i -e "s|management:{id:\"management\",label:external_osdSharedDeps_OsdI18n_\[\"i18n\"\].translate(\"core.ui.managementNavList.label\",{defaultMessage:\"Management\"}),order:5e3,euiIconType:\"managementApp\"}|management:${category_dashboard_management}|" src/core/target/public/core.entry.js
# ## Replace app category to Discover app
sed -i -e 's|category:core_public_\["DEFAULT_APP_CATEGORIES"\].opensearchDashboards|category:core_public_["DEFAULT_APP_CATEGORIES"].explore|' src/plugins/discover/target/public/discover.plugin.js
# ## Replace app category to Dashboard app
sed -i -e 's|category:core_public_\["DEFAULT_APP_CATEGORIES"\].opensearchDashboards|category:core_public_["DEFAULT_APP_CATEGORIES"].explore|' src/plugins/dashboard/target/public/dashboard.plugin.js
# ## Replace app category to Visualize app
sed -i -e 's|category:core_public_\["DEFAULT_APP_CATEGORIES"\].opensearchDashboards|category:core_public_["DEFAULT_APP_CATEGORIES"].explore|' src/plugins/visualize/target/public/visualize.plugin.js
# ## Replace app category to Reporting app
sed -i -e "s|category:{id:\"opensearch\",label:_i18n.i18n.translate(\"opensearch.reports.categoryName\",{defaultMessage:\"OpenSearch Plugins\"}),order:2e3}|category:${category_explore}|" plugins/reportsDashboards/target/public/reportsDashboards.plugin.js
# ## Replace app category to Alerting app
sed -i -e "s|category:{id:\"opensearch\",label:\"OpenSearch Plugins\",order:2e3}|category:${category_explore}|" plugins/alertingDashboards/target/public/alertingDashboards.plugin.js
# ## Replace app category to Maps app
sed -i -e "s|category:{id:\"opensearch\",label:\"OpenSearch Plugins\",order:2e3}|category:${category_explore}|" plugins/customImportMapDashboards/target/public/customImportMapDashboards.plugin.js
# ## Replace app category to Notifications app
sed -i -e "s|category:DEFAULT_APP_CATEGORIES.management|category:${category_explore}|" plugins/notificationsDashboards/target/public/notificationsDashboards.plugin.js
# ## Replace app category to Index Management app
sed -i -e "s|category:{id:\"opensearch\",label:\"OpenSearch Plugins\",order:2e3}|category:${category_explore}|g" plugins/indexManagementDashboards/target/public/indexManagementDashboards.plugin.js |
I am working on the required changes to the built-in applications according to the current design. In the following days, there will be a meeting to discuss the desired applications for the Wazuh dashboard. We will need to know the order within the categories. |
I created a pull request to change the category of built-in applications on the Wazuh dashboard wazuh/wazuh-packages#2496. |
I created a patch to remove wazuh_modules searching for a more reusable app. |
To replace the order of the applications could be needed to modiify the I was reviewing the order of the built-in applications:
To match the expected menu, it could only be required to modify some of them. |
I was working to sync the applications built-in into the platform and the Wazuh dashboards plugin. Related pull requests: |
Description
A new sidebar menu design was defined in a recent meeting.
We got a new sidebar menu defined in a recent meeting. There are some changes that we should apply to the previous design.
Requirements update
Tasks
The text was updated successfully, but these errors were encountered: