Compare commits

..

No commits in common. "4e56cac92efda161a686ad646591825b24792341" and "6285be6d40b164c927cfbdc48ea1ea599fa3e913" have entirely different histories.

2 changed files with 54 additions and 68 deletions

View File

@ -17,4 +17,4 @@ COPY . .
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
CMD ["gunicorn", "--timeout", "600", "--workers", "1", "--bind", "0.0.0.0:5000", "app:app"] CMD ["gunicorn", "--timeout", "600", "--workers", "2", "--bind", "0.0.0.0:5000", "app:app"]

View File

@ -228,75 +228,61 @@ export default function KennzahlenTable({
</Box> </Box>
</Tooltip> </Tooltip>
) : ( ) : (
<Tooltip <Box
title={hasNoValue ? sx={{
<> border: `2px solid ${borderColor}`,
<b>Problem</b> borderRadius: 1,
<br /> padding: "4px 8px",
Es wurden keine Kennzahlen gefunden. Bitte ergänzen! display: "flex",
</> : "" alignItems: "center",
} justifyContent: "space-between",
placement="bottom" width: "100%",
arrow cursor: "text",
}}
> >
<span> <Box
<Box sx={{
sx={{ display: "flex",
border: `2px solid ${borderColor}`, alignItems: "center",
borderRadius: 1, gap: 1,
padding: "4px 8px", width: "100%",
display: "flex", }}
alignItems: "center", >
justifyContent: "space-between", {hasNoValue && (
width: "100%", <ErrorOutlineIcon fontSize="small" color="error" />
cursor: "text", )}
}} {editingIndex === row.setting.name ? (
> <TextField
<Box value={editValue}
sx={{ onChange={(e) => setEditValue(e.target.value)}
display: "flex", onKeyDown={(e) =>
alignItems: "center", handleKeyPress(e, row.setting.name)
gap: 1, }
width: "100%", onBlur={() => handleSave(row.setting.name)}
}} autoFocus
> size="small"
{hasNoValue && ( fullWidth
<ErrorOutlineIcon fontSize="small" color="error" /> variant="standard"
)} sx={{ margin: "-8px 0" }}
{editingIndex === row.setting.name ? (
<TextField
value={editValue}
onChange={(e) => setEditValue(e.target.value)}
onKeyDown={(e) =>
handleKeyPress(e, row.setting.name)
}
onBlur={() => handleSave(row.setting.name)}
autoFocus
size="small"
fullWidth
variant="standard"
sx={{ margin: "-8px 0" }}
/>
) : (
<span>
{row.extractedValues.at(0)?.entity || "—"}
</span>
)}
</Box>
<EditIcon
fontSize="small"
sx={{ color: "#555", cursor: "pointer" }}
onClick={(e) => {
e.stopPropagation();
startEditing(
row.extractedValues.at(0)?.entity || "",
row.setting.name,
);
}}
/> />
</Box> ) : (
</span> <span>
</Tooltip> {row.extractedValues.at(0)?.entity || "—"}
</span>
)}
</Box>
<EditIcon
fontSize="small"
sx={{ color: "#555", cursor: "pointer" }}
onClick={(e) => {
e.stopPropagation();
startEditing(
row.extractedValues.at(0)?.entity || "",
row.setting.name,
);
}}
/>
</Box>
)} )}
</TableCell> </TableCell>
<TableCell align="center"> <TableCell align="center">