This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
fix(pickers): isolate the clicked project from sticky-all in one click - #79
Merged
Merged
Conversation
Clicking a project while every project is selected toggled it OFF (all-minus-X), so isolating one project took 3 clicks via the collapse-to-first workaround. Both pickers now replace the selection with just the clicked project; subsequent toggles build custom subsets as before. Last-selection-stays and the empty-selection guard are unchanged; multi-host groups keep their active source on isolation. Closes #75
Review follow-ups: allSelected now ignores stale selection ids (size comparison could false-positive), single-item no-op guards are locked by tests, and the last-selected test reuses the shared harness.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problème
Dans le project picker du feature-board (et dans
RepoMultiCombobox), cliquer un projet alors que tous sont sélectionnés le désélectionnait (sélection = tout-sauf-X). Isoler un projet prenait donc 3 clics : « All projects » (repli sur le 1er groupe), cocher le projet voulu, décocher le premier.Solution proposée
TaskProjectSourceCombobox.toggleProject: quand tous les groupes sont sélectionnés (>1), un clic remplace la sélection par le seul projet cliqué — en conservant sa source active (multi-hôtes).RepoMultiCombobox.toggle: même isolation symétrique.Tests
task-project-source-combobox.test.tsx,repo-multi-combobox.test.tsxrenommé depuis.ts) : isolation depuis sticky-all, last-selection-stays, construction de subsets, isolation multi-hôtes vers la source active.{alpha, gamma}au lieu de{beta}), vert après.pnpm tcexit 0 ✅Closes #75