From 2649dfa82bc7ccead6e3f86ed404459032deaff8 Mon Sep 17 00:00:00 2001 From: Riya <69919272+riysaxen-amzn@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:28:11 -0700 Subject: [PATCH] Releas notes (#248) (#250) * Persist dataSourceId across applications under new Nav change Signed-off-by: Riya Saxena * release notes added Signed-off-by: Riya Saxena * release notes added Signed-off-by: Riya Saxena * release notes added Signed-off-by: Riya Saxena * release notes added Signed-off-by: Riya Saxena * release notes added Signed-off-by: Riya Saxena --------- Signed-off-by: Riya Saxena Signed-off-by: Riya <69919272+riysaxen-amzn@users.noreply.github.com> (cherry picked from commit 774f9ab78eda7d83c8698d75f36578473ccafd4e) --- public/pages/Main/Main.tsx | 413 +++++++++--------- ...ds-notifications.release-notes-2.17.0.0.md | 18 + 2 files changed, 227 insertions(+), 204 deletions(-) create mode 100644 release-notes/opensearch-dashboards-notifications.release-notes-2.17.0.0.md diff --git a/public/pages/Main/Main.tsx b/public/pages/Main/Main.tsx index 768b86c2..3dd77d3e 100644 --- a/public/pages/Main/Main.tsx +++ b/public/pages/Main/Main.tsx @@ -90,7 +90,12 @@ export default class Main extends Component { dataSourceId: dataSourceId, dataSourceLabel: dataSourceLabel, dataSourceReadOnly: false, - dataSourceLoading: props.multiDataSourceEnabled, + /** + * undefined: need data source picker to help to determine which data source to use. + * empty string: using the local cluster. + * string: using the selected data source. + */ + dataSourceLoading: dataSourceId === undefined ? props.multiDataSourceEnabled : false, }; } else { this.state = initialState; @@ -244,47 +249,80 @@ export default class Main extends Component { services && ( - - {this.props.multiDataSourceEnabled && DataSourceMenuView && DataSourceMenuSelectable && ( - - ( + + {this.props.multiDataSourceEnabled && DataSourceMenuView && DataSourceMenuSelectable && ( + + ( + + )} + /> + ( + + )} + /> + + this.state.dataSourceReadOnly ? ( - )} - /> - ( + ) : ( { dataSourceFilter: this.dataSourceFilterFn }} /> - )} - /> - - this.state.dataSourceReadOnly ? ( - + + )} + + {!this.state.dataSourceLoading && ( + <> + + {pathname !== ROUTES.CREATE_CHANNEL && + !pathname.startsWith(ROUTES.EDIT_CHANNEL) && + !pathname.startsWith(ROUTES.CHANNEL_DETAILS) && + pathname !== ROUTES.CREATE_SENDER && + !pathname.startsWith(ROUTES.EDIT_SENDER) && + pathname !== ROUTES.CREATE_SES_SENDER && + !pathname.startsWith(ROUTES.EDIT_SES_SENDER) && + pathname !== ROUTES.CREATE_RECIPIENT_GROUP && + !pathname.startsWith(ROUTES.EDIT_RECIPIENT_GROUP) && + !core.chrome?.navGroup?.getNavGroupEnabled() && ( + + - ) : ( - - ) - } - /> - - )} - - {!this.state.dataSourceLoading && ( - <> - - {pathname !== ROUTES.CREATE_CHANNEL && - !pathname.startsWith(ROUTES.EDIT_CHANNEL) && - !pathname.startsWith(ROUTES.CHANNEL_DETAILS) && - pathname !== ROUTES.CREATE_SENDER && - !pathname.startsWith(ROUTES.EDIT_SENDER) && - pathname !== ROUTES.CREATE_SES_SENDER && - !pathname.startsWith(ROUTES.EDIT_SES_SENDER) && - pathname !== ROUTES.CREATE_RECIPIENT_GROUP && - !pathname.startsWith(ROUTES.EDIT_RECIPIENT_GROUP) && - !core.chrome?.navGroup?.getNavGroupEnabled() && ( - - + )} + + + ( + - - )} - - - ( - - )} - /> - ) => ( - - )} - /> - ) => ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - ( - - )} - /> - - - - - )} - - + )} + /> + ) => ( + + )} + /> + ) => ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> + + + + + )} + + ) @@ -479,4 +484,4 @@ export default class Main extends Component { ); }; -} \ No newline at end of file +} diff --git a/release-notes/opensearch-dashboards-notifications.release-notes-2.17.0.0.md b/release-notes/opensearch-dashboards-notifications.release-notes-2.17.0.0.md new file mode 100644 index 00000000..1e7162d3 --- /dev/null +++ b/release-notes/opensearch-dashboards-notifications.release-notes-2.17.0.0.md @@ -0,0 +1,18 @@ +## Version 2.17.0.0 2024-09-03 +Compatible with OpenSearch Dashboards 2.17.0 + +### Maintenance +* [Backport 2.x] add riysaxen as maintainer ([#241](https://github.com/opensearch-project/dashboards-notifications/pull/241)) +* Increment version to 2.17.0.0 ([#237](https://github.com/opensearch-project/dashboards-notifications/pull/241)) + + +### Features/Enhancements +* [navigation]feat: change parent item name ([#234](https://github.com/opensearch-project/dashboards-notifications/pull/234)) +* Use smaller and compressed varients of buttons and form components ([#231](https://github.com/opensearch-project/dashboards-notifications/pull/231)) +* Page header ([#236](https://github.com/opensearch-project/dashboards-notifications/pull/236)) + +### Bug Fixes +* Fix link checker ([#242](https://github.com/opensearch-project/dashboards-notifications/pull/242)) + +### Documentation +* 2.17 release notes. ([#243](https://github.com/opensearch-project/dashboards-notifications/pull/243)) \ No newline at end of file