Commit 83a181e3 authored by Vasilii Iakliushin's avatar Vasilii Iakliushin

Merge branch 'tw-ui-text-pushover' into 'master'

TW OKR: Review UI text Pushover integration

See merge request gitlab-org/gitlab!66631
parents 7a9fa438 b8c9c00d
...@@ -21,18 +21,46 @@ module Integrations ...@@ -21,18 +21,46 @@ module Integrations
def fields def fields
[ [
{ type: 'text', name: 'api_key', title: _('API key'), placeholder: s_('PushoverService|Your application key'), required: true }, {
{ type: 'text', name: 'user_key', placeholder: s_('PushoverService|Your user key'), required: true }, type: 'text',
{ type: 'text', name: 'device', placeholder: s_('PushoverService|Leave blank for all active devices') }, name: 'api_key',
{ type: 'select', name: 'priority', required: true, choices: title: _('API key'),
help: s_('PushoverService|Enter your application key.'),
placeholder: '',
required: true
},
{
type: 'text',
name: 'user_key',
title: _('User key'),
help: s_('PushoverService|Enter your user key.'),
placeholder: '',
required: true
},
{
type: 'text',
name: 'device',
title: _('Devices (optional)'),
help: s_('PushoverService|Leave blank for all active devices.'),
placeholder: ''
},
{
type: 'select',
name: 'priority',
required: true,
choices:
[ [
[s_('PushoverService|Lowest Priority'), -2], [s_('PushoverService|Lowest priority'), -2],
[s_('PushoverService|Low Priority'), -1], [s_('PushoverService|Low priority'), -1],
[s_('PushoverService|Normal Priority'), 0], [s_('PushoverService|Normal priority'), 0],
[s_('PushoverService|High Priority'), 1] [s_('PushoverService|High priority'), 1]
], ],
default_choice: 0 }, default_choice: 0
{ type: 'select', name: 'sound', choices: },
{
type: 'select',
name: 'sound',
choices:
[ [
['Device default sound', nil], ['Device default sound', nil],
['Pushover (default)', 'pushover'], ['Pushover (default)', 'pushover'],
...@@ -57,7 +85,8 @@ module Integrations ...@@ -57,7 +85,8 @@ module Integrations
['Pushover Echo (long)', 'echo'], ['Pushover Echo (long)', 'echo'],
['Up Down (long)', 'updown'], ['Up Down (long)', 'updown'],
['None (silent)', 'none'] ['None (silent)', 'none']
] } ]
}
] ]
end end
......
...@@ -11222,6 +11222,9 @@ msgstr "" ...@@ -11222,6 +11222,9 @@ msgstr ""
msgid "DevOps adoption" msgid "DevOps adoption"
msgstr "" msgstr ""
msgid "Devices (optional)"
msgstr ""
msgid "DevopsAdoption|%{adoptedCount}/%{featuresCount} %{title} features adopted" msgid "DevopsAdoption|%{adoptedCount}/%{featuresCount} %{title} features adopted"
msgstr "" msgstr ""
...@@ -26807,34 +26810,34 @@ msgstr "" ...@@ -26807,34 +26810,34 @@ msgstr ""
msgid "PushoverService|%{user_name} pushed new branch \"%{ref}\"." msgid "PushoverService|%{user_name} pushed new branch \"%{ref}\"."
msgstr "" msgstr ""
msgid "PushoverService|Get real-time notifications on your device." msgid "PushoverService|Enter your application key."
msgstr "" msgstr ""
msgid "PushoverService|High Priority" msgid "PushoverService|Enter your user key."
msgstr "" msgstr ""
msgid "PushoverService|Leave blank for all active devices" msgid "PushoverService|Get real-time notifications on your device."
msgstr "" msgstr ""
msgid "PushoverService|Low Priority" msgid "PushoverService|High priority"
msgstr "" msgstr ""
msgid "PushoverService|Lowest Priority" msgid "PushoverService|Leave blank for all active devices."
msgstr "" msgstr ""
msgid "PushoverService|Normal Priority" msgid "PushoverService|Low priority"
msgstr "" msgstr ""
msgid "PushoverService|See project %{project_full_name}" msgid "PushoverService|Lowest priority"
msgstr "" msgstr ""
msgid "PushoverService|Total commits count: %{total_commits_count}" msgid "PushoverService|Normal priority"
msgstr "" msgstr ""
msgid "PushoverService|Your application key" msgid "PushoverService|See project %{project_full_name}"
msgstr "" msgstr ""
msgid "PushoverService|Your user key" msgid "PushoverService|Total commits count: %{total_commits_count}"
msgstr "" msgstr ""
msgid "Quarters" msgid "Quarters"
...@@ -35700,6 +35703,9 @@ msgstr "" ...@@ -35700,6 +35703,9 @@ msgstr ""
msgid "User is not allowed to resolve thread" msgid "User is not allowed to resolve thread"
msgstr "" msgstr ""
msgid "User key"
msgstr ""
msgid "User key was successfully removed." msgid "User key was successfully removed."
msgstr "" msgstr ""
......
...@@ -14,7 +14,7 @@ RSpec.describe 'User activates Pushover' do ...@@ -14,7 +14,7 @@ RSpec.describe 'User activates Pushover' do
fill_in('API key', with: 'verySecret') fill_in('API key', with: 'verySecret')
fill_in('User key', with: 'verySecret') fill_in('User key', with: 'verySecret')
fill_in('Device', with: 'myDevice') fill_in('Device', with: 'myDevice')
select('High Priority', from: 'Priority') select('High priority', from: 'Priority')
select('Bike', from: 'Sound') select('Bike', from: 'Sound')
click_test_then_save_integration(expect_test_to_fail: false) click_test_then_save_integration(expect_test_to_fail: false)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment