mirror of
https://github.com/block/buzz.git
synced 2026-11-27 11:41:21 +00:00
## Summary - Make channel join/leave activity use the selected inline avatar-stack treatment. - Group related membership activity for one hour and preserve profile/overflow-name interactions. - Restore the virtualized day-divider handoff and align the sticky date behavior with the message timeline. ## Validation - `pnpm check` - `pnpm test` - `cargo test --manifest-path desktop/src-tauri/Cargo.toml` - Visual desktop screenshot captured with seeded membership activity --------- Signed-off-by: kenny lopez <klopez4212@gmail.com>
28 lines
714 B
TypeScript
28 lines
714 B
TypeScript
import type * as React from "react";
|
|
import { timelineRowReserveStyle } from "@/features/messages/lib/rowHeightEstimate";
|
|
import {
|
|
getTimelineItemKey,
|
|
type TimelineNonDayItem,
|
|
} from "@/features/messages/lib/timelineItems";
|
|
import { cn } from "@/shared/lib/cn";
|
|
|
|
export function TimelineRowShell({
|
|
children,
|
|
item,
|
|
useContentVisibility = true,
|
|
}: {
|
|
children: React.ReactNode;
|
|
item: TimelineNonDayItem;
|
|
useContentVisibility?: boolean;
|
|
}) {
|
|
return (
|
|
<div
|
|
className={cn(useContentVisibility && "timeline-row-cv")}
|
|
data-timeline-item-key={getTimelineItemKey(item)}
|
|
style={useContentVisibility ? timelineRowReserveStyle(item) : undefined}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|