diff --git a/vscode/webviews/Chat.tsx b/vscode/webviews/Chat.tsx index 61767bf6eadb..c71eeb9f4b80 100644 --- a/vscode/webviews/Chat.tsx +++ b/vscode/webviews/Chat.tsx @@ -36,6 +36,7 @@ interface ChatboxProps { setView: (view: View) => void smartApplyEnabled?: boolean isPromptsV2Enabled?: boolean + isTeamsUpgradeCtaEnabled?: boolean } export const Chat: React.FunctionComponent> = ({ @@ -51,6 +52,7 @@ export const Chat: React.FunctionComponent setView, smartApplyEnabled, isPromptsV2Enabled, + isTeamsUpgradeCtaEnabled, }) => { const telemetryRecorder = useTelemetryRecorder() @@ -256,6 +258,7 @@ export const Chat: React.FunctionComponent IDE={userInfo.IDE} setView={setView} isPromptsV2Enabled={isPromptsV2Enabled} + isTeamsUpgradeCtaEnabled={isTeamsUpgradeCtaEnabled} /> diff --git a/vscode/webviews/CodyPanel.tsx b/vscode/webviews/CodyPanel.tsx index 0e304c025811..f4724141593a 100644 --- a/vscode/webviews/CodyPanel.tsx +++ b/vscode/webviews/CodyPanel.tsx @@ -138,6 +138,7 @@ export const CodyPanel: FunctionComponent = ({ smartApplyEnabled={smartApplyEnabled} isPromptsV2Enabled={isPromptsV2Enabled} setView={setView} + isTeamsUpgradeCtaEnabled={isTeamsUpgradeCtaEnabled} /> )} {view === View.History && ( diff --git a/vscode/webviews/chat/components/WelcomeMessage.tsx b/vscode/webviews/chat/components/WelcomeMessage.tsx index ab66232359cf..9a43f10bf27f 100644 --- a/vscode/webviews/chat/components/WelcomeMessage.tsx +++ b/vscode/webviews/chat/components/WelcomeMessage.tsx @@ -9,6 +9,7 @@ import { PromptMigrationWidget } from './../../components/promptsMigration/Promp import { clsx } from 'clsx' import styles from './WelcomeMessage.module.css' +import { WelcomeNotice } from './WelcomeNotice' const localStorageKey = 'chat.welcome-message-dismissed' @@ -16,12 +17,14 @@ interface WelcomeMessageProps { setView: (view: View) => void IDE: CodyIDE isPromptsV2Enabled?: boolean + isTeamsUpgradeCtaEnabled?: boolean } export const WelcomeMessage: FunctionComponent = ({ setView, IDE, isPromptsV2Enabled, + isTeamsUpgradeCtaEnabled, }) => { // Remove the old welcome message dismissal key that is no longer used. localStorage.removeItem(localStorageKey) @@ -32,7 +35,7 @@ export const WelcomeMessage: FunctionComponent = ({ } return ( -
+
{isPromptsV2Enabled && IDE !== CodyIDE.Web && ( )} @@ -48,7 +51,11 @@ export const WelcomeMessage: FunctionComponent = ({ telemetryLocation="WelcomeAreaPrompts" onSelect={item => runAction(item, setView)} /> - + {isTeamsUpgradeCtaEnabled && ( +
+ +
+ )}
+ +
+ graph_dark + graph_light + +
+ ) +} +;
+ +
diff --git a/vscode/webviews/graph_dark.svg b/vscode/webviews/graph_dark.svg new file mode 100644 index 000000000000..2223cd4bb243 --- /dev/null +++ b/vscode/webviews/graph_dark.svg @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vscode/webviews/graph_light.svg b/vscode/webviews/graph_light.svg new file mode 100644 index 000000000000..5ad909e4574a --- /dev/null +++ b/vscode/webviews/graph_light.svg @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +