simplify the html handling. they should not be managed twice, once under /css, /tmpl and…
Jump to turn (7)
- 1simplify the html handling. they should not be managed twice, once under /css, /
- 2remove the go:embedd of css and tmpl. serve from local files
- 3update AGENTS.md
- 4the health check switches in healthz.html are not working
- 5the toggle is working. the UI is just not updated with the toggle state and the
- 6the state of the switch (on/off) is not represented correctly
- 7use a standard css toggle from tailwindcss. do not create own switch.css file.
- User
simplify the html handling. they should not be managed twice, once under /css, /tmpl and duplicate under /pkg/assets/css,tmpl. this is unacceptable.
Assistant· nvidia/nemotron-3-ultra-550b-a55b
Now I understand the issue. There's duplication between:
/css/and/pkg/assets/css/(switch.css, tailwindcss.js)/tmpl/and/pkg/assets/tmpl/(all HTML templates, favicon.ico, favicon.png, menu.html)
The Go embed directives in
pkg/assets/assets.goare pointing to the duplicate copies inpkg/assets/. The fix is to:- Remove the duplicate directories
/pkg/assets/cssand/pkg/assets/tmpl - Update the Go embed directives to point directly to the source directories
/css/*and/tmpl/*
Let me implement this fix:
- Assistant