mirror of
https://github.com/block/buzz.git
synced 2026-11-29 12:42:49 +00:00
fix(composer): preserve current activity host behavior
Keep the shared hover-delay policy and current channel activity host while adapting the unified strip. Remove the obsolete project-panel typing prop after thread typing moved into the composed activity payload. Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz> Co-authored-by: Princess Donut <0366ccd5ee09c2779a9d6bd6683daa17c16a508a51f6a7e7314018dab8fdc49b@buzz.block.builderlab.xyz> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
@@ -174,7 +174,7 @@ function useStripHoverPopover(): StripHoverPopover {
|
||||
cancelPending();
|
||||
timerRef.current = setTimeout(() => {
|
||||
setActive(pubkey);
|
||||
}, HOVER_OPEN_DELAY_MS);
|
||||
}, DEFAULT_POPOVER_HOVER_OPEN_DELAY_MS);
|
||||
},
|
||||
[cancelPending, setActive],
|
||||
);
|
||||
|
||||
@@ -134,34 +134,34 @@ export function ChannelComposerActivityRow({
|
||||
|
||||
return (
|
||||
<div className="flex min-w-0 flex-1 items-center overflow-visible">
|
||||
{/* One strip hosts both groups: working pills plus the typing group
|
||||
{/* One strip hosts both groups: working pills plus the typing group
|
||||
as the strip's trailing slot sibling, so they share the scroller,
|
||||
edge fades, and layout/enter/exit animations. When the row gets
|
||||
tight the strip scrolls horizontally (edge fades signal clipped
|
||||
items) rather than compressing. */}
|
||||
{pillBotPubkeys.length > 0 || combinedTypingPubkeys.length > 0 ? (
|
||||
<BotActivityComposerAction
|
||||
agents={agents}
|
||||
channelId={channelId}
|
||||
onOpenAgentSession={onOpenAgentSession}
|
||||
profiles={profiles}
|
||||
typingIndicator={
|
||||
combinedTypingPubkeys.length > 0 ? (
|
||||
<TypingIndicatorRow
|
||||
channel={channel}
|
||||
// The strip's slot owns spacing and the typing-only inset;
|
||||
// zero the base paddings and let the row shrink so the
|
||||
// lone-item slot can ellipsize the label.
|
||||
className="min-w-0 shrink px-0 py-0 sm:px-0"
|
||||
currentPubkey={currentPubkey}
|
||||
profiles={typingProfiles}
|
||||
typingPubkeys={combinedTypingPubkeys}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
workingBotPubkeys={pillBotPubkeys}
|
||||
/>
|
||||
) : null}
|
||||
{pillBotPubkeys.length > 0 || combinedTypingPubkeys.length > 0 ? (
|
||||
<BotActivityComposerAction
|
||||
agents={agents}
|
||||
channelId={channelId}
|
||||
onOpenAgentSession={onOpenAgentSession}
|
||||
profiles={profiles}
|
||||
typingIndicator={
|
||||
combinedTypingPubkeys.length > 0 ? (
|
||||
<TypingIndicatorRow
|
||||
channel={channel}
|
||||
// The strip's slot owns spacing and the typing-only inset;
|
||||
// zero the base paddings and let the row shrink so the
|
||||
// lone-item slot can ellipsize the label.
|
||||
className="min-w-0 shrink px-0 py-0 sm:px-0"
|
||||
currentPubkey={currentPubkey}
|
||||
profiles={typingProfiles}
|
||||
typingPubkeys={combinedTypingPubkeys}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
workingBotPubkeys={pillBotPubkeys}
|
||||
/>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -280,7 +280,6 @@ export function ProjectConversationPanel({
|
||||
threadHead={panelData.threadHead}
|
||||
threadReplies={panelData.visibleReplies}
|
||||
threadRepliesPending={false}
|
||||
threadTypingPubkeys={[]}
|
||||
widthPx={widthPx}
|
||||
/>,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user