Repository navigation
Add the public plugin marketplace to getbb.app - #2961
Conversation
|
🚨 SLOP COP 🚨 · I am SlopCop. I am reviewing this pull request for security, code quality, architecture, performance, and browser behavior. |
There was a problem hiding this comment.
🚨 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:
- The plugin and author routes read and serialize the full catalog twice.
- The new web schema duplicates existing contracts and already has different validation rules.
- Two client imports add Zod and both server schemas to a 14.72 kB compressed browser chunk.
- The new navigation item causes horizontal overflow on the 375-pixel home and blog pages.
- Internal marketplace links cause full document loads instead of client route changes.
- 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.
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]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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]>
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]>
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
no-store.noindextag when the manifest fails.bb/plugin-pages-getbb-appin Add public plugin marketplace and guide #2702 by @brsbl.How you verified
pnpm exec turbo run typecheck --filter=@bb/webpassed.pnpm exec turbo run test --filter=@bb/webpassed 116 tests in 22 files.pnpm exec turbo run build --filter=@bb/webpassed.Screenshots
Home page header at 1440 by 900 pixels:
Marketplace index at 1440 by 900 pixels:
Marketplace index sorted by installs at 1440 by 900 pixels:
Plugin detail at 1440 by 900 pixels:
Author page at 1440 by 900 pixels:
Author page at 430 by 900 pixels:
Fixes #2702