Skip to content

Follow the marketplace category order in the app - #4950

Merged
SawyerHood merged 1 commit into
mainfrom
bb/marketplace-category-order-thr_9m2uiwiv73
Oct 5, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/marketplace-category-order-thr_9m2uiwiv73

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The app ordered category shelves and filters by a hardcoded list, while getbb.app used the marketplace manifest's order. The two lists match today, but they drift as soon as the manifest's order changes, and reordering in the app needed a release.

This carries #4671 forward on current main.

What changed

  • Category shelves and filters in the app follow the marketplace manifest's category order.
  • Plugin catalog search returns that order in a new categories field. The app needs it because it reads plugins from the server, not from the manifest.
    • The list is the community catalog's categories, followed by any built-in categories it lacks.
    • The field defaults to [], and the app falls back to the built-in order for anything the list lacks.
    • No daemon wire change.
  • @get-bb/plugin-sdk moves to 0.6.20 for the new field's types.
  • getbb.app describes New & notable as "Trending and recently added plugins."

Differences from #4671

  • The SDK bump is 0.6.20. 0.6.19 is already published, so the earlier bump no longer passed the npm version guard.
  • The server reads the category order from the community catalog only, then appends the built-in list. The bundled catalog's categories are that same built-in list, so walking every reserved catalog gave the same result.

Related

How you verified

  • pnpm exec turbo run build typecheck test lint passes for @bb/web, @bb/app, @bb/server, @bb/server-contract, @bb/domain and @get-bb/plugin-sdk.
  • Both SDK checks pass: the surface check, and the npm version guard (0.6.20 is not on npm yet).
  • Unit tests cover the server's category list (plugin-catalog-service.test.ts) and the app's manifest-ordered shelves (plugin-browse-discovery.test.ts).
  • End to end with a full 327-plugin manifest whose categories were reordered (Security, Command Line, Notifications first): the real catalog service ingested it, the search response passed the contract schema, the served list matched the manifest's order with the built-in-only category appended, and the app's shelf builder produced BB Official, New & notable, Security, Command Line, Notifications, and so on. This ran as a temporary test, not committed.
  • Not done: driving the Browse tab in a running app.

🤖 Generated with Claude Code

AGENT GENERATED

The app ordered category shelves and filters by a hardcoded list while
getbb.app used the marketplace manifest's order, so the two could drift.
Plugin catalog search now returns the curated catalog's categories,
followed by any built-in ones it lacks, and the app orders by that list.
The field defaults to an empty list, which keeps the built-in order. The
plugin SDK moves to 0.6.20 for the new field's types, and getbb.app
describes New & notable as trending and recently added.

Co-authored-by: brsbl <[email protected]>
Co-Authored-By: Claude Code <[email protected]>
@SawyerHood
SawyerHood marked this pull request as ready for review October 5, 2026 22:17
@SawyerHood
SawyerHood merged commit 17b1971 into main Oct 5, 2026
34 checks passed
@SawyerHood
SawyerHood deleted the bb/marketplace-category-order-thr_9m2uiwiv73 branch October 5, 2026 22:18
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.

1 participant