Skip to content

Let the brief panel scroll and fit a phone screen - #5

Merged
trotterdylan merged 1 commit into
mainfrom
scrollable-brief-popover
Sep 26, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
scrollable-brief-popover

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

The popover had a fixed w-80 and no height cap or overflow, so a five-field brief ran past the bottom of a phone viewport with no way to reach the rest of it.

  • Height is capped at the room Radix actually measures, --radix-popover-content-available-height, with a 70vh fallback for when collision detection is skipped, and the panel scrolls inside that. overscroll-contain keeps the thread behind from scrolling once the panel hits its end.
  • Near-full width (calc(100vw-1rem)) on a compact viewport, the fixed column on a wide one, via the isCompactViewport prop the slot already receives.
  • collisionPadding={8} so it never sits flush against an edge.

The max height is an inline style rather than a Tailwind arbitrary value, because the plugin's Tailwind pass emits default-theme utilities only and I did not want the fix to depend on what it chose to generate.

Two tests cover it, and I checked they fail when the overflow classes are removed rather than passing for their own reasons. 79 passing.

Verified in jsdom, not on a real phone — worth a look on your device, since viewport behaviour is exactly the kind of thing jsdom will happily lie about.

🤖 Generated with Claude Code

The popover had a fixed 20rem width and no height cap, so a five-field brief
ran past the bottom of a phone viewport with no way to reach the rest.

Cap the height at the room Radix measures
(--radix-popover-content-available-height, with a vh fallback for when
collision detection is skipped) and scroll inside it, with overscroll-contain
so the thread behind does not move. Use near-full width on a compact viewport
and keep the fixed column on a wide one.

The max height is an inline style rather than a Tailwind arbitrary value so it
does not depend on what the plugin's Tailwind pass emits.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@trotterdylan
trotterdylan merged commit 82e9318 into main Sep 26, 2026
5 of 6 checks passed
@trotterdylan
trotterdylan deleted the scrollable-brief-popover branch September 26, 2026 23:35
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.
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