Skip to content

feat(profiles): add profile management features#112

Draft
BookCatKid wants to merge 6 commits into
mainfrom
profiles
Draft

feat(profiles): add profile management features#112
BookCatKid wants to merge 6 commits into
mainfrom
profiles

Conversation

@BookCatKid

@BookCatKid BookCatKid commented Feb 15, 2026

Copy link
Copy Markdown
Owner

Summary by Sourcery

Introduce user-configurable profiles and scope plugin cache and state management to active profiles.

New Features:

  • Add profile management state to the database, including a profiles map and active profile identifier.
  • Expose profile CRUD and duplication actions for creating, switching, renaming, deleting, and duplicating profiles.
  • Add a Profiles settings section UI to list, activate, create, rename, duplicate, and delete profiles.

Bug Fixes:

  • Remove stale widget cache when widgets are deleted, including both profile-scoped and legacy cache keys.

Enhancements:

  • Scope widget/plugin cache entries to the active profile to prevent data leakage between profiles.
  • Persist and restore full application settings when switching profiles, while keeping default settings as a base.
  • Extend migration logic to convert legacy unscoped cache keys and cache data to profile-scoped keys and clean up dangling entries.

- Add cache cleanup for profile-scoped entries when removing widgets
- Add cache cleanup for profile-scoped entries when deleting profiles
- Add migration to convert unscoped cache keys to profile-scoped keys
- Update cache key handling in useApi hook to scope entries per profile
- Update cache cleanup logic to respect profile scoping during dangling data removal
@BookCatKid BookCatKid linked an issue Feb 15, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Switchable Settings Profile

1 participant