Repository navigation
feat(t3-composer): sync with upstream bb composer through 2d04779a1 (BBP-14) - #184
Merged
Merged
Conversation
… the sheet's top Monokai now draws bb's picker search row as a bordered field. T3 Composer's older rule zeroed its top margin, so the field touched the sheet's edge. Inset it 4px like the rows, size the field rather than the input so it no longer overflows the border, and give phones a 44px field with 16px text.
The empty editor's minimum grows from one 20px line to two (48px). Touch screens keep their one-line 32px minimum.
…to it Port of get-bb/bb#6581 (38c939c85). Serialization adds a space between a pill and an adjacent word or pill, so the agent sees /review Also, not /reviewAlso.
…atches Port of get-bb/bb#7002 (631a62619). Typing on after an unmatched @query ("@see you later") no longer keeps an empty menu over the prose. Shortening the query back reopens it, shown again only once something matches. typeahead.test.tsx covers it in the mounted composer, since upstream's tests live in bb's app.
Port of get-bb/bb#7061 (9519ec685). On iOS dvh ignores the software keyboard, so a long draft pushed the composer under the header. The caps now read BB's --bb-shell-height (bb 0.49 defines it), including the plugin's own !important thread-composer rule in app.css, which would otherwise keep the old 50dvh cap.
…int is long Port of get-bb/bb#7565 (dafe34edc). A long argument hint, such as Claude Code's code-review, collapsed the command name and pushed the / menu sideways on phones. Description, then hint, now give way before the name. Uses gap-1, not upstream's gap-1.5, to stay on the plugin's 4px grid; the Storybook story is skipped since Storybook was removed here.
Port of the composer part of get-bb/bb#7480 (1983b0dfb): a click on a built-in command now sends it, as Enter already did. The plugin's own /handoff stays excluded, so a draft before it is not sent with the handoff. #7480's host-side /handoff is not in bb 0.49 and the plugin keeps its own; its pill-delete cancel was already ported (a9aada1).
Port of get-bb/bb#7635 (2d04779a1). The composer's height tracker, editor cap and typeahead max-height observe through one shared ResizeObserver that runs every read before any write. lib/shared-resize-observer.ts is vendored from packages/shared-ui with its tests, less the case for useMeasuredValue, which this plugin does not have. bb 0.49's plugin runtime exposes the full react-dom namespace, so its flushSync resolves.
The fork base d4fa9cb is not on get-bb/bb's main; its content matches 21d5db72c. The plugin is now synced through 2d04779a1. Also corrects the stated BB and SDK requirement to match package.json.
Bare oxlint on the plugin now exits 0. Each is a reasoned suppression with precedent elsewhere in the repo: attachment videos carry no captions, the form delegates its children's keys and presses, the test fake mirrors BB's role-based picker DOM, and an object URL is created and revoked as one effect pair. Removes their lint-baseline entries.
Contributor
|
React Doctor found 1 new issue in 1 file · 1 warning · score 60 / 100 (Needs work) · 0 fixed · vs Reviewed by React Doctor for commit |
| @@ -0,0 +1,117 @@ | |||
| import { flushSync } from "react-dom"; | |||
Contributor
There was a problem hiding this comment.
React Doctor · react-doctor/no-flush-sync (warning)
flushSync forces an immediate update, which skips View Transitions and concurrent rendering.
Fix → flushSync forces an immediate update that skips View Transitions and concurrent rendering. Use startTransition for updates that are not urgent.
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.
BBP-14: syncs the t3-composer fork with get-bb/bb
plugins/composerthrough 2d04779a1.Why: our recorded base (d4fa9cb) isn't on get-bb/bb's main. By content the fork matches 21d5db72c, and upstream has moved on since.
Ported, one commit each:
@query of several words closes once nothing matches it.app.cssrule./handoffis still excluded.packages/shared-ui.Held:
/handoff: it isn't in bb 0.49, and the plugin keeps its own/handoff.bun auditflags none of this plugin's runtime dependencies at the versions our lockfile uses.Already in the fork: #6941.
Not relevant: #7313, which only changes bb's own lint config.
Also:
oxlintexits 0.Checks:
bun test scripts/.Summary by cubic
Syncs the
t3-composerfork with upstream BB'splugins/composer, porting five fixes and a shared resize observer, plus two local styling adjustments. Two upstream changes stay held: the host-side/handoff(needs a BB newer than 0.49) and dependency bumps (none of the plugin's runtime deps are flagged at resolved versions).Changes
@query once it settles with no matches; shortening it back reopens it only when something matches./handoffstays excluded.Written for commit d3f52d5. Summary will update on new commits.