|
1 | 1 | import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react" |
2 | 2 | import { CSSProperties, memo } from "react" |
3 | 3 | import { getAsVar, VSC_DESCRIPTION_FOREGROUND, VSC_INACTIVE_SELECTION_BACKGROUND } from "@/utils/vscStyles" |
| 4 | +import { Accordion, AccordionItem } from "@heroui/react" |
4 | 5 |
|
5 | 6 | interface AnnouncementProps { |
6 | 7 | version: string |
@@ -60,24 +61,38 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { |
60 | 61 | <li>Added more checkpoints across the task, allowing you to restore from more than just file changes.</li> |
61 | 62 | <li>Added support for rendering LaTeX in message responses. (Try asking Cline to show the quadratic formula)</li> |
62 | 63 | </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 | + |
81 | 96 | {/* |
82 | 97 | // Leave this here for an example of how to structure the announcement |
83 | 98 | <ul style={{ margin: "0 0 8px", paddingLeft: "12px" }}> |
|
0 commit comments