Skip to content

Commit

Permalink
Rename from 'AI Copilot' to 'Copilot' (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller authored May 28, 2024
1 parent 99cac14 commit 1ac40f7
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mattermost AI Copilot Plugin
# Mattermost Copilot Plugin

> Mattermost plugin for local and third-party LLMs
Expand All @@ -13,7 +13,7 @@

## Background

The Mattermost AI Copilot Plugin adds functionality for local (self-hosted) and third-party (vendor-hosted) LLMs within Mattermost v9.6 and above. This plugin is currently experimental.
The Mattermost Copilot Plugin adds functionality for local (self-hosted) and third-party (vendor-hosted) LLMs within Mattermost v9.6 and above. This plugin is currently experimental.

Contributions and suggestions are welcome. See the [Contributing](#contributing) section for more details!

Expand Down
6 changes: 3 additions & 3 deletions docs/developer-setup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
git clone https://github.com/mattermost/mattermost-plugin-ai && cd mattermost-plugin-ai
```

1. Install Mattermost AI Copilot Plugin on Mattermost by following the [plugin developer workflow documentation](https://developers.mattermost.com/integrate/plugins/developer-workflow/) or using this command:
1. Install Mattermost Copilot Plugin on Mattermost by following the [plugin developer workflow documentation](https://developers.mattermost.com/integrate/plugins/developer-workflow/) or using this command:

```bash
MM_SERVICESETTINGS_SITEURL=http://localhost:8065 MM_ADMIN_USERNAME=<YOUR_USERNAME> MM_ADMIN_PASSWORD=<YOUR_PASSWORD> make deploy
```

1. Access Mattermost and configure the Mattermost AI Copilot Plugin:
1. Access Mattermost and configure the Mattermost Copilot Plugin:

1. Log in to Mattermost as an administrator
1. Follow the [Mattermost Product Documentation](https://docs.mattermost.com/configure/enable-ai-copilot.html) to set up the Mattermost AI Copilot Plugin.
1. Follow the [Mattermost Product Documentation](https://docs.mattermost.com/configure/enable-ai-copilot.html) to set up the Mattermost Copilot Plugin.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "mattermost-ai",
"name": "AI Copilot",
"name": "Copilot",
"description": "",
"homepage_url": "https://github.com/mattermost/mattermost-plugin-ai",
"support_url": "https://github.com/mattermost/mattermost-plugin-ai/issues",
Expand Down
2 changes: 1 addition & 1 deletion server/ai/prompts/standard_personality.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You are a helpful assistant called "AI Copilot" that responds on a Mattermost chat server called {{.ServerName}} owned by {{.CompanyName}}.
You are a helpful assistant called "Copilot" that responds on a Mattermost chat server called {{.ServerName}} owned by {{.CompanyName}}.

Current time and date in the user's location is {{.Time}}
{{if .CustomInstructions}}
Expand Down
2 changes: 1 addition & 1 deletion server/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (p *Plugin) MigrateServicesToBots() error {
// If there is one bot then give it the standard name
if len(existingConfig.Bots) == 1 {
existingConfig.Bots[0].Name = "ai"
existingConfig.Bots[0].DisplayName = "AI Copilot"
existingConfig.Bots[0].DisplayName = "Copilot"
}

out := map[string]any{}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/dropdown_info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const DropdownInfoOnlyVisibleToYou = () => {
return (
<DropdownMenuItemInfo>
<LightbulbOutlineIconStyled/>
{'AI Copilot posts responses in the right panel which will only be visible to you.'}
{'Copilot posts responses in the right panel which will only be visible to you.'}
</DropdownMenuItemInfo>
);
};
6 changes: 3 additions & 3 deletions webapp/src/components/rhs/rhs_new_tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ const RHSNewTab = ({botChannelId, selectPost, setCurrentTab}: Props) => {
return (
<NewQuestion>
<RHSImage/>
<QuestionTitle>{'Ask AI Copilot anything'}</QuestionTitle>
<QuestionDescription>{'The AI Copilot is here to help. Choose from the prompts below or write your own.'}</QuestionDescription>
<QuestionTitle>{'Ask Copilot anything'}</QuestionTitle>
<QuestionDescription>{'The Copilot is here to help. Choose from the prompts below or write your own.'}</QuestionDescription>
<QuestionOptions>
<OptionButton onClick={addBrainstormingIdeas}><LightbulbOutlineIcon/>{'Brainstorm ideas'}</OptionButton>
<OptionButton onClick={addMeetingAgenda}><FormatListNumberedIcon/>{'Meeting agenda'}</OptionButton>
Expand All @@ -125,7 +125,7 @@ const RHSNewTab = ({botChannelId, selectPost, setCurrentTab}: Props) => {
<CreatePost
data-testid='rhs-new-tab-create-post'
channelId={botChannelId}
placeholder={'Ask AI Copilot anything...'}
placeholder={'Ask Copilot anything...'}
rootId={'ai_copilot'}
onSubmit={async (p: any) => {
const post = {...p};
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/rhs/thread_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Props = {
onClick: () => void;
}

const DefaultTitle = 'Conversation with AI Copilot';
const DefaultTitle = 'Conversation with Copilot';

export default function ThreadItem(props: Props) {
const repliesText = props.repliesCount === 1 ? '1 reply' : `${props.repliesCount} replies`;
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/system_console/bots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const defaultNewBot = {
export const firstNewBot = {
...defaultNewBot,
name: 'ai',
displayName: 'AI Copilot',
displayName: 'Copilot',
};

type Props = {
Expand All @@ -49,7 +49,7 @@ const Bots = (props: Props) => {
e.preventDefault();
const id = Math.random().toString(36).substring(2, 22);
if (props.bots.length === 0) {
// Suggest the '@ai' and 'AI Copilot' name for the first bot
// Suggest the '@ai' and 'Copilot' name for the first bot
props.onChange([{
...firstNewBot,
id,
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const RHSTitle = () => {
return (
<RHSTitleContainer>
<IconAIContainer src={aiIcon}/>
{'AI Copilot'}
{'Copilot'}
<Pill>
{'BETA'}
</Pill>
Expand Down Expand Up @@ -150,8 +150,8 @@ export default class Plugin {
registry.registerChannelHeaderButtonAction(<IconAIContainer src={aiIcon}/>, () => {
store.dispatch(rhs.toggleRHSPlugin);
},
'AI Copilot',
'AI Copilot',
'Copilot',
'Copilot',
);
}

Expand Down

0 comments on commit 1ac40f7

Please sign in to comment.