Skip to content

Commit 85a938d

Browse files
authored
fix(amazonq): remove Welcome Page aws#4736
Remove onboarding page in favor of walkthrough aws#4739
1 parent 1d7d8f8 commit 85a938d

File tree

17 files changed

+3
-457
lines changed

17 files changed

+3
-457
lines changed

packages/amazonq/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,6 @@
612612
"title": "%AWS.amazonq.learnMore%",
613613
"category": "%AWS.amazonq.productName%"
614614
},
615-
{
616-
"command": "aws.amazonq.welcome",
617-
"title": "%AWS.command.q.welcome%",
618-
"category": "%AWS.amazonq.productName%"
619-
},
620615
{
621616
"command": "aws.dev.openMenu",
622617
"title": "Open Developer Menu",

packages/core/package.nls.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@
208208
"AWS.command.codewhisperer.signout": "Sign Out",
209209
"AWS.command.codewhisperer.reconnect": "Reconnect",
210210
"AWS.command.codewhisperer.openReferencePanel": "Open Code Reference Log",
211-
"AWS.command.q.welcome": "Amazon Q (Preview) Welcome Page",
212211
"AWS.command.q.transform.acceptChanges": "Accept",
213212
"AWS.command.q.transform.rejectChanges": "Reject",
214213
"AWS.command.q.transform.showChanges": "Show Proposed Changes",

packages/core/src/amazonq/activation.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ import { init as cwChatAppInit } from '../codewhispererChat/app'
1010
import { init as featureDevChatAppInit } from '../amazonqFeatureDev/app'
1111
import { init as gumbyChatAppInit } from '../amazonqGumby/app'
1212
import { AmazonQAppInitContext, DefaultAmazonQAppInitContext } from './apps/initContext'
13-
import { Commands, VsCodeCommandArg } from '../shared/vscode/commands2'
14-
import { MessagePublisher } from './messages/messagePublisher'
15-
import { welcome } from './onboardingPage'
13+
import { Commands } from '../shared/vscode/commands2'
1614
import { activateBadge } from './util/viewBadgeHandler'
17-
import { telemetry } from '../shared/telemetry/telemetry'
18-
import { focusAmazonQPanel } from '../auth/ui/vue/show'
1915
import { amazonQHelpUrl } from '../shared/constants'
2016
import { openAmazonQWalkthrough } from './onboardingPage/walkthrough'
2117
import { listCodeWhispererCommandsWalkthrough } from '../codewhisperer/ui/statusBarMenu'
@@ -32,8 +28,6 @@ export async function activate(context: ExtensionContext) {
3228
appInitContext.onDidChangeAmazonQVisibility
3329
)
3430

35-
const cwcWebViewToAppsPublisher = appInitContext.getWebViewToAppsMessagePublishers().get('cwc')!
36-
3731
context.subscriptions.push(
3832
window.registerWebviewViewProvider(AmazonQChatViewProvider.viewType, provider, {
3933
webviewOptions: {
@@ -45,7 +39,6 @@ export async function activate(context: ExtensionContext) {
4539
listCodeWhispererCommandsWalkthrough.register()
4640
)
4741

48-
amazonQWelcomeCommand.register(context, cwcWebViewToAppsPublisher)
4942
Commands.register('aws.amazonq.learnMore', () => {
5043
void vscode.env.openExternal(vscode.Uri.parse(amazonQHelpUrl))
5144
})
@@ -58,14 +51,3 @@ function registerApps(appInitContext: AmazonQAppInitContext) {
5851
featureDevChatAppInit(appInitContext)
5952
gumbyChatAppInit(appInitContext)
6053
}
61-
62-
export const amazonQWelcomeCommand = Commands.declare(
63-
{ id: 'aws.amazonq.welcome', compositeKey: { 1: 'source' } },
64-
(context: ExtensionContext, publisher: MessagePublisher<any>) => (_: VsCodeCommandArg, source: string) => {
65-
telemetry.ui_click.run(() => {
66-
void focusAmazonQPanel()
67-
welcome(context, publisher)
68-
telemetry.record({ elementId: 'toolkit_openedWelcomeToAmazonQPage', source })
69-
})
70-
}
71-
)

packages/core/src/amazonq/onboardingPage/index.ts

Lines changed: 0 additions & 244 deletions
This file was deleted.

packages/core/src/amazonq/onboardingPage/model.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/core/src/amazonq/webview/ui/connector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export interface ConnectorProps {
3838
onAsyncEventProgress: (tabID: string, inProgress: boolean, message: string | undefined) => void
3939
onQuickHandlerCommand: (tabID: string, command?: string, eventId?: string) => void
4040
onCWCContextCommandMessage: (message: ChatItem, command?: string) => string | undefined
41-
onCWCOnboardingPageInteractionMessage: (message: ChatItem) => string | undefined
4241
onError: (tabID: string, message: string, title: string) => void
4342
onWarning: (tabID: string, message: string, title: string) => void
4443
onFileComponentUpdate: (tabID: string, filePaths: DiffTreeFileInfo[], deletedFiles: DiffTreeFileInfo[]) => void

packages/core/src/amazonq/webview/ui/main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ export const createMynahUI = (ideApi: any, amazonQEnabled: boolean) => {
111111
quickActionHandler.handle({ command: '/clear' }, tabID)
112112
}
113113
},
114-
onCWCOnboardingPageInteractionMessage: (message: ChatItem): string | undefined => {
115-
return messageController.sendMessageToTab(message, 'cwc')
116-
},
117114
onCWCContextCommandMessage: (message: ChatItem, command?: string): string | undefined => {
118115
if (command === 'aws.amazonq.sendToPrompt') {
119116
return messageController.sendSelectedCodeToTab(message)

0 commit comments

Comments
 (0)