Skip to content

Commit dc5757c

Browse files
authored
Added loader component for Gitops page (#4192)
* Added loader component for gitops page Signed-off-by: Saranya-jena <[email protected]> * updated readme Signed-off-by: Saranya-jena <[email protected]> --------- Signed-off-by: Saranya-jena <[email protected]>
1 parent f242925 commit dc5757c

File tree

5 files changed

+27
-14
lines changed

5 files changed

+27
-14
lines changed

chaoscenter/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## Installation steps for Litmus 3.0.0-beta9
1+
# [LitmusChaos 3.0.0](https://docs.litmuschaos.io/)
2+
3+
## Installation steps for Litmus 3.0.0
24

35
### Mongo installation via Helm - Bitnami Mongo
46

chaoscenter/web/src/controllers/Gitops/Gitops.tsx

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import GitopsView from '@views/Gitops/Gitops';
44
import { enableGitOps, getGitOpsDetails, updateGitOps } from '@api/core/gitops';
55
import { getScope } from '@utils';
66
import { disableGitOps } from '@api/core/gitops/disableGitops';
7+
import Loader from '@components/Loader';
78

89
export default function GitopsController(): React.ReactElement {
910
const scope = getScope();
@@ -44,17 +45,25 @@ export default function GitopsController(): React.ReactElement {
4445
onError: err => showError(err.message)
4546
});
4647
return (
47-
<GitopsView
48-
gitopsDetails={getGitOpsDetailsData?.getGitOpsDetails}
49-
enableGitops={enableGitopsMutation}
50-
disableGitops={disableGitopsMutation}
51-
updateGitops={updateGitopsMutation}
52-
loading={{
53-
getGitOpsDetailsLoading: getGitOpsDetailsLoading,
54-
disableGitopsMutationLoading: disableGitopsMutationLoading,
55-
updateGitopsMutationLoading: updateGitopsMutationLoading,
56-
enableGitopsMutationLoading: enableGitopsMutationLoading
48+
<Loader
49+
loading={getGitOpsDetailsLoading}
50+
height="fit-content"
51+
style={{
52+
minHeight: getGitOpsDetailsLoading ? 'calc(var(--page-min-height) - var(--spacing-xxlarge))' : 'initial'
5753
}}
58-
/>
54+
>
55+
<GitopsView
56+
gitopsDetails={getGitOpsDetailsData?.getGitOpsDetails}
57+
enableGitops={enableGitopsMutation}
58+
disableGitops={disableGitopsMutation}
59+
updateGitops={updateGitopsMutation}
60+
loading={{
61+
getGitOpsDetailsLoading: getGitOpsDetailsLoading,
62+
disableGitopsMutationLoading: disableGitopsMutationLoading,
63+
updateGitopsMutationLoading: updateGitopsMutationLoading,
64+
enableGitopsMutationLoading: enableGitopsMutationLoading
65+
}}
66+
/>
67+
</Loader>
5968
);
6069
}

chaoscenter/web/src/controllers/InviteNewMembers/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function generateInviteUsersTableContent(userData: Array<User> | undefine
66
userData && userData.length > 0
77
? userData.map(user => {
88
return {
9-
id: user.userID,
9+
userID: user.userID,
1010
username: user.username,
1111
email: user.email ?? '',
1212
name: user.name ?? ''
67.2 KB
Loading

litmus-portal/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## **ChaosCenter**
22

3+
[Deprecated with the release of Litmus 3.0.0. Visit [here](https://github.com/litmuschaos/litmus/tree/master/chaoscenter) for installation guide.]
4+
35
ChaosCenter provides console and UI experience for managing, monitoring, and events around chaos workflows. Chaos workflows consist of a sequence of experiments run together to achieve the objective of introducing some kind of fault into an application or the Kubernetes platform.
46

57
## **Platforms Support**
@@ -70,7 +72,6 @@ kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/lit
7072
7173
- All environment variables.
7274

73-
7475
#### Retrieving external url to access the litmus portal
7576

7677
##### GKE/Okteto Cloud/EKS
@@ -97,6 +98,7 @@ ChaosCenter provides console or UI experience for managing, monitoring, and even
9798
View the User Guide <b>[here](https://docs.litmuschaos.io/)</b>
9899

99100
### **Local Development Guide for ChaosCenter**
101+
100102
Local Development Guide for ChaosCenter can be found <b>[here](https://github.com/litmuschaos/litmus/wiki/ChaosCenter-Development-Guide)</b>
101103

102104
### **Upgrade from 3.0.0-beta7 to 3.0.0-beta8**

0 commit comments

Comments
 (0)