openreader/src
Richard Roberson 7271afa2f5 refactor(config): centralize app config in Dexie
Migrates scattered configuration items and last document locations
from the legacy `config` table to new, dedicated Dexie stores.

- Introduces a singleton `app-config` table (`AppConfigRow`) to standardize
  and structure all application settings in a single object.
- Creates a `last-locations` table for efficient storage of document read positions.
- Updates `ConfigContext` to utilize `dexie-react-hooks`' `useLiveQuery`
  for reactive and simplified state management.
- Implements a database upgrade path (from DB_VERSION 4 to 5) to migrate
  all existing user settings seamlessly.
- Simplifies config access and updates with new `getAppConfig` and `updateAppConfig`
  utility functions.
- Removes the deprecated `config` table after successful migration.
- Updates consumers like `SettingsModal` and test helpers to align with
  the new config structure.
2025-11-15 17:29:56 -07:00
..
app refactor(db): migrate to Dexie with reactive queries and simplify data layer 2025-11-14 16:14:00 -07:00
components refactor(config): centralize app config in Dexie 2025-11-15 17:29:56 -07:00
contexts refactor(config): centralize app config in Dexie 2025-11-15 17:29:56 -07:00
hooks refactor(db): migrate to Dexie with reactive queries and simplify data layer 2025-11-14 16:14:00 -07:00
types refactor(config): centralize app config in Dexie 2025-11-15 17:29:56 -07:00
utils refactor(config): centralize app config in Dexie 2025-11-15 17:29:56 -07:00