Skip to content

Commit

Permalink
Merge pull request #5253 from solidusio/elia/admin/feature-specs
Browse files Browse the repository at this point in the history
[Admin] feature specs fixes
  • Loading branch information
elia authored Jul 17, 2023
2 parents c06480d + 3e0c15f commit bfc3827
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<div
class="
<%= stimulus_id %>
rounded-lg
border
border-gray-100
border-gray-100
overflow-hidden
"
data-controller="<%= stimulus_id %>"
Expand Down Expand Up @@ -39,7 +37,10 @@
<% if @rows.empty? && @model_class %>
<tr>
<td colspan="<%= @columns.size %>" class="text-center py-4 text-3.5 line-[150%] text-black bg-white">
<td
colspan="<%= @columns.size %>"
class="text-center py-4 text-3.5 line-[150%] text-black bg-white"
>
<%= t('.no_resources_found', resources: @model_class.model_name.human.pluralize) %>
</td>
</tr>
Expand Down
1 change: 1 addition & 0 deletions admin/app/views/layouts/solidus_admin/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="<%= current_locale %>">
<head>
<%= favicon_link_tag 'favicon.ico' %>
<title><%= solidus_admin_title %></title>
<%= stylesheet_link_tag "solidus_admin/application.css", "inter-font", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags "solidus_admin/application", shim: false, importmap: SolidusAdmin.importmap %>
Expand Down
2 changes: 2 additions & 0 deletions admin/lib/solidus_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

require 'importmap-rails'
require 'tailwindcss-rails'
require 'turbo-rails'
require 'stimulus-rails'

module SolidusAdmin
singleton_class.attr_accessor :importmap
Expand Down
2 changes: 2 additions & 0 deletions admin/solidus_admin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Gem::Specification.new do |s|
s.add_dependency 'importmap-rails', '~> 1.2', '>= 1.2.1'
s.add_dependency 'solidus_backend', s.version
s.add_dependency 'solidus_core', s.version
s.add_dependency 'stimulus-rails', '~> 1.2'
s.add_dependency 'tailwindcss-rails', '~> 2.0'
s.add_dependency 'turbo-rails', '~> 1.4'
s.add_dependency 'view_component', '~> 3.3'
end

0 comments on commit bfc3827

Please sign in to comment.