| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Adds a theme.theme_mode setting (automatic, light, or dark) that is managed from an Appearance section on the Manage Theme dashboard page. In automatic mode, visitors get a light/system/dark toggle in the status page header, persisted in localStorage and defaulting to their system preference. Forcing light or dark locks the status page to that scheme and hides the toggle. Dark mode now uses a class strategy (.dark/.light on the html element) with a prefers-color-scheme fallback so system dark mode still works without JavaScript. Metric charts re-style through a theme-changed event when the applied theme changes. Closes cachethq#68 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018CWXnTksjtcUCDPwyoWeDe
Adds pestphp/pest-plugin-browser and a browser test suite exercising the theme toggle end-to-end: system preference resolution, picking and persisting a theme, returning to the system theme, invalid stored preferences, and forced light/dark modes hiding the toggle. CI test jobs now install the Playwright browser needed to run them. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018CWXnTksjtcUCDPwyoWeDe
The metrics chart script moved out of the Blade template into its own asset, so the theme mode changes need to live there. Charts now resolve dark mode from the html class (falling back to the system preference) and repaint when the theme-changed event fires.
|
Screenshots of the status page in automatic mode, following the OS preference. Forced light/dark additionally hides the header toggle. Light: Dark: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #68.
This picks up the work from claude/status-page-theme-options-27npnb, rebases it onto main, and adapts the metrics theme handling to the extracted resources/js/metrics.js. The first two commits keep their original authorship from that branch.
Changes
Verification