feat(t-paliad-073): audit polish-2 DEFER list cleanup
Six findings from docs/audit-polish-2-2026-04-29.md DEFER list:
- F-23: hide STATUS column on /deadlines + /projects when every visible
row shares the same status. Toggled at render time via a CSS class on
the table; the column re-appears the moment filters re-introduce
variety.
- F-32: agenda urgency pill now renders only when it disagrees with
the day-bucket heading (e.g. an Überfällig deadline that lands in
HEUTE through a filter quirk). Common case drops the redundant tag.
- F-38: bottom-nav agenda badge already counted overdue+today (the
brief's option (b)); added a localized title + aria-label so the
count's semantics ("X überfällig + Y heute fällig") is no longer
ambiguous.
- F-40: glossary filter chips no longer mix EN+DE — DE shows
"Streitsachen / Erteilungsverfahren / Allgemein", EN keeps
"Litigation / Prosecution / General". Same i18n keys cover the
Suggest-modal category dropdown.
- F-48: /projects/{id}/sub-projects now 301-redirects to the canonical
/children URL via the existing redirects.go mechanism. Added a small
redirects_test.go to lock the alias in.
- F-49: dropped the meta-circular 2026-04-22 "Neuigkeiten / What's New"
changelog entry that referenced "this changelog" itself.
go build/vet/test clean, bun run build clean.
F-25 (mobile tables → card layout) is redesign-class and is scoped at
the bottom of the PR description as t-paliad-074, not implemented here.
This commit is contained in:
@@ -148,12 +148,19 @@ function render() {
|
||||
<td><span class="akten-type-chip akten-type-${esc(p.type)}">${esc(typeLabel)}</span></td>
|
||||
<td class="akten-col-ref">${refCell}</td>
|
||||
<td class="akten-col-ref">${clientMatterCell}</td>
|
||||
<td><span class="akten-status-chip akten-status-${esc(p.status)}">${esc(statusLabel)}</span></td>
|
||||
<td class="akten-col-status"><span class="akten-status-chip akten-status-${esc(p.status)}">${esc(statusLabel)}</span></td>
|
||||
<td class="akten-col-updated">${fmtDate(p.updated_at)}</td>
|
||||
</tr>`;
|
||||
})
|
||||
.join("");
|
||||
|
||||
// F-23: when every visible row shares the same status, hide the column to
|
||||
// cut redundant noise. The toggle re-runs on every filter change, so the
|
||||
// column comes back as soon as the rows mix again.
|
||||
const statusUnique = new Set(filtered.map((p) => p.status)).size;
|
||||
const table = document.getElementById("akten-table");
|
||||
table?.classList.toggle("akten-table--hide-status", statusUnique <= 1);
|
||||
|
||||
tbody.querySelectorAll<HTMLTableRowElement>(".akten-row").forEach((row) => {
|
||||
row.addEventListener("click", () => {
|
||||
const id = row.dataset.id!;
|
||||
|
||||
Reference in New Issue
Block a user