Skip to content
Snippets Groups Projects
Verified Commit 3b81f319 authored by Zack Cuddy's avatar Zack Cuddy :two:
Browse files

Tanuki Bot - Rename UI to GitLab Chat

This change renames the
Tanuki Bot in the UI
to GitLab Chat while the
naming gets finalized and
approved.
parent d5f7af49
No related branches found
No related tags found
2 merge requests!122597doc/gitaly: Remove references to removed metrics,!118682Tanuki Bot - Rename UI to GitLab Chat
......@@ -38,7 +38,7 @@ export default {
shortcuts: __('Keyboard shortcuts'),
version: __('Your GitLab version'),
whatsnew: __("What's new"),
tanuki: __('Ask the Tanuki Bot'),
chat: __('Ask the GitLab Chat'),
},
props: {
sidebarData: {
......@@ -71,7 +71,7 @@ export default {
items: [
this.sidebarData.show_tanuki_bot && {
icon: 'tanuki',
text: this.$options.i18n.tanuki,
text: this.$options.i18n.chat,
action: this.showTanukiBotChat,
extraAttrs: {
...this.trackingAttrs('tanuki_bot_help_dropdown'),
......
......@@ -9,7 +9,7 @@ import TanukiBotChatInput from './tanuki_bot_chat_input.vue';
export default {
name: 'TanukiBotChatApp',
i18n: {
tanukiBot: s__('TanukiBot|Tanuki Bot'),
gitlabChat: s__('TanukiBot|GitLab Chat'),
experiment: __('Experiment'),
},
components: {
......@@ -45,7 +45,7 @@ export default {
<template #title>
<span class="gl-display-flex gl-align-items-center">
<gl-icon name="tanuki" class="gl-text-orange-500" />
<h3 class="gl-my-0 gl-mx-3">{{ $options.i18n.tanukiBot }}</h3>
<h3 class="gl-my-0 gl-mx-3">{{ $options.i18n.gitlabChat }}</h3>
<gl-badge variant="muted">{{ $options.i18n.experiment }}</gl-badge>
</span>
</template>
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe 'Tanuki Bot Chat', :js, feature_category: :global_search do
RSpec.describe 'GitLab Chat', :js, feature_category: :global_search do
let_it_be(:user) { create(:user) }
describe 'Feature enabled and available' do
......@@ -15,16 +15,16 @@
visit root_path
end
it 'opens a chat drawer to chat with Tanuki Bot' do
it 'opens a chat drawer to chat with GitLab Chat' do
page.within '[data-testid="super-sidebar"]' do
click_button('Help')
click_button('Ask the Tanuki Bot')
click_button('Ask the GitLab Chat')
end
wait_for_requests
page.within '[data-testid="tanuki-bot-chat-drawer"]' do
expect(page).to have_text('Tanuki Bot')
expect(page).to have_text('GitLab Chat')
end
end
end
......
......@@ -5910,7 +5910,7 @@ msgstr ""
msgid "Ask someone with write access to resolve it."
msgstr ""
 
msgid "Ask the Tanuki Bot"
msgid "Ask the GitLab Chat"
msgstr ""
 
msgid "Ask your group owner to set up a group runner."
......@@ -43707,13 +43707,13 @@ msgstr ""
msgid "TanukiBot|For example, %{linkStart}what is a fork?%{linkEnd}"
msgstr ""
 
msgid "TanukiBot|Give feedback"
msgid "TanukiBot|GitLab Chat"
msgstr ""
 
msgid "TanukiBot|Sources"
msgid "TanukiBot|Give feedback"
msgstr ""
 
msgid "TanukiBot|Tanuki Bot"
msgid "TanukiBot|Sources"
msgstr ""
 
msgid "TanukiBot|There was an error communicating with Tanuki Bot. Please reach out to GitLab support for more assistance or try again later."
......@@ -103,20 +103,20 @@ describe('HelpCenter component', () => {
jest.spyOn(wrapper.vm.$refs.dropdown, 'close');
});
it('shows Ask the Tanuki Bot with the help items via Portal', () => {
it('shows Ask the GitLab Chat with the help items', () => {
expect(findDropdownGroup(0).props('group').items).toEqual([
expect.objectContaining({
icon: 'tanuki',
text: HelpCenter.i18n.tanuki,
text: HelpCenter.i18n.chat,
extraAttrs: trackingAttrs('tanuki_bot_help_dropdown'),
}),
...DEFAULT_HELP_ITEMS,
]);
});
describe('when Ask the Tanuki Bot button is clicked', () => {
describe('when Ask the GitLab Chat button is clicked', () => {
beforeEach(() => {
findButton('Ask the Tanuki Bot').click();
findButton('Ask the GitLab Chat').click();
});
it('closes the dropdown', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment