Skip to content

Follow the marketplace category order in the app - #4671

Closed
brsbl wants to merge 11 commits into
mainfrom
plugin-browse-manifest-category-order
Closed

brsbl wants to merge 11 commits into
mainfrom
plugin-browse-manifest-category-order

Conversation

@brsbl

@brsbl brsbl commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The app ordered category shelves by a hardcoded list, while getbb.app used the marketplace manifest's order. The two could drift, and reordering in the app needed a release.

What changed

  • Category shelves and filters in the app follow the marketplace manifest's category order.
  • Plugin catalog search now returns the marketplace's category order in a categories field.
  • The app needs that field because it reads plugins from the server, not the manifest.
  • The field defaults to [], so a missing value falls back to the built-in order.
  • Older servers and clients keep the built-in order; no daemon wire change.
  • @get-bb/plugin-sdk is bumped to 0.6.15 for the new field's types.
  • getbb.app describes New & notable as "Trending and recently added plugins."

Related PRs:

How you verified

  • Remote CI: pending on head 23a06eddad.
  • Unit tests cover the server's category list and the app's manifest category order.
  • Chrome for Testing (Browser Automation): getbb.app shows the new New & notable subtitle.
  • Category order looks unchanged until Fix project-scoped worktree preference #446 lands, because today's manifest order matches the built-in list.
  • Codex review found one P1; it is fixed. Slop Cop review passed with no merge blockers.

getbb.app New & notable subtitle

Before: 025e862 (main) · After: 23a06ed · Captured at 2×, Oct 2

Screen / state Viewport Before After
getbb.app/marketplace · New & notable Desktop · 1440×900 Before web desktop After web desktop

Combined preview with get-bb/marketplace#446

getbb.app with a manifest from #446's build and real PostHog install counts from Oct 1. Categories are reordered by installs. Captured at 2×.

Screen / state Viewport Before After
getbb.app/marketplace · New & notable and first categories Desktop · 1440×900 Before web desktop Combined web desktop

BB-Thread-ID: thr_a4kxc4rfxg

🤖 Generated with Claude Code

AGENT GENERATED

brsbl and others added 6 commits October 1, 2026 18:26
…e plugins

The server now returns the curated manifest's category order with catalog
search, and the app orders category shelves and filters by it instead of
a hardcoded list. Browse overviews in the app and on getbb.app leave
collection plugins out of category shelves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Count plugins featured in collections toward the category total so
featuring a plugin no longer hides its category's View all link, while
shelves that already show the whole category stay without one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl brsbl changed the title Follow the marketplace category order and stop repeating New & notable plugins Follow the marketplace category order and stop repeating featured plugins Oct 2, 2026
@brsbl brsbl changed the title Follow the marketplace category order and stop repeating featured plugins Follow the marketplace category order in the app Oct 2, 2026
brsbl added a commit that referenced this pull request Oct 2, 2026
## Human comments

## What was wrong

Plugin shelf links in the app said "See all" while getbb.app says "View
all" for the same action.

## What changed

- App plugin shelf links now read "View all", matching getbb.app.
- Screen readers announce "View all <shelf name>".

Related PRs: #4671, #4749, and get-bb/marketplace#446
change the same browse shelves. This PR is independent of all three.

## How you verified

- Remote CI: passed except `packages-host`, where unrelated `pi`
provider parity tests timed out; rerun pending.
- Chrome for Testing (Browser Automation): every app shelf link reads
"View all" on desktop and mobile.

### Browse plugins overview

Before: ecc44c4 (main) · After: 1765101 · Captured at 2×

| Screen / state | Viewport | Before | After |
| --- | --- | --- | --- |
| App · Browse plugins overview | Desktop · 1440×900 | ![Before
desktop](https://github.com/user-attachments/assets/2e3b7685-cfdc-4813-8bba-cde16d2c6777)
| ![After
desktop](https://github.com/user-attachments/assets/93f8a988-d359-41e9-983b-196fa1456768)
|
| App · Browse plugins overview | Mobile · 390×844 | ![Before
mobile](https://github.com/user-attachments/assets/4d500aa8-d679-422c-a04b-82e4632acbc6)
| ![After
mobile](https://github.com/user-attachments/assets/7791570d-6fd3-4f94-b425-291bbd1f7384)
|

BB-Thread-ID: thr_a4kxc4rfxg

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> AGENT GENERATED

Co-authored-by: Claude Opus 5.5 <[email protected]>
@brsbl
brsbl marked this pull request as ready for review October 5, 2026 20:33
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

SawyerHood added a commit that referenced this pull request Oct 5, 2026
## Human comments

## What was wrong

getbb.app/marketplace only listed community plugins. The plugins that
ship with bb (Memory, Tasks, Docs, Automations, Plugin Guide and others)
had no public page, so links like `/marketplace/memory` returned 404 and
search engines could not find them.

This carries #4608 forward on current `main` with a smaller diff and
three fixes.

## What changed

Every user-facing built-in plugin now has a marketplace page, and a "BB
Official" shelf leads `/marketplace`.

### Pages and shelf

- The "BB Official" shelf comes first, above New & notable. "View all"
expands it in place.
- Cards use the bb mark as the author avatar.
- Badges follow the shared install rule:
- Plugins installed with bb by default say "Built in" on cards and
"Included with bb" on detail pages.
- Opt-in official plugins (Tasks, GitHub, Docs, Memory and others) show
their install counts.
- Detail pages show the right setup step:
  - `bb plugin install <name>` for official plugins installed on request
  - `bb plugin enable <id>` for built-ins that are off by default
  - no command for built-ins that are always on
- "View source" links to `get-bb/bb/tree/main/plugins/<name>`.
- Internal and adapter plugins stay unlisted: account-pool,
agent-annotations, the environment-\* checkouts, plugin-api-tester and
the provider-\* adapters.
- Built-ins join the sitemap and get share cards.

### Ids and URLs

- A built-in's page URL is its plugin id, the same id install counts and
the app use.
- Built-in ids cannot clash with community ids: #4576 moved the one
clash to `bb--provider-usage`, and the marketplace registry rejects
reserved ids.
- `/marketplace/provider-usage` is the community Provider Usage plugin
(unchanged).
  - `/marketplace/bb--provider-usage` is the built-in.
- If a clash ever appears, the community page stays and the built-in is
left off the site.

### Data and build

- `apps/web` imports the bundled catalog that
`@bb/server#generate:bb-official-marketplace` already generates and
merges it into the community manifest after parsing.
- Only the bundled catalog may use a `{ bundled: { plugin } }` source. A
fetched community manifest with one is rejected, so a community entry
cannot present itself as built in.
- Local SVG icons are served as Vite asset URLs, including when Vite
inlines them as `data:` URLs.
- `@bb/web#build` depends on the catalog generator through `topo`.
`deploy-web.yml` also triggers on every generator input and on plugin
icons.

### Differences from #4608

- Removed the compact-slug rename (`/marketplace/providerusage`). It no
longer ran, because the ids no longer clash.
- bb account, bb cloud AI and bb connect rendered the generic puzzle
icon; they now have icons.
- The enable command uses the plugin id instead of the source name.
- The bundled-source check runs after the shared parse instead of
through a second copy of the manifest schema.
- Formatting-only hunks are reverted.

### Things to know

- Adding a bundled plugin that is opt-in or off by default fails
`bundled-marketplace.test.ts` until it is added to the lists in
`bundled-marketplace.ts`. The failure names the plugin.
- A listed built-in whose icon name has no entry in
`marketplace-icons.ts` fails the same test file.
- The deploy job uses a shallow clone, so built-ins have no publish
dates on getbb.app. They sort last under "New" and never show the "New"
badge.
- Provider usage and Modal Sandbox have no overview text yet, so their
Overview section is empty.

## How you verified

- `pnpm exec turbo run build typecheck test lint --filter=@bb/web`
passes on this branch (25 files, 170 tests).
- `bundled-marketplace.test.ts` covers the clash rule, the unlisted
filter, shelf order, category merging, icon fallback, a drift check
against the server's plugin registry, and a check that every listed
built-in has a web icon. Removing two icon entries made that last test
fail and name both plugins.
- `marketplace-v2.test.ts`: the community catalog rejects bundled
sources; the bundled catalog accepts them.
- `public-marketplace.test.tsx`: only default-installed bundled plugins
render "Built in"; an opt-in one renders its count.
- Browser checks in headless Chrome at 1280×900, against a local build
with a local R2 bucket holding a full 327-plugin community catalog and
the live install counts. These ran on a local branch that also carried
#4671; its `apps/web` differs from this PR by one shelf subtitle string.
- `/marketplace`: BB Official shelf first with 30 plugins; "View all"
expands to all 30 and the link disappears.
  - bb account, bb cloud AI and bb connect show their own icons.
- `/marketplace/bb--provider-usage` shows the built-in with "Included
with bb" and no command; `/marketplace/provider-usage` still shows the
community plugin with its install command; `/marketplace/providerusage`
is 404.
- `/marketplace/simple-notes` shows `bb plugin install docs`;
`/marketplace/workflows` shows `bb plugin enable workflows`;
`/marketplace/bb-guide` shows no command.
- Production build under `vite preview`: Plugin Guide and Modal Sandbox
render their SVG icons on the page and on the share card
(`/marketplace/og/<id>`); the sitemap lists the built-in pages; no
console errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> AGENT GENERATED

---------

Co-authored-by: brsbl <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
SawyerHood added a commit that referenced this pull request Oct 5, 2026
## 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

- get-bb/marketplace#483 computes New & notable and the category order
from recent installs. The new subtitle assumes it, and the app's order
only visibly changes once it publishes.

## 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](https://claude.com/claude-code)

> AGENT GENERATED

Co-authored-by: brsbl <[email protected]>
Co-authored-by: Claude Code <[email protected]>
@SawyerHood

Copy link
Copy Markdown
Collaborator

Superseded by #4950, which carries this forward on current main and is now merged.

@SawyerHood SawyerHood closed this Oct 5, 2026
@brsbl
brsbl deleted the plugin-browse-manifest-category-order branch October 6, 2026 03:56
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