Repository navigation
Fix D17 miss: empty projects surface in the project dropdown - #96
Merged
Merged
Conversation
Brett's live find: create-project correctly refused the duplicate id 'xfactory', yet the dropdown never listed that project — the register carried it as a legal EMPTY project (D17) while buildProjects still required at least one member, a leftover of the pre-D17 shape. An invisible register project is unreachable: it can never be selected, so its members can never be added. buildProjects now keeps every well-formed-id row and normalizes absent or empty member lists to []; the filter popover and add line already handled zero members. Malformed-row pin updated, D17 regression test added. 2761 passed, exit 0. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR fixes a D17 regression in the ideation dashboard’s repo selector model where projects with zero repositories (legal “empty projects”) were filtered out and therefore never appeared in the project dropdown, making them impossible to select and populate.
Changes:
- Update
buildProjectsto keep any project row with a well-formedidand normalize missing/invalidrepositoriesto an empty array. - Update the malformed-row degradation test expectations to treat “id but no members” as a valid empty project.
- Add a regression test ensuring an empty project appears in the dropdown and scopes to an empty roster.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/ideation-dashboard/test_repo_selector.py | Updates malformed-row expectations and adds a D17 regression test covering empty-project visibility and scoping behavior. |
| scripts/ideation_dashboard/web/views/repo-selector-model.js | Adjusts buildProjects filtering/normalization so empty projects are included and repositories is always an array. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Oct 7, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Brett hit this live:
create-projectcorrectly refused duplicate idxfactory— the register carries it as a legal empty project (his 19:35 create commission, fulfilled) — but the dropdown never listed it.buildProjectsstill required at least one member (pre-D17 leftover), so an empty register project was invisible and therefore unreachable: it could never be selected, and its members could never be added via the filter's add line.buildProjectskeeps every row with a well-formed id and normalizes absent/empty member lists to[].projectFilterRows/addableRepositoriesalready handled zero members (all-repos line disabled, add line offers the whole known universe) — no other change needed.🤖 Generated with Claude Code