forked from litmuschaos/litmus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(litmus-portal): Home Page Stats for Litmus Portal. (litmuschaos…
…#2053) This commit removes two outdated test cases from the cypress test suite of PassedVsFailed component Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>
- Loading branch information
1 parent
a4b83db
commit 673b751
Showing
25 changed files
with
559 additions
and
155 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
litmus-portal/frontend/cypress/component/LinearProgressBar.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
litmus-portal/frontend/src/components/AdjustedWeights/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
litmus-portal/frontend/src/components/ProgressBar/AnalyticsLinearProgressBar/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Line } from 'rc-progress'; | ||
import React from 'react'; | ||
import { useTheme } from '@material-ui/core/styles'; | ||
|
||
interface LinearProgressBarProps { | ||
value: number; | ||
maxValue: number; | ||
isInTable: boolean; | ||
} | ||
|
||
const AnalyticsLinearProgressBar: React.FC<LinearProgressBarProps> = ({ | ||
value, | ||
maxValue, | ||
isInTable, | ||
}) => { | ||
const width: number = 2; | ||
const resultValue = ((value as number) / (maxValue as number)) * 100; | ||
|
||
const { palette } = useTheme(); | ||
|
||
return ( | ||
<Line | ||
percent={resultValue} | ||
strokeWidth={width} | ||
trailWidth={width} | ||
strokeColor={isInTable ? palette.primary.dark : palette.secondary.dark} | ||
/> | ||
); | ||
}; | ||
|
||
export default AnalyticsLinearProgressBar; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
litmus-portal/frontend/src/views/ChaosWorkflows/BrowseSchedule/ExperimentPoints.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.