Skip to content
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

[Console][Multiple Datasource]Fine tuned dev tool datasource selector UI #3806

Merged
merged 2 commits into from
Apr 14, 2023

Conversation

zhongnansu
Copy link
Member

@zhongnansu zhongnansu commented Apr 7, 2023

Description

[Console][Multiple Datasource]Fine tuned dev tool datasource selector UI

Coming from @KrooshalUX 's feedback #3754 (comment). Tuned the UI to make it look nicer, while not breaking the pattern of other dev tool registered plugins

image

Issues Resolved

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
    • yarn test:ftr
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@zhongnansu zhongnansu added ux / ui Improvements or additions to user experience, flows, components, UI elements backport 2.x multiple datasource multiple datasource project v2.7.0 console labels Apr 7, 2023
@zhongnansu zhongnansu requested a review from a team as a code owner April 7, 2023 20:07
@zhongnansu zhongnansu added the Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry label Apr 7, 2023
Signed-off-by: Su <szhongna@amazon.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 7, 2023

Codecov Report

Merging #3806 (0b4f5aa) into main (a6af77d) will decrease coverage by 0.01%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #3806      +/-   ##
==========================================
- Coverage   66.42%   66.41%   -0.01%     
==========================================
  Files        3209     3209              
  Lines       61730    61732       +2     
  Branches     9533     9533              
==========================================
- Hits        41004    41002       -2     
- Misses      18439    18442       +3     
- Partials     2287     2288       +1     
Flag Coverage Δ
Linux 66.36% <ø> (-0.01%) ⬇️
Windows 66.37% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of clarifying questions, but this definitely looks better than the previous version.

Comment on lines +30 to +34
.devAppTabs {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain more about why this wasn't achievable with EuiFlexGroup and EuiFlexItem as in the previous code? Because it likely means we need to open an issue in OUI to figure out how to address the need here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's an issue with EuiFlexGroup or EuiFlexItem. Previously when we use FlexGroup to have 2 flex item, one is EuiTabs, one is datasourcePicker, then there's this ugly line cut-off(comes with EuiTab). We want the line to stretch all the way to be under the DataSourcePicker.

Reason for the cut-off is that we have 2 flexItem. But we want it to look better to avoid the cut-off, and the solution in this PR is by making DataSourePicker within EuiTab component, while removing the FlexGroup and FlexItem. But since EuiTabs itself is not inherently a flex component, I need to achieve that in CSS.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into this a bit - I think that the fundamental issue is that the current usage or EuiTabs here is not really the best component for the way we want the top of the page to work (EuiPageHeader with tabs and rightSideItems is more of what we want. But I think it makes the most sense to go forward with this hack for now, and then refactor it a part of a larger effort to convert the dev_tools and console plugins to be fully built with OUI components.

src/plugins/dev_tools/public/application.tsx Outdated Show resolved Hide resolved
…d on the dataSourceEnabled prop

Signed-off-by: Su <szhongna@amazon.com>
Copy link
Member

@manasvinibs manasvinibs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot with the new changes is looking good. There is a link check failure which is not related to this change.

Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a lot better for now. Will refactor as part of OUI-ification of dev_tools and console.

Comment on lines +30 to +34
.devAppTabs {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into this a bit - I think that the fundamental issue is that the current usage or EuiTabs here is not really the best component for the way we want the top of the page to work (EuiPageHeader with tabs and rightSideItems is more of what we want. But I think it makes the most sense to go forward with this hack for now, and then refactor it a part of a larger effort to convert the dev_tools and console plugins to be fully built with OUI components.

@joshuarrrr
Copy link
Member

link checker failure can be ignored. Awaiting cypress re-run.

@joshuarrrr joshuarrrr merged commit 971165f into opensearch-project:main Apr 14, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 14, 2023
… UI (#3806)

* Fine tuned dev tool datasource selector UI
* Refactor DevToolsWrapper to conditionally render the EuiComboBox based on the dataSourceEnabled prop

Signed-off-by: Su <szhongna@amazon.com>

---------

Signed-off-by: Su <szhongna@amazon.com>
(cherry picked from commit 971165f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AMoo-Miki pushed a commit that referenced this pull request Apr 15, 2023
… UI (#3806) (#3850)

* Fine tuned dev tool datasource selector UI
* Refactor DevToolsWrapper to conditionally render the EuiComboBox based on the dataSourceEnabled prop



---------


(cherry picked from commit 971165f)

Signed-off-by: Su <szhongna@amazon.com>
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>
sikhote pushed a commit to sikhote/OpenSearch-Dashboards that referenced this pull request Apr 24, 2023
… UI (opensearch-project#3806)

* Fine tuned dev tool datasource selector UI
* Refactor DevToolsWrapper to conditionally render the EuiComboBox based on the dataSourceEnabled prop

Signed-off-by: Su <szhongna@amazon.com>

---------

Signed-off-by: Su <szhongna@amazon.com>
Signed-off-by: David Sinclair <david@sinclair.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all-star-contributor backport 2.x console multiple datasource multiple datasource project Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry ux / ui Improvements or additions to user experience, flows, components, UI elements v2.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants