Repository navigation
Stop the brief panel running off the right edge - #6
Merged
Merged
Conversation
Sizing the panel at 100vw assumed it started at the left edge. It is anchored to a trigger near the right, so a viewport-wide panel hung off the screen: text wrapped at a width that was mostly off-screen, which read as no wrapping at all. Cap the width by --radix-popover-content-available-width, the room Radix measured from where it actually placed the panel, and let long unbroken strings break rather than widen it. Move every layout-critical property to inline styles. The plugin's Tailwind output is scoped to its own subtree and this content is portalled, so sizing should not depend on those classes reaching it. Cosmetics stay in className, where a miss is only cosmetic. The tests now assert the applied inline style. The previous ones checked that className contained w-[calc(100vw-1rem)] and passed while the panel rendered wrong — a class name being present says nothing about a rule reaching the element. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
trotterdylan
added a commit
that referenced
this pull request
Nov 9, 2026
… (BB-263) (#301) Implements [BB-263](https://linear.app/bit-complete/issue/BB-263/stewards-a-tickets-sixth-linked-pull-request-is-never-observed-so-its). `linkedPulls` and `freshObserved` each capped a ticket's linked pull requests at the first five in GitHub timeline order (oldest first), so a ticket with more than five never observed its newest, still-open pull request: `approve-pr` was never filed and a `steward_report` naming it was refused as unobserved. Both now select keys through one helper that keeps the cap of five (bounding GitHub reads) but never lets older merged pull requests displace newer/open ones. > Merging a `bb-plugins` change moves the `bb-server` pin, builds a new image and stages a restart for every developer's server (at **Restart now**, or in the 03:00–05:00 ET quiet window). ## Classification owner-reviewed: the change touches `plugins/stewards/server.ts`, which the decide list's `decide: user` entry "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list" matches, and it changes what an existing feature does (which linked pull requests a look reads). The owner approves. ## What changes - `plugins/stewards/server.ts`: new `linkedPullKeys(entity)` helper. It dedupes the linked pull keys, and when the data carries a per-link state prefers open/unmerged (newest first, then the newest of the rest); otherwise it takes the newest five in timeline order (the tail). `linkedPulls` reads those keys, and `freshObserved` uses the same list for its `complete` comparison. Today the snapshot contract carries only `url` and `key`, so the tail rule is the active path; the state-preferring half is forward-compat for a source that carries state. - `plugins/stewards/server.test.ts`: a six-linked-pull-request ticket (five merged, the sixth open and owner-reviewed with an approved marker and green checks) now observes the sixth, files its `approve-pr` item, and accepts a `steward_report` filing `approve-pr` for it. ## Testing - `npm run typecheck` in `plugins/stewards`: pass. - `npm test` in `plugins/stewards`: pass (1466 tests; in the CI matrix, run locally too). - The new test fails against the unpatched code (it read `acme/web#1`–`#5` and never `#6`), so it exercises the fix rather than the happy path.
trotterdylan
added a commit
that referenced
this pull request
Nov 10, 2026
Implements [BB-269](https://linear.app/bit-complete/issue/BB-269/bb-plugins-npm-dompurify-ghsa-cg2g-xh64-v4q7-critical-diff-explorer) and [BB-270](https://linear.app/bit-complete/issue/BB-270/bb-plugins-npm-dompurify-ghsa-mrv2-3pqr-j5jr-high-diff-explorer). Bumps the `dompurify` override in `plugins/diff-explorer` from 3.4.16 to 3.4.17, which fixes GHSA-cg2g-xh64-v4q7 (critical; Dependabot alerts #3 and #6) and GHSA-mrv2-3pqr-j5jr (high; alerts #2 and #5). No `dompurify` below 3.4.17 remains in `package.json`, `package-lock.json` or `pnpm-lock.yaml`. > Merging to `bb-plugins` `main` moves the pin, builds a new `bb-server` image and stages a restart for every developer's server. This merge restarts every developer's server (including this one) once they press Restart now, or in the 03:00–05:00 US Eastern quiet window. ## Classification no-review: dependency patch bump in a plugin that is not deployed in the `bb-server` image; no owner-reviewed trigger matches. ## What changes - `plugins/diff-explorer/package.json`: `overrides.dompurify` 3.4.16 → 3.4.17. - `plugins/diff-explorer/package-lock.json`: `node_modules/dompurify` version/resolved/integrity → 3.4.17, and monaco-editor's transitive range → 3.4.17. - `plugins/diff-explorer/pnpm-lock.yaml`: regenerated with `pnpm install --lockfile-only`; override, package snapshot and monaco-editor's edge → 3.4.17. - `plugins/diff-explorer/pnpm-workspace.yaml`: the pnpm override 3.4.16 → 3.4.17 (pnpm reads `overrides` from here, so the lock would otherwise stay at 3.4.16). No other dependency versions change. ## Testing - `pnpm install --frozen-lockfile`: pass. - `node scripts/check-dependencies.mjs`: pass. - `pnpm run typecheck`: pass. - `pnpm test`: pass (32 tests). - `pnpm audit --audit-level=high` and `npm audit --audit-level=high`: 0 vulnerabilities.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #5, which made the panel scrollable but introduced a worse problem: the text stopped wrapping.
Sizing at
100vwassumed the panel starts at the left edge. It is anchored to a trigger near the right edge, so a viewport-wide panel hangs off the screen — its text wraps at a width that is mostly off-screen, which reads as no wrapping at all.--radix-popover-content-available-width: the room Radix measured from where it actually placed the panel, rather than a number I assumed.overflowWrap: anywhereso a long URL or branch name breaks instead of widening the panel past its cap.:where([data-bb-plugin=thread-briefs], …)) and this content is portalled, so sizing should not depend on those rules reaching it. Cosmetics stay inclassName, where a miss is only cosmetic.The tests were the real failure
The previous ones asserted
classNamecontainedw-[calc(100vw-1rem)]— and passed cheerfully while the panel rendered wrong. A class name being present says nothing about whether a rule reached the element. They now assert the applied inline style, which is the thing that actually determines layout.I checked the emitted CSS before changing anything, and the arbitrary-value rule was generated — so the class was never the problem, the assumed width was. Worth recording, because it would have been an easy wrong fix.
81 tests passing. Still verified in jsdom rather than on a phone, so this wants a real look on your device — it is the second time this panel has been wrong in a way jsdom happily reported as fine.
🤖 Generated with Claude Code