quick_admin 0.1.0 → 0.1.1

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: 81d07e96baab57688dcea4e9329c7bcaf23132a438eb8515261c57542f20c71d
4
+ data.tar.gz: 6a7031604ac4d3ea704c6b6030f65b7388b42943ff0049e273d5613feffa28c3
5
5
  SHA512:
6
- metadata.gz: 6f6ae346359efd5216aceff8a414103827e105f61f566122410aee4dcbd1b85bae005f28f92c719ab39ec6ad0c4d2f9af61bf4889f179914b18b89f11fbaf6b3
7
- data.tar.gz: 3c8a42162cc052453aca127e994e495ab2b0872a7838f5389357d10eb8080551ea121c0f88c5e1b27f182f9aeafa49f438f057d1077af5f5f37168e318cea1ae
6
+ metadata.gz: dac2b25d82c6ca0f2a5df126688037bb7b3471f3a60d5235c621b02394e89b34929421a0bed6ea96a5440d69159e2457e9c1c9b1561d21d6a847176552b6a30a
7
+ data.tar.gz: 30e8828e4b1389934f56746b4ae1363a87828c4abfada1a54efc55bf087f7ebe471f72df05dbe309a611e59c45371e467239d91194fce4b63ea37a98b95d072e
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.1"
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.1
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