|
@@ -34,30 +34,30 @@ if (!function_exists('fmt_days')) {
|
|
|
|
|
|
|
|
<header class="flex items-end justify-between gap-4">
|
|
<header class="flex items-end justify-between gap-4">
|
|
|
<div>
|
|
<div>
|
|
|
- <nav class="text-xs text-slate-500">
|
|
|
|
|
|
|
+ <nav class="text-xs text-slate-500 dark:text-slate-400">
|
|
|
<a href="/" class="hover:underline">Sprints</a> /
|
|
<a href="/" class="hover:underline">Sprints</a> /
|
|
|
</nav>
|
|
</nav>
|
|
|
<h1 class="text-2xl font-semibold tracking-tight"><?= e($sprint->name) ?></h1>
|
|
<h1 class="text-2xl font-semibold tracking-tight"><?= e($sprint->name) ?></h1>
|
|
|
- <p class="text-slate-600 mt-1 text-sm">
|
|
|
|
|
|
|
+ <p class="text-slate-600 mt-1 text-sm dark:text-slate-400">
|
|
|
<?= e($sprint->startDate) ?> – <?= e($sprint->endDate) ?>
|
|
<?= e($sprint->startDate) ?> – <?= e($sprint->endDate) ?>
|
|
|
· Reserve <?= e(number_format($sprint->reserveFraction * 100, 0)) ?>%
|
|
· Reserve <?= e(number_format($sprint->reserveFraction * 100, 0)) ?>%
|
|
|
<?php if ($sprint->isArchived): ?>
|
|
<?php if ($sprint->isArchived): ?>
|
|
|
- · <span class="inline-block px-2 py-0.5 text-xs bg-slate-100 text-slate-600 rounded">archived</span>
|
|
|
|
|
|
|
+ · <span class="inline-block px-2 py-0.5 text-xs bg-slate-100 text-slate-600 rounded dark:bg-slate-700 dark:text-slate-300">archived</span>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex items-center gap-3">
|
|
<div class="flex items-center gap-3">
|
|
|
<div data-status
|
|
<div data-status
|
|
|
- class="text-sm border rounded px-3 py-1 opacity-0 transition-opacity duration-200 border-slate-200 bg-slate-50 text-slate-700">
|
|
|
|
|
|
|
+ class="text-sm border rounded px-3 py-1 opacity-0 transition-opacity duration-200 border-slate-200 bg-slate-50 text-slate-700 dark:bg-slate-800 dark:border-slate-700 dark:text-slate-300">
|
|
|
</div>
|
|
</div>
|
|
|
<a href="/sprints/<?= (int) $sprint->id ?>/present"
|
|
<a href="/sprints/<?= (int) $sprint->id ?>/present"
|
|
|
target="_blank" rel="noopener"
|
|
target="_blank" rel="noopener"
|
|
|
- class="inline-flex items-center gap-2 rounded-md border border-slate-300 bg-white text-slate-700 px-3 py-2 text-sm hover:bg-slate-100">
|
|
|
|
|
|
|
+ class="inline-flex items-center gap-2 rounded-md border border-slate-300 bg-white text-slate-700 px-3 py-2 text-sm hover:bg-slate-100 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-200 dark:hover:bg-slate-700">
|
|
|
Present
|
|
Present
|
|
|
</a>
|
|
</a>
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
<a href="/sprints/<?= (int) $sprint->id ?>/settings"
|
|
<a href="/sprints/<?= (int) $sprint->id ?>/settings"
|
|
|
- class="inline-flex items-center gap-2 rounded-md border border-slate-300 bg-white text-slate-700 px-3 py-2 text-sm hover:bg-slate-100">
|
|
|
|
|
|
|
+ class="inline-flex items-center gap-2 rounded-md border border-slate-300 bg-white text-slate-700 px-3 py-2 text-sm hover:bg-slate-100 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-200 dark:hover:bg-slate-700">
|
|
|
Settings
|
|
Settings
|
|
|
</a>
|
|
</a>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
@@ -65,7 +65,7 @@ if (!function_exists('fmt_days')) {
|
|
|
</header>
|
|
</header>
|
|
|
|
|
|
|
|
<?php if ($sprintWorkers === [] || $weeks === []): ?>
|
|
<?php if ($sprintWorkers === [] || $weeks === []): ?>
|
|
|
- <div class="rounded-md border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-900">
|
|
|
|
|
|
|
+ <div class="rounded-md border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-900 dark:bg-amber-900 dark:border-amber-800 dark:text-amber-200">
|
|
|
<?php if ($weeks === []): ?>
|
|
<?php if ($weeks === []): ?>
|
|
|
No weeks yet. <a href="/sprints/<?= (int) $sprint->id ?>/settings" class="underline">Open settings</a> to add some.
|
|
No weeks yet. <a href="/sprints/<?= (int) $sprint->id ?>/settings" class="underline">Open settings</a> to add some.
|
|
|
<?php elseif ($sprintWorkers === []): ?>
|
|
<?php elseif ($sprintWorkers === []): ?>
|
|
@@ -75,29 +75,29 @@ if (!function_exists('fmt_days')) {
|
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
|
|
|
|
|
|
<!-- Arbeitstage grid -->
|
|
<!-- Arbeitstage grid -->
|
|
|
- <section class="rounded-lg border bg-white overflow-x-auto">
|
|
|
|
|
|
|
+ <section class="rounded-lg border bg-white overflow-x-auto dark:bg-slate-800 dark:border-slate-700">
|
|
|
<table class="min-w-full text-sm" data-arbeitstage>
|
|
<table class="min-w-full text-sm" data-arbeitstage>
|
|
|
- <thead class="bg-slate-50 text-slate-600 text-xs uppercase tracking-wider">
|
|
|
|
|
|
|
+ <thead class="bg-slate-50 text-slate-600 text-xs uppercase tracking-wider dark:bg-slate-700 dark:text-slate-300">
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th class="text-left px-3 py-2 font-semibold sticky left-0 bg-slate-50 z-10"> </th>
|
|
|
|
|
|
|
+ <th class="text-left px-3 py-2 font-semibold sticky left-0 bg-slate-50 z-10 dark:bg-slate-700"> </th>
|
|
|
<?php foreach ($weeks as $w): ?>
|
|
<?php foreach ($weeks as $w): ?>
|
|
|
<th class="text-center px-2 py-2 font-semibold whitespace-nowrap">
|
|
<th class="text-center px-2 py-2 font-semibold whitespace-nowrap">
|
|
|
<div class="font-mono">KW<?= (int) $w->isoWeek ?></div>
|
|
<div class="font-mono">KW<?= (int) $w->isoWeek ?></div>
|
|
|
- <div class="text-[10px] text-slate-500 font-normal"><?= e($w->startDate) ?></div>
|
|
|
|
|
|
|
+ <div class="text-[10px] text-slate-500 font-normal dark:text-slate-400"><?= e($w->startDate) ?></div>
|
|
|
</th>
|
|
</th>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
<th class="text-center px-2 py-2 font-semibold">Σ</th>
|
|
<th class="text-center px-2 py-2 font-semibold">Σ</th>
|
|
|
<th class="text-center px-2 py-2 font-semibold">RTB</th>
|
|
<th class="text-center px-2 py-2 font-semibold">RTB</th>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
- <tbody class="divide-y divide-slate-100" data-tbody>
|
|
|
|
|
|
|
+ <tbody class="divide-y divide-slate-100 dark:divide-slate-700" data-tbody>
|
|
|
<!-- Arbeitstage row — derived from weekday selection in Sprint Settings. -->
|
|
<!-- Arbeitstage row — derived from weekday selection in Sprint Settings. -->
|
|
|
- <tr class="bg-slate-50">
|
|
|
|
|
- <th class="text-left px-3 py-2 font-semibold text-slate-700 sticky left-0 bg-slate-50">
|
|
|
|
|
|
|
+ <tr class="bg-slate-50 dark:bg-slate-700">
|
|
|
|
|
+ <th class="text-left px-3 py-2 font-semibold text-slate-700 sticky left-0 bg-slate-50 dark:bg-slate-700 dark:text-slate-200">
|
|
|
Arbeitstage
|
|
Arbeitstage
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
<a href="/sprints/<?= (int) $sprint->id ?>/settings"
|
|
<a href="/sprints/<?= (int) $sprint->id ?>/settings"
|
|
|
- class="ml-1 text-[10px] font-normal text-slate-500 hover:underline"
|
|
|
|
|
|
|
+ class="ml-1 text-[10px] font-normal text-slate-500 hover:underline dark:text-slate-400"
|
|
|
title="Pick weekdays in Settings">(edit)</a>
|
|
title="Pick weekdays in Settings">(edit)</a>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
</th>
|
|
</th>
|
|
@@ -108,7 +108,7 @@ if (!function_exists('fmt_days')) {
|
|
|
title="<?= e(implode(' ', $w->activeDays())) ?: '—' ?>">
|
|
title="<?= e(implode(' ', $w->activeDays())) ?: '—' ?>">
|
|
|
<?php foreach (SprintWeek::DAY_LABELS as $bit => $_label): ?>
|
|
<?php foreach (SprintWeek::DAY_LABELS as $bit => $_label): ?>
|
|
|
<span class="inline-block h-2.5 w-2.5 rounded-full
|
|
<span class="inline-block h-2.5 w-2.5 rounded-full
|
|
|
- <?= $w->hasDay($_label) ? 'bg-green-500' : 'bg-slate-300' ?>"></span>
|
|
|
|
|
|
|
+ <?= $w->hasDay($_label) ? 'bg-green-500 dark:bg-green-400' : 'bg-slate-300 dark:bg-slate-600' ?>"></span>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
@@ -123,10 +123,10 @@ if (!function_exists('fmt_days')) {
|
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
|
<?php $rowDays = $grid[$sw->id] ?? []; $rowSum = array_sum($rowDays); ?>
|
|
<?php $rowDays = $grid[$sw->id] ?? []; $rowSum = array_sum($rowDays); ?>
|
|
|
<tr data-sw-row data-sw-id="<?= (int) $sw->id ?>">
|
|
<tr data-sw-row data-sw-id="<?= (int) $sw->id ?>">
|
|
|
- <th class="text-left px-3 py-2 font-medium sticky left-0 bg-white z-10">
|
|
|
|
|
|
|
+ <th class="text-left px-3 py-2 font-medium sticky left-0 bg-white z-10 dark:bg-slate-800">
|
|
|
<span class="flex items-center gap-2">
|
|
<span class="flex items-center gap-2">
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
- <span class="handle cursor-grab text-slate-400 select-none">≡</span>
|
|
|
|
|
|
|
+ <span class="handle cursor-grab text-slate-400 select-none dark:text-slate-500">≡</span>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
<?= e($sw->workerName) ?>
|
|
<?= e($sw->workerName) ?>
|
|
|
</span>
|
|
</span>
|
|
@@ -138,7 +138,7 @@ if (!function_exists('fmt_days')) {
|
|
|
value="<?= e(fmt_days($v)) ?>"
|
|
value="<?= e(fmt_days($v)) ?>"
|
|
|
data-day data-sw-id="<?= (int) $sw->id ?>"
|
|
data-day data-sw-id="<?= (int) $sw->id ?>"
|
|
|
data-week-id="<?= (int) $w->id ?>"
|
|
data-week-id="<?= (int) $w->id ?>"
|
|
|
- class="w-14 rounded border border-slate-200 px-1 py-1 text-center font-mono focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="w-14 rounded border border-slate-200 px-1 py-1 text-center font-mono focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
|
<span class="font-mono"><?= e(fmt_days($v)) ?></span>
|
|
<span class="font-mono"><?= e(fmt_days($v)) ?></span>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
@@ -153,7 +153,7 @@ if (!function_exists('fmt_days')) {
|
|
|
<input type="number" min="0" max="1" step="0.05"
|
|
<input type="number" min="0" max="1" step="0.05"
|
|
|
value="<?= e(number_format($sw->rtb, 2, '.', '')) ?>"
|
|
value="<?= e(number_format($sw->rtb, 2, '.', '')) ?>"
|
|
|
data-rtb data-sw-id="<?= (int) $sw->id ?>"
|
|
data-rtb data-sw-id="<?= (int) $sw->id ?>"
|
|
|
- class="w-16 rounded border border-slate-200 px-1 py-1 text-center font-mono focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="w-16 rounded border border-slate-200 px-1 py-1 text-center font-mono focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
|
<span class="font-mono"><?= e(number_format($sw->rtb, 2, '.', '')) ?></span>
|
|
<span class="font-mono"><?= e(number_format($sw->rtb, 2, '.', '')) ?></span>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
@@ -165,14 +165,14 @@ if (!function_exists('fmt_days')) {
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Capacity summary — one column per worker, aligned with task columns in Phase 6 -->
|
|
<!-- Capacity summary — one column per worker, aligned with task columns in Phase 6 -->
|
|
|
- <section class="rounded-lg border bg-white overflow-x-auto">
|
|
|
|
|
- <div class="px-4 py-2 border-b bg-slate-50 text-xs uppercase tracking-wider text-slate-600 font-semibold">
|
|
|
|
|
|
|
+ <section class="rounded-lg border bg-white overflow-x-auto dark:bg-slate-800 dark:border-slate-700">
|
|
|
|
|
+ <div class="px-4 py-2 border-b bg-slate-50 text-xs uppercase tracking-wider text-slate-600 font-semibold dark:bg-slate-700 dark:border-slate-700 dark:text-slate-300">
|
|
|
Capacity
|
|
Capacity
|
|
|
</div>
|
|
</div>
|
|
|
<table class="min-w-full text-sm">
|
|
<table class="min-w-full text-sm">
|
|
|
<thead>
|
|
<thead>
|
|
|
- <tr class="bg-slate-50 text-slate-600 text-xs">
|
|
|
|
|
- <th class="text-left px-3 py-2 font-semibold sticky left-0 bg-slate-50 z-10"> </th>
|
|
|
|
|
|
|
+ <tr class="bg-slate-50 text-slate-600 text-xs dark:bg-slate-700 dark:text-slate-300">
|
|
|
|
|
+ <th class="text-left px-3 py-2 font-semibold sticky left-0 bg-slate-50 z-10 dark:bg-slate-700"> </th>
|
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
|
<th class="text-center px-2 py-2 font-semibold whitespace-nowrap">
|
|
<th class="text-center px-2 py-2 font-semibold whitespace-nowrap">
|
|
|
<?= e($sw->workerName) ?>
|
|
<?= e($sw->workerName) ?>
|
|
@@ -180,9 +180,9 @@ if (!function_exists('fmt_days')) {
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
- <tbody class="divide-y divide-slate-100">
|
|
|
|
|
|
|
+ <tbody class="divide-y divide-slate-100 dark:divide-slate-700">
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th class="text-left px-3 py-2 text-slate-700 font-medium sticky left-0 bg-white">Ressourcen</th>
|
|
|
|
|
|
|
+ <th class="text-left px-3 py-2 text-slate-700 font-medium sticky left-0 bg-white dark:bg-slate-800 dark:text-slate-200">Ressourcen</th>
|
|
|
<?php foreach ($sprintWorkers as $sw): $c = $capacity[$sw->id] ?? null; ?>
|
|
<?php foreach ($sprintWorkers as $sw): $c = $capacity[$sw->id] ?? null; ?>
|
|
|
<td class="px-2 py-2 text-center font-mono"
|
|
<td class="px-2 py-2 text-center font-mono"
|
|
|
data-cap-ressourcen data-sw-id="<?= (int) $sw->id ?>">
|
|
data-cap-ressourcen data-sw-id="<?= (int) $sw->id ?>">
|
|
@@ -191,18 +191,18 @@ if (!function_exists('fmt_days')) {
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th class="text-left px-3 py-2 text-slate-700 font-medium sticky left-0 bg-white">− Reserven</th>
|
|
|
|
|
|
|
+ <th class="text-left px-3 py-2 text-slate-700 font-medium sticky left-0 bg-white dark:bg-slate-800 dark:text-slate-200">− Reserven</th>
|
|
|
<?php foreach ($sprintWorkers as $sw): $c = $capacity[$sw->id] ?? null; ?>
|
|
<?php foreach ($sprintWorkers as $sw): $c = $capacity[$sw->id] ?? null; ?>
|
|
|
- <td class="px-2 py-2 text-center font-mono text-slate-600"
|
|
|
|
|
|
|
+ <td class="px-2 py-2 text-center font-mono text-slate-600 dark:text-slate-400"
|
|
|
data-cap-after-reserves data-sw-id="<?= (int) $sw->id ?>">
|
|
data-cap-after-reserves data-sw-id="<?= (int) $sw->id ?>">
|
|
|
<?= e(fmt_days($c['after_reserves'] ?? 0.0)) ?>
|
|
<?= e(fmt_days($c['after_reserves'] ?? 0.0)) ?>
|
|
|
</td>
|
|
</td>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th class="text-left px-3 py-2 text-slate-700 font-semibold sticky left-0 bg-white">Available</th>
|
|
|
|
|
|
|
+ <th class="text-left px-3 py-2 text-slate-700 font-semibold sticky left-0 bg-white dark:bg-slate-800 dark:text-slate-200">Available</th>
|
|
|
<?php foreach ($sprintWorkers as $sw): $c = $capacity[$sw->id] ?? null; $av = (float) ($c['available'] ?? 0.0); ?>
|
|
<?php foreach ($sprintWorkers as $sw): $c = $capacity[$sw->id] ?? null; $av = (float) ($c['available'] ?? 0.0); ?>
|
|
|
- <td class="px-2 py-2 text-center font-mono font-semibold <?= $av < 0 ? 'text-red-700' : 'text-slate-900' ?>"
|
|
|
|
|
|
|
+ <td class="px-2 py-2 text-center font-mono font-semibold <?= $av < 0 ? 'text-red-700 dark:text-red-400' : 'text-slate-900 dark:text-slate-100' ?>"
|
|
|
data-cap-available data-sw-id="<?= (int) $sw->id ?>">
|
|
data-cap-available data-sw-id="<?= (int) $sw->id ?>">
|
|
|
<?= e(fmt_days($av)) ?>
|
|
<?= e(fmt_days($av)) ?>
|
|
|
</td>
|
|
</td>
|
|
@@ -212,30 +212,30 @@ if (!function_exists('fmt_days')) {
|
|
|
</table>
|
|
</table>
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
- <p class="text-xs text-slate-500">
|
|
|
|
|
|
|
+ <p class="text-xs text-slate-500 dark:text-slate-400">
|
|
|
Numeric inputs snap to 0.5 (days) or 0.05 (RTB) on blur. Edits save automatically
|
|
Numeric inputs snap to 0.5 (days) or 0.05 (RTB) on blur. Edits save automatically
|
|
|
with a 400 ms debounce; Available turns red if a worker is overcommitted.
|
|
with a 400 ms debounce; Available turns red if a worker is overcommitted.
|
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
|
<!-- Section B: Task list -->
|
|
<!-- Section B: Task list -->
|
|
|
- <section class="rounded-lg border bg-white overflow-hidden"
|
|
|
|
|
|
|
+ <section class="rounded-lg border bg-white overflow-hidden dark:bg-slate-800 dark:border-slate-700"
|
|
|
data-task-section>
|
|
data-task-section>
|
|
|
- <div class="px-4 py-3 border-b bg-slate-50 flex flex-wrap items-center gap-2">
|
|
|
|
|
- <h2 class="text-sm font-semibold text-slate-700 uppercase tracking-wider">Tasks</h2>
|
|
|
|
|
|
|
+ <div class="px-4 py-3 border-b bg-slate-50 flex flex-wrap items-center gap-2 dark:bg-slate-700 dark:border-slate-700">
|
|
|
|
|
+ <h2 class="text-sm font-semibold text-slate-700 uppercase tracking-wider dark:text-slate-200">Tasks</h2>
|
|
|
|
|
|
|
|
<!-- Toolbar -->
|
|
<!-- Toolbar -->
|
|
|
<div class="ml-auto flex flex-wrap items-center gap-2">
|
|
<div class="ml-auto flex flex-wrap items-center gap-2">
|
|
|
<!-- Reset (only visible while any filter is active — JS toggles the hidden class) -->
|
|
<!-- Reset (only visible while any filter is active — JS toggles the hidden class) -->
|
|
|
<button type="button" data-reset-filters
|
|
<button type="button" data-reset-filters
|
|
|
- class="hidden rounded border border-slate-300 px-2 py-1 text-sm bg-white text-slate-700 hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="hidden rounded border border-slate-300 px-2 py-1 text-sm bg-white text-slate-700 hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-200 dark:hover:bg-slate-700">
|
|
|
Reset
|
|
Reset
|
|
|
</button>
|
|
</button>
|
|
|
|
|
|
|
|
<input type="search" data-task-search placeholder="Search…"
|
|
<input type="search" data-task-search placeholder="Search…"
|
|
|
- class="rounded border border-slate-300 px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="rounded border border-slate-300 px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
|
|
|
|
|
<select data-prio-filter
|
|
<select data-prio-filter
|
|
|
- class="rounded border border-slate-300 px-2 py-1 text-sm bg-white focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="rounded border border-slate-300 px-2 py-1 text-sm bg-white focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<option value="">All prios</option>
|
|
<option value="">All prios</option>
|
|
|
<option value="1">Prio 1 only</option>
|
|
<option value="1">Prio 1 only</option>
|
|
|
<option value="2">Prio 2 only</option>
|
|
<option value="2">Prio 2 only</option>
|
|
@@ -244,26 +244,26 @@ if (!function_exists('fmt_days')) {
|
|
|
<!-- Multi-select owner filter -->
|
|
<!-- Multi-select owner filter -->
|
|
|
<div class="relative" data-owner-filter-root>
|
|
<div class="relative" data-owner-filter-root>
|
|
|
<button type="button" data-owner-filter-trigger
|
|
<button type="button" data-owner-filter-trigger
|
|
|
- class="rounded border border-slate-300 px-2 py-1 text-sm bg-white hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
- Owners <span data-owner-filter-count class="text-slate-500"></span>
|
|
|
|
|
|
|
+ class="rounded border border-slate-300 px-2 py-1 text-sm bg-white hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-200 dark:hover:bg-slate-700">
|
|
|
|
|
+ Owners <span data-owner-filter-count class="text-slate-500 dark:text-slate-400"></span>
|
|
|
</button>
|
|
</button>
|
|
|
<div data-owner-filter-dropdown
|
|
<div data-owner-filter-dropdown
|
|
|
- class="hidden absolute right-0 z-20 mt-1 w-56 rounded-md border border-slate-200 bg-white shadow-lg">
|
|
|
|
|
- <div class="px-3 py-2 text-xs text-slate-500 flex items-center justify-between">
|
|
|
|
|
|
|
+ class="hidden absolute right-0 z-20 mt-1 w-56 rounded-md border border-slate-200 bg-white shadow-lg dark:bg-slate-800 dark:border-slate-700">
|
|
|
|
|
+ <div class="px-3 py-2 text-xs text-slate-500 flex items-center justify-between dark:text-slate-400">
|
|
|
<span>Owner</span>
|
|
<span>Owner</span>
|
|
|
<button type="button" data-owner-filter-clear
|
|
<button type="button" data-owner-filter-clear
|
|
|
- class="text-blue-700 hover:underline">Clear</button>
|
|
|
|
|
|
|
+ class="text-blue-700 hover:underline dark:text-blue-400 dark:hover:text-blue-300">Clear</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="max-h-64 overflow-y-auto">
|
|
<div class="max-h-64 overflow-y-auto">
|
|
|
- <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50">
|
|
|
|
|
|
|
+ <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50 dark:hover:bg-slate-700">
|
|
|
<input type="checkbox" data-owner-filter-opt value="__none__"
|
|
<input type="checkbox" data-owner-filter-opt value="__none__"
|
|
|
- class="rounded border-slate-300">
|
|
|
|
|
- <span class="text-slate-500 italic">No owner</span>
|
|
|
|
|
|
|
+ class="rounded border-slate-300 dark:border-slate-600">
|
|
|
|
|
+ <span class="text-slate-500 italic dark:text-slate-400">No owner</span>
|
|
|
</label>
|
|
</label>
|
|
|
<?php foreach ($ownerChoices as $ow): ?>
|
|
<?php foreach ($ownerChoices as $ow): ?>
|
|
|
- <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50">
|
|
|
|
|
|
|
+ <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50 dark:hover:bg-slate-700">
|
|
|
<input type="checkbox" data-owner-filter-opt value="<?= (int) $ow->id ?>"
|
|
<input type="checkbox" data-owner-filter-opt value="<?= (int) $ow->id ?>"
|
|
|
- class="rounded border-slate-300">
|
|
|
|
|
|
|
+ class="rounded border-slate-300 dark:border-slate-600">
|
|
|
<span><?= e($ow->name) ?></span>
|
|
<span><?= e($ow->name) ?></span>
|
|
|
</label>
|
|
</label>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
@@ -275,9 +275,9 @@ if (!function_exists('fmt_days')) {
|
|
|
assignment is 0 and collapses worker columns that are
|
|
assignment is 0 and collapses worker columns that are
|
|
|
all-zero for the remaining rows. -->
|
|
all-zero for the remaining rows. -->
|
|
|
<div class="flex items-center gap-1" data-focus-filter-root>
|
|
<div class="flex items-center gap-1" data-focus-filter-root>
|
|
|
- <label for="data-focus-select" class="text-xs uppercase tracking-wider text-slate-500">Focus</label>
|
|
|
|
|
|
|
+ <label for="data-focus-select" class="text-xs uppercase tracking-wider text-slate-500 dark:text-slate-400">Focus</label>
|
|
|
<select id="data-focus-select" data-focus-select
|
|
<select id="data-focus-select" data-focus-select
|
|
|
- class="rounded border border-slate-300 px-2 py-1 text-sm bg-white focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="rounded border border-slate-300 px-2 py-1 text-sm bg-white focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<option value="">All workers</option>
|
|
<option value="">All workers</option>
|
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
|
<option value="<?= (int) $sw->id ?>"><?= e($sw->workerName) ?></option>
|
|
<option value="<?= (int) $sw->id ?>"><?= e($sw->workerName) ?></option>
|
|
@@ -288,28 +288,28 @@ if (!function_exists('fmt_days')) {
|
|
|
<!-- Column visibility -->
|
|
<!-- Column visibility -->
|
|
|
<div class="relative" data-columns-root>
|
|
<div class="relative" data-columns-root>
|
|
|
<button type="button" data-columns-trigger
|
|
<button type="button" data-columns-trigger
|
|
|
- class="rounded border border-slate-300 px-2 py-1 text-sm bg-white hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="rounded border border-slate-300 px-2 py-1 text-sm bg-white hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-200 dark:hover:bg-slate-700">
|
|
|
Columns
|
|
Columns
|
|
|
</button>
|
|
</button>
|
|
|
<div data-columns-dropdown
|
|
<div data-columns-dropdown
|
|
|
- class="hidden absolute right-0 z-20 mt-1 w-56 rounded-md border border-slate-200 bg-white shadow-lg">
|
|
|
|
|
- <div class="px-3 py-2 text-xs text-slate-500">Show columns</div>
|
|
|
|
|
|
|
+ class="hidden absolute right-0 z-20 mt-1 w-56 rounded-md border border-slate-200 bg-white shadow-lg dark:bg-slate-800 dark:border-slate-700">
|
|
|
|
|
+ <div class="px-3 py-2 text-xs text-slate-500 dark:text-slate-400">Show columns</div>
|
|
|
<div class="max-h-64 overflow-y-auto">
|
|
<div class="max-h-64 overflow-y-auto">
|
|
|
- <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50">
|
|
|
|
|
- <input type="checkbox" data-column-opt value="owner" checked class="rounded border-slate-300">
|
|
|
|
|
|
|
+ <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50 dark:hover:bg-slate-700">
|
|
|
|
|
+ <input type="checkbox" data-column-opt value="owner" checked class="rounded border-slate-300 dark:border-slate-600">
|
|
|
<span>Owner</span>
|
|
<span>Owner</span>
|
|
|
</label>
|
|
</label>
|
|
|
- <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50">
|
|
|
|
|
- <input type="checkbox" data-column-opt value="prio" checked class="rounded border-slate-300">
|
|
|
|
|
|
|
+ <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50 dark:hover:bg-slate-700">
|
|
|
|
|
+ <input type="checkbox" data-column-opt value="prio" checked class="rounded border-slate-300 dark:border-slate-600">
|
|
|
<span>Prio</span>
|
|
<span>Prio</span>
|
|
|
</label>
|
|
</label>
|
|
|
- <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50">
|
|
|
|
|
- <input type="checkbox" data-column-opt value="tot" checked class="rounded border-slate-300">
|
|
|
|
|
|
|
+ <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50 dark:hover:bg-slate-700">
|
|
|
|
|
+ <input type="checkbox" data-column-opt value="tot" checked class="rounded border-slate-300 dark:border-slate-600">
|
|
|
<span>Tot</span>
|
|
<span>Tot</span>
|
|
|
</label>
|
|
</label>
|
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
<?php foreach ($sprintWorkers as $sw): ?>
|
|
|
- <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50">
|
|
|
|
|
- <input type="checkbox" data-column-opt value="sw-<?= (int) $sw->id ?>" checked class="rounded border-slate-300">
|
|
|
|
|
|
|
+ <label class="flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-slate-50 dark:hover:bg-slate-700">
|
|
|
|
|
+ <input type="checkbox" data-column-opt value="sw-<?= (int) $sw->id ?>" checked class="rounded border-slate-300 dark:border-slate-600">
|
|
|
<span><?= e($sw->workerName) ?></span>
|
|
<span><?= e($sw->workerName) ?></span>
|
|
|
</label>
|
|
</label>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
@@ -319,7 +319,7 @@ if (!function_exists('fmt_days')) {
|
|
|
|
|
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
<button type="button" data-add-task
|
|
<button type="button" data-add-task
|
|
|
- class="rounded bg-slate-900 text-white px-3 py-1 text-sm font-medium hover:bg-slate-800">
|
|
|
|
|
|
|
+ class="rounded bg-slate-900 text-white px-3 py-1 text-sm font-medium hover:bg-slate-800 dark:bg-slate-700 dark:hover:bg-slate-600">
|
|
|
+ Add task
|
|
+ Add task
|
|
|
</button>
|
|
</button>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
@@ -328,7 +328,7 @@ if (!function_exists('fmt_days')) {
|
|
|
|
|
|
|
|
<div class="overflow-x-auto">
|
|
<div class="overflow-x-auto">
|
|
|
<table class="min-w-full text-sm" data-task-table>
|
|
<table class="min-w-full text-sm" data-task-table>
|
|
|
- <thead class="bg-slate-50 text-slate-600 text-xs uppercase tracking-wider">
|
|
|
|
|
|
|
+ <thead class="bg-slate-50 text-slate-600 text-xs uppercase tracking-wider dark:bg-slate-700 dark:text-slate-300">
|
|
|
<tr>
|
|
<tr>
|
|
|
<th class="w-6 px-2 py-2"></th>
|
|
<th class="w-6 px-2 py-2"></th>
|
|
|
<th class="text-left px-2 py-2 font-semibold cursor-pointer select-none"
|
|
<th class="text-left px-2 py-2 font-semibold cursor-pointer select-none"
|
|
@@ -349,10 +349,10 @@ if (!function_exists('fmt_days')) {
|
|
|
<th class="w-8 px-2 py-2"></th>
|
|
<th class="w-8 px-2 py-2"></th>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
- <tbody class="divide-y divide-slate-100" data-task-tbody>
|
|
|
|
|
|
|
+ <tbody class="divide-y divide-slate-100 dark:divide-slate-700" data-task-tbody>
|
|
|
<?php if ($tasks === []): ?>
|
|
<?php if ($tasks === []): ?>
|
|
|
<tr data-empty-tasks>
|
|
<tr data-empty-tasks>
|
|
|
- <td colspan="<?= 6 + count($sprintWorkers) ?>" class="px-3 py-8 text-center text-slate-500 text-sm">
|
|
|
|
|
|
|
+ <td colspan="<?= 6 + count($sprintWorkers) ?>" class="px-3 py-8 text-center text-slate-500 text-sm dark:text-slate-400">
|
|
|
No tasks yet.
|
|
No tasks yet.
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
Click <b>+ Add task</b> to start.
|
|
Click <b>+ Add task</b> to start.
|
|
@@ -369,14 +369,14 @@ if (!function_exists('fmt_days')) {
|
|
|
data-sort-order="<?= (int) $t->sortOrder ?>">
|
|
data-sort-order="<?= (int) $t->sortOrder ?>">
|
|
|
<td class="px-2 py-1">
|
|
<td class="px-2 py-1">
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
- <span class="handle cursor-grab text-slate-400 select-none">≡</span>
|
|
|
|
|
|
|
+ <span class="handle cursor-grab text-slate-400 select-none dark:text-slate-500">≡</span>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
</td>
|
|
</td>
|
|
|
<td class="px-2 py-1 min-w-[14rem]">
|
|
<td class="px-2 py-1 min-w-[14rem]">
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
<input type="text" data-title
|
|
<input type="text" data-title
|
|
|
value="<?= e($t->title) ?>"
|
|
value="<?= e($t->title) ?>"
|
|
|
- class="w-full rounded border border-slate-200 px-2 py-1 focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="w-full rounded border border-slate-200 px-2 py-1 focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
|
<span><?= e($t->title) ?></span>
|
|
<span><?= e($t->title) ?></span>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
@@ -384,7 +384,7 @@ if (!function_exists('fmt_days')) {
|
|
|
<td class="px-2 py-1" data-col="owner">
|
|
<td class="px-2 py-1" data-col="owner">
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
<select data-owner-select
|
|
<select data-owner-select
|
|
|
- class="w-full rounded border border-slate-200 px-2 py-1 bg-white focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="w-full rounded border border-slate-200 px-2 py-1 bg-white focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<option value="">—</option>
|
|
<option value="">—</option>
|
|
|
<?php foreach ($ownerChoices as $ow): ?>
|
|
<?php foreach ($ownerChoices as $ow): ?>
|
|
|
<option value="<?= (int) $ow->id ?>" <?= $t->ownerWorkerId === $ow->id ? 'selected' : '' ?>>
|
|
<option value="<?= (int) $ow->id ?>" <?= $t->ownerWorkerId === $ow->id ? 'selected' : '' ?>>
|
|
@@ -405,7 +405,7 @@ if (!function_exists('fmt_days')) {
|
|
|
<td class="px-2 py-1 text-center" data-col="prio">
|
|
<td class="px-2 py-1 text-center" data-col="prio">
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
<select data-prio-select
|
|
<select data-prio-select
|
|
|
- class="rounded border border-slate-200 px-2 py-1 bg-white font-mono focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="rounded border border-slate-200 px-2 py-1 bg-white font-mono focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<option value="1" <?= $t->priority === 1 ? 'selected' : '' ?>>1</option>
|
|
<option value="1" <?= $t->priority === 1 ? 'selected' : '' ?>>1</option>
|
|
|
<option value="2" <?= $t->priority === 2 ? 'selected' : '' ?>>2</option>
|
|
<option value="2" <?= $t->priority === 2 ? 'selected' : '' ?>>2</option>
|
|
|
</select>
|
|
</select>
|
|
@@ -426,7 +426,7 @@ if (!function_exists('fmt_days')) {
|
|
|
value="<?= e(fmt_days($d)) ?>"
|
|
value="<?= e(fmt_days($d)) ?>"
|
|
|
data-assign
|
|
data-assign
|
|
|
data-sw-id="<?= (int) $sw->id ?>"
|
|
data-sw-id="<?= (int) $sw->id ?>"
|
|
|
- class="w-14 rounded border border-slate-200 px-1 py-1 text-center font-mono focus:outline-none focus:ring-2 focus:ring-slate-400">
|
|
|
|
|
|
|
+ class="w-14 rounded border border-slate-200 px-1 py-1 text-center font-mono focus:outline-none focus:ring-2 focus:ring-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:focus:ring-slate-500">
|
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
|
<span class="font-mono"><?= e(fmt_days($d)) ?></span>
|
|
<span class="font-mono"><?= e(fmt_days($d)) ?></span>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
@@ -435,7 +435,7 @@ if (!function_exists('fmt_days')) {
|
|
|
<td class="px-1 py-1 text-right">
|
|
<td class="px-1 py-1 text-right">
|
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
<?php if ($currentUser->isAdmin): ?>
|
|
|
<button type="button" data-delete-task
|
|
<button type="button" data-delete-task
|
|
|
- class="text-sm text-red-600 hover:underline">×</button>
|
|
|
|
|
|
|
+ class="text-sm text-red-600 hover:underline dark:text-red-400">×</button>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
@@ -444,7 +444,7 @@ if (!function_exists('fmt_days')) {
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
|
- <div data-task-empty-filter class="hidden p-4 text-center text-slate-500 text-sm">
|
|
|
|
|
|
|
+ <div data-task-empty-filter class="hidden p-4 text-center text-slate-500 text-sm dark:text-slate-400">
|
|
|
No tasks match the current filters.
|
|
No tasks match the current filters.
|
|
|
</div>
|
|
</div>
|
|
|
</section>
|
|
</section>
|