Skip to content

Commit b00e310

Browse files
committed
Rename apply-chat-response to apply-response throughout the codebase
- rename 'apply chat response' to 'apply response'
1 parent 9526fc5 commit b00e310

447 files changed

Lines changed: 208 additions & 153 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/browser/src/background/message-handler.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
WebSocketMessage,
33
InitializeChatMessage,
4-
ApplyChatResponseMessage
4+
ApplyResponseMessage
55
} from '@shared/types/websocket-message'
66
import browser from 'webextension-polyfill'
77
import { send_message_to_server } from './websocket'
@@ -177,14 +177,14 @@ export const setup_message_listeners = () => {
177177
if (is_message(message)) {
178178
if (message.action == 'chat-initialized') {
179179
handle_chat_initialized()
180-
} else if (message.action == 'apply-chat-response') {
180+
} else if (message.action == 'apply-response') {
181181
send_message_to_server({
182-
action: 'apply-chat-response',
182+
action: 'apply-response',
183183
client_id: message.client_id,
184184
raw_instructions: message.raw_instructions,
185185
edit_format: message.edit_format,
186186
url: message.url
187-
} as ApplyChatResponseMessage)
187+
} as ApplyResponseMessage)
188188
} else if (message.action == 'finished-responding') {
189189
if (sender.tab?.id && sender.tab.id == last_opened_tab_id) {
190190
is_finished_responding = true

‎apps/browser/src/content-scripts/send-prompt-content-script/utils/add-apply-response-button.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import browser from 'webextension-polyfill'
44
import { apply_response_icon } from '../constants/apply-response-icon'
55
import { apply_response_button_title } from '../constants/dictionary'
66
import {
7-
apply_chat_response_button_style,
7+
apply_response_button_style,
88
set_button_disabled_state
99
} from './apply-response-styles'
1010
import { show_response_ready_notification } from './show-response-ready-notification'
@@ -40,7 +40,7 @@ export function add_apply_response_button(params: {
4040
apply_response_button.innerHTML = apply_response_icon
4141
apply_response_button.classList.add('cwc-apply-response-button')
4242
apply_response_button.title = apply_response_button_title
43-
apply_chat_response_button_style(apply_response_button)
43+
apply_response_button_style(apply_response_button)
4444
if (params.customize_button) params.customize_button(apply_response_button)
4545

4646
apply_response_button.addEventListener('click', async () => {
@@ -49,7 +49,7 @@ export function add_apply_response_button(params: {
4949
await params.perform_copy(params.footer)
5050
await new Promise((resolve) => setTimeout(resolve, 500))
5151
browser.runtime.sendMessage<Message>({
52-
action: 'apply-chat-response',
52+
action: 'apply-response',
5353
client_id: params.client_id,
5454
raw_instructions: params.raw_instructions,
5555
edit_format: params.edit_format,

‎apps/browser/src/content-scripts/send-prompt-content-script/utils/apply-response-styles.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const apply_chat_response_button_style = (button: HTMLButtonElement) => {
1+
export const apply_response_button_style = (button: HTMLButtonElement) => {
22
button.style.margin = '4px 8px'
33
button.style.padding = '6px 9px'
44
button.style.borderRadius = '999px'

‎apps/browser/src/types/messages.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ type ChatInitializedMessage = {
22
action: 'chat-initialized'
33
}
44

5-
type ApplyChatResponseMessage = {
6-
action: 'apply-chat-response'
5+
type ApplyResponseMessage = {
6+
action: 'apply-response'
77
client_id: number
88
raw_instructions?: string
99
edit_format?: string
@@ -16,5 +16,5 @@ type FinishedRespondingMessage = {
1616

1717
export type Message =
1818
| ChatInitializedMessage
19-
| ApplyChatResponseMessage
19+
| ApplyResponseMessage
2020
| FinishedRespondingMessage

‎apps/editor/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@
250250
"icon": "$(remove)"
251251
},
252252
{
253-
"command": "codeWebChat.applyChatResponse",
254-
"title": "%codeWebChat.applyChatResponse.title%",
253+
"command": "codeWebChat.applyResponse",
254+
"title": "%codeWebChat.applyResponse.title%",
255255
"category": "Code Web Chat"
256256
},
257257
{

‎apps/editor/package.nls.bg.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"codeWebChat.saveFileSelection.title": "Запазване на избора на файлове",
33
"codeWebChat.restoreFileSelection.title": "Възстановяване на избора на файлове",
4-
"codeWebChat.applyChatResponse.title": "Приложи отговор от чата",
4+
"codeWebChat.applyResponse.title": "Приложи отговор от чата",
55
"codeWebChat.copyMarkdown.title": "Копирай Markdown",
66
"codeWebChat.history.title": "История",
77
"codeWebChat.undoSelection.title": "Отмени избора",

‎apps/editor/package.nls.cs.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"codeWebChat.saveFileSelection.title": "Uložit výběr souborů",
33
"codeWebChat.restoreFileSelection.title": "Obnovit výběr souborů",
4-
"codeWebChat.applyChatResponse.title": "Použít odpověď chatu",
4+
"codeWebChat.applyResponse.title": "Použít odpověď chatu",
55
"codeWebChat.copyMarkdown.title": "Kopírovat Markdown",
66
"codeWebChat.history.title": "Historie",
77
"codeWebChat.undoSelection.title": "Zpět výběr",

‎apps/editor/package.nls.de.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"codeWebChat.saveFileSelection.title": "Dateiauswahl speichern",
33
"codeWebChat.restoreFileSelection.title": "Dateiauswahl wiederherstellen",
4-
"codeWebChat.applyChatResponse.title": "Chat-Antwort anwenden",
4+
"codeWebChat.applyResponse.title": "Chat-Antwort anwenden",
55
"codeWebChat.copyMarkdown.title": "Markdown kopieren",
66
"codeWebChat.history.title": "Verlauf",
77
"codeWebChat.undoSelection.title": "Auswahl rückgängig machen",

‎apps/editor/package.nls.es.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"codeWebChat.saveFileSelection.title": "Guardar selección de archivos",
33
"codeWebChat.restoreFileSelection.title": "Restaurar selección de archivos",
4-
"codeWebChat.applyChatResponse.title": "Aplicar respuesta del chat",
4+
"codeWebChat.applyResponse.title": "Aplicar respuesta del chat",
55
"codeWebChat.copyMarkdown.title": "Copiar Markdown",
66
"codeWebChat.history.title": "Historial",
77
"codeWebChat.undoSelection.title": "Deshacer selección",

‎apps/editor/package.nls.fr.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"codeWebChat.saveFileSelection.title": "Enregistrer la sélection de fichiers",
33
"codeWebChat.restoreFileSelection.title": "Restaurer la sélection de fichiers",
4-
"codeWebChat.applyChatResponse.title": "Appliquer la réponse du chat",
4+
"codeWebChat.applyResponse.title": "Appliquer la réponse du chat",
55
"codeWebChat.copyMarkdown.title": "Copier le Markdown",
66
"codeWebChat.history.title": "Historique",
77
"codeWebChat.undoSelection.title": "Annuler la sélection",

0 commit comments

Comments
 (0)