Compare commits

1 Commits
Author SHA1 Message Date
robin e143b407c6 Merge pull request 'Feat/evaluation' (#1) from feat/evaluation into main
Deploy Next.js via Docker / deploy (push) Successful in 5m7s
Reviewed-on: #1
2026-08-03 16:46:55 +00:00
@@ -108,7 +108,6 @@ export default async function EvaluationPage({ params }: PageProps) {
<th style={{ padding: '0.5rem' }}>Kategorie</th> <th style={{ padding: '0.5rem' }}>Kategorie</th>
<th style={{ padding: '0.5rem' }}>Dauer</th> <th style={{ padding: '0.5rem' }}>Dauer</th>
<th style={{ padding: '0.5rem' }}>Anteil</th> <th style={{ padding: '0.5rem' }}>Anteil</th>
<th style={{ padding: '0.5rem' }}>Insg. Anteil</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -116,14 +115,11 @@ export default async function EvaluationPage({ params }: PageProps) {
<tr key={category} style={{ borderBottom: '1px solid #e5e7eb' }}> <tr key={category} style={{ borderBottom: '1px solid #e5e7eb' }}>
<td style={{ padding: '0.5rem' }}>{category}</td> <td style={{ padding: '0.5rem' }}>{category}</td>
<td style={{ padding: '0.5rem', whiteSpace: 'nowrap' }}> <td style={{ padding: '0.5rem', whiteSpace: 'nowrap' }}>
{Math.floor(minutes / 60)}:{Math.round(minutes % 60)}h (={Math.round(minutes)} min) {Math.floor(minutes / 60)} Std. {Math.round(minutes % 60)} Min. ({Math.round(minutes)} Min. gesamt)
</td> </td>
<td style={{ padding: '0.5rem' }}> <td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((minutes / total) * 1000) / 10 : 0}% {total > 0 ? Math.round((minutes / total) * 1000) / 10 : 0}%
</td> </td>
<td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((minutes / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}%
</td>
</tr> </tr>
))} ))}
</tbody> </tbody>
@@ -131,12 +127,9 @@ export default async function EvaluationPage({ params }: PageProps) {
<tr style={{ fontWeight: 'bold' }}> <tr style={{ fontWeight: 'bold' }}>
<td style={{ padding: '0.5rem' }}>Total</td> <td style={{ padding: '0.5rem' }}>Total</td>
<td style={{ padding: '0.5rem', whiteSpace: 'nowrap' }}> <td style={{ padding: '0.5rem', whiteSpace: 'nowrap' }}>
{Math.floor(total / 60)}:{Math.round(total % 60)}h (={Math.round(total)} min) {Math.floor(total / 60)} Std. {Math.round(total % 60)} Min. ({Math.round(total)} Min. gesamt)
</td> </td>
<td style={{ padding: '0.5rem' }}>100%</td> <td style={{ padding: '0.5rem' }}>100%</td>
<td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((total / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}%
</td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
@@ -197,6 +190,7 @@ export default async function EvaluationPage({ params }: PageProps) {
display: 'inline-block', display: 'inline-block',
background: '#white', background: '#white',
border: '1px solid #e5e7eb', border: '1px solid #e5e7eb',
color: 'black',
padding: '2px 8px', padding: '2px 8px',
borderRadius: '4px', borderRadius: '4px',
fontSize: '0.85rem', fontSize: '0.85rem',