Skip to content

Commit 6d24e22

Browse files
Make previous updates a dropdown (RooCodeInc#3265)
* Add Dropdown for previous updates * changeset
1 parent 8fae4e6 commit 6d24e22

File tree

2 files changed

+38
-18
lines changed

2 files changed

+38
-18
lines changed

.changeset/shy-goats-deliver.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Make Previous Updates in the Announcement a dropdown

webview-ui/src/components/chat/Announcement.tsx

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react"
22
import { CSSProperties, memo } from "react"
33
import { getAsVar, VSC_DESCRIPTION_FOREGROUND, VSC_INACTIVE_SELECTION_BACKGROUND } from "@/utils/vscStyles"
4+
import { Accordion, AccordionItem } from "@heroui/react"
45

56
interface AnnouncementProps {
67
version: string
@@ -60,24 +61,38 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
6061
<li>Added more checkpoints across the task, allowing you to restore from more than just file changes.</li>
6162
<li>Added support for rendering LaTeX in message responses. (Try asking Cline to show the quadratic formula)</li>
6263
</ul>
63-
{/* <h4 style={{ margin: "5px 0 5px" }}>Previous Updates:</h4>
64-
<ul style={ulStyle}>
65-
<li>
66-
<b>Global Cline Rules:</b> store multiple rules files in Documents/Cline/Rules to share between projects.
67-
</li>
68-
<li>
69-
<b>Cline Rules Popup:</b> New button in the chat area to view workspace and global cline rules files to plug
70-
and play specific rules for the task
71-
</li>
72-
<li>
73-
<b>Slash Commands:</b> Type <code>/</code> in chat to see the list of quick actions, like starting a new task
74-
(more coming soon!)
75-
</li>
76-
<li>
77-
<b>Edit Messages:</b> You can now edit a message you sent previously by clicking on it. Optionally restore
78-
your project when the message was sent!
79-
</li>
80-
</ul> */}
64+
<Accordion isCompact className="pl-0">
65+
<AccordionItem
66+
key="1"
67+
aria-label="Previous Updates"
68+
title="Previous Updates:"
69+
classNames={{
70+
trigger: "bg-transparent border-0 pl-0 pb-0 w-fit",
71+
title: "font-bold text-[var(--vscode-foreground)]",
72+
indicator:
73+
"text-[var(--vscode-foreground)] mb-0.5 -rotate-180 data-[open=true]:-rotate-90 rtl:rotate-0 rtl:data-[open=true]:-rotate-90",
74+
}}>
75+
<ul style={ulStyle}>
76+
<li>
77+
<b>Global Cline Rules:</b> store multiple rules files in Documents/Cline/Rules to share between
78+
projects.
79+
</li>
80+
<li>
81+
<b>Cline Rules Popup:</b> New button in the chat area to view workspace and global cline rules files
82+
to plug and play specific rules for the task
83+
</li>
84+
<li>
85+
<b>Slash Commands:</b> Type <code>/</code> in chat to see the list of quick actions, like starting a
86+
new task (more coming soon!)
87+
</li>
88+
<li>
89+
<b>Edit Messages:</b> You can now edit a message you sent previously by clicking on it. Optionally
90+
restore your project when the message was sent!
91+
</li>
92+
</ul>
93+
</AccordionItem>
94+
</Accordion>
95+
8196
{/*
8297
// Leave this here for an example of how to structure the announcement
8398
<ul style={{ margin: "0 0 8px", paddingLeft: "12px" }}>

0 commit comments

Comments
 (0)