Merge pull request 'Feat/evaluation' (#2) from feat/evaluation into main
Deploy Next.js via Docker / deploy (push) Successful in 48s

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-08-04 09:36:38 +00:00
@@ -108,6 +108,7 @@ export default async function EvaluationPage({ params }: PageProps) {
<th style={{ padding: '0.5rem' }}>Kategorie</th>
<th style={{ padding: '0.5rem' }}>Dauer</th>
<th style={{ padding: '0.5rem' }}>Anteil</th>
<th style={{ padding: '0.5rem' }}>Insg. Anteil</th>
</tr>
</thead>
<tbody>
@@ -115,11 +116,14 @@ export default async function EvaluationPage({ params }: PageProps) {
<tr key={category} style={{ borderBottom: '1px solid #e5e7eb' }}>
<td style={{ padding: '0.5rem' }}>{category}</td>
<td style={{ padding: '0.5rem', whiteSpace: 'nowrap' }}>
{Math.floor(minutes / 60)} Std. {Math.round(minutes % 60)} Min. ({Math.round(minutes)} Min. gesamt)
{Math.floor(minutes / 60)}:{Math.round(minutes % 60)}h (={Math.round(minutes)} min)
</td>
<td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((minutes / total) * 1000) / 10 : 0}%
</td>
<td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((minutes / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}%
</td>
</tr>
))}
</tbody>
@@ -127,9 +131,12 @@ export default async function EvaluationPage({ params }: PageProps) {
<tr style={{ fontWeight: 'bold' }}>
<td style={{ padding: '0.5rem' }}>Total</td>
<td style={{ padding: '0.5rem', whiteSpace: 'nowrap' }}>
{Math.floor(total / 60)} Std. {Math.round(total % 60)} Min. ({Math.round(total)} Min. gesamt)
{Math.floor(total / 60)}:{Math.round(total % 60)}h (={Math.round(total)} min)
</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>
</tfoot>
</table>
@@ -190,7 +197,6 @@ export default async function EvaluationPage({ params }: PageProps) {
display: 'inline-block',
background: '#white',
border: '1px solid #e5e7eb',
color: 'black',
padding: '2px 8px',
borderRadius: '4px',
fontSize: '0.85rem',