Skip to content

Commit 141166a

Browse files
committed
Merge branch 'dev' into personal_details_settings
2 parents e45283f + 5260267 commit 141166a

File tree

59 files changed

+1918
-642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1918
-642
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"react-dom": "^16.13.1",
5252
"react-flow-renderer": "^10.3.16",
5353
"react-joyride": "^2.5.3",
54+
"react-json-pretty": "^2.2.0",
5455
"react-outside-click-handler": "^1.3.0",
5556
"react-redux": "^7.2.1",
5657
"react-router-dom": "^5.2.0",
@@ -78,7 +79,6 @@
7879
"tslint": "tsc",
7980
"all": "eslint './src/**/*.ts*' & react-scripts test --all & tsc"
8081
},
81-
8282
"browserslist": {
8383
"production": [
8484
">0.2%",

src/api/stackComponents/getStackComponentListApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const getMyStackComponentsApi = ({
1111
size,
1212
type,
1313
filtersParam,
14+
id,
1415
workspace,
1516
}: {
1617
workspace: string;
@@ -19,12 +20,13 @@ const getMyStackComponentsApi = ({
1920
logical_operator: string;
2021
type: string;
2122
filtersParam?: object;
23+
id?: any;
2224
page: number;
2325
size: number;
2426
}): Promise<TStack> =>
2527
fetchApiWithAuthRequest({
2628
url: apiUrl(endpoints.StackComponents.my(type, workspace)),
27-
params: { sort_by, logical_operator, page, size, ...filtersParam },
29+
params: { sort_by, logical_operator, page, size, ...filtersParam, id },
2830
method: httpMethods.get,
2931
authenticationToken,
3032
});

src/api/stacks/getMyStacksApi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const getMyStacksApi = ({
1111
page,
1212
size,
1313
filtersParam,
14+
id,
1415
authenticationToken,
1516
}: {
1617
component_id?: any;
@@ -20,6 +21,7 @@ const getMyStacksApi = ({
2021
page: number;
2122
size: number;
2223
filtersParam?: object;
24+
id?: any;
2325
authenticationToken: string;
2426
}): Promise<TStack> =>
2527
fetchApiWithAuthRequest({
@@ -31,6 +33,7 @@ const getMyStacksApi = ({
3133
page,
3234
size,
3335
...filtersParam,
36+
id,
3437
},
3538
method: httpMethods.get,
3639
authenticationToken,

src/redux/actions/stackComponents/getStackComponentListAction.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const getStackComponentListAction = ({
99
page,
1010
size,
1111
filtersParam,
12+
id,
1213
onSuccess,
1314
onFailure,
1415
}: {
@@ -19,6 +20,7 @@ export const getStackComponentListAction = ({
1920
page: number;
2021
size: number;
2122
filtersParam?: object;
23+
id?: any;
2224
onSuccess?: (res: any) => void;
2325
onFailure?: (res: any) => void;
2426
}): TRequestAction => ({
@@ -36,6 +38,7 @@ export const getStackComponentListAction = ({
3638
page,
3739
size,
3840
filtersParam,
41+
id,
3942
},
4043
onSuccess,
4144
onFailure,

src/redux/actions/stacks/getMyStacksAction.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const getMyStacksAction = ({
1010
name,
1111
size,
1212
filtersParam,
13+
id,
1314
onSuccess,
1415
onFailure,
1516
}: {
@@ -21,6 +22,7 @@ export const getMyStacksAction = ({
2122
page?: number;
2223
size?: number;
2324
filtersParam?: object;
25+
id?: any;
2426
onSuccess?: () => void;
2527
onFailure?: () => void;
2628
}): TRequestAction => ({
@@ -39,6 +41,7 @@ export const getMyStacksAction = ({
3941
page,
4042
size,
4143
filtersParam,
44+
id,
4245
},
4346
onSuccess,
4447
onFailure,

src/redux/reducers/flavorsReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ const newState = (state: State, flavors: any[], pagination?: any): State => ({
3232
ids: idsInsert(state.ids, flavors),
3333
byId: byKeyInsert(state.byId, flavors),
3434
paginated: {
35-
page: pagination.index,
36-
size: pagination.max_size,
37-
totalPages: pagination.total_pages,
38-
totalitem: pagination.total,
35+
page: pagination?.index,
36+
size: pagination?.max_size,
37+
totalPages: pagination?.total_pages,
38+
totalitem: pagination?.total,
3939
},
4040
});
4141

src/redux/reducers/organizationsReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ const newState = (
5252
ids: idsInsert(state.ids, organizations),
5353
byId: byKeyInsert(state.byId, organizations),
5454
paginated: {
55-
page: pagination.index,
56-
size: pagination.max_size,
57-
totalPages: pagination.total_pages,
58-
totalitem: pagination.total,
55+
page: pagination?.index,
56+
size: pagination?.max_size,
57+
totalPages: pagination?.total_pages,
58+
totalitem: pagination?.total,
5959
},
6060
});
6161

src/redux/reducers/pipelinesReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const newState = (
3434
ids: idsInsert(state.ids, pipelines),
3535
byId: byKeyInsert(state.byId, pipelines),
3636
paginated: {
37-
page: pagination.index,
38-
size: pagination.max_size,
39-
totalPages: pagination.total_pages,
40-
totalitem: pagination.total,
37+
page: pagination?.index,
38+
size: pagination?.max_size,
39+
totalPages: pagination?.total_pages,
40+
totalitem: pagination?.total,
4141
},
4242
});
4343

src/redux/reducers/stackComponentsReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ const newState = (state: State, stacks: TStack[], pagination?: any): State => ({
3232
ids: idsInsert(state.ids, stacks),
3333
byId: byKeyInsert(state.byId, stacks),
3434
paginated: {
35-
page: pagination.index,
36-
size: pagination.max_size,
37-
totalPages: pagination.total_pages,
38-
totalitem: pagination.total,
35+
page: pagination?.index,
36+
size: pagination?.max_size,
37+
totalPages: pagination?.total_pages,
38+
totalitem: pagination?.total,
3939
},
4040
});
4141

src/redux/reducers/stacksReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ const newState = (state: State, stacks: TStack[], pagination?: any): State => ({
3030
ids: idsInsert(state.ids, stacks),
3131
byId: byKeyInsert(state.byId, stacks),
3232
paginated: {
33-
page: pagination.index,
34-
size: pagination.max_size,
35-
totalPages: pagination.total_pages,
36-
totalitem: pagination.total,
33+
page: pagination?.index,
34+
size: pagination?.max_size,
35+
totalPages: pagination?.total_pages,
36+
totalitem: pagination?.total,
3737
},
3838
});
3939

0 commit comments

Comments
 (0)