Skip to content

Key favorites by z/OSMF profile#64

Merged
Tannex merged 1 commit into
mainfrom
favorites-per-profile
Jul 20, 2026
Merged

Key favorites by z/OSMF profile#64
Tannex merged 1 commit into
mainfrom
favorites-per-profile

Conversation

@Tannex

@Tannex Tannex commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Favorites were a single global namespace: a DSN favorited on prod starred (uselessly) on sandbox, and jumping to it fetched a listing that likely doesn't exist there.

  • Favorite gains profile (JSON omitempty); every store operation (Favorites/Matches/Toggle/Add/Rename/SetNote/Remove/Touch/Has) takes the profile and operates on that profile's view.
  • The same pattern coexists independently per profile (separate notes, timestamps); duplicates are rejected only within one view.
  • Migration semantics: the empty profile is the shared view — it's what single-profile sessions write (unchanged behavior for them) and what pre-existing favorites.json entries carry, so nothing disappears on upgrade. Shared entries are visible from every profile; removing one removes it everywhere (documented on Remove/Toggle).
  • compaz threads activeProfile() through all ten call sites; the popup, row markers, toggle, and open/jump actions all follow the active profile automatically on tab switch.

Tests: store keying/isolation, same-pattern coexistence with per-profile notes, shared-legacy visibility, reload round-trip, plus a compaz-level test that a favorite toggled under one profile neither stars rows nor appears in the popup after switching profiles.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CS2LZMn2YJdebAiry2jzdP

Favorites were one global namespace, so a DSN favorited on one system
showed up on every other profile's listing. Each favorite now carries
the profile it was saved under, every store operation scopes to the
active profile's view, and the same pattern can exist independently
per profile. The empty profile is the shared view: it is what
single-profile sessions write and what favorites saved before keying
existed carry, so nothing vanishes on upgrade — legacy entries stay
visible (and removable) from every profile.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CS2LZMn2YJdebAiry2jzdP
@Tannex
Tannex merged commit c99fd8a into main Jul 20, 2026
4 checks passed
@Tannex
Tannex deleted the favorites-per-profile branch July 20, 2026 06:54
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.

1 participant