Commit e6db32b3 authored by Vitaly Slobodin's avatar Vitaly Slobodin Committed by Mayra Cabrera

Rename Active Users to Billable Users

Rename Active Users to Billable Users
to help customers in understanding
what they pay for.

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/233823
parent 7fc982fc
...@@ -50,11 +50,9 @@ ...@@ -50,11 +50,9 @@
= s_('AdminArea|Bots') = s_('AdminArea|Bots')
%td.p-3.text-right %td.p-3.text-right
= @users_statistics&.bots.to_i = @users_statistics&.bots.to_i
%tr.bg-gray-light.gl-text-gray-900 %tr.bg-gray-light.gl-text-gray-900
%td.p-3 %td.p-3
%strong %strong
= s_('AdminArea|Active users')
= render_if_exists 'admin/dashboard/billable_users_text' = render_if_exists 'admin/dashboard/billable_users_text'
%td.p-3.text-right %td.p-3.text-right
%strong %strong
......
- if License.current&.paid? = s_('AdminArea|Billable users')
= "(#{s_('AdminArea|Billable users')})"
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
.info-well.dark-well.gl-mb-0 .info-well.dark-well.gl-mb-0
.well-segment.well-centered .well-segment.well-centered
%h3.center %h3.center
= _('Active Users:') = _('Billable Users:')
= number_with_delimiter current_active_user_count = number_with_delimiter current_active_user_count
%hr %hr
%p %p
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
%th= _('Uploaded on') %th= _('Uploaded on')
%th= _('Valid from') %th= _('Valid from')
%th= _('Expires on') %th= _('Expires on')
%th= _('Active users') %th= _('Users in License')
%tbody %tbody
- @licenses.each do |license| - @licenses.each do |license|
%tr{ class: ('gl-bg-blue-50 font-weight-bold gl-text-blue-500' if license == @license), data: { testid: ('license-current' if license == @license) } } %tr{ class: ('gl-bg-blue-50 font-weight-bold gl-text-blue-500' if license == @license), data: { testid: ('license-current' if license == @license) } }
......
---
title: Rename Active Users to Billable Users
merge_request: 42638
author:
type: added
...@@ -64,9 +64,9 @@ RSpec.describe 'Admin Dashboard' do ...@@ -64,9 +64,9 @@ RSpec.describe 'Admin Dashboard' do
expect(page).to have_content("Users with highest role Maintainer 6") expect(page).to have_content("Users with highest role Maintainer 6")
expect(page).to have_content("Users with highest role Owner 5") expect(page).to have_content("Users with highest role Owner 5")
expect(page).to have_content("Bots 2") expect(page).to have_content("Bots 2")
expect(page).to have_content("Active users (Billable users) 71")
expect(page).to have_content("Blocked users 7") expect(page).to have_content("Blocked users 7")
expect(page).to have_content("Total users 78") expect(page).to have_content("Total users 78")
expect(page).to have_content("Billable users 71")
end end
end end
end end
...@@ -47,7 +47,7 @@ RSpec.describe 'admin/dashboard/index.html.haml' do ...@@ -47,7 +47,7 @@ RSpec.describe 'admin/dashboard/index.html.haml' do
render render
expect(rendered).to have_content "Users in License:" expect(rendered).to have_content "Users in License:"
expect(rendered).to have_content "Active Users" expect(rendered).to have_content "Billable Users"
expect(rendered).to have_content "Maximum Users" expect(rendered).to have_content "Maximum Users"
expect(rendered).to have_content "Users over License" expect(rendered).to have_content "Users over License"
end end
......
...@@ -1465,12 +1465,6 @@ msgstr "" ...@@ -1465,12 +1465,6 @@ msgstr ""
msgid "Active Sessions" msgid "Active Sessions"
msgstr "" msgstr ""
msgid "Active Users:"
msgstr ""
msgid "Active users"
msgstr ""
msgid "Activity" msgid "Activity"
msgstr "" msgstr ""
...@@ -3982,6 +3976,9 @@ msgstr "" ...@@ -3982,6 +3976,9 @@ msgstr ""
msgid "Bi-weekly code coverage" msgid "Bi-weekly code coverage"
msgstr "" msgstr ""
msgid "Billable Users:"
msgstr ""
msgid "Billing" msgid "Billing"
msgstr "" msgstr ""
...@@ -27971,6 +27968,9 @@ msgstr "" ...@@ -27971,6 +27968,9 @@ msgstr ""
msgid "Users" msgid "Users"
msgstr "" msgstr ""
msgid "Users in License"
msgstr ""
msgid "Users in License:" msgid "Users in License:"
msgstr "" msgstr ""
......
...@@ -28,11 +28,9 @@ RSpec.describe 'admin visits dashboard' do ...@@ -28,11 +28,9 @@ RSpec.describe 'admin visits dashboard' do
describe 'Users statistic' do describe 'Users statistic' do
let_it_be(:users_statistics) { create(:users_statistics) } let_it_be(:users_statistics) { create(:users_statistics) }
let_it_be(:users_count_label) { Gitlab.ee? ? 'Billable users 71' : 'Active users 71' }
it 'shows correct amounts of users', :aggregate_failures do it 'shows correct amounts of users', :aggregate_failures do
expected_active_users_text = Gitlab.ee? ? 'Active users (Billable users) 71' : 'Active users 71'
sign_in(create(:admin))
visit admin_dashboard_stats_path visit admin_dashboard_stats_path
expect(page).to have_content('Users without a Group and Project 23') expect(page).to have_content('Users without a Group and Project 23')
...@@ -42,9 +40,9 @@ RSpec.describe 'admin visits dashboard' do ...@@ -42,9 +40,9 @@ RSpec.describe 'admin visits dashboard' do
expect(page).to have_content('Users with highest role Maintainer 6') expect(page).to have_content('Users with highest role Maintainer 6')
expect(page).to have_content('Users with highest role Owner 5') expect(page).to have_content('Users with highest role Owner 5')
expect(page).to have_content('Bots 2') expect(page).to have_content('Bots 2')
expect(page).to have_content(expected_active_users_text)
expect(page).to have_content('Blocked users 7') expect(page).to have_content('Blocked users 7')
expect(page).to have_content('Total users 78') expect(page).to have_content('Total users 78')
expect(page).to have_content(users_count_label)
end end
end end
end end
...@@ -37,7 +37,7 @@ RSpec.describe 'admin/dashboard/index.html.haml' do ...@@ -37,7 +37,7 @@ RSpec.describe 'admin/dashboard/index.html.haml' do
render render
expect(rendered).not_to have_content "Users in License" expect(rendered).not_to have_content "Users in License"
expect(rendered).not_to have_content "Active Users" expect(rendered).not_to have_content "Billable Users"
expect(rendered).not_to have_content "Maximum Users" expect(rendered).not_to have_content "Maximum Users"
expect(rendered).not_to have_content "Users over License" expect(rendered).not_to have_content "Users over License"
end end
......
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