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

Fix on data source selectable and readonly component are not consistent #6545

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

zhyuanqi
Copy link
Collaborator

@zhyuanqi zhyuanqi commented Apr 18, 2024

Description

fix on data source selectable and readonly component are not consistent
Related Issue: #6535

Describe the bug

  • The height of the popover header should be consistent between the read-only and selectable
  • The stroke around the header looks better in the read-only popover, the floating line between the search field and the header looks a bit weird. This might be a part of next item.
  • It looks like additional padding is added to the selectable popover content

screenshot

Screenshot 2024-04-18 at 2 39 07 PM Screenshot 2024-04-18 at 2 39 32 PM

Testing the changes

Changelog

  • fix: fix on data source selectable and readonly component are not consistent

Check List

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

Copy link
Contributor

❌ Invalid Prefix

Invalid description prefix. Found "bug". Expected "breaking", "deprecate", "feat", "fix", "infra", "doc", "chore", "refactor", "security", "skip", or "test".

Copy link
Contributor

❌ Invalid Prefix

Invalid description prefix. Found "bug". Expected "breaking", "deprecate", "feat", "fix", "infra", "doc", "chore", "refactor", "security", "skip", or "test".

1 similar comment
Copy link
Contributor

❌ Invalid Prefix

Invalid description prefix. Found "bug". Expected "breaking", "deprecate", "feat", "fix", "infra", "doc", "chore", "refactor", "security", "skip", or "test".

@zhyuanqi zhyuanqi changed the title fix on data source selectable and readonly component are not consistent Fix on data source selectable and readonly component are not consistent Apr 18, 2024
opensearch-changeset-bot bot added a commit to zhyuanqi/OpenSearch-Dashboards that referenced this pull request Apr 18, 2024
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.75%. Comparing base (d2d410b) to head (2232590).
Report is 11 commits behind head on main.

❗ Current head 2232590 differs from pull request most recent head c4f828e. Consider uploading reports for the commit c4f828e to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #6545       +/-   ##
===========================================
+ Coverage   32.93%   49.75%   +16.81%     
===========================================
  Files        2260     2685      +425     
  Lines       45769    54702     +8933     
  Branches     7200     8980     +1780     
===========================================
+ Hits        15075    27215    +12140     
+ Misses      29984    25788     -4196     
- Partials      710     1699      +989     
Flag Coverage Δ
Linux_1 ?
Windows_1 33.00% <ø> (?)
Windows_3 45.20% <ø> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}
</EuiPanel>
<EuiPanel color="subdued" paddingSize="xs" borderRadius="none">
<DataSourceDropDownHeader totalDataSourceCount={1} application={this.props.application} />
Copy link
Member

Choose a reason for hiding this comment

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

I saw in the DataSourceSelectable, DataSourceDropDownHeader is wrapped by EuiContextMenuPanel , do we need the same for data source view?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for bringing this up. I did a close look at it and i think the Drop down header should be outside of Panel as it is using the EuiPopoverTitle in the back

BionIT
BionIT previously approved these changes Apr 19, 2024
Signed-off-by: Yuanqi(Ella) Zhu <zhyuanqi@amazon.com>
@BionIT BionIT merged commit 35fe82d into opensearch-project:main Apr 19, 2024
71 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 19, 2024
…nt (#6545)

Signed-off-by: Yuanqi(Ella) Zhu <zhyuanqi@amazon.com>
(cherry picked from commit 35fe82d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
ZilongX pushed a commit that referenced this pull request Apr 19, 2024
…nt (#6545) (#6558)

Signed-off-by: Yuanqi(Ella) Zhu <zhyuanqi@amazon.com>
(cherry picked from commit 35fe82d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
LDrago27 pushed a commit to LDrago27/OpenSearch-Dashboards that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants