diff --git a/docs/3.0/customization.md b/docs/3.0/customization.md index b03484e4..ba526363 100644 --- a/docs/3.0/customization.md +++ b/docs/3.0/customization.md @@ -530,7 +530,15 @@ You can configure it using `config.turbo` option on `avo.rb` initializer Supported options with default values: -```ruby +:::code-group +```ruby [Current version] + config.turbo = -> do + { + instant_click: true + } + end +``` +```ruby [3.4.2] config.turbo = -> do { instantclick: true diff --git a/docs/3.0/upgrade.md b/docs/3.0/upgrade.md index 1dbc96dd..8694fd6b 100644 --- a/docs/3.0/upgrade.md +++ b/docs/3.0/upgrade.md @@ -3,6 +3,17 @@ We'll update this page when we release new Avo 3 versions. If you're looking for the Avo 2 to Avo 3 upgrade guide, please visit [the dedicated page](./avo-2-avo-3-upgrade). +## Upgrade from 3.4.2 to 3.4.3 +:::option `turbo` configuration +In version `3.4.2` we introduced turbo configuration with `instantclick` option. We decided that `instant_click` is a more appropriate name. + +```ruby +config.turbo = { + instantclick: true # [!code --] + instant_click: true # [!code ++] +} +``` +::: ## Upgrade from 3.4.1 to 3.4.2 :::option Basic Filters URL param changed to `encoded_filters` @@ -73,6 +84,14 @@ field :name, end ::: +:::option `resource.record` or `record` as `nil` on visibility blocks +You may notice that `resource.record == nil` on some visibility blocks. That happens when evaluating the field visibility to render header columns. On index, there is no record. + +This is a consequence of a bug fix where `resource.record` was wrongly storing the last record of the index table. + +Check [this discussion](https://github.com/avo-hq/avo/issues/2544) for more details +::: + ## Upgrade from 3.3.0 to 3.4.0 Ruby 3.0 is end-of-life and we pushed some code that only works with Ruby 3.1.