From b2f23976700ffccf0f89f2218b3ae6e0180422c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Z=C3=A1zrivec?= Date: Thu, 19 Sep 2019 19:59:51 +0200 Subject: [PATCH] Merge pull request #1031 from mturley/list-view-table-structure Convert list views to table structure to fix alignment issues (cherry picked from commit 40746f19d02a7c407c5d101accbd733766fa9d11) https://bugzilla.redhat.com/show_bug.cgi?id=1716845 --- app/javascript/react/screens/App/App.scss | 1 + .../__snapshots__/MappingWizard.test.js.snap | 52 ++-- .../components/Migrations/Migrations.scss | 4 + .../Migrations/MigrationsCompletedList.js | 42 ++- .../Migrations/MigrationsNotStartedList.js | 56 ++-- .../Migrations/ScheduledTimeInfoItem.js | 27 ++ .../__test__/MigrationsCompletedList.test.js | 9 +- .../__test__/MigrationsNotStartedList.test.js | 3 +- .../PlanWizardVMStep.test.js.snap | 8 +- .../__snapshots__/Settings.test.js.snap | 4 +- ...nHostWizardAuthenticationStep.test.js.snap | 78 ++--- .../ConversionHostWizard.test.js.snap | 52 ++-- .../ConversionHostsList.test.js.snap | 12 +- .../App/common/ListViewTable/ListViewTable.js | 66 +++++ .../common/ListViewTable/ListViewTable.scss | 48 +++ .../common/ListViewTable/ListViewTableRow.js | 69 +++++ package.json | 4 +- yarn.lock | 276 +++++++++++++++--- 18 files changed, 608 insertions(+), 203 deletions(-) create mode 100644 app/javascript/react/screens/App/Overview/components/Migrations/ScheduledTimeInfoItem.js create mode 100644 app/javascript/react/screens/App/common/ListViewTable/ListViewTable.js create mode 100644 app/javascript/react/screens/App/common/ListViewTable/ListViewTable.scss create mode 100644 app/javascript/react/screens/App/common/ListViewTable/ListViewTableRow.js diff --git a/app/javascript/react/screens/App/App.scss b/app/javascript/react/screens/App/App.scss index ed2d40ad8b..50d51a8fc3 100644 --- a/app/javascript/react/screens/App/App.scss +++ b/app/javascript/react/screens/App/App.scss @@ -3,6 +3,7 @@ @import './Settings/Settings.scss'; @import './Plan/Plan.scss'; @import './Mappings/Mappings.scss'; +@import './common/ListViewTable/ListViewTable.scss'; @import './common/ModalWizard/ModalWizard.scss'; @import './common/ShowWizardEmptyState/ShowWizardEmptyState.scss'; @import './common/forms/TextFileInput/TextFileInput.scss'; diff --git a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/__tests__/__snapshots__/MappingWizard.test.js.snap b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/__tests__/__snapshots__/MappingWizard.test.js.snap index 8b48d6635c..f12a048c73 100644 --- a/app/javascript/react/screens/App/Mappings/screens/MappingWizard/__tests__/__snapshots__/MappingWizard.test.js.snap +++ b/app/javascript/react/screens/App/Mappings/screens/MappingWizard/__tests__/__snapshots__/MappingWizard.test.js.snap @@ -33,33 +33,31 @@ exports[`MappingWizard component renders the mapping wizard 1`] = ` - - - - + + - - + +