Skip to content

feat: multi-select saved search-config sessions (union) with per-session deselect - #96

Merged
ozgesolidkey merged 2 commits into
mainfrom
feat/search-session-toggle
Aug 13, 2026
Merged

ozgesolidkey merged 2 commits into
mainfrom
feat/search-session-toggle

Conversation

@ozgesolidkey

@ozgesolidkey ozgesolidkey commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Why

Saved search-config sessions could only be applied one at a time (applying one replaced everything) and couldn't be un-applied. Requested: select multiple sessions at once and deselect them individually.

What

  • Sessions are now multi-select. Selecting a session appends its search configs to the working set (union) instead of replacing — several sessions can be active simultaneously.
  • Clicking an active chip deselects just that session: removes only the configs it contributed, leaving other active sessions' (and any manual) configs untouched. Active chip shows a ✕ badge + "click to deselect".
  • Model: activeSessionId (single) → activeSessionIds Set + sessionConfigIds map (session → the config ids it added) for precise per-session removal.
  • Saving current configs as a session marks it active and attributes the live configs to it (deselectable like the rest).
  • Deleting an active session pulls its configs out of the working set.
  • loadSearchConfigs() resets the selection tracking (scoped to a file's working set; configs reload per-file).

Verify

tsc 0 · 663 tests green · bundle built. GUI: select two sessions → both chips active, both pattern sets applied; deselect one → only its configs/results drop, the other stays.

🤖 Generated with Claude Code

ozgesolidkey and others added 2 commits August 13, 2026 11:56
Clicking a session chip now toggles it. Clicking the active session
again deselects it: its loaded search configs are removed and the
results overview is cleared (zero enabled configs → the batch runner
already clears + repaints). Previously a chip could only be applied,
never un-applied, so there was no way to clear a session's configs
without deleting them one by one.

- toggleSearchConfigSession(): apply if not active, deselect if active.
- deselectSearchConfigSession(): drop the session's configs + results,
  activeSessionId = null, re-render, re-run batch (clears display).
- Active chip shows a ✕ badge + "click to deselect" tooltip; inactive
  chips keep the config-count badge + "click to apply" tooltip.
- CSS: active ✕ badge bolded and brightens on hover (deselect cue).

tsc 0 · 663 tests green · bundle built.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…on deselect

Extends the session toggle: sessions are no longer mutually exclusive.
Selecting a session now APPENDS its search configs to the working set
instead of replacing everything, so several sessions can be active at
once (their patterns union). Clicking an active chip deselects just
that session — removing only the configs it contributed, leaving the
other sessions' (and any manual) configs untouched.

- activeSessionId (single) → activeSessionIds Set + sessionConfigIds
  Map (sessionId → the config ids it added) for precise deselect.
- selectSearchConfigSession() appends; deselectSearchConfigSession(id)
  removes that session's configs; toggle picks by membership.
- Saving current configs as a session marks it active + attributes the
  live configs to it (deselectable like the rest).
- Deleting an active session pulls its configs out of the working set.
- loadSearchConfigs() resets the selection tracking (it's scoped to a
  file's working set; configs reload per-file).

tsc 0 · 663 tests green · bundle built.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ozgesolidkey ozgesolidkey changed the title feat: saved search-config session chips toggle (select ↔ deselect) feat: multi-select saved search-config sessions (union) with per-session deselect Aug 13, 2026
@ozgesolidkey
ozgesolidkey merged commit da19c82 into main Aug 13, 2026
3 checks passed
@ozgesolidkey
ozgesolidkey deleted the feat/search-session-toggle branch August 13, 2026 10:17
ozgesolidkey added a commit that referenced this pull request Aug 19, 2026
feat: multi-select saved search-config sessions (union) with per-session deselect
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