-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added release notes 2.16 (#227) * added release notes 2.16 * added release notes for 2.16 --------- * chanels complete * almost done * corrected Chanel list page * view channel * view channel * channel details fixed * fixed many things * bug fixes * fix tests page header changes * code refactored * fix UTs * Compressed UX * resolve merge conflict from main * resolve merge conflict from main * refactored the code * refactored the code * addressed the comment * addressed the comment * addressed the comment * addressed the comment --------- (cherry picked from commit 33d7bc1) Signed-off-by: Riya Saxena <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f03ecac
commit dec3f88
Showing
43 changed files
with
1,418 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
// babelrc doesn't respect NODE_PATH anymore but using require does. | ||
// Alternative to install them locally in node_modules | ||
module.exports = { | ||
"presets": [ | ||
require('@babel/preset-env'), | ||
require('@babel/preset-react'), | ||
require('@babel/preset-typescript'), | ||
], | ||
"plugins": | ||
[ | ||
[require("@babel/plugin-transform-modules-commonjs"), { "allowTopLevelThis": true }], | ||
[require('@babel/plugin-transform-runtime'), { regenerator: true }], | ||
require('@babel/plugin-transform-class-properties'), | ||
require('@babel/plugin-transform-object-rest-spread') | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { | ||
TopNavControlData, | ||
TopNavControlDescriptionData, | ||
TopNavControlLinkData, | ||
} from '../../../../../src/plugins/navigation/public'; | ||
import { getApplication, getNavigationUI, getUseUpdatedUx } from '../../services/utils/constants'; | ||
|
||
export interface PageHeaderProps { | ||
appRightControls?: TopNavControlData[]; | ||
appBadgeControls?: TopNavControlData[]; | ||
appDescriptionControls?: (TopNavControlDescriptionData | TopNavControlLinkData)[]; | ||
appLeftControls?: TopNavControlData[]; | ||
} | ||
|
||
const PageHeader: React.FC<PageHeaderProps> = ({ | ||
children, | ||
appBadgeControls, | ||
appRightControls, | ||
appDescriptionControls, | ||
appLeftControls, | ||
}) => { | ||
const { HeaderControl } = getNavigationUI(); | ||
const { setAppBadgeControls, setAppRightControls, setAppDescriptionControls, setAppLeftControls } = getApplication(); | ||
|
||
return getUseUpdatedUx() ? ( | ||
<> | ||
<HeaderControl setMountPoint={setAppBadgeControls} controls={appBadgeControls} /> | ||
<HeaderControl setMountPoint={setAppRightControls} controls={appRightControls} /> | ||
<HeaderControl setMountPoint={setAppDescriptionControls} controls={appDescriptionControls} /> | ||
<HeaderControl setMountPoint={setAppLeftControls} controls={appLeftControls} /> | ||
</> | ||
) : ( | ||
<>{children}</> | ||
); | ||
}; | ||
|
||
export default PageHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.