refactor: simplify toggle handlers to return 204 No Content

Remove empty toggle templates (length-toggle.html, theme-toggle.html,
logo-toggle.html) that were just placeholders. The frontend uses
hx-swap="none" so the response body was always ignored anyway.

Now the handlers:
- Set the preference cookie
- Return 204 No Content immediately
- Hyperscript handles the UI state toggle on the frontend

This removes unnecessary template rendering overhead and cleans up
dead code. Tests updated to expect 204 instead of 200.
This commit is contained in:
juanatsap
2025-12-01 14:16:24 +00:00
parent a97d6bc3fd
commit e0d445b92a
5 changed files with 18 additions and 86 deletions
-1
View File
@@ -1 +0,0 @@
<!-- Template not used - toggles use hx-swap="none" with inline hyperscript -->
-1
View File
@@ -1 +0,0 @@
<!-- Template not used - toggles use hx-swap="none" with inline hyperscript -->
-1
View File
@@ -1 +0,0 @@
<!-- Template not used - toggles use hx-swap="none" with inline hyperscript -->