Memoize dashboard and history table columns

This commit is contained in:
2026-04-20 19:28:29 +02:00
parent e593498de5
commit 20412dd94b
3 changed files with 16 additions and 12 deletions

View File

@@ -128,7 +128,7 @@ Issues are grouped by category and ordered roughly by severity. Each entry descr
---
### TASK-007 — Setup page password validation too weak
### TASK-007 — Setup page password validation too weak (done)
**Where found:** `frontend/src/pages/SetupPage.tsx`, `validate()` function. Only `masterPassword.length < 8` is checked.
@@ -148,7 +148,9 @@ Issues are grouped by category and ordered roughly by severity. Each entry descr
---
### TASK-008 — `buildBanColumns` and `HISTORY_COLUMNS` recreated on every render
### TASK-008 — `buildBanColumns` and `HISTORY_COLUMNS` recreated on every render (done)
**Where fixed:** `frontend/src/components/BanTable.tsx`, `frontend/src/pages/HistoryPage.tsx`
**Where found:**
- `frontend/src/components/BanTable.tsx``buildBanColumns(styles)` called unconditionally in the render body.