Skip to content

Fix D17 miss: empty projects surface in the project dropdown - #96

Merged
brettheap merged 1 commit into
mainfrom
change/d17-empty-project-picker
Aug 7, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/d17-empty-project-picker

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Brett hit this live: create-project correctly refused duplicate id xfactory — the register carries it as a legal empty project (his 19:35 create commission, fulfilled) — but the dropdown never listed it. buildProjects still 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.

  • buildProjects keeps every row with a well-formed id and normalizes absent/empty member lists to [].
  • projectFilterRows / addableRepositories already handled zero members (all-repos line disabled, add line offers the whole known universe) — no other change needed.
  • Malformed-row pin updated (a member-less row is now a kept empty project, not a drop); D17 regression test added.
  • Full dashboard suites: 2761 passed, 19 skipped, exit 0 (run to file, exit code checked).

🤖 Generated with Claude Code

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]>
Copilot AI review requested due to automatic review settings August 7, 2026 00:35

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap
brettheap merged commit 4756e26 into main Aug 7, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 buildProjects to keep any project row with a well-formed id and normalize missing/invalid repositories to 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.

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.

2 participants