Skip to content

Commit

Permalink
- remove console and debugger statements
Browse files Browse the repository at this point in the history
- remove user menu
- add changelog

Signed-off-by: Josh Romero <[email protected]>
  • Loading branch information
joshuarrrr committed Jan 5, 2024
1 parent f49765d commit 1782c6a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 532 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- [Discover] Display inner properties in the left navigation bar [#5429](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5429)
- [Chrome] Introduce registerCollapsibleNavHeader to allow plugins to customize the rendering of nav menu header ([#5244](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5244))
- [Custom Branding] Relative URL should be allowed for logos ([#5572](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5572))
- [Theme] Make theme and dark mode settings device specific (in local storage) ([#5652](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5652))

### 🐛 Bug Fixes

Expand Down Expand Up @@ -953,4 +954,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### 🔩 Tests

- Update caniuse to fix failed integration tests ([#2322](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2322))
- Update caniuse to fix failed integration tests ([#2322](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2322))
2 changes: 0 additions & 2 deletions src/legacy/ui/ui_render/startup/template.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ var browserThemeVersion = uiSettings['theme:version'] || {};

var rawDarkMode = typeof browserDarkMode.userValue !== 'boolean' ? {{configDarkMode}} : browserDarkMode.userValue

debugger;

var rawThemeVersion = browserThemeVersion.userValue || '{{configThemeVersion}}'

// TODO: should this reflect config defaults instead?
Expand Down
22 changes: 0 additions & 22 deletions src/plugins/advanced_settings/public/account-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,10 @@ import React from 'react';
import ReactDOM from 'react-dom';
import { CoreStart } from 'opensearch-dashboards/public';
import { OpenSearchDashboardsContextProvider } from '../../opensearch_dashboards_react/public';
import { HeaderUserMenu } from './header_user_menu';
import { HeaderUserThemeMenu } from './header_user_theme_menu';

export async function setupTopNavUserButton(coreStart: CoreStart) {
coreStart.chrome.navControls.registerRight({
// Pin to rightmost, since newsfeed plugin is using 1000, here needs a number > 1000
order: 2000,
mount: (element: HTMLElement) => {
ReactDOM.render(
<OpenSearchDashboardsContextProvider
services={{
...coreStart,
}}
>
<HeaderUserMenu />
</OpenSearchDashboardsContextProvider>,
element
);
return () => ReactDOM.unmountComponentAtNode(element);
},
});
}

export async function setupTopNavThemeButton(coreStart: CoreStart) {
coreStart.chrome.navControls.registerRight({
// Pin to rightmost, since newsfeed plugin is using 1000, here needs a number > 1000
order: 2001,
mount: (element: HTMLElement) => {
ReactDOM.render(
Expand Down
Loading

0 comments on commit 1782c6a

Please sign in to comment.