Skip to content

Commit

Permalink
Improve UX of the Platform API docs callout
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalcymerys committed Aug 31, 2023
1 parent 9ce7d91 commit 1d994f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions app/views/spree/admin/oauth_applications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@
<%= button_link_to Spree.t('admin.oauth_applications.new'), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_role_link' %>
<% end if can? :create, Spree::OauthApplication %>

<div class="container">
<div class="card">
<div class="card bg-light">
<div class="card-body">
<p>
<%=Spree.t('admin.oauth_applications.documentation_message')%>
<%= link_to(Spree.t('admin.oauth_applications.here'), 'https://dev-docs.spreecommerce.org/api/platform-api/authenticating-requests')%>
</p>
<%=Spree.t('admin.oauth_applications.documentation_message')%>
<%= link_to(Spree.t('admin.oauth_applications.documentation_cta'), 'https://dev-docs.spreecommerce.org/api/platform-api/authenticating-requests')%>
</div>
</div>
</div>

<% if @oauth_applications.any? %>
<div class="table-responsive rounded border mt-4">
Expand Down
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ en:
new: New oAuth application
uid: UID
scopes: Scopes
documentation_message: 'If you need help, you can find documentation '
here: here.
documentation_message: 'To learn how to authenticate requests to the Platform API, '
documentation_cta: see the documentation
reports:
for: For %{store_name}
return_authorization:
Expand Down

0 comments on commit 1d994f7

Please sign in to comment.