diff --git a/Docs/Tasks.md b/Docs/Tasks.md index 4aa6019..315bcf0 100644 --- a/Docs/Tasks.md +++ b/Docs/Tasks.md @@ -375,7 +375,11 @@ const source = timeRange === "24h" ? "fail2ban" : "archive"; --- -### TASK-019 — Replace index keys with stable keys in editable lists +### TASK-019 — Replace index keys with stable keys in editable lists (done) + +**Where fixed:** `frontend/src/components/config/StringListEditor.tsx`, `frontend/src/components/config/RegexList.tsx`, `frontend/src/components/config/JailsTab.tsx`, `frontend/src/components/config/stableListEntries.ts` + +**Summary:** Added stable internal IDs for editable string lists, replaced index-based React keys with stable entry IDs, and updated the jail log path list to use the path value as its key. **Where found:** 19 instances identified, including: - `frontend/src/components/config/StringListEditor.tsx` line 34 — `key={index}` on editable `Input` rows. diff --git a/frontend/src/components/config/JailsTab.tsx b/frontend/src/components/config/JailsTab.tsx index 61708b0..289209e 100644 --- a/frontend/src/components/config/JailsTab.tsx +++ b/frontend/src/components/config/JailsTab.tsx @@ -381,7 +381,7 @@ function JailConfigDetail({ ) : ( logPaths.map((p, i) => ( -