-
Notifications
You must be signed in to change notification settings - Fork 867
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
[Discover] Fix the overlap issue of datapicker and query editor input bar for DQL #8204
base: main
Are you sure you want to change the base?
[Discover] Fix the overlap issue of datapicker and query editor input bar for DQL #8204
Conversation
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8204 +/- ##
=======================================
Coverage 64.14% 64.14%
=======================================
Files 3743 3743
Lines 88833 88833
Branches 13852 13852
=======================================
+ Hits 56979 56980 +1
+ Misses 31239 31238 -1
Partials 615 615
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
6223103
to
d8b450e
Compare
Can we also truncate the name of the dataset if its too long? i.e. we can have it be something like |
Hi @ashwin-pc, I just updated the truncate limit to |
I think the tests failure are unrelated to this change and we may need a re-run for https://github.com/opensearch-project/OpenSearch-Dashboards/actions/runs/10891950274/job/30223973995?pr=8204
and also found out the same BWC tests failure on the other PRs. |
src/plugins/data/public/ui/dataset_selector/_dataset_selector.scss
Outdated
Show resolved
Hide resolved
The rest of the PR looks good, just these two minor comments |
&__button--truncate { | ||
display: flex; | ||
align-items: center; | ||
max-width: 300px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a magic number? Can't it use any OUI values? Or maybe just a %?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just switched to a predefined EUI value. I also tried the the % but that will always leave a blank space in between the selector and the search bar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iconType="arrowDown" | ||
iconSide="right" | ||
onClick={togglePopover} | ||
> | ||
<EuiIcon type={datasetIcon} className="datasetSelector__icon" /> | ||
{datasetTitle} | ||
<span className="datasetSelector__title">{datasetTitle}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this actually use an EuiText and pass a classname className="eui-textTruncate"
from OUI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just gave a try, I found that the EuiText works, however, the truncate class seems won't be applied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ps48 Will this conflict with your PR? |
Ideally shouldn't. But will rebase and resolve conflict if needed |
This reverts commit 87d599d. Wait for opensearch-project#8204 Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
…ngth to 400px Signed-off-by: Ryan Liang <[email protected]>
…ngth to 400px - merged version Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
e0bfef3
to
c35b7fb
Compare
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Description
Fix the overlap issue of datapicker and query editor input bar
Issues Resolved
Screenshot
before:
Screen.Recording.2024-09-15.at.11.24.17.PM.mov
after:
Screen.Recording.2024-09-15.at.11.23.08.PM.mov
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration