@@ -6,15 +6,15 @@ This document summarizes the non-profile state centralization changes and how to
66
77## Overview
88
9- - Centralized non-profile state is handled by a new service-worker module: modules/state-store.js.
9+ - Centralized non-profile state is handled by a new service-worker module: modules/service-worker-auxiliary- state-store.js.
1010- config.js remains the single messaging entry point and now delegates only non-profile handlers to StateStore.
1111- Backward compatibility is preserved via dual-read (prefer new schema, fallback to legacy) and dual-write (mirror writes to legacy keys).
1212
1313Profiles are explicitly excluded. Keys under currentProfile and profiles.* remain owned by their existing logic.
1414
1515## New Module
1616
17- 1 ) modules/state-store.js
17+ 1 ) modules/service-worker-auxiliary- state-store.js
1818- Purpose: Encapsulate non-profile state (UI and module/global settings) with a stable API and event broadcasts.
1919- Context: Imported and executed in the service worker. It exports StateStore.
2020- Responsibilities:
@@ -161,7 +161,7 @@ The Inline Profile Selector module adds a dropdown menu directly in the button r
161161### Implementation
162162- UI settings in popup: [ 'modules/popup-page-modules-inlineSelector.js'] ( modules/popup-page-modules-inlineSelector.js )
163163- DOM creation: [ 'buttons-init-and-render.js'] ( buttons-init-and-render.js ) (createInlineProfileSelector function)
164- - Storage: [ 'modules/state-store.js'] ( modules/state-store.js ) (inlineProfileSelector key)
164+ - Storage: [ 'modules/service-worker-auxiliary- state-store.js'] ( modules/service-worker-auxiliary- state-store.js ) (inlineProfileSelector key)
165165- Global config loading: [ 'init.js'] ( init.js ) (loads settings during initialization)
166166
167167### Integration Points
@@ -192,7 +192,7 @@ Recommended checks:
192192## File References
193193
194194- Service worker: [ 'config.js'] ( config.js )
195- - State: [ 'modules/state-store.js'] ( modules/state-store.js )
195+ - State: [ 'modules/service-worker-auxiliary- state-store.js'] ( modules/service-worker-auxiliary- state-store.js )
196196- Styles: [ 'common-ui-elements/common-style.css'] ( common-ui-elements/common-style.css ) , [ 'common-ui-elements/dark-theme.css'] ( common-ui-elements/dark-theme.css )
197197- HTML: [ 'popup.html'] ( popup.html ) , [ 'welcome.html'] ( welcome.html )
198198- Inline Profile Selector: [ 'modules/popup-page-modules-inlineSelector.js'] ( modules/popup-page-modules-inlineSelector.js )
0 commit comments