Skip to content

Commit 53084ad

Browse files
authored
revert: feat: extend tabdata interface to include support for welcome screen (#411) (#420)
This reverts commit 68354d9.
1 parent cea7a71 commit 53084ad

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

chat-client-ui-types/src/uiContracts.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const AUTH_FOLLOW_UP_CLICKED = 'authFollowUpClicked'
2424
export const GENERIC_COMMAND = 'genericCommand'
2525
export const CHAT_OPTIONS = 'chatOptions'
2626
export const DISCLAIMER_ACKNOWLEDGED = 'disclaimerAcknowledged'
27-
export const WELCOME_COUNTER_UPDATE_MESSAGE = 'welcomeCounterUpdateMessage'
2827

2928
export type UiMessageCommand =
3029
| typeof SEND_TO_PROMPT
@@ -35,7 +34,6 @@ export type UiMessageCommand =
3534
| typeof CHAT_OPTIONS
3635
| typeof COPY_TO_CLIPBOARD
3736
| typeof DISCLAIMER_ACKNOWLEDGED
38-
| typeof WELCOME_COUNTER_UPDATE_MESSAGE
3937

4038
export interface UiMessage {
4139
command: UiMessageCommand

types/chat.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export interface ChatItemAction {
3030
disabled?: boolean
3131
description?: string
3232
type?: string
33-
status?: string
34-
id?: string
3533
}
3634

3735
export interface SourceLink {
@@ -109,8 +107,6 @@ export interface FileList {
109107
export interface ChatMessage {
110108
type?: 'answer' | 'prompt' | 'system-prompt' // will default to 'answer'
111109
body?: string
112-
buttons: ChatItemAction[]
113-
icon?: IconType
114110
messageId?: string
115111
canBeVoted?: boolean // requires messageId to be filled to show vote thumbs
116112
relatedContent?: {
@@ -167,22 +163,8 @@ export interface QuickActions {
167163
}
168164

169165
export interface TabData {
170-
title?: string
171-
tabHeader?: TabHeader
172-
promptInput?: PromptInput
173-
compactMode?: boolean
174-
messages: ChatMessage[]
175-
}
176-
177-
export interface TabHeader {
178-
icon?: IconType
179-
title?: string
180-
description?: string
181-
}
182-
183-
export interface PromptInput {
184166
placeholderText?: string
185-
label?: string
167+
messages: ChatMessage[]
186168
}
187169

188170
/**

0 commit comments

Comments
 (0)