From b3edd32aee47a0b123870de58664600acc17087b Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 5 Apr 2016 09:29:01 -0400 Subject: PLT-1750 Moved slash commands to backstage * Added slash commands to InstalledIntegrations page * Reset installed integration type filter if there is no longer any integrations of the selected type * Added pages to backstage to add slash commands * Cleaned up internationalization for slash commands * Added ability to regen slash command tokens from backstage * Removed Integrations tab from UserSettings --- webapp/i18n/en.json | 75 +++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 40 deletions(-) (limited to 'webapp/i18n/en.json') diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index f17ed5817..b66b079e7 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -27,6 +27,36 @@ "activity_log_modal.android": "Android", "activity_log_modal.androidNativeApp": "Android Native App", "activity_log_modal.iphoneNativeApp": "iPhone Native App", + "add_command.autocomplete": "Autocomplete", + "add_command.autocomplete.help": " Show this command in the autocomplete list.", + "add_command.autocompleteDescription": "Autocomplete Description", + "add_command.autocompleteDescription.help": "Optional short description of slash command for the autocomplete list.", + "add_command.autocompleteDescription.placeholder": "Example: \"Returns search results for patient records\"", + "add_command.autocompleteHint": "Autocomplete Hint", + "add_command.autocompleteHint.help": "Optional hint in the autocomplete list about parameters needed for command.", + "add_command.autocompleteHint.placeholder": "Example: [Patient Name]", + "add_command.description": "Description", + "add_command.displayName": "Display Name", + "add_command.header": "Add Slash Command", + "add_command.iconUrl": "Response Icon", + "add_command.iconUrl.placeholder": "https://www.example.com/myicon.png", + "add_command.iconUrl.help": "Choose a profile picture override for the post responses to this slash command. Enter the URL of a .png or .jpg file at least 128 pixels by 128 pixels.", + "add_command.method": "Request Method", + "add_command.method.get": "GET", + "add_command.method.help": "The type of command request issued to the Request URL.", + "add_command.method.post": "POST", + "add_command.trigger": "Command Trigger Word", + "add_command.trigger.help1": "Examples: /patient, /client, /employee", + "add_command.trigger.help2": "Reserved: /echo, /join, /logout, /me, /shrug", + "add_command.trigger.placeholder": "Command trigger e.g. \"hello\" not including the slash", + "add_command.triggerRequired": "A trigger word is required", + "add_command.username": "Response Username", + "add_command.username.help": "Choose a username override for responses for this slash command. Usernames can consist of up to 22 characters consisting of lowercase letters, numbers and they symbols \"-\", \"_\", and \".\" .", + "add_command.username.placeholder": "Username", + "add_command.url": "Request URL", + "add_command.url.help": "The callback URL to receive the HTTP POST or GET event request when the slash command is run.", + "add_command.url.placeholder": "Must start with http:// or https://", + "add_command.urlRequired": "A request URL is required", "add_incoming_webhook.cancel": "Cancel", "add_incoming_webhook.channel": "Channel", "add_incoming_webhook.channelRequired": "A valid channel is required", @@ -35,6 +65,8 @@ "add_incoming_webhook.name": "Name", "add_incoming_webhook.save": "Save", "add_integration.header": "Add Integration", + "add_integration.command.description": "Create slash commands to send events to external integrations and receive a response.", + "add_integration.command.title": "Slash Command", "add_integration.incomingWebhook.description": "Create webhook URLs for use in external integrations.", "add_integration.incomingWebhook.title": "Incoming Webhook", "add_integration.outgoingWebhook.description": "Create webhooks to send new message events to an external integration.", @@ -588,6 +620,7 @@ "backstage_navbar.backToMattermost": "Back to {siteName}", "backstage_sidebar.integrations": "Integrations", "backstage_sidebar.integrations.add": "Add Integration", + "backstage_sidebar.integrations.add.command": "Outgoing Webhook", "backstage_sidebar.integrations.add.incomingWebhook": "Incoming Webhook", "backstage_sidebar.integrations.add.outgoingWebhook": "Outgoing Webhook", "backstage_sidebar.integrations.installed": "Installed Integrations", @@ -817,6 +850,8 @@ "installed_integrations.creation": "Created by {creator} on {createAt, date, full}", "installed_integrations.delete": "Delete", "installed_integrations.header": "Installed Integrations", + "installed_integrations.commandType": "(Slash Command)", + "installed_integrations.commandsFilter": "Slash Commands ({count})", "installed_integrations.incomingWebhookType": "(Incoming Webhook)", "installed_integrations.incomingWebhooksFilter": "Incoming Webhooks ({count})", "installed_integrations.outgoingWebhookType": "(Outgoing Webhook)", @@ -1222,42 +1257,6 @@ "user.settings.advance.sendTitle": "Send messages on Ctrl + Enter", "user.settings.advance.slashCmd_autocmp": "Enable external application to offer slash command autocomplete", "user.settings.advance.title": "Advanced Settings", - "user.settings.cmds.add": "Add", - "user.settings.cmds.add_desc": "Create slash commands to send events to external integrations and receive a response. For example typing `/patient Joe Smith` could bring back search results from your internal health records management system for the name “Joe Smith”. Please see Slash commands documentation for detailed instructions. View all slash commands configured on this team below.", - "user.settings.cmds.add_display_name.placeholder": "Example: \"Search patient records\"", - "user.settings.cmds.add_new": "Add a new command", - "user.settings.cmds.add_trigger.placeholder": "Command trigger e.g. \"hello\" not including the slash", - "user.settings.cmds.add_username.placeholder": "Username", - "user.settings.cmds.auto_complete": "Autocomplete: ", - "user.settings.cmds.auto_complete.no": "no", - "user.settings.cmds.auto_complete.yes": "yes", - "user.settings.cmds.auto_complete_desc": "Autocomplete Description: ", - "user.settings.cmds.auto_complete_desc.placeholder": "Example: \"Returns search results for patient records\"", - "user.settings.cmds.auto_complete_desc_desc": "Optional short description of slash command for the autocomplete list.", - "user.settings.cmds.auto_complete_help": " Show this command in the autocomplete list.", - "user.settings.cmds.auto_complete_hint": "Autocomplete Hint: ", - "user.settings.cmds.auto_complete_hint.placeholder": "Example: [Patient Name]", - "user.settings.cmds.auto_complete_hint_desc": "Optional hint in the autocomplete list about parameters needed for command.", - "user.settings.cmds.cmd_display_name": "Brief description of slash command to show in listings.", - "user.settings.cmds.display_name": "Descriptive Label: ", - "user.settings.cmds.existing": "Existing commands", - "user.settings.cmds.icon_url": "Response Icon: ", - "user.settings.cmds.icon_url_desc": "Choose a profile picture override for the post responses to this slash command. Enter the URL of a .png or .jpg file at least 128 pixels by 128 pixels.", - "user.settings.cmds.none": "None", - "user.settings.cmds.regen": "Regen Token", - "user.settings.cmds.request_type": "Request Method: ", - "user.settings.cmds.request_type_desc": "The type of command request issued to the Request URL.", - "user.settings.cmds.request_type_get": "GET", - "user.settings.cmds.request_type_post": "POST", - "user.settings.cmds.slashCmd_autocmp": "Enable external application to offer autocomplete", - "user.settings.cmds.token": "Token: ", - "user.settings.cmds.trigger": "Command Trigger Word: ", - "user.settings.cmds.trigger_desc": "Examples: /patient, /client, /employee Reserved: /echo, /join, /logout, /me, /shrug", - "user.settings.cmds.url": "Request URL: ", - "user.settings.cmds.url.placeholder": "Must start with http:// or https://", - "user.settings.cmds.url_desc": "The callback URL to receive the HTTP POST or GET event request when the slash command is run.", - "user.settings.cmds.username": "Response Username: ", - "user.settings.cmds.username_desc": "Choose a username override for responses for this slash command. Usernames can consist of up to 22 characters consisting of lowercase letters, numbers and they symbols \"-\", \"_\", and \".\" .", "user.settings.custom_theme.awayIndicator": "Away Indicator", "user.settings.custom_theme.buttonBg": "Button BG", "user.settings.custom_theme.buttonColor": "Button Text", @@ -1344,9 +1343,6 @@ "user.settings.import_theme.importHeader": "Import Slack Theme", "user.settings.import_theme.submit": "Submit", "user.settings.import_theme.submitError": "Invalid format, please try copying and pasting in again.", - "user.settings.integrations.commands": "Slash Commands", - "user.settings.integrations.commandsDescription": "Manage your slash commands", - "user.settings.integrations.title": "Integration Settings", "user.settings.languages.change": "Change interface language", "user.settings.mfa.add": "Add MFA to your account", "user.settings.mfa.addHelp": "To add multi-factor authentication to your account you must have a smartphone with Google Authenticator installed.", @@ -1362,7 +1358,6 @@ "user.settings.modal.developer": "Developer", "user.settings.modal.display": "Display", "user.settings.modal.general": "General", - "user.settings.modal.integrations": "Integrations", "user.settings.modal.notifications": "Notifications", "user.settings.modal.security": "Security", "user.settings.modal.title": "Account Settings", -- cgit v1.2.3-1-g7c22