Skip to content

Polish the public Plugin Guide after review - #4948

Merged
brsbl merged 3 commits into
mainfrom
bb/plugin-guide-followups
Oct 5, 2026
Merged

brsbl merged 3 commits into
mainfrom
bb/plugin-guide-followups

Conversation

@brsbl

@brsbl brsbl commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The public Plugin Guide (#4611) had several visible issues:

  • Page fonts and colors: the Guide's theme stylesheet replaced the site's fonts and colors on every page that loads it.
  • Phone mock: it rescaled while mobile browser toolbars collapsed during scrolling.
  • Safari menu: Escape didn't close the Plugins menu after a mouse click.
  • Narrow phones: the site header overflowed screens narrower than about 341 px.
  • Diff mock: the removed line used a color token that doesn't exist, so it rendered uncolored.

What changed

  • /plugin-guide and posts embedding the Guide now use the same fonts and colors as the rest of the site.
  • The Guide keeps the app's own colors inside an .app-theme wrapper.
  • The phone mock no longer rescales when mobile browser toolbars collapse.
  • Escape closes the Plugins menu from anywhere on the page, including in Safari.
  • Below 360 px the header hides its GitHub icon, which is still in the footer, so the header fits.
  • The diff mock's removed line is red again.
  • "Draft prompt highlighting" no longer lists Agent Annotations.
  • The web build dedupes React.
  • Guide-only Tailwind classes now ship only on Guide pages.
  • New web tests fail when the Guide uses an undefined theme token.
  • They also fail when a "Used by" name doesn't map to exactly one plugin.
  • @bb/web#test reruns when Guide sources or plugin manifests change.
  • A plugin folder whose package.json has no bb block is skipped instead of failing the web build.
  • Reading whole manifests adds about 52 KB raw to the lazy Guide chunk; other pages are unchanged.

Header at 320 px:

Before After
Header at 320px before Header at 320px after

Diff mock, removed line:

Before After
Diff mock before Diff mock after

How you verified

  • Remote CI: passed on ecdcca4aff, including the new web tests on Linux and Windows.
  • Page tokens (Chrome for Testing, 2×): body fonts and colors on /plugin-guide match /blog in light and dark.
  • Guide layout: unchanged; the CSS layer order is properties, landing-reset, then Tailwind.
  • Narrow widths: at 320, 340 and 360 px nothing overflows; at 320×568 the phone mock fits.
  • Safari 26.5.2: with focus off the menu, Escape closes it and refocuses "Plugins".
  • Turbo dry run: @bb/web#test now hashes plugins/plugin-api-docs/src/wireframes.tsx and the plugin manifests.
  • Manifest import (Chrome for Testing): the Guide still shows 34 distinct source links and 13 brand icons.
  • Not verified: toolbar-collapse rescaling needs a real phone browser.
  • Slop Cop review of 01797aa428: one P1, fixed in 9e6632ba86. The test had been skipped when only Guide sources changed.

Follow-ups (P2)

  • Share one head-links helper between the two routes.
  • Test that plugin-guide.css declares every landing.css layer, so a renamed layer can't outrank Tailwind.
  • PluginComposerApi.onSubmitted no longer lists a first-party user. Move it to the composer card that lists Agent Annotations.

BB-Thread: Public Plugin Guide on getbb.app

🤖 Generated with Claude Code

AGENT GENERATED

- Load the Guide theme before landing.css and scope its tokens to the
  Guide, so page chrome keeps the site's fonts and colors.
- Size the phone mock against the stable document height, so mobile
  toolbars collapsing don't rescale it while scrolling.
- Close the Plugins menu on Escape from anywhere on the page.
- Fit the site header on phones narrower than 360px.
- Color the diff mock's removed line with the destructive tokens.
- Drop Agent Annotations from Draft prompt highlighting.
- Dedupe React in the web build and scan Guide sources only from the
  Guide stylesheet.
- Test that the web defines every token the Guide uses and that every
  Used by name links to one plugin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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.

@brsbl
brsbl merged commit 7c7693e into main Oct 5, 2026
34 checks passed
@brsbl
brsbl deleted the bb/plugin-guide-followups branch October 5, 2026 23:02
brsbl added a commit that referenced this pull request Oct 5, 2026
## Human comments

## What was wrong

The public Plugin Guide linked every "Used by" plugin to GitHub, even
though #4938 gave built-ins marketplace pages. A built-in's marketplace
id can differ from its folder name. Whether it is listed depends on the
live catalog, so the Guide can't hard-code `/marketplace/<id>`.

## What changed

- "Used by" names now open the plugin's marketplace page.
- Built-ins the marketplace doesn't list still open their GitHub source.
- The new `/marketplace/builtin/<plugin>` route looks up the live
catalog and redirects.

Clicking Docs under "Used by" (left) lands on its marketplace page,
`/marketplace/simple-notes` (right):

| Guide card | Destination |
|---|---|
| ![Full-page panels card with Used by
links](https://github.com/user-attachments/assets/5091aa73-0484-41f8-8399-9683115e4977)
| ![Docs marketplace
page](https://github.com/user-attachments/assets/8d9b57e2-b98f-4a1a-ae6e-0067dede13c6)
|

## How you verified

- **Remote CI:** passed on `6878b86b40` (rebased onto #4948).
- **Every link (branch web app, local R2 seeded from the production
catalog):** all 38 distinct "Used by" plugins return a 307 and land on a
200 page.
- 29 land on a marketplace page; `docs` lands on
`/marketplace/simple-notes`.
  - 9 unlisted built-ins land on their GitHub source.
- **Rendered Guide (Chrome for Testing):** on every slide, all "Used by"
links point to `/marketplace/builtin/…`.
- **Click-throughs:** Memory landed on its marketplace page; Account
Pooler landed on its GitHub folder.
- **Unit test:** an unavailable marketplace falls back to GitHub.
- **Slop Cop review of `19ba9c3802`:** no P0 or P1 findings. The rebase
only resolved #4948's move of the link helper.

## Follow-ups (P2)

- Return the site's 404 for unknown plugin names instead of redirecting
to a GitHub 404.

BB-Thread: [Public Plugin Guide on
getbb.app](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_ptdzpsxqum)

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

> AGENT GENERATED

Co-authored-by: Claude Opus 5.5 <[email protected]>
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