Skip to content

Commit 6b07750

Browse files
Tosttiyenienserrano
authored andcommitted
Fix inconsistent help menu (#139)
1 parent 8b4c863 commit 6b07750

File tree

13 files changed

+295
-79
lines changed

13 files changed

+295
-79
lines changed

packages/osd-plugin-helpers/src/integration_tests/build.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,15 @@ it('builds a generated plugin into a viable archive', async () => {
101101
info running @osd/optimizer
102102
│ info initialized, 0 bundles cached
103103
│ info starting worker [1 bundle]
104+
│ warn worker stderr Browserslist: caniuse-lite is outdated. Please run:
105+
│ warn worker stderr npx update-browserslist-db@latest
106+
│ warn worker stderr Why you should do it regularly: https://github.com/browserslist/update-db#readme
104107
│ succ 1 bundles compiled successfully after <time>
105108
info copying assets from \`public/assets\` to build
106109
info copying server source into the build and converting with babel
110+
Browserslist: caniuse-lite is outdated. Please run:
111+
npx update-browserslist-db@latest
112+
Why you should do it regularly: https://github.com/browserslist/update-db#readme
107113
info running yarn to install dependencies
108114
info compressing plugin into [fooTestPlugin-1.0.0.zip]
109115
info cleaning up compression temporary artifacts"
@@ -189,9 +195,15 @@ it('builds a non-semver generated plugin into a viable archive', async () => {
189195
info running @osd/optimizer
190196
│ info initialized, 0 bundles cached
191197
│ info starting worker [1 bundle]
198+
│ warn worker stderr Browserslist: caniuse-lite is outdated. Please run:
199+
│ warn worker stderr npx update-browserslist-db@latest
200+
│ warn worker stderr Why you should do it regularly: https://github.com/browserslist/update-db#readme
192201
│ succ 1 bundles compiled successfully after <time>
193202
info copying assets from \`public/assets\` to build
194203
info copying server source into the build and converting with babel
204+
Browserslist: caniuse-lite is outdated. Please run:
205+
npx update-browserslist-db@latest
206+
Why you should do it regularly: https://github.com/browserslist/update-db#readme
195207
info running yarn to install dependencies
196208
info compressing plugin into [fooTestPlugin-1.0.0.x.zip]
197209
info cleaning up compression temporary artifacts"

src/core/public/chrome/chrome_service.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ export class ChromeService {
263263
branding={injectedMetadata.getBranding()}
264264
logos={logos}
265265
survey={injectedMetadata.getSurvey()}
266+
darkmode={uiSettings.get('theme:darkMode')}
266267
/>
267268
),
268269

src/core/public/chrome/constants.ts

+5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
* specific language governing permissions and limitations
2828
* under the License.
2929
*/
30+
import wazuh from '../../../../package.json';
31+
32+
export const WAZUH_MAJOR = wazuh.wazuh.version.split('.')[0];
33+
export const WAZUH_MINOR = wazuh.wazuh.version.split('.')[1];
3034

3135
export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK = 'https://wazuh.com/community/join-us-on-slack';
3236
export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK = OPENSEARCH_DASHBOARDS_FEEDBACK_LINK;
3337
export const GITHUB_CREATE_ISSUE_LINK = 'https://github.com/wazuh/wazuh/issues/new/choose';
38+
export const WAZUH_DOCUMENTATION_URL = `https://documentation.wazuh.com/${WAZUH_MAJOR}.${WAZUH_MINOR}/`;

src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)