avo 3.0.1.beta24 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -5
  3. data/Gemfile.lock +164 -128
  4. data/README.md +19 -27
  5. data/app/components/avo/actions_component.rb +2 -2
  6. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +122 -104
  7. data/app/components/avo/fields/belongs_to_field/edit_component.rb +11 -0
  8. data/app/components/avo/fields/location_field/edit_component.html.erb +12 -10
  9. data/app/components/avo/index/grid_item_component.html.erb +1 -1
  10. data/app/components/avo/index/resource_table_component.html.erb +2 -2
  11. data/app/components/avo/index/resource_table_component.rb +16 -0
  12. data/app/components/avo/index/table_row_component.html.erb +1 -1
  13. data/app/components/avo/items/panel_component.html.erb +25 -0
  14. data/app/components/avo/items/panel_component.rb +43 -0
  15. data/app/components/avo/items/switcher_component.html.erb +17 -0
  16. data/app/components/avo/items/switcher_component.rb +79 -0
  17. data/app/components/avo/items/visible_items_component.html.erb +10 -0
  18. data/app/components/avo/items/visible_items_component.rb +11 -0
  19. data/app/components/avo/modal_component.html.erb +11 -7
  20. data/app/components/avo/modal_component.rb +21 -0
  21. data/app/components/avo/paginator_component.html.erb +29 -40
  22. data/app/components/avo/paginator_component.rb +18 -0
  23. data/app/components/avo/panel_component.html.erb +2 -2
  24. data/app/components/avo/referrer_params_component.html.erb +1 -0
  25. data/app/components/avo/resource_component.rb +8 -15
  26. data/app/components/avo/resource_sidebar_component.html.erb +11 -18
  27. data/app/components/avo/resource_sidebar_component.rb +4 -2
  28. data/app/components/avo/sidebar_profile_component.html.erb +1 -1
  29. data/app/components/avo/tab_group_component.html.erb +1 -1
  30. data/app/components/avo/views/resource_edit_component.html.erb +15 -32
  31. data/app/components/avo/views/resource_edit_component.rb +18 -6
  32. data/app/components/avo/views/resource_index_component.rb +1 -0
  33. data/app/components/avo/views/resource_show_component.html.erb +14 -33
  34. data/app/components/avo/views/resource_show_component.rb +11 -0
  35. data/app/controllers/avo/actions_controller.rb +6 -4
  36. data/app/controllers/avo/application_controller.rb +2 -33
  37. data/app/controllers/avo/base_controller.rb +25 -16
  38. data/app/helpers/avo/application_helper.rb +4 -0
  39. data/app/javascript/js/controllers/fields/reload_belongs_to_field_controller.js +51 -0
  40. data/app/javascript/js/controllers.js +2 -0
  41. data/app/views/avo/actions/show.html.erb +4 -3
  42. data/app/views/avo/base/_new_via_belongs_to.html.erb +12 -0
  43. data/app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb +8 -0
  44. data/app/views/avo/base/create_fail_action.turbo_stream.erb +13 -0
  45. data/app/views/avo/partials/_flash_alerts.turbo_stream.erb +3 -0
  46. data/config/i18n-tasks.yml +1 -1
  47. data/config/initializers/pagy.rb +2 -0
  48. data/config/master.key +1 -0
  49. data/lib/avo/base_action.rb +44 -38
  50. data/lib/avo/base_resource.rb +7 -8
  51. data/lib/avo/concerns/borrow_items_holder.rb +35 -0
  52. data/lib/avo/concerns/has_items.rb +65 -47
  53. data/lib/avo/concerns/hydration.rb +17 -0
  54. data/lib/avo/concerns/is_resource_item.rb +2 -10
  55. data/lib/avo/concerns/pagination.rb +53 -0
  56. data/lib/avo/concerns/visible_items.rb +7 -30
  57. data/lib/avo/dsl/field_parser.rb +1 -1
  58. data/lib/avo/fields/concerns/is_searchable.rb +3 -1
  59. data/lib/avo/fields/location_field.rb +2 -2
  60. data/lib/avo/filters/base_filter.rb +1 -0
  61. data/lib/avo/html/builder.rb +1 -0
  62. data/lib/avo/licensing/h_q.rb +4 -6
  63. data/lib/avo/licensing/license.rb +4 -0
  64. data/lib/avo/plugin.rb +5 -1
  65. data/lib/avo/resources/items/holder.rb +29 -11
  66. data/lib/avo/resources/items/item_group.rb +4 -9
  67. data/lib/avo/resources/items/main_panel.rb +10 -0
  68. data/lib/avo/resources/items/row.rb +4 -16
  69. data/lib/avo/resources/items/sidebar.rb +9 -10
  70. data/lib/avo/resources/items/tab.rb +3 -9
  71. data/lib/avo/resources/items/tab_group.rb +6 -12
  72. data/lib/avo/version.rb +1 -1
  73. data/lib/generators/avo/templates/locales/avo.ar.yml +7 -6
  74. data/lib/generators/avo/templates/locales/avo.en.yml +2 -0
  75. data/lib/generators/avo/templates/locales/avo.es.yml +127 -0
  76. data/lib/generators/avo/templates/locales/avo.fr.yml +2 -0
  77. data/lib/generators/avo/templates/locales/avo.nb.yml +2 -0
  78. data/lib/generators/avo/templates/locales/avo.nn.yml +2 -0
  79. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +2 -0
  80. data/lib/generators/avo/templates/locales/avo.pt.yml +2 -0
  81. data/lib/generators/avo/templates/locales/avo.ro.yml +2 -0
  82. data/lib/generators/avo/templates/locales/avo.tr.yml +2 -0
  83. data/public/avo-assets/avo.base.css +121 -4
  84. data/public/avo-assets/avo.base.js +86 -86
  85. data/public/avo-assets/avo.base.js.map +3 -3
  86. data/public/avo-assets/avo.css +9744 -0
  87. data/public/avo-assets/avo.js +513 -0
  88. data/public/avo-assets/avo.js.map +7 -0
  89. metadata +23 -8
  90. data/app/components/avo/item_switcher_component.html.erb +0 -27
  91. data/app/components/avo/item_switcher_component.rb +0 -48
  92. data/app/views/avo/actions/keep_modal_open.turbo_stream.erb +0 -5
  93. data/lib/avo/action_model.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d03e9624fc0523c1d53874dbc287cff1d4dc6b800769dd8a667e7cd354db093
4
- data.tar.gz: ce7c9add62d0272eb2b5f3d7b2c6ab4e1533d89f3fee49bec4a4830246cbec28
3
+ metadata.gz: 44daf344f0accd0fd7201c8758ed9aee852ddc8be5560dc549a5b55aa0007384
4
+ data.tar.gz: 56fa872a6eb92bbdeb8dff3013243470dec07c76b64c64013c3666be0b6f29d7
5
5
  SHA512:
6
- metadata.gz: 4e9af7a4a417fecf4464daf91404349a9c81839267a499ba55eb9b0c10c852b69054cd84f6afd2e1e1c21537d354b7a30a35dca1ca0775b25c0971cf406a56a5
7
- data.tar.gz: aa961e7379d67a2d59b331d2e69a678d6654270cba1000f0bd5d55d378e5e759d262d435c8360ece0f7da38751765084f067b0fb01922153b4fe1685180ddaed
6
+ metadata.gz: edbf5c9a0880a31b94f52ff97daa779b39b11c6fddde3a8c13714cf4c888486cf10b3abc8ebd8453a80bb2ab6ce0843400ce54b5270769db26885a0e5f798ed0
7
+ data.tar.gz: fd085d35154052fed765d434c4c40a5d36ba6208ae56e82cc061e633843f783584aab05d120c7c6aa3979b4fb16b257287f5cc48763e74f265fb13d67727ae2d
data/Gemfile CHANGED
@@ -21,12 +21,12 @@ gem 'cssbundling-rails'
21
21
  # Dependencies for dummy_app
22
22
  #
23
23
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
24
- gem "rails", "~> 6.1.0"
24
+ gem "rails", "~> 7.1.0"
25
25
 
26
26
  # Use postgresql as the database for Active Record
27
27
  gem "pg", ">= 0.18", "< 2.0"
28
28
  # Use Puma as the app server
29
- gem "puma", "~> 6.0.2"
29
+ gem "puma", "~> 6.4"
30
30
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
31
31
  # gem "jbuilder", "~> 2.7"
32
32
  # Use Redis adapter to run Action Cable in production
@@ -82,7 +82,7 @@ group :development do
82
82
  end
83
83
 
84
84
  group :test do
85
- gem "rspec-rails", "~> 4.0.0"
85
+ gem "rspec-rails", "~> 6.0", ">= 6.0.3"
86
86
  gem "rails-controller-testing"
87
87
  # Adds support for Capybara system testing and selenium driver
88
88
  gem "capybara"
@@ -127,7 +127,7 @@ gem "addressable"
127
127
  gem 'meta-tags'
128
128
 
129
129
  # Search
130
- gem "ransack", "~>4.0"
130
+ gem "ransack", "~> 4.1", ">= 4.1.1"
131
131
 
132
132
  gem 'friendly_id', '~> 5.4.0'
133
133
 
@@ -142,7 +142,7 @@ gem "active_median"
142
142
 
143
143
  gem 'acts_as_list'
144
144
 
145
- gem 'acts-as-taggable-on', '~> 9.0'
145
+ gem 'acts-as-taggable-on', '~> 10.0'
146
146
 
147
147
  gem "bundler-integrity", "~> 1.0"
148
148
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.0.1.beta24)
4
+ avo (3.0.2)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -26,72 +26,86 @@ PATH
26
26
  GEM
27
27
  remote: https://rubygems.org/
28
28
  specs:
29
- actioncable (6.1.7.3)
30
- actionpack (= 6.1.7.3)
31
- activesupport (= 6.1.7.3)
29
+ actioncable (7.1.1)
30
+ actionpack (= 7.1.1)
31
+ activesupport (= 7.1.1)
32
32
  nio4r (~> 2.0)
33
33
  websocket-driver (>= 0.6.1)
34
- actionmailbox (6.1.7.3)
35
- actionpack (= 6.1.7.3)
36
- activejob (= 6.1.7.3)
37
- activerecord (= 6.1.7.3)
38
- activestorage (= 6.1.7.3)
39
- activesupport (= 6.1.7.3)
34
+ zeitwerk (~> 2.6)
35
+ actionmailbox (7.1.1)
36
+ actionpack (= 7.1.1)
37
+ activejob (= 7.1.1)
38
+ activerecord (= 7.1.1)
39
+ activestorage (= 7.1.1)
40
+ activesupport (= 7.1.1)
40
41
  mail (>= 2.7.1)
41
- actionmailer (6.1.7.3)
42
- actionpack (= 6.1.7.3)
43
- actionview (= 6.1.7.3)
44
- activejob (= 6.1.7.3)
45
- activesupport (= 6.1.7.3)
42
+ net-imap
43
+ net-pop
44
+ net-smtp
45
+ actionmailer (7.1.1)
46
+ actionpack (= 7.1.1)
47
+ actionview (= 7.1.1)
48
+ activejob (= 7.1.1)
49
+ activesupport (= 7.1.1)
46
50
  mail (~> 2.5, >= 2.5.4)
47
- rails-dom-testing (~> 2.0)
48
- actionpack (6.1.7.3)
49
- actionview (= 6.1.7.3)
50
- activesupport (= 6.1.7.3)
51
- rack (~> 2.0, >= 2.0.9)
51
+ net-imap
52
+ net-pop
53
+ net-smtp
54
+ rails-dom-testing (~> 2.2)
55
+ actionpack (7.1.1)
56
+ actionview (= 7.1.1)
57
+ activesupport (= 7.1.1)
58
+ nokogiri (>= 1.8.5)
59
+ rack (>= 2.2.4)
60
+ rack-session (>= 1.0.1)
52
61
  rack-test (>= 0.6.3)
53
- rails-dom-testing (~> 2.0)
54
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
55
- actiontext (6.1.7.3)
56
- actionpack (= 6.1.7.3)
57
- activerecord (= 6.1.7.3)
58
- activestorage (= 6.1.7.3)
59
- activesupport (= 6.1.7.3)
62
+ rails-dom-testing (~> 2.2)
63
+ rails-html-sanitizer (~> 1.6)
64
+ actiontext (7.1.1)
65
+ actionpack (= 7.1.1)
66
+ activerecord (= 7.1.1)
67
+ activestorage (= 7.1.1)
68
+ activesupport (= 7.1.1)
69
+ globalid (>= 0.6.0)
60
70
  nokogiri (>= 1.8.5)
61
- actionview (6.1.7.3)
62
- activesupport (= 6.1.7.3)
71
+ actionview (7.1.1)
72
+ activesupport (= 7.1.1)
63
73
  builder (~> 3.1)
64
- erubi (~> 1.4)
65
- rails-dom-testing (~> 2.0)
66
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
74
+ erubi (~> 1.11)
75
+ rails-dom-testing (~> 2.2)
76
+ rails-html-sanitizer (~> 1.6)
67
77
  active_link_to (1.0.5)
68
78
  actionpack
69
79
  addressable
70
80
  active_median (0.3.3)
71
81
  activesupport (>= 5.2)
72
- activejob (6.1.7.3)
73
- activesupport (= 6.1.7.3)
82
+ activejob (7.1.1)
83
+ activesupport (= 7.1.1)
74
84
  globalid (>= 0.3.6)
75
- activemodel (6.1.7.3)
76
- activesupport (= 6.1.7.3)
77
- activerecord (6.1.7.3)
78
- activemodel (= 6.1.7.3)
79
- activesupport (= 6.1.7.3)
80
- activestorage (6.1.7.3)
81
- actionpack (= 6.1.7.3)
82
- activejob (= 6.1.7.3)
83
- activerecord (= 6.1.7.3)
84
- activesupport (= 6.1.7.3)
85
+ activemodel (7.1.1)
86
+ activesupport (= 7.1.1)
87
+ activerecord (7.1.1)
88
+ activemodel (= 7.1.1)
89
+ activesupport (= 7.1.1)
90
+ timeout (>= 0.4.0)
91
+ activestorage (7.1.1)
92
+ actionpack (= 7.1.1)
93
+ activejob (= 7.1.1)
94
+ activerecord (= 7.1.1)
95
+ activesupport (= 7.1.1)
85
96
  marcel (~> 1.0)
86
- mini_mime (>= 1.1.0)
87
- activesupport (6.1.7.3)
97
+ activesupport (7.1.1)
98
+ base64
99
+ bigdecimal
88
100
  concurrent-ruby (~> 1.0, >= 1.0.2)
101
+ connection_pool (>= 2.2.5)
102
+ drb
89
103
  i18n (>= 1.6, < 2)
90
104
  minitest (>= 5.1)
105
+ mutex_m
91
106
  tzinfo (~> 2.0)
92
- zeitwerk (~> 2.3)
93
- acts-as-taggable-on (9.0.1)
94
- activerecord (>= 6.0, < 7.1)
107
+ acts-as-taggable-on (10.0.0)
108
+ activerecord (>= 6.1, < 7.2)
95
109
  acts_as_list (1.0.4)
96
110
  activerecord (>= 4.2)
97
111
  addressable (2.8.5)
@@ -122,7 +136,8 @@ GEM
122
136
  aws-sigv4 (1.5.1)
123
137
  aws-eventstream (~> 1, >= 1.0.2)
124
138
  backport (1.2.0)
125
- bcrypt (3.1.18)
139
+ base64 (0.2.0)
140
+ bcrypt (3.1.19)
126
141
  benchmark (0.2.0)
127
142
  better_html (2.0.1)
128
143
  actionview (>= 6.0)
@@ -131,6 +146,7 @@ GEM
131
146
  erubi (~> 1.4)
132
147
  parser (>= 2.4)
133
148
  smart_properties
149
+ bigdecimal (3.1.4)
134
150
  bindex (0.8.1)
135
151
  bootsnap (1.13.0)
136
152
  msgpack (~> 1.2)
@@ -150,6 +166,7 @@ GEM
150
166
  xpath (~> 3.2)
151
167
  chartkick (4.2.1)
152
168
  concurrent-ruby (1.2.2)
169
+ connection_pool (2.4.1)
153
170
  countries (5.1.2)
154
171
  sixarm_ruby_unaccent (~> 1.1)
155
172
  crack (0.4.5)
@@ -157,14 +174,14 @@ GEM
157
174
  crass (1.0.6)
158
175
  cssbundling-rails (1.1.1)
159
176
  railties (>= 6.0.0)
160
- database_cleaner (2.0.1)
161
- database_cleaner-active_record (~> 2.0.0)
162
- database_cleaner-active_record (2.0.1)
177
+ database_cleaner (2.0.2)
178
+ database_cleaner-active_record (>= 2, < 3)
179
+ database_cleaner-active_record (2.1.0)
163
180
  activerecord (>= 5.a)
164
181
  database_cleaner-core (~> 2.0.0)
165
182
  database_cleaner-core (2.0.1)
166
- date (3.3.3)
167
- devise (4.8.1)
183
+ date (3.3.4)
184
+ devise (4.9.3)
168
185
  bcrypt (~> 3.0)
169
186
  orm_adapter (~> 0.1)
170
187
  railties (>= 4.1.0)
@@ -177,6 +194,8 @@ GEM
177
194
  dotenv-rails (2.8.1)
178
195
  dotenv (= 2.8.1)
179
196
  railties (>= 3.2)
197
+ drb (2.2.0)
198
+ ruby2_keywords
180
199
  dry-initializer (3.1.1)
181
200
  e2mmap (0.1.0)
182
201
  erb-formatter (0.3.0)
@@ -208,8 +227,8 @@ GEM
208
227
  listen (>= 3.0.0)
209
228
  rails (>= 6.0.0)
210
229
  htmlbeautifier (1.4.2)
211
- httparty (0.20.0)
212
- mime-types (~> 3.0)
230
+ httparty (0.21.0)
231
+ mini_mime (>= 1.0.0)
213
232
  multi_xml (>= 0.5.2)
214
233
  i18n (1.14.1)
215
234
  concurrent-ruby (~> 1.0)
@@ -230,6 +249,10 @@ GEM
230
249
  inline_svg (1.9.0)
231
250
  activesupport (>= 3.0)
232
251
  nokogiri (>= 1.6)
252
+ io-console (0.6.0)
253
+ irb (1.8.3)
254
+ rdoc
255
+ reline (>= 0.3.8)
233
256
  iso (0.4.0)
234
257
  i18n
235
258
  jaro_winkler (1.5.4)
@@ -246,9 +269,9 @@ GEM
246
269
  listen (3.7.1)
247
270
  rb-fsevent (~> 0.10, >= 0.10.3)
248
271
  rb-inotify (~> 0.9, >= 0.9.10)
249
- loofah (2.20.0)
272
+ loofah (2.21.4)
250
273
  crass (~> 1.0.2)
251
- nokogiri (>= 1.5.9)
274
+ nokogiri (>= 1.12.0)
252
275
  mail (2.8.1)
253
276
  mini_mime (>= 0.1.1)
254
277
  net-imap
@@ -257,19 +280,17 @@ GEM
257
280
  mapkick-rb (0.1.4)
258
281
  marcel (1.0.2)
259
282
  matrix (0.4.2)
260
- meta-tags (2.17.0)
261
- actionpack (>= 3.2.0, < 7.1)
283
+ meta-tags (2.19.0)
284
+ actionpack (>= 3.2.0, < 7.2)
262
285
  method_source (1.0.0)
263
- mime-types (3.4.1)
264
- mime-types-data (~> 3.2015)
265
- mime-types-data (3.2022.0105)
266
286
  mini_magick (4.11.0)
267
287
  mini_mime (1.1.5)
268
- mini_portile2 (2.8.4)
269
- minitest (5.18.0)
288
+ mini_portile2 (2.8.5)
289
+ minitest (5.20.0)
270
290
  msgpack (1.5.6)
271
291
  multi_xml (0.6.0)
272
- net-imap (0.3.4)
292
+ mutex_m (0.2.0)
293
+ net-imap (0.4.4)
273
294
  date
274
295
  net-protocol
275
296
  net-pop (0.1.2)
@@ -295,81 +316,95 @@ GEM
295
316
  prefixed_ids (1.4.0)
296
317
  hashids (>= 1.0.0, < 2.0.0)
297
318
  rails (>= 6.0.0)
319
+ psych (5.1.1.1)
320
+ stringio
298
321
  public_suffix (5.0.3)
299
- puma (6.0.2)
322
+ puma (6.4.0)
300
323
  nio4r (~> 2.0)
301
- racc (1.7.1)
302
- rack (2.2.8)
324
+ racc (1.7.3)
325
+ rack (3.0.8)
326
+ rack-session (2.0.0)
327
+ rack (>= 3.0.0)
303
328
  rack-test (2.1.0)
304
329
  rack (>= 1.3)
305
- rails (6.1.7.3)
306
- actioncable (= 6.1.7.3)
307
- actionmailbox (= 6.1.7.3)
308
- actionmailer (= 6.1.7.3)
309
- actionpack (= 6.1.7.3)
310
- actiontext (= 6.1.7.3)
311
- actionview (= 6.1.7.3)
312
- activejob (= 6.1.7.3)
313
- activemodel (= 6.1.7.3)
314
- activerecord (= 6.1.7.3)
315
- activestorage (= 6.1.7.3)
316
- activesupport (= 6.1.7.3)
330
+ rackup (2.1.0)
331
+ rack (>= 3)
332
+ webrick (~> 1.8)
333
+ rails (7.1.1)
334
+ actioncable (= 7.1.1)
335
+ actionmailbox (= 7.1.1)
336
+ actionmailer (= 7.1.1)
337
+ actionpack (= 7.1.1)
338
+ actiontext (= 7.1.1)
339
+ actionview (= 7.1.1)
340
+ activejob (= 7.1.1)
341
+ activemodel (= 7.1.1)
342
+ activerecord (= 7.1.1)
343
+ activestorage (= 7.1.1)
344
+ activesupport (= 7.1.1)
317
345
  bundler (>= 1.15.0)
318
- railties (= 6.1.7.3)
319
- sprockets-rails (>= 2.0.0)
346
+ railties (= 7.1.1)
320
347
  rails-controller-testing (1.0.5)
321
348
  actionpack (>= 5.0.1.rc1)
322
349
  actionview (>= 5.0.1.rc1)
323
350
  activesupport (>= 5.0.1.rc1)
324
- rails-dom-testing (2.0.3)
325
- activesupport (>= 4.2.0)
351
+ rails-dom-testing (2.2.0)
352
+ activesupport (>= 5.0.0)
353
+ minitest
326
354
  nokogiri (>= 1.6)
327
- rails-html-sanitizer (1.5.0)
328
- loofah (~> 2.19, >= 2.19.1)
355
+ rails-html-sanitizer (1.6.0)
356
+ loofah (~> 2.21)
357
+ nokogiri (~> 1.14)
329
358
  rails-i18n (7.0.5)
330
359
  i18n (>= 0.7, < 2)
331
360
  railties (>= 6.0.0, < 8)
332
- railties (6.1.7.3)
333
- actionpack (= 6.1.7.3)
334
- activesupport (= 6.1.7.3)
335
- method_source
361
+ railties (7.1.1)
362
+ actionpack (= 7.1.1)
363
+ activesupport (= 7.1.1)
364
+ irb
365
+ rackup (>= 1.0.0)
336
366
  rake (>= 12.2)
337
- thor (~> 1.0)
367
+ thor (~> 1.0, >= 1.2.2)
368
+ zeitwerk (~> 2.6)
338
369
  rainbow (3.1.1)
339
- rake (13.0.6)
340
- ransack (4.0.0)
370
+ rake (13.1.0)
371
+ ransack (4.1.1)
341
372
  activerecord (>= 6.1.5)
342
373
  activesupport (>= 6.1.5)
343
374
  i18n
344
375
  rb-fsevent (0.11.1)
345
376
  rb-inotify (0.10.1)
346
377
  ffi (~> 1.0)
378
+ rdoc (6.6.0)
379
+ psych (>= 4.0.0)
347
380
  redis (4.8.0)
348
381
  regexp_parser (2.8.1)
349
- responders (3.0.1)
350
- actionpack (>= 5.0)
351
- railties (>= 5.0)
382
+ reline (0.4.0)
383
+ io-console (~> 0.5)
384
+ responders (3.1.1)
385
+ actionpack (>= 5.2)
386
+ railties (>= 5.2)
352
387
  reverse_markdown (2.1.1)
353
388
  nokogiri
354
389
  rexml (3.2.6)
355
390
  ripper-tags (0.9.1)
356
- rspec-core (3.11.0)
357
- rspec-support (~> 3.11.0)
358
- rspec-expectations (3.11.0)
391
+ rspec-core (3.12.2)
392
+ rspec-support (~> 3.12.0)
393
+ rspec-expectations (3.12.3)
359
394
  diff-lcs (>= 1.2.0, < 2.0)
360
- rspec-support (~> 3.11.0)
361
- rspec-mocks (3.11.1)
395
+ rspec-support (~> 3.12.0)
396
+ rspec-mocks (3.12.6)
362
397
  diff-lcs (>= 1.2.0, < 2.0)
363
- rspec-support (~> 3.11.0)
364
- rspec-rails (4.0.2)
365
- actionpack (>= 4.2)
366
- activesupport (>= 4.2)
367
- railties (>= 4.2)
368
- rspec-core (~> 3.10)
369
- rspec-expectations (~> 3.10)
370
- rspec-mocks (~> 3.10)
371
- rspec-support (~> 3.10)
372
- rspec-support (3.11.0)
398
+ rspec-support (~> 3.12.0)
399
+ rspec-rails (6.0.3)
400
+ actionpack (>= 6.1)
401
+ activesupport (>= 6.1)
402
+ railties (>= 6.1)
403
+ rspec-core (~> 3.12)
404
+ rspec-expectations (~> 3.12)
405
+ rspec-mocks (~> 3.12)
406
+ rspec-support (~> 3.12)
407
+ rspec-support (3.12.1)
373
408
  rubocop (1.35.0)
374
409
  json (~> 2.3)
375
410
  parallel (~> 1.10)
@@ -392,6 +427,7 @@ GEM
392
427
  ruby-progressbar (1.11.0)
393
428
  ruby-vips (2.1.4)
394
429
  ffi (~> 1.12)
430
+ ruby2_keywords (0.0.5)
395
431
  rubyzip (2.3.2)
396
432
  selenium-webdriver (4.10.0)
397
433
  rexml (~> 3.2, >= 3.2.5)
@@ -408,7 +444,7 @@ GEM
408
444
  simplecov_json_formatter (0.1.4)
409
445
  sixarm_ruby_unaccent (1.2.0)
410
446
  smart_properties (1.17.0)
411
- solargraph (0.44.3)
447
+ solargraph (0.48.0)
412
448
  backport (~> 1.2)
413
449
  benchmark
414
450
  bundler (>= 1.17.2)
@@ -426,10 +462,10 @@ GEM
426
462
  solargraph-rails (1.1.0)
427
463
  activesupport
428
464
  solargraph
429
- spring (4.0.0)
465
+ spring (4.1.1)
430
466
  spring-commands-rspec (1.0.4)
431
467
  spring (>= 0.9.1)
432
- sprockets (4.2.0)
468
+ sprockets (4.2.1)
433
469
  concurrent-ruby (~> 1.0)
434
470
  rack (>= 2.2.4, < 4)
435
471
  sprockets-rails (3.4.2)
@@ -439,12 +475,13 @@ GEM
439
475
  standard (1.16.0)
440
476
  rubocop (= 1.35.0)
441
477
  rubocop-performance (= 1.14.3)
478
+ stringio (3.0.9)
442
479
  terminal-table (3.0.2)
443
480
  unicode-display_width (>= 1.1.1, < 3)
444
481
  test-prof (1.0.10)
445
- thor (1.2.1)
482
+ thor (1.3.0)
446
483
  tilt (2.0.11)
447
- timeout (0.3.0)
484
+ timeout (0.4.1)
448
485
  turbo-rails (1.4.0)
449
486
  actionpack (>= 6.0.0)
450
487
  activejob (>= 6.0.0)
@@ -460,7 +497,7 @@ GEM
460
497
  method_source (~> 1.0)
461
498
  warden (1.2.9)
462
499
  rack (>= 2.0.9)
463
- web-console (4.2.0)
500
+ web-console (4.2.1)
464
501
  actionview (>= 6.0.0)
465
502
  activemodel (>= 6.0.0)
466
503
  bindex (>= 0.4.0)
@@ -473,15 +510,14 @@ GEM
473
510
  addressable (>= 2.8.0)
474
511
  crack (>= 0.3.2)
475
512
  hashdiff (>= 0.4.0, < 2.0.0)
476
- webrick (1.7.0)
513
+ webrick (1.8.1)
477
514
  websocket (1.2.9)
478
- websocket-driver (0.7.5)
515
+ websocket-driver (0.7.6)
479
516
  websocket-extensions (>= 0.1.0)
480
517
  websocket-extensions (0.1.5)
481
518
  xpath (3.2.0)
482
519
  nokogiri (~> 1.8)
483
- yard (0.9.28)
484
- webrick (~> 1.7.0)
520
+ yard (0.9.34)
485
521
  zeitwerk (2.6.12)
486
522
 
487
523
  PLATFORMS
@@ -492,7 +528,7 @@ DEPENDENCIES
492
528
  active_link_to
493
529
  active_median
494
530
  activestorage
495
- acts-as-taggable-on (~> 9.0)
531
+ acts-as-taggable-on (~> 10.0)
496
532
  acts_as_list
497
533
  addressable
498
534
  annotate
@@ -535,13 +571,13 @@ DEPENDENCIES
535
571
  pg (>= 0.18, < 2.0)
536
572
  pluggy!
537
573
  prefixed_ids
538
- puma (~> 6.0.2)
539
- rails (~> 6.1.0)
574
+ puma (~> 6.4)
575
+ rails (~> 7.1.0)
540
576
  rails-controller-testing
541
- ransack (~> 4.0)
577
+ ransack (~> 4.1, >= 4.1.1)
542
578
  redis (~> 4.0)
543
579
  ripper-tags
544
- rspec-rails (~> 4.0.0)
580
+ rspec-rails (~> 6.0, >= 6.0.3)
545
581
  rubocop
546
582
  rubocop-shopify
547
583
  ruby-debug-ide
data/README.md CHANGED
@@ -13,7 +13,7 @@ Avo is a beautiful next-generation framework that empowers you, the developer, t
13
13
 
14
14
  ## Get started
15
15
 
16
- ⚡️ **Install**: [docs.avohq.io/2.0/installation](https://docs.avohq.io/2.0/installation.html)\
16
+ ⚡️ **Install**: [docs.avohq.io/3.0/installation](https://docs.avohq.io/3.0/installation.html)\
17
17
  ✨ **Website**: [avohq.io](https://avohq.io)\
18
18
  📚 **Documentation**: [docs.avohq.io](https://docs.avohq.io)\
19
19
  🗺 **Roadmap**: [GitHub Roadmap](https://github.com/orgs/avo-hq/projects/3)\
@@ -26,23 +26,23 @@ Avo is a beautiful next-generation framework that empowers you, the developer, t
26
26
  ## Features
27
27
 
28
28
  - **Powered by Hotwire** - Rails ❤️ Hotwire
29
- - **Code driven configuration** - Configure your Rails dashboard entirely by writing Ruby code. [docs](https://docs.avohq.io/2.0/resources.html#defining-resources)
29
+ - **Code driven configuration** - Configure your Rails dashboard entirely by writing Ruby code. [docs](https://docs.avohq.io/3.0/resources.html#defining-resources)
30
30
  - **Resource Management** - Create a CRUD interface for Active Record from one command. No more copy-pasting view and controller files around.
31
- - **Dashboard widgets and metrics** - Create metrics, charts, and custom cards amazingly fast. [docs](https://docs.avohq.io/2.0/dashboards.html)
32
- - **Resource Search** - Quickly run a search through one or more resources at once. [docs](https://docs.avohq.io/2.0/resources.html#filters)
33
- - **Associations enabled** - Link your models together with all types of associations (belongs_to, has_many, polymorphic, etc.). [docs](https://docs.avohq.io/2.0/associations.html)
34
- - **Fuzzy-searchable associations** - Do you have a ton of records and don't want to scroll through a big dropdown? Avo's got you covered. [docs](https://docs.avohq.io/2.0/associations.html#searchable-belongs-to)
35
- - **Active Storage support** - Amazingly easy, **one-line**, single or multi-file integration with **ActiveStorage**. [docs](https://docs.avohq.io/2.0/fields.html#file)
36
- - **Records Ordering** - Sorting records is a breeze. [docs](https://docs.avohq.io/2.0/resources.html#records-ordering)
37
- - **Grid view** - Beautiful card layout to showcase your content. [docs](https://docs.avohq.io/2.0/grid-view.html)
38
- - **Actions** - Run custom actions to one or more of your resources with as little as pressing a button 💪 &nbsp; [docs](https://docs.avohq.io/2.0/actions.html)
39
- - **Filters** - Write your own custom filters to quickly segment your data. [docs](https://docs.avohq.io/2.0/filters.html)
40
- - **Keeps your app clean** - You don't need to change your app to use Avo. Drop it in your existing app or add it to a new one and you're done 🙌 [docs](https://docs.avohq.io/2.0/installation.html)
41
- - **Custom fields**- No worries if we missed a field you need. Generate a custom field in a jiffy. [docs](https://docs.avohq.io/2.0/custom-fields.html)
42
- - **Custom tools** - Break out of the CRUD. Do you need to add a page with something completely new? You've got it! [docs](https://docs.avohq.io/2.0/custom-tools.html)
43
- - **Authorization** - Leverage Pundit policies to build a robust and scalable authorization system. [docs](https://docs.avohq.io/2.0/authorization.html)
44
- - **Localization** - Have it available in any language you need. [docs](https://docs.avohq.io/2.0/localization.html)
45
- - **No asset pipeline pollution** - Bring your own asset pipeline. [docs](https://docs.avohq.io/2.0/custom-asset-pipeline.html)
31
+ - **Dashboard widgets and metrics** - Create metrics, charts, and custom cards amazingly fast. [docs](https://docs.avohq.io/3.0/dashboards.html)
32
+ - **Resource Search** - Quickly run a search through one or more resources at once. [docs](https://docs.avohq.io/3.0/search.html)
33
+ - **Associations enabled** - Link your models together with all types of associations (belongs_to, has_many, polymorphic, etc.). [docs](https://docs.avohq.io/3.0/associations.html)
34
+ - **Fuzzy-searchable associations** - Do you have a ton of records and don't want to scroll through a big dropdown? Avo's got you covered. [docs](https://docs.avohq.io/3.0/associations/belongs_to.html#searchable)
35
+ - **Active Storage support** - Amazingly easy, **one-line**, single or multi-file integration with **ActiveStorage**. [docs](https://docs.avohq.io/3.0/fields/file.html)
36
+ - **Records Ordering** - Sorting records is a breeze. [docs](https://docs.avohq.io/3.0/records-reordering.html)
37
+ - **Grid view** - Beautiful card layout to showcase your content. [docs](https://docs.avohq.io/3.0/grid-view.html)
38
+ - **Actions** - Run custom actions to one or more of your resources with as little as pressing a button 💪 &nbsp; [docs](https://docs.avohq.io/3.0/actions.html)
39
+ - **Filters** - Write your own custom filters to quickly segment your data. [docs](https://docs.avohq.io/3.0/filters.html)
40
+ - **Keeps your app clean** - You don't need to change your app to use Avo. Drop it in your existing app or add it to a new one and you're done 🙌 [docs](https://docs.avohq.io/3.0/installation.html)
41
+ - **Custom fields**- No worries if we missed a field you need. Generate a custom field in a jiffy. [docs](https://docs.avohq.io/3.0/custom-fields.html)
42
+ - **Custom tools** - Break out of the CRUD. Do you need to add a page with something completely new? You've got it! [docs](https://docs.avohq.io/3.0/custom-tools.html)
43
+ - **Authorization** - Leverage Pundit policies to build a robust and scalable authorization system. [docs](https://docs.avohq.io/3.0/authorization.html)
44
+ - **Localization** - Have it available in any language you need. [docs](https://docs.avohq.io/3.0/localization.html)
45
+ - **No asset pipeline pollution** - Bring your own asset pipeline. [docs](https://docs.avohq.io/3.0/custom-asset-pipeline.html)
46
46
  - **Mobile interface** - Check your data on the go from any mobile device.
47
47
  - **Tabbed interface** - Conditionally show the data you need
48
48
  - **Menu builder** - Group and surface information as you need to
@@ -56,7 +56,7 @@ For more up-to-date info check out our 🗺 [Roadmap](https://github.com/orgs/av
56
56
 
57
57
  # Installation
58
58
 
59
- Use this RailsBytes template to get started quick `rails app:template LOCATION='https://avohq.io/app-template'`. If you need a more detailed guide, follow [this page](https://docs.avohq.io/2.0/installation.html).
59
+ Use this RailsBytes template to get started quick `rails app:template LOCATION='https://avohq.io/app-template'`. If you need a more detailed guide, follow [this page](https://docs.avohq.io/3.0/installation.html).
60
60
 
61
61
  # Contributing
62
62
 
@@ -64,7 +64,7 @@ Please read [CONTRIBUTING.MD](./CONTRIBUTING.MD)
64
64
 
65
65
  # Upgrade Guide
66
66
 
67
- Please read the [UPGRADE_GUIDE.MD](https://docs.avohq.io/2.0/upgrade.html)
67
+ Please read the [UPGRADE_GUIDE.MD](https://docs.avohq.io/3.0/upgrade.html)
68
68
 
69
69
  # Release schedule
70
70
 
@@ -81,14 +81,6 @@ Please read the [RELEASE.MD](./RELEASE.MD)
81
81
 
82
82
  <table>
83
83
  <tr>
84
- <td>
85
- <a href="https://equipetechnique.com/?utm_source=github&utm_medium=link&utm_campaign=avo" target="_blank">
86
- <picture>
87
- <source media="(prefers-color-scheme: dark)" srcset="https://avohq.io/img/sponsors/ET-dark.jpeg">
88
- <img alt="Equipe Technique Busines Sponsor" src="https://avohq.io/img/sponsors/ET-light.jpeg" width="180px">
89
- </picture>
90
- </a>
91
- </td>
92
84
  <td>
93
85
  <a href="https://www.greenhats.com/?utm_source=github&utm_medium=link&utm_campaign=avo" target="_blank">
94
86
  <picture>
@@ -8,7 +8,7 @@ class Avo::ActionsComponent < ViewComponent::Base
8
8
  @actions = actions || []
9
9
  @resource = resource
10
10
  @view = view
11
- @exclude = exclude
11
+ @exclude = Array(exclude)
12
12
  @include = include
13
13
  @color = color
14
14
  @style = style
@@ -74,7 +74,7 @@ class Avo::ActionsComponent < ViewComponent::Base
74
74
  .append_paths("actions")
75
75
  .append_query(
76
76
  {
77
- action_id: action.param_id,
77
+ action_id: action.to_param,
78
78
  arguments: encrypted_arguments(action)
79
79
  }.compact
80
80
  ).to_s