Changeset bump and announcement update (#6290)
Co-authored-by: Kevin Bond <kevin@Mac.hsd1.ca.comcast.net>
This commit is contained in:
1 parent
90ab59d8f5
commit
981fe9cf09
2 files changed
+57
-38
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"claude-dev": patch
|
||||
---
|
||||
|
||||
Changeset bump + Announcement banner update
|
||||
@@ -1,11 +1,12 @@
|
||||
import { Accordion, AccordionItem } from "@heroui/react"
|
||||
import { EmptyRequest } from "@shared/proto/cline/common"
|
||||
import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react"
|
||||
import { CSSProperties, memo } from "react"
|
||||
import { CSSProperties, memo, useState } from "react"
|
||||
import { useClineAuth } from "@/context/ClineAuthContext"
|
||||
import { useExtensionState } from "@/context/ExtensionStateContext"
|
||||
import { AccountServiceClient } from "@/services/grpc-client"
|
||||
import { getAsVar, VSC_DESCRIPTION_FOREGROUND, VSC_INACTIVE_SELECTION_BACKGROUND } from "@/utils/vscStyles"
|
||||
import { useApiConfigurationHandlers } from "../settings/utils/useApiConfigurationHandlers"
|
||||
|
||||
interface AnnouncementProps {
|
||||
version: string
|
||||
@@ -21,8 +22,8 @@ const containerStyle: CSSProperties = {
|
||||
flexShrink: 0,
|
||||
}
|
||||
const closeIconStyle: CSSProperties = { position: "absolute", top: "8px", right: "8px" }
|
||||
const h3TitleStyle: CSSProperties = { margin: "0 0 8px" }
|
||||
const ulStyle: CSSProperties = { margin: "0 0 8px", paddingLeft: "12px" }
|
||||
const h3TitleStyle: CSSProperties = { margin: "0 0 8px", fontWeight: "bold" }
|
||||
const ulStyle: CSSProperties = { margin: "0 0 8px", paddingLeft: "12px", listStyleType: "disc" }
|
||||
const _accountIconStyle: CSSProperties = { fontSize: 11 }
|
||||
const hrStyle: CSSProperties = {
|
||||
height: "1px",
|
||||
@@ -41,8 +42,29 @@ Patch releases (3.19.1 → 3.19.2) will not trigger new announcements.
|
||||
const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
|
||||
const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0
|
||||
const { clineUser } = useClineAuth()
|
||||
const { apiConfiguration } = useExtensionState()
|
||||
const { apiConfiguration, openRouterModels, setShowChatModelSelector } = useExtensionState()
|
||||
const user = apiConfiguration?.clineAccountId ? clineUser : undefined
|
||||
const { handleFieldsChange } = useApiConfigurationHandlers()
|
||||
|
||||
const [didClickGrokCodeButton, setDidClickGrokCodeButton] = useState(false)
|
||||
|
||||
const setGrokCodeFast1 = () => {
|
||||
const modelId = "x-ai/grok-code-fast-1"
|
||||
// set both plan and act modes to use grok-code-fast-1
|
||||
handleFieldsChange({
|
||||
planModeOpenRouterModelId: modelId,
|
||||
actModeOpenRouterModelId: modelId,
|
||||
planModeOpenRouterModelInfo: openRouterModels[modelId],
|
||||
actModeOpenRouterModelInfo: openRouterModels[modelId],
|
||||
planModeApiProvider: "cline",
|
||||
actModeApiProvider: "cline",
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
setDidClickGrokCodeButton(true)
|
||||
setShowChatModelSelector(true)
|
||||
}, 10)
|
||||
}
|
||||
|
||||
const handleShowAccount = () => {
|
||||
AccountServiceClient.accountLoginClicked(EmptyRequest.create()).catch((err) =>
|
||||
@@ -59,45 +81,37 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
|
||||
🎉{" "}New in v{minorVersion}
|
||||
</h3>
|
||||
<h3 style={h3TitleStyle}>JetBrains Support is Live!</h3>
|
||||
<ul style={ulStyle}>
|
||||
<li>
|
||||
Our #1 most requested feature is here! Use Cline natively in IntelliJ IDEA, PyCharm, WebStorm, Android Studio,
|
||||
GoLand, PhpStorm, and all JetBrains IDEs. Same powerful AI coding, now in your preferred development
|
||||
environment.
|
||||
</li>
|
||||
<br></br>
|
||||
<VSCodeLink
|
||||
href="https://cline.bot/jetbrains"
|
||||
style={{
|
||||
display: "inline-block",
|
||||
padding: "8px 16px",
|
||||
backgroundColor: "var(--vscode-button-background)",
|
||||
color: "var(--vscode-button-foreground)",
|
||||
border: "1px solid var(--vscode-button-border)",
|
||||
borderRadius: "2px",
|
||||
textDecoration: "none",
|
||||
fontSize: "13px",
|
||||
fontFamily: "var(--vscode-font-family)",
|
||||
cursor: "pointer",
|
||||
marginBottom: "16px",
|
||||
}}>
|
||||
Get Cline for JetBrains!
|
||||
</VSCodeLink>
|
||||
|
||||
<li>
|
||||
<b>Extended Grok Promotion:</b> Free grok-code-fast-1 access extended! We've found this model to be improving
|
||||
incredibly fast, and it's still available at no cost
|
||||
</li>
|
||||
<li>
|
||||
<b>Accesibility Improvements:</b> Improved screen reader support throughout Cline
|
||||
</li>
|
||||
</ul>
|
||||
Our #1 most requested feature is here! Use Cline natively in IntelliJ IDEA, PyCharm, WebStorm, Android Studio, GoLand,
|
||||
PhpStorm, and all JetBrains IDEs. Same powerful AI coding, now in your preferred development environment.
|
||||
<div style={{ margin: "12px 0" }} />
|
||||
<VSCodeLink
|
||||
href="https://cline.bot/jetbrains"
|
||||
style={{
|
||||
padding: "4px 8px",
|
||||
backgroundColor: "var(--vscode-button-background)",
|
||||
color: "var(--vscode-button-foreground)",
|
||||
borderRadius: "2px",
|
||||
}}>
|
||||
Get Cline for JetBrains!
|
||||
</VSCodeLink>
|
||||
<div style={{ margin: "12px 0" }} />
|
||||
<b>Extended Grok Promotion:</b> Free grok-code-fast-1 access extended! We've found this model to be improving
|
||||
incredibly fast, and it's still available at no cost
|
||||
<div style={{ margin: "12px 0" }} />
|
||||
<b>Accesibility Improvements:</b> Improved screen reader support throughout Cline
|
||||
<div style={{ margin: "18px 0" }} />
|
||||
{!user && (
|
||||
{user ? (
|
||||
!didClickGrokCodeButton ? (
|
||||
<VSCodeButton appearance="primary" onClick={setGrokCodeFast1}>
|
||||
Try grok-code-fast-1 (free)
|
||||
</VSCodeButton>
|
||||
) : null
|
||||
) : (
|
||||
<VSCodeButton appearance="secondary" onClick={handleShowAccount}>
|
||||
Sign Up with Cline
|
||||
</VSCodeButton>
|
||||
)}
|
||||
<div style={{ margin: "12px 0" }} />
|
||||
<div style={{ margin: "-8px 0 -3px 0" }}>
|
||||
<Accordion className="pl-0" isCompact>
|
||||
<AccordionItem
|
||||
|
||||
Reference in new issue
Block a user