From df5e7d93963f0256285b13ddf750761930797e78 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 22:53:24 +0000 Subject: Fix star/read buttons: _id string vs number type mismatch The Go API returns _id as a JSON string (due to the `json:",string"` tag on Item.Id), but the frontend compared it with === against numbers from parseInt(). String "5" === number 5 is always false in JS, so toggleStar, mark-as-read, and keyboard shortcuts silently did nothing. Fix: - Coerce _id to Number() when items are loaded from the API - Use Number() coercion in all store.items.find() comparisons as defense - Revert the CSS touch-target changes (the issue was never about size) - Add a regression test with string _id to prevent reintroduction https://claude.ai/code/session_012CNdRhGhU3hxjrwvZt2BHZ --- web/dist/v3/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/dist/v3/index.html') diff --git a/web/dist/v3/index.html b/web/dist/v3/index.html index 2e03362..88a2e07 100644 --- a/web/dist/v3/index.html +++ b/web/dist/v3/index.html @@ -5,8 +5,8 @@ neko - - + +
-- cgit v1.2.3