Skip to content

Commit b31cc4b

Browse files
cliffhallclaude
andcommitted
style(HistoryListPanel): move Clear button to top toolbar, match Export style
Moves the Clear affordance out of the "History (N)" section header and up to the panel toolbar alongside Export, where it now uses the same `Button variant="default"` styling. Order in the toolbar is now: ListToggle · Clear · Export. Clear is disabled when there are no unpinned entries to remove (pinned entries are intentionally preserved). ToolbarButton helper is unused after this change and dropped. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ce71111 commit b31cc4b

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

clients/web/src/components/groups/HistoryListPanel/HistoryListPanel.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ export interface HistoryListPanelProps {
2424
onTogglePin: (id: string) => void;
2525
}
2626

27-
const ToolbarButton = Button.withProps({
28-
variant: "subtle",
29-
size: "sm",
30-
});
31-
3227
const PanelContainer = Paper.withProps({
3328
withBorder: true,
3429
p: "lg",
@@ -107,6 +102,13 @@ export function HistoryListPanel({
107102
onToggle={() => setCompact((c) => !c)}
108103
/>
109104
)}
105+
<Button
106+
variant="default"
107+
onClick={onClearAll}
108+
disabled={unpinnedEntries.length === 0}
109+
>
110+
Clear
111+
</Button>
110112
<Button variant="default" onClick={onExport} disabled={!hasResults}>
111113
Export
112114
</Button>
@@ -138,12 +140,9 @@ export function HistoryListPanel({
138140

139141
{unpinnedEntries.length > 0 && (
140142
<>
141-
<Group justify="space-between">
142-
<Title order={5}>
143-
{formatHistoryTitle(unpinnedEntries.length)}
144-
</Title>
145-
<ToolbarButton onClick={onClearAll}>Clear</ToolbarButton>
146-
</Group>
143+
<Title order={5}>
144+
{formatHistoryTitle(unpinnedEntries.length)}
145+
</Title>
147146
{unpinnedEntries.map((entry) => (
148147
<HistoryEntry
149148
key={entry.id}

initialize-request.png

324 KB
Loading

pending-requests.png

471 KB
Loading

0 commit comments

Comments
 (0)