Skip to content

Commit

Permalink
[#281] Support failure rate switch
Browse files Browse the repository at this point in the history
E.g. between operationa/predicted/manual failure rate of SNS nodes

Fixes.

Apply suggestions from code review

Co-authored-by: grotskat <[email protected]>
  • Loading branch information
2 people authored and blcham committed Jun 12, 2024
1 parent 11c9508 commit 2abebfd
Show file tree
Hide file tree
Showing 6 changed files with 260 additions and 36 deletions.
12 changes: 8 additions & 4 deletions public/locales/cs/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,14 @@
"fhaBasedFailureRate": "Intenzita poruch založená na FHA",
"predictedFailureRate": "Predikovaná intenzita poruch",
"ataSystem": "ATA systém",
"partNumber": "Číslo součásti",
"stock": "Zásoba",
"quantity": "Množství",
"schematicDesignation": "Schématické označení"
"partNumber": "Číslo dílu",
"stock": "Skladem",
"quantity": "Počet",
"schematicDesignation": "Schematické označení",
"requiredFailureRate": "Požadovaná intenzita poruch",
"calculatedFailureRate": "Vypočtená intenzita poruch",
"operationalFailureRate": "Provozní intenzita poruch",
"manuallyDefinedFailureRate": "Manuálně definovaná intenzita poruch"
},
"appBar": {
"selectSystemPlaceholder": "Vyberte systém"
Expand Down
6 changes: 5 additions & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@
"partNumber": "Part number",
"stock": "Stock",
"quantity": "Quantity",
"schematicDesignation": "Schematic designation"
"schematicDesignation": "Schematic designation",
"requiredFailureRate": "Required failure rate",
"calculatedFailureRate": "Calculated failure rate",
"operationalFailureRate": "Operational failure rate",
"manuallyDefinedFailureRate": "Manually defined failure rate"
},
"appBar": {
"selectSystemPlaceholder": "Select system"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,39 @@ import { makeStyles } from "tss-react/mui";
const useStyles = makeStyles()((theme: Theme) => ({
label: {
fontWeight: "500",
color: "#00000080",
marginRight: 8,
fontSize: 16,
color: "black",
},
labelRow: {
color: "grey",
display: "flex",
flexDirection: "row",
alignItems: "center",
},
selectableLabel: {
color: "black",
fontSize: 16,
},
black: {
color: "black",
"&.Mui-checked": {
color: "black",
},
},
grey: {
color: "grey",
},
divider: {
marginTop: 8,
marginBottom: 8,
},
numberInput: {
"& .MuiInputBase-input": {
color: "black",
padding: "8px 12px",
},
},
}));

export default useStyles;
Loading

0 comments on commit 2abebfd

Please sign in to comment.