Skip to content

Move T3 sidebar plugin to examples - #1109

Merged
SawyerHood merged 1 commit into
mainfrom
bb/move-t3code-plugin-to-examples-thr_qrfdfb5zmx
Aug 7, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/move-t3code-plugin-to-examples-thr_qrfdfb5zmx

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

  • Move the T3 sidebar plugin from plugins/ to examples/plugins/.
  • Remove T3 Sidebar from the bundled official plugin catalog.
  • Add local icon, select, and style helpers so the example does not use BB's private shared UI package.
  • Update the plugin guides, reference documents, catalog tests, generated templates, and lockfile.

Why

T3 Sidebar is a reference implementation for the sidebar replacement APIs. It should remain an installable example instead of a bundled product plugin.

Impact

New BB builds will not include T3 Sidebar in the official plugin catalog. Developers can install it from a checkout with:

bb plugin install ./examples/plugins/t3sidebar

Validation

  • pnpm exec turbo run typecheck --filter=bb-plugin-t3sidebar --filter=@bb/server --filter=@bb/templates
  • pnpm exec turbo run test --filter=bb-plugin-t3sidebar --force
  • pnpm exec vitest run --config vitest.config.ts test/services/plugins/official-plugins.test.ts test/services/plugins/builtin-plugins.test.ts
  • pnpm run bb -- plugin build examples/plugins/t3sidebar

@SawyerHood
SawyerHood marked this pull request as ready for review August 6, 2026 22:02

@SawyerHood SawyerHood left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🚨 SLOP COP 🚨 · review

I am the SlopCop. I am reviewing this pull request under the security, code-quality, performance, architecture, and end-to-end guidelines.

The stack contains only PR #1109. The required two-minute second scan found no later pull request. I skipped no stack pull requests.

@SawyerHood
SawyerHood merged commit f13c2d3 into main Aug 7, 2026
@SawyerHood
SawyerHood deleted the bb/move-t3code-plugin-to-examples-thr_qrfdfb5zmx branch August 7, 2026 14:18
SawyerHood added a commit that referenced this pull request Aug 7, 2026
#1109 moved t3sidebar from plugins/ to examples/plugins/ and updated
builtin-plugins and official-plugins tests, but not the catalog route test.
Its own CI run was cancelled, so main landed red and every PR branched from it
fails Tests (server).

The bundled catalog is now 12 plugins, 4 of them optional.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Aug 7, 2026
## Summary

- Derive `pluginCount`, `includedPluginCount`, and `optionalPluginCount`
in `plugin-catalog-routes.test.ts` from the bundled plugin registry
instead of hardcoding `13 / 8 / 5`.

## Why

CI is red on `main`. Commit f13c2d3 ("Move T3 sidebar plugin to
examples", #1109) removed `t3sidebar` from `OFFICIAL_PLUGINS`, so the
bundled catalog went from 13 plugins to 12. That PR updated
`plugin-catalog-service.test.ts`, which derives its counts from the
registry, but it missed the route test, which hardcoded the numbers.

```
AssertionError: expected { catalog: { pluginCount: 12, ... } }
                to match object { catalog: { pluginCount: 13, ... } }
```

#1109 landed without a green run: its own CI run (31186905645) was
cancelled when #1108 pushed on top of it.

The route test now uses the same source of truth as the service test, so
a future plugin add or remove will not break it again.

## Tests

- `pnpm exec turbo run test --filter=@bb/server -- plugin-catalog` — 7
passed.
- `pnpm exec turbo run test --filter=@bb/server` — 1336 passed. One
unrelated local-only failure in `internal-skill-trees.test.ts`, which
asserts file mode `0o644` but writes the file with no explicit `chmod`.
It follows the umask, so it fails under umask `0002` and passes on CI
runners under `0022`.
- `pnpm exec turbo run typecheck --filter=@bb/server` — pass.
- CI run 31187487485 on `main`: `Tests (server)` was the only failing
job. All other jobs passed.

## Risk

Test-only change. No product code is touched.

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

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
## Summary

- Move the T3 sidebar plugin from `plugins/` to `examples/plugins/`.
- Remove T3 Sidebar from the bundled official plugin catalog.
- Add local icon, select, and style helpers so the example does not use
BB's private shared UI package.
- Update the plugin guides, reference documents, catalog tests,
generated templates, and lockfile.

## Why

T3 Sidebar is a reference implementation for the sidebar replacement
APIs. It should remain an installable example instead of a bundled
product plugin.

## Impact

New BB builds will not include T3 Sidebar in the official plugin
catalog. Developers can install it from a checkout with:

```sh
bb plugin install ./examples/plugins/t3sidebar
```

## Validation

- `pnpm exec turbo run typecheck --filter=bb-plugin-t3sidebar
--filter=@bb/server --filter=@bb/templates`
- `pnpm exec turbo run test --filter=bb-plugin-t3sidebar --force`
- `pnpm exec vitest run --config vitest.config.ts
test/services/plugins/official-plugins.test.ts
test/services/plugins/builtin-plugins.test.ts`
- `pnpm run bb -- plugin build examples/plugins/t3sidebar`
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
## Summary

- Derive `pluginCount`, `includedPluginCount`, and `optionalPluginCount`
in `plugin-catalog-routes.test.ts` from the bundled plugin registry
instead of hardcoding `13 / 8 / 5`.

## Why

CI is red on `main`. Commit f13c2d3 ("Move T3 sidebar plugin to
examples", get-bb#1109) removed `t3sidebar` from `OFFICIAL_PLUGINS`, so the
bundled catalog went from 13 plugins to 12. That PR updated
`plugin-catalog-service.test.ts`, which derives its counts from the
registry, but it missed the route test, which hardcoded the numbers.

```
AssertionError: expected { catalog: { pluginCount: 12, ... } }
                to match object { catalog: { pluginCount: 13, ... } }
```

get-bb#1109 landed without a green run: its own CI run (31186905645) was
cancelled when get-bb#1108 pushed on top of it.

The route test now uses the same source of truth as the service test, so
a future plugin add or remove will not break it again.

## Tests

- `pnpm exec turbo run test --filter=@bb/server -- plugin-catalog` — 7
passed.
- `pnpm exec turbo run test --filter=@bb/server` — 1336 passed. One
unrelated local-only failure in `internal-skill-trees.test.ts`, which
asserts file mode `0o644` but writes the file with no explicit `chmod`.
It follows the umask, so it fails under umask `0002` and passes on CI
runners under `0022`.
- `pnpm exec turbo run typecheck --filter=@bb/server` — pass.
- CI run 31187487485 on `main`: `Tests (server)` was the only failing
job. All other jobs passed.

## Risk

Test-only change. No product code is touched.

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

Co-authored-by: Claude Opus 5 (1M context) <[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