fix(ui): persist light/dark mode preference across page reloads #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_theme_persistence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
data-bs-theme="dark"from the<html>tag<head>that readslocalStorage.getItem('heroSlidesTheme')and setsdata-bs-themebefore any CSS is parsed, preventing a flash of the wrong themelocalStorage.setItemin the existing toggle click handler to persist the selectionRelated Issue
Closes #17
Changes
crates/hero_slides_ui/templates/base.html— removed hard-coded theme attribute; added blocking localStorage init script in<head>crates/hero_slides_ui/static/js/dashboard.js— persist theme on toggle; sync icon on loadTest Results
75 tests run, 74 passed, 0 failed (1 ignored — requires live AI service)