quick_admin 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5af5176fddb574f8fc9b446503a342c2145b0321056bee52e3eec007d6e4f380
4
- data.tar.gz: bb6312b10474f3ebd563331e32036a961e28c5b3234eada5d1de8b47f002b98c
3
+ metadata.gz: ad5f8e560cb45b34dba0e30fa353912c5dd1db62dd8935f7823c253fd9196f3e
4
+ data.tar.gz: 20086b4c332deb6cd63e630602b3e56b673bd3797f4712b3a8320b85c244392c
5
5
  SHA512:
6
- metadata.gz: 6f6ae346359efd5216aceff8a414103827e105f61f566122410aee4dcbd1b85bae005f28f92c719ab39ec6ad0c4d2f9af61bf4889f179914b18b89f11fbaf6b3
7
- data.tar.gz: 3c8a42162cc052453aca127e994e495ab2b0872a7838f5389357d10eb8080551ea121c0f88c5e1b27f182f9aeafa49f438f057d1077af5f5f37168e318cea1ae
6
+ metadata.gz: b310f44ce9cc48ff1118a5dca67cbf1d9bf7e58acd289d208862aa6d78078ba8425b2648c07873230bf11cadf46c629eb2258b10b53093879d63e850d19ee590
7
+ data.tar.gz: a2dd9e3a3d9361e3db42360ef9c1b7e68121840c775a0758ac6189a9eef5f2d3d67b7c7a53a0146f49a8f7bad2762e704949f64668dea8345bdcafefdb30b49f
data/CHANGELOG.md CHANGED
@@ -34,6 +34,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
34
 
35
35
  ## [Unreleased]
36
36
 
37
+ ## [0.1.1] - 2025-11-03
38
+
39
+ ### Fixed
40
+ - Added missing `new.turbo_stream.erb` and `edit.turbo_stream.erb` templates to handle form validation errors properly in turbo_stream requests
41
+ - Resolved "Missing template" error when resource creation or update fails validation
42
+
37
43
  ### Changed
38
44
  - Improved SQL injection protection in ORDER BY clause
39
45
  - Enhanced error handling in attachment handling
@@ -0,0 +1,14 @@
1
+ <%= turbo_stream.update "modal" do %>
2
+ <div class="modal-overlay" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">
3
+ <div class="modal-content" onclick="event.stopPropagation()">
4
+ <div class="modal-header">
5
+ <h2>Edit <%= @resource_config.model_name.singularize.humanize %></h2>
6
+ <button type="button" class="modal-close" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">&times;</button>
7
+ </div>
8
+
9
+ <div class="modal-body">
10
+ <%= render "form", resource: @resource %>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ <% end %>
@@ -0,0 +1,14 @@
1
+ <%= turbo_stream.update "modal" do %>
2
+ <div class="modal-overlay" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">
3
+ <div class="modal-content" onclick="event.stopPropagation()">
4
+ <div class="modal-header">
5
+ <h2>New <%= @resource_config.model_name.singularize.humanize %></h2>
6
+ <button type="button" class="modal-close" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">&times;</button>
7
+ </div>
8
+
9
+ <div class="modal-body">
10
+ <%= render "form", resource: @resource %>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module QuickAdmin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nezir Zahirovic
@@ -105,9 +105,11 @@ files:
105
105
  - app/views/quick_admin/resources/create.turbo_stream.erb
106
106
  - app/views/quick_admin/resources/destroy.turbo_stream.erb
107
107
  - app/views/quick_admin/resources/edit.html.erb
108
+ - app/views/quick_admin/resources/edit.turbo_stream.erb
108
109
  - app/views/quick_admin/resources/index.html.erb
109
110
  - app/views/quick_admin/resources/index.turbo_stream.erb
110
111
  - app/views/quick_admin/resources/new.html.erb
112
+ - app/views/quick_admin/resources/new.turbo_stream.erb
111
113
  - app/views/quick_admin/resources/show.html.erb
112
114
  - app/views/quick_admin/resources/update.turbo_stream.erb
113
115
  - config/routes.rb
@@ -118,11 +120,11 @@ files:
118
120
  - lib/quick_admin/engine.rb
119
121
  - lib/quick_admin/resource.rb
120
122
  - lib/quick_admin/version.rb
121
- homepage: https://github.com/nezirz/quick_admin
123
+ homepage: https://blog.rubyonrails.ba/articles/introducing-quickadmin-a-lightweight-modern-admin-interface-for-rails
122
124
  licenses:
123
125
  - MIT
124
126
  metadata:
125
- homepage_uri: https://github.com/nezirz/quick_admin
127
+ homepage_uri: https://blog.rubyonrails.ba/articles/introducing-quickadmin-a-lightweight-modern-admin-interface-for-rails
126
128
  source_code_uri: https://github.com/nezirz/quick_admin
127
129
  changelog_uri: https://github.com/nezirz/quick_admin/blob/main/CHANGELOG.md
128
130
  bug_tracker_uri: https://github.com/nezirz/quick_admin/issues