diff --git a/Gemfile b/Gemfile index 7567f01..863d16f 100644 --- a/Gemfile +++ b/Gemfile @@ -24,7 +24,7 @@ gem "json", ">= 2.21.2" gem "reactionview" # Admin dashboard for super admins [https://avohq.io] -gem "avo", "~> 3.2" +gem "avo", "~> 4.1" # Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] gem "bcrypt", "~> 3.1.7" diff --git a/Gemfile.lock b/Gemfile.lock index 2d3f618..59d65d4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -81,7 +81,7 @@ GEM addressable (2.9.0) public_suffix (>= 2.0.2, < 8.0) ast (2.4.3) - avo (3.32.1) + avo (4.1.15) actionview (>= 6.1) active_link_to activerecord (>= 6.1) @@ -90,13 +90,13 @@ GEM avo-icons (>= 0.1.2) docile meta-tags - pagy (>= 7.0.0, < 43) + pagy (>= 43.0) prop_initializer (>= 0.3.0) turbo-rails (>= 2.0.0) turbo_power (>= 0.6.0) view_component (>= 3.7.0) zeitwerk (>= 2.6.12) - avo-icons (0.1.6) + avo-icons (0.2.1) inline_svg base64 (0.3.0) bcrypt (3.1.22) @@ -257,7 +257,10 @@ GEM nokogiri (1.19.4-x86_64-linux-musl) racc (~> 1.4) ostruct (0.6.3) - pagy (9.4.0) + pagy (43.6.2) + json + uri + yaml parallel (2.1.0) parser (3.3.12.0) ast (~> 2.4.1) @@ -431,7 +434,7 @@ GEM turbo-rails (2.0.23) actionpack (>= 7.1.0) railties (>= 7.1.0) - turbo_power (0.7.0) + turbo_power (0.8.0) turbo-rails (>= 1.3.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) @@ -440,7 +443,7 @@ GEM unicode-emoji (4.2.0) uri (1.1.1) useragent (0.16.11) - view_component (4.12.0) + view_component (4.15.0) actionview (>= 7.1.0) activesupport (>= 7.1.0) concurrent-ruby (~> 1) @@ -455,6 +458,7 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) + yaml (0.4.0) zeitwerk (2.8.3) PLATFORMS @@ -470,7 +474,7 @@ PLATFORMS x86_64-linux-musl DEPENDENCIES - avo (~> 3.2) + avo (~> 4.1) bcrypt (~> 3.1.7) bootsnap brakeman (>= 8.0.6) @@ -520,8 +524,8 @@ CHECKSUMS activesupport (8.1.3.1) sha256=85458765f25ea48b9019c46b6bb3fa5683197bf4280d9f06710a6e8d7a831376 addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383 - avo (3.32.1) sha256=0cbc80204734585769fdc68c2721c749b754cd3f8139d4da0667b4c4b22fe849 - avo-icons (0.1.6) sha256=6f1c985aca238d81446e517cee4924752e7ada1604971f6bb59913472e123f4c + avo (4.1.15) sha256=ffef9c0df308c810506d053d84fa5070b37159d186fe2783b2a81f40a7c82e2f + avo-icons (0.2.1) sha256=1ceb00725ca6149f754ac9d8651398be03d67ceb6bd22eab98a5394d10210e10 base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b bcrypt (3.1.22) sha256=1f0072e88c2d705d94aff7f2c5cb02eb3f1ec4b8368671e19112527489f29032 bcrypt_pbkdf (1.1.2) sha256=c2414c23ce66869b3eb9f643d6a3374d8322dfb5078125c82792304c10b94cf6 @@ -609,7 +613,7 @@ CHECKSUMS nokogiri (1.19.4-x86_64-linux-gnu) sha256=379fae440b28915e3f19d752ce2dcf8465ed2b2fbefd2a7ca0dd497bc981a06a nokogiri (1.19.4-x86_64-linux-musl) sha256=17dfb7c1fa194ae02fbf7c51a7afc8d278045ab3fdacfd86f91d02d7b274470b ostruct (0.6.3) sha256=95a2ed4a4bd1d190784e666b47b2d3f078e4a9efda2fccf18f84ddc6538ed912 - pagy (9.4.0) sha256=db3f2e043f684155f18f78be62a81e8d033e39b9f97b1e1a8d12ad38d7bce738 + pagy (43.6.2) sha256=b1d461b6bb43ce410ed2b9f09ce2a90430fa804265d167207a30337ea45c1dd3 parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356 parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828 postmark (1.25.1) sha256=2ac110fa1b4f85a62996fdc63167922eea1c4284a9a7ceb9e007f2758d9e17be @@ -677,18 +681,19 @@ CHECKSUMS timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f turbo-rails (2.0.23) sha256=ee0d90733aafff056cf51ff11e803d65e43cae258cc55f6492020ec1f9f9315f - turbo_power (0.7.0) sha256=ad95d147e0fa761d0023ad9ca00528c7b7ddf6bba8ca2e23755d5b21b290d967 + turbo_power (0.8.0) sha256=df05d8f06810891e4c529263de6f94f884ffbb7f9d147498597c636098621e05 tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42 unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6 useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844 - view_component (4.12.0) sha256=b9a5979d1c43eba2aa21a06a86f661aab3990104855f2909ef7c3779acdcdcb4 + view_component (4.15.0) sha256=2924e207b102c04ab51c4d318535f03f1c3aab3c81ecff99b1cc631b43e14eac web-console (4.3.0) sha256=e13b71301cdfc2093f155b5aa3a622db80b4672d1f2f713119cc7ec7ac6a6da4 websocket (1.2.11) sha256=b7e7a74e2410b5e85c25858b26b3322f29161e300935f70a0e0d3c35e0462737 websocket-driver (0.8.2) sha256=97c556b019bf3410b4961002ac501621e9322d3f8a7bc02161a09301cc4c4146 websocket-extensions (0.1.5) sha256=1c6ba63092cda343eb53fc657110c71c754c56484aad42578495227d717a8241 xpath (3.2.0) sha256=6dfda79d91bb3b949b947ecc5919f042ef2f399b904013eb3ef6d20dd3a4082e + yaml (0.4.0) sha256=240e69d1e6ce3584d6085978719a0faa6218ae426e034d8f9b02fb54d3471942 zeitwerk (2.8.3) sha256=2c85125a8467ce069e20123d1e709a08955c9d29c118c25b46b7b7fafdbb92e5 BUNDLED WITH diff --git a/app/controllers/avo/users_controller.rb b/app/controllers/avo/users_controller.rb index a9987c6..5661b73 100644 --- a/app/controllers/avo/users_controller.rb +++ b/app/controllers/avo/users_controller.rb @@ -1,4 +1,4 @@ # This controller has been generated to enable Rails' resource routes. -# More information on https://docs.avohq.io/3.0/controllers.html +# More information on https://docs.avohq.io/4.0/controllers.html class Avo::UsersController < Avo::ResourcesController end diff --git a/config/initializers/avo.rb b/config/initializers/avo.rb index 7b113bd..66dc9cd 100644 --- a/config/initializers/avo.rb +++ b/config/initializers/avo.rb @@ -68,7 +68,7 @@ # config.pagination = -> do # { # type: :default, - # size: 9, # `[1, 2, 2, 1]` for pagy < 9.0 + # slots: 9, # } # end @@ -79,8 +79,11 @@ ## == Number of search results to display == # config.search_results_count = 8 - ## == Associations lookup list limit == - # config.associations_lookup_list_limit = 1000 + ## == Associations == + # config.associations = { + # lookup_list_limit: 1000, + # frames: { loading: :lazy, auto_load_for: 15.minutes } + # } ## == Cache options == ## Provide a lambda to customize the cache store used by Avo. @@ -118,11 +121,11 @@ # config.currency = 'USD' # config.hide_layout_when_printing = false # config.full_width_container = false - # config.full_width_index_view = false + # config.container_width = { index: :full } # config.search_debounce = 300 # config.view_component_path = "app/components" # config.display_license_request_timeout_error = true - # config.disabled_features = [] + # config.global_search = { enabled: false } # config.buttons_on_form_footers = true # config.field_wrapper_layout = true # config.resource_parent_controller = "Avo::ResourcesController" @@ -130,15 +133,9 @@ # config.exclude_from_status = [] # config.model_generator_hook = true - ## == Branding == - # config.branding = { - # colors: { - # background: "248 246 242", - # 100 => "#CEE7F8", - # 400 => "#399EE5", - # 500 => "#0886DE", - # 600 => "#066BB2", - # }, + ## == Appearance == + # config.appearance = { + # accent: :blue, # chart_colors: ["#0B8AE2", "#34C683", "#2AB1EE", "#34C6A8"], # logo: "/avo-assets/logo.png", # logomark: "/avo-assets/logomark.png", @@ -149,7 +146,7 @@ ## == Breadcrumbs == # config.display_breadcrumbs = true # config.set_initial_breadcrumbs do - # add_breadcrumb "Home", '/avo' + # add_breadcrumb title: "Home", path: "/avo", icon: "tabler/outline/home" # end ## == Menus == @@ -167,6 +164,6 @@ # end # } # config.profile_menu = -> { - # link "Profile", path: "/avo/profile", icon: "heroicons/outline/user-circle" + # link "Profile", path: "/avo/profile", icon: "tabler/outline/user-circle" # } end