From 02ccb9611743afff2ba7ff38bc5c9ee94e2acae0 Mon Sep 17 00:00:00 2001 From: Chris Hesterman Date: Tue, 29 Nov 2022 15:47:51 -0800 Subject: [PATCH] Data stream selection popover auto adjust width (#412) * Change alignment of Snapshot Management panels in pages/Main/Main.tsx Signed-off-by: Chris Hesterman * Unify vertical button alignment across panels, ContentPanel.tsx Signed-off-by: Chris Hesterman * Update jest snapshots, add ROUTE_STYLE variable Signed-off-by: Chris Hesterman * Add placeholder restore button to Snapshots panel Signed-off-by: Chris Hesterman * Comment out line 20 rollups_spec.js in cypress/integration/ Signed-off-by: Chris Hesterman * Remove unused code and comment cypress/integration/rollups_spec.js Signed-off-by: Chris Hesterman * Starting adaptation/use of existing code for Restore functionality Signed-off-by: Chris Hesterman * Adapt Snapshots.tsx to include RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int Signed-off-by: Chris Hesterman * Implement RestoreSnapshotFlyout open/close Signed-off-by: Chris Hesterman * Make Snapshot name appear on RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Add/adapt restoreSnapshot to server/SnapshotManagementService Signed-off-by: Chris Hesterman * Add route for restoreSnapshot in server/routes.ts Signed-off-by: Chris Hesterman * Rudimentary restore from snapshot functionality reached, buggy Signed-off-by: Chris Hesterman * Fix index list-snapshot restore, restrict restore to single selection Signed-off-by: Chris Hesterman * Remove console.logs, commented out code Signed-off-by: Chris Hesterman * Create Advanced options accordion for Snapshot restore. Signed-off-by: Chris Hesterman Currently only visually functional. TODO - make it apply the options Signed-off-by: Chris Hesterman * Add initial restore/rename options to ui. Only visual functionality Signed-off-by: Chris Hesterman * Resolve radio button events not firing Signed-off-by: Chris Hesterman Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions Signed-off-by: Chris Hesterman Move 'restore' button between 'delete' and 'take snapshot' Signed-off-by: Chris Hesterman Set default rename option to 'add prefix' Signed-off-by: Chris Hesterman * Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions Signed-off-by: Chris Hesterman * Fix issues with restore specific indices Signed-off-by: Chris Hesterman Implement first 4 Advanced restore options functionality Signed-off-by: Chris Hesterman * Begin cypress testing for snapshots Signed-off-by: Chris Hesterman Passing tests for create repo and create snapshot Signed-off-by: Chris Hesterman * Begin cypress testing Snapshots. Create repo and Create snapshot done Signed-off-by: Chris Hesterman * Implement add_prefix functionality for snapshot restore Signed-off-by: Chris Hesterman * Implement rename indices option for restore snapshot Signed-off-by: Chris Hesterman * Remove console.logs, unusted variables in SnapshotFlyout, SMservice Signed-off-by: Chris Hesterman * Add full stop to help text/errors, add RESTORE_OPTIONS enum Signed-off-by: Chris Hesterman * Add back line 20 in rollups_spec, required by changes in 2.3 release. Signed-off-by: Chris Hesterman * Remove unused getRepos func, add repo prop, trim state in RestoreFlyout Signed-off-by: Chris Hesterman * Add increment to 2.3.0 Signed-off-by: Chris Hesterman * Version bump 2.3.0 to 2.3 1 Signed-off-by: Chris Hesterman * Add version bump 2.3.1 for OS in cypress-workflow.yml Signed-off-by: Chris Hesterman * Remove 2.3.1 bump Signed-off-by: Chris Hesterman * Change 2.4 to 2.4.0 opensearch_dashboards.json Signed-off-by: Chris Hesterman * Update package.json, opensearch-dashboards.json Signed-off-by: Chris Hesterman * Update package.json, opensearch_dashboards.json Signed-off-by: Chris Hesterman * Update OSD to 2.4.1, update loader-utils, ts-loader, webpack Signed-off-by: Chris Hesterman * Update loader-utils to 1.4.1 Signed-off-by: Chris Hesterman * Roll back to 2.4.0 OSD Signed-off-by: Chris Hesterman * Implement quick fix for data-stream names being truncated Signed-off-by: Chris Hesterman * Set min width for data stream selection popover Signed-off-by: Chris Hesterman Signed-off-by: Chris Hesterman --- public/app.scss | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/public/app.scss b/public/app.scss index 29ff93cfb..09fb56996 100644 --- a/public/app.scss +++ b/public/app.scss @@ -19,7 +19,9 @@ $euiTextColor: $euiColorDarkestShade !default; @function tintOrShade($color, $tint, $shade) { @if (lightness($euiTextColor) > 50) { @return shade($color, $shade); - } @else { + } + + @else { @return tint($color, $tint); } } @@ -34,6 +36,7 @@ $euiTextColor: $euiColorDarkestShade !default; .refresh-button { min-width: 0; + .euiButtonContent { .euiButton__text { margin: 0; @@ -44,3 +47,10 @@ $euiTextColor: $euiColorDarkestShade !default; .state-accordion:hover { text-decoration: none; } + +.euiFilterGroup__popoverPanel { + width: fit-content; + width: -moz-fit-content; + max-width: 90vw; + min-width: 300px; +} \ No newline at end of file