Skip to content

Add the public plugin marketplace to getbb.app - #2961

Merged
SawyerHood merged 34 commits into
mainfrom
bb/pr-g-public-marketplace-on-getbb-app-thr_ebqp58wd56
Sep 3, 2026
Merged

SawyerHood merged 34 commits into
mainfrom
bb/pr-g-public-marketplace-on-getbb-app-thr_ebqp58wd56

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

getbb.app did not have routes that showed the public plugin catalog. The worker only served raw marketplace objects from R2.

What changed

  • I added the marketplace index, plugin detail, and author routes.
  • The pages read the v2 manifest and install counts from the worker R2 binding.
  • The worker caches parsed marketplace data for five minutes by R2 ETag.
  • Marketplace HTML uses a five-minute public cache. Unavailable pages use no-store.
  • A local Zod schema validates the data boundary and ignores unknown keys.
  • The schema accepts empty catalogs. It limits tags and screenshots after validation.
  • The index supports search, one category select, document shelves, and two flat list sorts.
  • I changed the browse, detail, and author layouts to match the two owner-approved mockups.
  • The browse page has a centered hero, a sticky control row, compact cards, and responsive grids.
  • The detail page has breadcrumbs, the home page command control for the install command, screenshots, a View source link, and related plugins.
  • The detail page shows the short description once and hides the empty About section.
  • I removed the Trust block, the Details card, the install note, and the hero count pill. The detail page is one column at every width.
  • The author page has an avatar header and the same browse controls.
  • The worker returns HTTP 503 and a noindex tag when the manifest fails.
  • The site sends the three marketplace events through the current PostHog client.
  • I added the Plugins navigation link. The URL keeps one category parameter. A URL with several keeps the first.
  • The top navigation has Plugins, Blog, Changelog, Sign in, an icon-only GitHub button, and Download for macOS.
  • The site follows the system color scheme. I removed the theme switcher and its stored preference.
  • Vitest now includes TSX test files.
  • This change does not alter the host daemon protocol.
  • The build needs the route generator format options. Without them, it rewrites the full route tree.
  • I ported the marketplace pages from branch bb/plugin-pages-getbb-app in Add public plugin marketplace and guide #2702 by @brsbl.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/web passed.
  • pnpm exec turbo run test --filter=@bb/web passed 116 tests in 22 files.
  • The test run included the TSX component and route tests.
  • pnpm exec turbo run build --filter=@bb/web passed.
  • I tested all routes with the current live v2 manifest and stats data.
  • I verified the filters, both sorts, the copy action, canonical URLs, HTTP 404 routes, and the HTTP 503 route.
  • I checked all three routes at 1440 by 900 pixels and 430 by 900 pixels.
  • I checked each route in the light theme and the dark theme.
  • None of the 430-pixel pages had horizontal page overflow.

Screenshots

Home page header at 1440 by 900 pixels:

Home page header in the light theme

Marketplace index at 1440 by 900 pixels:

Marketplace index in the light theme

Marketplace index sorted by installs at 1440 by 900 pixels:

Marketplace index sorted by installs

Plugin detail at 1440 by 900 pixels:

Fonts plugin detail in the light theme

Author page at 1440 by 900 pixels:

Author page in the light theme

Author page in the dark theme

Author page at 430 by 900 pixels:

Author page in the light theme at 430 pixels

Author page in the dark theme at 430 pixels

Fixes #2702

AGENT GENERATED

@bb-slop-cop

bb-slop-cop Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am SlopCop. I am reviewing this pull request for security, code quality, architecture, performance, and browser behavior.

Comment thread apps/web/src/landing/site-chrome.tsx Resolved

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚨 SLOP COP 🚨 · review

Summary

This pull request adds a public catalog for bb plugins. People can search, filter, sort, inspect, and copy an install command.

I found six issues that need action:

  1. The plugin and author routes read and serialize the full catalog twice.
  2. The new web schema duplicates existing contracts and already has different validation rules.
  3. Two client imports add Zod and both server schemas to a 14.72 kB compressed browser chunk.
  4. The new navigation item causes horizontal overflow on the 375-pixel home and blog pages.
  5. Internal marketplace links cause full document loads instead of client route changes.
  6. Case variants of an author route declare different canonical URLs.

The duplicated contracts need one shared home. This change also duplicates the marketplace statistics parser from the server package.

The security review found no actionable issue. The fixed R2 paths, output encoding, source URLs, install command, and clipboard flow were safe.

The marketplace browser tests passed. Search, filters, sort, details, author pages, copy status, history, and the 375-pixel Marketplace layout worked.

The web tests passed all 101 tests. The Turbo type check and production build also passed.

I did not treat the older PR #2702 scope differences as defects in this pull request.

SawyerHood and others added 19 commits September 2, 2026 21:45
Cache parsed marketplace data for five minutes and set HTML cache headers. Accept empty catalogs, limit display arrays, and add route and theme tests.
Remove the Trust block, the Details card, and the install note sentence from the public plugin detail page. Keep the source repository as a View source link in the facts line. Show the author rows and the category shelf in one column under the header. Delete the view-model helpers, CSS rules, and tests that served the removed blocks.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Remove the Changelog link from the top navigation. It stays in the footer. Show the GitHub link as an icon-only button with the aria-label GitHub beside the theme button. The Plugins entry stays current on marketplace routes.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Place the facts row in the detail header grid under the install control. The row now wraps only when it runs out of space.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Remove the scrolling category chip row from the public marketplace. Add one native select next to the sort control. It lists every category with its count in document order and shows All categories by default. The URL keeps one category parameter. A URL with several category parameters keeps the first.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Remove the theme switcher button, its menu, and the stored preference. The inline head script applies the dark class from the dark media query alone, and a matchMedia listener follows later changes. The top navigation now reads Plugins, Blog, Sign in, GitHub, and Download for macOS.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
SawyerHood and others added 12 commits September 3, 2026 01:36
Give the category select the accessible name Category with aria-label. The first visible option stays All categories.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Delete the plugin count pill above the hero headline, its CSS, and the count prop that only it read. Fold the former headline margin into a smaller hero top padding.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Move the home page command button into a shared component and render the plugin install command with it under the facts row. Keep Get it for macOS as a small text link beside it. Remove the right column and the custom install CSS from the detail header.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Add the external-link glyph to the Get it for macOS link. Reduce the header icon tile to 56 pixels with a proportional glyph.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Render the category as a muted text line under the two-line description in flat results. The card footer keeps the author on the left and the install count on the right, so long names no longer clip.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Place Changelog between Blog and Sign in, and mark it current on the changelog route.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@SawyerHood
SawyerHood merged commit 416aece into main Sep 3, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the bb/pr-g-public-marketplace-on-getbb-app-thr_ebqp58wd56 branch September 3, 2026 02:30
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