mirror of
https://github.com/block/buzz.git
synced 2026-11-29 04:32:08 +00:00
## Summary After #6396, Projects still split chrome across the workspace header, a copy-link control, and a labeled Actions group that mixed people, create, and metadata. This PR finishes that surface: the right-hand context box is unlabeled actions plus a Details group, people stacks and contribution heatmaps are gone from that box, Create review sits with Create task, and the top chrome is terminal / chat / info with no copy-link. Sent project context collapses to a pill, and review file diffs keep the last good git view instead of flashing empty while queries refetch. This also lands the remaining navigation polish that followed Part 3: overview and list presentation, readme and commit layout, and opening the latest matching conversation from the Channels tab without leaving the project. ### Related issue N/A. Related: #6396 ## Testing - Walked Files, Tasks, Reviews, task/review detail, overview tabs, and chrome chat vs info in the running desktop app - Pre-push: desktop typecheck, unit tests, Tauri checks, and file-size gate passed - Updated Projects smoke specs for the new context groups, Create review, chrome order, and removed copy-link control - Merged current `origin/main`; one conflict in discussion-channel rows kept conversation-panel navigation and took main's bounded channel-name lookup ## Post-Deploy Monitoring & Validation - validate Projects workspace chrome, context box, and review file diffs in the first staging Desktop session - healthy signals: context box shows unlabeled actions then Details, chat toggle sits between terminal and info, review diffs stay populated across selection changes - failure signals: missing Create review, restored heatmap/people in the context box, or empty Files Changed while the review is still selected; mitigate by reverting this PR --------- Signed-off-by: Thomas Petersen <thomasp@squareup.com>
63 lines
1.7 KiB
TypeScript
63 lines
1.7 KiB
TypeScript
import { Info, MessageCircle } from "lucide-react";
|
|
|
|
import { cn } from "@/shared/lib/cn";
|
|
import { Button } from "@/shared/ui/button";
|
|
|
|
export function ProjectsOverviewChromeActions({
|
|
chatOpen,
|
|
contextOpen,
|
|
onToggleChat,
|
|
onToggleContext,
|
|
sectionTitle,
|
|
}: {
|
|
chatOpen: boolean;
|
|
contextOpen: boolean;
|
|
onToggleChat: () => void;
|
|
onToggleContext: () => void;
|
|
sectionTitle: string;
|
|
}) {
|
|
return (
|
|
<>
|
|
<Button
|
|
aria-label={`Chat with an agent about ${sectionTitle}`}
|
|
aria-pressed={chatOpen}
|
|
className="h-7 w-7 text-sidebar-foreground hover:bg-sidebar-accent"
|
|
data-testid="projects-overview-chat-toggle"
|
|
onClick={onToggleChat}
|
|
size="icon"
|
|
title={`Chat with an agent about ${sectionTitle}`}
|
|
type="button"
|
|
variant="ghost"
|
|
>
|
|
<MessageCircle
|
|
className={cn(
|
|
"h-4 w-4 transition-opacity duration-200 ease-linear",
|
|
chatOpen ? "opacity-100" : "opacity-60",
|
|
)}
|
|
/>
|
|
</Button>
|
|
<Button
|
|
aria-label={
|
|
contextOpen ? "Hide project context" : "Show project context"
|
|
}
|
|
aria-pressed={contextOpen}
|
|
className="h-7 w-7 text-sidebar-foreground hover:bg-sidebar-accent"
|
|
data-testid="projects-overview-context-toggle"
|
|
onClick={onToggleContext}
|
|
size="icon"
|
|
title={contextOpen ? "Hide project context" : "Show project context"}
|
|
type="button"
|
|
variant="ghost"
|
|
>
|
|
<Info
|
|
className={cn(
|
|
"h-4 w-4 transition-opacity duration-200 ease-linear",
|
|
contextOpen ? "opacity-100" : "opacity-60",
|
|
)}
|
|
data-testid="projects-overview-context-icon"
|
|
/>
|
|
</Button>
|
|
</>
|
|
);
|
|
}
|