Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

fix(pickers): isolate the clicked project from sticky-all in one click - #79

Merged
64ix merged 3 commits into
mainfrom
fix/picker-click-isolates-when-all-selected-75
Aug 26, 2026
Merged

64ix merged 3 commits into
mainfrom
fix/picker-click-isolates-when-all-selected-75

Conversation

@64ix

@64ix 64ix commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​250 $\color{#cf222e}{\Huge{\mathbf{−}}}$​28 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​222
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​18 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14

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.
  • Invariants inchangés : règle last-selection-stays, sélection vide inatteignable, subsets personnalisables via toggles suivants, « All projects » restaure tout.

Tests

  • Nouveaux tests composants (task-project-source-combobox.test.tsx, repo-multi-combobox.test.tsx renommé depuis .ts) : isolation depuis sticky-all, last-selection-stays, construction de subsets, isolation multi-hôtes vers la source active.
  • Rouge avant fix (symptôme exact : {alpha, gamma} au lieu de {beta}), vert après.
  • Validation locale : vitest ciblé 9/9 ✅ · oxlint 0 erreur ✅ · pnpm tc exit 0 ✅

Closes #75

64ix added 3 commits August 26, 2026 09:19
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.
@64ix
64ix merged commit 94294f1 into main Aug 26, 2026
47 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature-board project picker: clicking a project while "All projects" is active should isolate it

1 participant