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

[UI] Volume Batch Creation #2981

Merged
merged 19 commits into from
Dec 27, 2020
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
15436b3
ui/styles: Remove the breadcrumb in Create New Volume page
ChengYanJin Dec 7, 2020
79d964d
ui/volumes: Set up the form of batch volume creation
ChengYanJin Dec 8, 2020
091781a
ui/utils: Add utility function to generate the linux drive name
ChengYanJin Dec 10, 2020
dc10550
ui/volumes: Add dependents field base on the base field
ChengYanJin Dec 10, 2020
214b5d1
ui/package: Upgrade the version of formik to v2
ChengYanJin Dec 10, 2020
03e4f76
ui/ducks/volumes: Change the payload of createVolume to an array
ChengYanJin Dec 14, 2020
a5cf6a1
ui/utils: Add util function to format the data for batch volume
ChengYanJin Dec 14, 2020
f53301d
ui/volumes: Adapt the creationVolume container for batch volume creation
ChengYanJin Dec 14, 2020
6b4ee9e
ui/styles: Fix the scroll bar issue by overflow:auto
ChengYanJin Dec 17, 2020
317c0c8
ui/volumes: Add unit test for formatVolumeCreationData function
ChengYanJin Dec 18, 2020
4ecfc4e
ui/volumes: Factorize the recommendField
ChengYanJin Dec 18, 2020
ac5c3ff
ui/translation: Add missing translation for batch volume creation
ChengYanJin Dec 18, 2020
2083cee
ui/volumes: Fix the bug of input number doesn't sync with form
ChengYanJin Dec 20, 2020
5cd9a87
ui/volumes: Fix the defaults path start from the input path
ChengYanJin Dec 20, 2020
ec0309f
ui/volumes: Change the behaviour of the default name/path
ChengYanJin Dec 21, 2020
743ce67
ui/volumes: Improve the name of the batch volume
ChengYanJin Dec 21, 2020
ed0b77c
ui/volumes: Fix the default path bug when the index is over 53
ChengYanJin Dec 21, 2020
1db10a8
ui/volumes: Set the max number of volume batch creation to 70
ChengYanJin Dec 22, 2020
5d584ae
ui/volumes: When re-check the box only update the untouched fields
ChengYanJin Dec 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 19 additions & 52 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@kubernetes/client-node": "github:scality/kubernetes-client-javascript.git#browser-0.10.2-62-g61d8543",
"@scality/core-ui": "github:scality/core-ui.git#3a7cd45",
"axios": "^0.18.0",
"formik": "1.5.1",
"formik": "2.2.5",
"lodash.isempty": "^4.4.0",
"lodash.sortby": "^4.7.0",
"oidc-client": "^1.8.0",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/CommonLayoutStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const RightSidePanel = styled.div`
flex-direction: column;
width: 51%;
/* Make it scrollable for the small laptop screen */
overflow-y: scroll;
overflow-y: auto;
margin: 0 ${padding.small} 0 8px;
`;

Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/NodeListTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const NodeListContainer = styled.div`
width: 100%;
}
.ReactTable .rt-thead {
overflow-y: scroll;
overflow-y: auto;
}
table {
border-spacing: 0;
Expand Down Expand Up @@ -112,7 +112,7 @@ const Body = styled.tbody`
display: block;
height: calc(100vh - 250px);
overflow: auto;
overflow-y: scroll;
overflow-y: auto;
`;

const Cell = styled.td`
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/NodePageAlertsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Body = styled.tbody`
display: block;
height: calc(100vh - 250px);
overflow: auto;
overflow-y: scroll;
overflow-y: auto;
`;

const ActiveAlertsText = styled.div`
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/NodePagePodsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const PodTableContainer = styled.div`
font-size: ${fontSize.base};
border-color: ${(props) => props.theme.brand.borderLight};
.ReactTable .rt-thead {
overflow-y: scroll;
overflow-y: auto;
}
table {
border-spacing: 0;
Expand Down Expand Up @@ -49,7 +49,7 @@ const Body = styled.tbody`
display: block;
height: calc(100vh - 250px);
overflow: auto;
overflow-y: scroll;
overflow-y: auto;
`;

const Cell = styled.td`
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/VolumeAlertsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Body = styled.tbody`
display: block;
height: calc(100vh - 250px);
overflow: auto;
overflow-y: scroll;
overflow-y: auto;
`;

const ActiveAlertsCard = (props) => {
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/VolumeListTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const VolumeListContainer = styled.div`
background-color: ${(props) => props.theme.brand.secondaryDark1};
}
.ReactTable .rt-thead {
overflow-y: scroll;
overflow-y: auto;
}
table {
border-spacing: 0;
Expand Down Expand Up @@ -126,7 +126,7 @@ const Body = styled.tbody`
display: block;
height: calc(100vh - 250px);
overflow: auto;
overflow-y: scroll;
overflow-y: auto;
`;

const Cell = styled.td`
Expand Down
Loading