mirror of
https://github.com/unraid/api.git
synced 2026-01-19 23:19:39 -06:00
## Summary - install the pinia-plugin-persistedstate integration directly inside the theme store and hydrate cached themes before applying CSS variables - fall back to the active/global Pinia instance while ensuring persisted state is only wired once per store instance - update the theme store tests to reset the shared Pinia state between runs and rely on the plugin-backed persistence ## Testing - pnpm --filter web test __test__/store/theme.test.ts ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_69156c5e8de48323841f7dbfdadec51d) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Theme preferences now persist across sessions and are restored on return. * **Behavior Change** * Theme switching may now update the URL/address bar to reflect the selected theme. * **Chores** * Added a persistence integration to enable storing/restoring theme data. * **Tests** * Updated/added tests covering hydration from storage and persistence of server-provided themes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->