Skip to content

Commit

Permalink
change profile terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
italomatos committed Sep 15, 2024
1 parent 5ed83ce commit 9de4b61
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/partners/navigation/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<li class="nav-item">
<%= link_to(partners_profile_path, class: "nav-link") do %>
<i class="nav-icon fa fa-building"></i>
<p>My Organization</p>
<p>My Profile</p>
<% end %>
</li>

Expand Down
4 changes: 2 additions & 2 deletions app/views/partners/_partner_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
<%= invite_button_to(invite_partner_path(partner_row), confirm: "Send an invitation to #{partner_row.name} to begin using the partner application?") %>
<% end %>
<% when "invited" %>
<%= view_button_to partner_path(partner_row) + "#partner-information", { text: "Review Application", icon: "check", type: "warning" } %>
<%= view_button_to partner_path(partner_row) + "#partner-information", { text: "Review Applicant's Profile", icon: "check", type: "warning" } %>
<%= invite_button_to(invite_partner_path(partner_row), confirm: "Re-send an invitation to #{partner_row.name}?", text: 'Re-send Invite') %>
<% when "awaiting_review" %>
<%= view_button_to partner_path(partner_row) + "#partner-information", { text: "Review Application", icon: "check", type: "warning" } %>
<%= view_button_to partner_path(partner_row) + "#partner-information", { text: "Review Applicant's Profile", icon: "check", type: "warning" } %>
<% when "approved" %>
<%= button_to recertify_partner_partner_path(partner_row), data: { confirm: "Recertify partner #{partner_row.name}?"}, class: "btn btn-xs bg-red" do %>
<i class="fa fa-refresh"></i> Request Recertification
Expand Down
2 changes: 1 addition & 1 deletion app/views/partners/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
<section class="card card-info card-outline" id='partner-information'>
<div class="card-header">
<div class="clearfix">
<h2 class="card-title">Application & Information</h2>
<h2 class="card-title">Partner Profile</h2>
</div>
<div class='pull-right'>
<% unless @partner.approved? %>
Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/bank/essentials_dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This is pretty much what it sounds like - a list of the requests from your partn
![bottom of dashboard page](images/essentials/dashboard/essentials_dashboard_2.png)

#### Partner Approvals
This lists the partner profiles that have been submitted for approval. Partners can not submit requests until they have been approved. To review the application, click on the "Review Application" button beside the partner in the Action colum. For more details on that, see [Approving a partner](pm_approving_a_partner.md)
This lists the partner profiles that have been submitted for approval. Partners can not submit requests until they have been approved. To review the application, click on the "Review Applicant's Profile" button beside the partner in the Action column. For more details on that, see [Approving a partner](pm_approving_a_partner.md)

#### Bank-wide Low Inventory
This lists items whose *bank-wide* inventory has fallen below the recommended or minimum quantity levels you have set on the items. If the item's level in inventory across the bank has fallen below the minimum quantity, it will appear in red.
Expand Down
8 changes: 4 additions & 4 deletions spec/system/partner_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
visit partners_path

assert page.has_content? partner_awaiting_approval.name
click_on 'Review Application'
click_on "Review Applicant's Profile"

assert page.has_content?('Application & Information')
assert page.has_content?('Partner Profile')
click_on 'Approve Partner'
assert page.has_content? 'Partner approved!'

Expand All @@ -45,7 +45,7 @@

assert page.has_content? partner_awaiting_approval.name

click_on 'Review Application'
click_on "Review Applicant's Profile"
click_on 'Approve Partner'
assert page.has_content? "Failed to approve partner because: #{fake_error_msg}"

Expand Down Expand Up @@ -539,5 +539,5 @@
def visit_approval_page(partner_name:)
visit partners_path
ele = find('tr', text: partner_name)
within(ele) { click_on "Review Application" }
within(ele) { click_on "Review Applicant's Profile" }
end
4 changes: 2 additions & 2 deletions spec/system/partners/approval_process_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

context 'AND they fill out the form and submit it' do
before do
click_on 'My Organization'
click_on 'My Profile'
assert page.has_content? 'Uninvited'
click_on 'Update Information'

Expand Down Expand Up @@ -76,7 +76,7 @@
partner.profile.update(website: '', facebook: '', twitter: '', instagram: '', no_social_media_presence: false, partner_status: 'pending')
login_as(partner_user)
visit partner_user_root_path
click_on 'My Organization'
click_on 'My Profile'
click_on 'Submit for Approval'
end

Expand Down
2 changes: 1 addition & 1 deletion spec/system/profile_served_area_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
expect(page).to have_content("100 %")
expect(page).not_to have_content("The total client share must be either 0 or 100 %")
click_on "Update Information"
expect(page).to have_content("Application & Information")
expect(page).to have_content("Partner Profile")
expect(page).to have_content("26 %")
end

Expand Down

0 comments on commit 9de4b61

Please sign in to comment.