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

Use smaller and compressed varients of buttons and form components (#7304) #7417

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

AMoo-Miki
Copy link
Collaborator

cherry picked 6f28170 from #7304

Changelog

  • skip

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

…pensearch-project#7304)

* Bump OUI

Signed-off-by: Miki <miki@amazon.com>

* Use EuiSmallButton

Signed-off-by: Miki <miki@amazon.com>

* Use EuiSmallButtonIcon

Signed-off-by: Miki <miki@amazon.com>

* Use EuiSmallButtonEmpty

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedFormRow

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedField*

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedSelect and EuiCompressedSuperSelect

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedCheckbox and EuiCompressedCheckboxGroup

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedFilePicker

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedRadio and EuiCompressedRadioGroup

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedSwitch

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedEuiTextArea

Signed-off-by: Miki <miki@amazon.com>

* Use EuiCompressedComboBox

Signed-off-by: Miki <miki@amazon.com>

* Use compressed ValidatedDualRange

Signed-off-by: Miki <miki@amazon.com>

* Use EuiSmallFilterButton

Signed-off-by: Miki <miki@amazon.com>

* Undo unnecessary EuiSmallButton* uses

Signed-off-by: Miki <miki@amazon.com>

* Revisit size and density changes in workspaces

Signed-off-by: Miki <miki@amazon.com>

* Fix unit tests

Signed-off-by: Miki <miki@amazon.com>

---------

Signed-off-by: Miki <miki@amazon.com>

(cherry picked from commit 6f28170)
Signed-off-by: Miki <miki@amazon.com>
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 67.70%. Comparing base (06469bd) to head (3546f48).

Files Patch % Lines
...lic/ui/shard_failure_modal/shard_failure_modal.tsx 0.00% 2 Missing ⚠️
...c/core/public/notifications/toasts/error_toast.tsx 0.00% 1 Missing ⚠️
...cation/components/something_went_wrong_callout.tsx 0.00% 1 Missing ⚠️
...ry_management/saved_query_management_component.tsx 0.00% 1 Missing ⚠️
..._actions/customize_title/customize_panel_modal.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #7417   +/-   ##
=======================================
  Coverage   67.70%   67.70%           
=======================================
  Files        3584     3584           
  Lines       72248    72248           
  Branches    11819    11819           
=======================================
  Hits        48917    48917           
  Misses      20359    20359           
  Partials     2972     2972           
Flag Coverage Δ
Linux_1 33.18% <14.28%> (ø)
Linux_2 55.66% <0.00%> (ø)
Linux_3 44.46% <40.00%> (+<0.01%) ⬆️
Linux_4 34.19% <60.00%> (ø)
Windows_1 33.20% <14.28%> (ø)
Windows_2 55.61% <0.00%> (ø)
Windows_3 44.47% <40.00%> (ø)
Windows_4 34.19% <60.00%> (ø)

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.

@@ -58,7 +58,7 @@ export default function ({ getService, getPageObjects }) {
await savedQueryManagementComponent.openSavedQueryManagementComponent();
const descriptionText = await testSubjects.getVisibleText('saved-query-management-popover');
expect(descriptionText).to.eql(
'SAVED QUERIES\nThere are no saved queries. Save query text and filters that you want to use again.\nSave current query'
'Saved Queries\nThere are no saved queries. Save query text and filters that you want to use again.\nSave current query'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Intentional change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the side effect of opensearch-project/oui#1283

@virajsanghvi
Copy link
Collaborator

Approved assuming unrelated failing checks

@AMoo-Miki AMoo-Miki merged commit 77f6c70 into opensearch-project:2.x Jul 23, 2024
67 of 69 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.16 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.16 2.16
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.16
# Create a new branch
git switch --create backport/backport-7417-to-2.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 77f6c7074352f6cb007e5c56aef2057dec9e21da
# Push it to GitHub
git push --set-upstream origin backport/backport-7417-to-2.16
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.16

Then, create a pull request where the base branch is 2.16 and the compare/head branch is backport/backport-7417-to-2.16.

@yubonluo
Copy link
Contributor

Hi @AMoo-Miki, when will this pr back port to 2.16?

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.16 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.16 2.16
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.16
# Create a new branch
git switch --create backport/backport-7417-to-2.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 77f6c7074352f6cb007e5c56aef2057dec9e21da
# Push it to GitHub
git push --set-upstream origin backport/backport-7417-to-2.16
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.16

Then, create a pull request where the base branch is 2.16 and the compare/head branch is backport/backport-7417-to-2.16.

ananzh pushed a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Jul 24, 2024
…pensearch-project#7304) (opensearch-project#7417)

* Bump OUI



* Use EuiSmallButton



* Use EuiSmallButtonIcon



* Use EuiSmallButtonEmpty



* Use EuiCompressedFormRow



* Use EuiCompressedField*



* Use EuiCompressedSelect and EuiCompressedSuperSelect



* Use EuiCompressedCheckbox and EuiCompressedCheckboxGroup



* Use EuiCompressedFilePicker



* Use EuiCompressedRadio and EuiCompressedRadioGroup



* Use EuiCompressedSwitch



* Use EuiCompressedEuiTextArea



* Use EuiCompressedComboBox



* Use compressed ValidatedDualRange



* Use EuiSmallFilterButton



* Undo unnecessary EuiSmallButton* uses



* Revisit size and density changes in workspaces



* Fix unit tests



---------



(cherry picked from commit 6f28170)

Signed-off-by: Miki <miki@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.16 look & feel Look and Feel Improvements Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry v2.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants