When the BBS Onboarding UI is first loaded, we fetch the initial 25 projects, which we use to visually group repositories. Because we do not have pagination (yet), we only load the 25 first projects.
When a user starts searching for a repository, we try to group search results visually by project. And if a repository is not part of any project, we display it in a "virtual" project, called "Search results".
There's an issue with the condition in src/main/js/apps/create/project/BitbucketSearchResults.tsx:62. It implies repositories in "Search results" can only appear if none of the repositories are part of any loaded projects. This is incorrect. We can very well have results that are both linked to projects we know of, and results that are not.
We have 2 solutions:
- Simplest: display all search results in "Search results", and do not display project groupings
- Keep the grouping per project, and make sure that any search results that remain are put in "Search results"