Minor release

v2.21.0 - Callable action messages, disabled field option, better authorization in associations

Avo has been a dream to work with and we quickly took the leap to utilizing Avo Pro.

From easily implementing search, to great docs, to providing charts out of the box, to the beautiful API — Avo is everything I've been looking for in an administration toolkit.

Ricky Chilcott
Ricky Chilcott
Partner, Mission Met
👆 Click to see the video 👆

Hey gang! Even if we said we weren't going to ship more features, we just can't say no.

Release notes

🎸 Features
Add disabled option
Docs: https://docs.avohq.io/2.0/field-options.html#disabled

Callable action message
Docs: https://docs.avohq.io/2.0/actions.html#callable-message

🐛 Bug Fixes

  • expose the parent record from association policy methods
  • flash messages
  • i18n missing translations
  • card missing current_user
  • association policy has the wrong record
  • time fields without relative don't cast the time
  • Don't set the csrf token if it's not available
  • resource getting wrong model
  • select all when query can't be converted to_sql
  • incorrectly cached select field options
  • get correct search results count

🤖 Maintenance

  • minor refactor to nested fish review
  • add nested resource example to dummy app
  • Warn developers if they forget to set attachment_key on trix fields
  • Added nn translations for pagy

💡 Refactor

  • refactor: trix id not unique when used as native

Check the upgrade guide

We updated the associations' authorization methods, so please check them out.
https://docs.avohq.io/2.0/upgrade.html#upgrade-from-2-20-to-2-21

Subscribe to good content

Lucian published a fantastic new Short Ruby Newsletter issue, and Yaroslav posted an excellent inline-editing tutorial on YouTube, so make sure you give them a subscribe and a follow 🙌

https://shortruby.com/
https://www.youtube.com/c/SupeRails

Work is going well on Avo 3

We worked a lot on the internals these past weeks making it more dependable and maintainable in the long run. Next, we're adding ways to extend the functionality from the outside using plugins.

Nested records on new

We published a new guide on adding nested records on the create view. That was requested a lot from users, and we might support it in Avo 3. Until then you can manually add it using this recipe.
Docs: https://docs.avohq.io/2.0/recipes/nested-records-when-creating.html

Keep the feedback coming

Don't forget to send us your feedback for Avo 3. Let us know your pain points. Also, anytime you have one of those "darn it, it's so difficult to do this in Avo" moments, just write to us.
Forum: https://github.com/avo-hq/avo/discussions/1356

Thank you, and keep being awesome ✌️
Adrian and Paul

Release notes: https://avohq.io/releases/2.21
Release video: https://youtu.be/bxSG2_ox7zg
Twitter: https://twitter.com/avo_hq
Repo: https://github.com/avo-hq/avo
Subscribe to Short Ruby Newsletter: https://shortruby.com/
Subscribe to SupeRails: https://www.youtube.com/c/SupeRails

Release notes

🎸 Features

  • feature: add disabled option @adrianthedev (#1471)
  • feature: callable action message @adrianthedev (#1465)

🐛 Bug Fixes

  • fix: expose the parent record from association policy methods @adrianthedev (#1479)
  • fix: flash messages @Paul-Bob (#1474)
  • fix: i18n missing translations @Paul-Bob (#1433)
  • fix: card missing current_user @adrianthedev (#1470)
  • fix: association policy has the wrong record @adrianthedev (#1468)
  • fix: time fields without relative don't cast the time @adrianthedev (#1442)
  • Don't set the csrf token if it's not available @iainbeeston (#1452)
  • fix: resource getting wrong model @Paul-Bob (#1446)
  • fix: select all when query can't be converted to_sql @Paul-Bob (#1454)
  • fix: incorrectly cached select field options @adrianthedev (#1460)
  • fix: get correct search results count @adrianthedev (#1455)

🤖 Maintenance

  • chore: minor refactor to nested fish review @adrianthedev (#1483)
  • chore: minor refactor to nested fish review @adrianthedev (#1482)
  • chore: add nested resource example to dummy app @adrianthedev (#1472)
  • Warn developers if they forget to set attachment_key on trix fields @iainbeeston (#1451)
  • fix: Added nn translations for pagy @tersor (#1456)

💡 Refactor

  • refactor: trix id not unique when used as native @adrianthedev (#1476)