-
Notifications
You must be signed in to change notification settings - Fork 894
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
[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
&__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]>
Thanks Ryan for the change, but I'm closing this in favour of #8331 for now since the position of this input will change soon anyways. |
… picker (#8255) * initial implementation of cloud watch data set type Signed-off-by: Joshua Li <[email protected]> * wip-- support selecting multiple datasets Signed-off-by: Joshua Li <[email protected]> * Revert "wip-- support selecting multiple datasets" This reverts commit 4977cc9. Signed-off-by: Joshua Li <[email protected]> * add multi-select dataset table Signed-off-by: Joshua Li <[email protected]> * add token based pagination in dataset table Signed-off-by: Joshua Li <[email protected]> * display data connection in dataset title Signed-off-by: Joshua Li <[email protected]> * avoid overlap of dataset title and language selector Signed-off-by: Joshua Li <[email protected]> * Revert "avoid overlap of dataset title and language selector" This reverts commit 87d599d. Wait for #8204 Signed-off-by: Joshua Li <[email protected]> * revert query enhancement changes for cloudwatch Signed-off-by: Joshua Li <[email protected]> * Changeset file for PR #8255 created/updated * Revert "revert query enhancement changes for cloudwatch" This reverts commit 5eb065a. Signed-off-by: Joshua Li <[email protected]> * address comments Signed-off-by: Joshua Li <[email protected]> * revert query enhancement changes for cloudwatch Signed-off-by: Joshua Li <[email protected]> * address comments Signed-off-by: Joshua Li <[email protected]> --------- Signed-off-by: Joshua Li <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
… picker (#8255) * initial implementation of cloud watch data set type Signed-off-by: Joshua Li <[email protected]> * wip-- support selecting multiple datasets Signed-off-by: Joshua Li <[email protected]> * Revert "wip-- support selecting multiple datasets" This reverts commit 4977cc9. Signed-off-by: Joshua Li <[email protected]> * add multi-select dataset table Signed-off-by: Joshua Li <[email protected]> * add token based pagination in dataset table Signed-off-by: Joshua Li <[email protected]> * display data connection in dataset title Signed-off-by: Joshua Li <[email protected]> * avoid overlap of dataset title and language selector Signed-off-by: Joshua Li <[email protected]> * Revert "avoid overlap of dataset title and language selector" This reverts commit 87d599d. Wait for #8204 Signed-off-by: Joshua Li <[email protected]> * revert query enhancement changes for cloudwatch Signed-off-by: Joshua Li <[email protected]> * Changeset file for PR #8255 created/updated * Revert "revert query enhancement changes for cloudwatch" This reverts commit 5eb065a. Signed-off-by: Joshua Li <[email protected]> * address comments Signed-off-by: Joshua Li <[email protected]> * revert query enhancement changes for cloudwatch Signed-off-by: Joshua Li <[email protected]> * address comments Signed-off-by: Joshua Li <[email protected]> --------- Signed-off-by: Joshua Li <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit fd31398) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… picker (#8255) (#8438) * initial implementation of cloud watch data set type * wip-- support selecting multiple datasets * Revert "wip-- support selecting multiple datasets" This reverts commit 4977cc9. * add multi-select dataset table * add token based pagination in dataset table * display data connection in dataset title * avoid overlap of dataset title and language selector * Revert "avoid overlap of dataset title and language selector" This reverts commit 87d599d. Wait for #8204 * revert query enhancement changes for cloudwatch * Changeset file for PR #8255 created/updated * Revert "revert query enhancement changes for cloudwatch" This reverts commit 5eb065a. * address comments * revert query enhancement changes for cloudwatch * address comments --------- (cherry picked from commit fd31398) Signed-off-by: Joshua Li <[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> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
… picker (opensearch-project#8255) (opensearch-project#8438) * initial implementation of cloud watch data set type * wip-- support selecting multiple datasets * Revert "wip-- support selecting multiple datasets" This reverts commit 4977cc9. * add multi-select dataset table * add token based pagination in dataset table * display data connection in dataset title * avoid overlap of dataset title and language selector * Revert "avoid overlap of dataset title and language selector" This reverts commit 87d599d. Wait for opensearch-project#8204 * revert query enhancement changes for cloudwatch * Changeset file for PR opensearch-project#8255 created/updated * Revert "revert query enhancement changes for cloudwatch" This reverts commit 5eb065a. * address comments * revert query enhancement changes for cloudwatch * address comments --------- (cherry picked from commit fd31398) Signed-off-by: Joshua Li <[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> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
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