Administrate v0.18.0 Release Notes

Release Date: 2022-08-12 // 6 months ago
  • 🚀 This is a general catchup release. We've added dart-sass compatibility, 👌 improved a i18n handling, dropped support for Rails 5.x and Ruby 2.6, dropped datetime_picker_rails because now browser support is good enough, plus many others.

    The following templates have changed since v0.17.0:

    app/views/administrate/application/_collection.html.erb app/views/administrate/application/_collection_header_actions.html.erb app/views/administrate/application/_collection_item_actions.html.erb app/views/administrate/application/_index_header.html.erb app/views/administrate/application/_navigation.html.erb app/views/administrate/application/_pagination.html.erb app/views/administrate/application/edit.html.erb app/views/administrate/application/index.html.erb app/views/administrate/application/show.html.erb app/views/fields/belongs_to/_index.html.erb app/views/fields/belongs_to/_show.html.erb app/views/fields/date/_form.html.erb app/views/fields/date_time/_form.html.erb app/views/fields/has_many/_index.html.erb app/views/fields/has_one/_form.html.erb app/views/fields/has_one/_index.html.erb app/views/fields/has_one/_show.html.erb app/views/fields/polymorphic/_index.html.erb app/views/fields/polymorphic/_show.html.erb app/views/fields/time/_form.html.erb app/views/fields/url/_index.html.erb app/views/fields/url/_show.html.erb

    If your application overrides any of them, make sure to review your custom templates to ensure that they remain compatible.

    • [DOC] [#2154] Ensure we read from sanitised paths
    • [FEATURE] [#2154] Try out GitHub's code scanning tool
    • [DOC] [#2243] Add guide on how to scope has_many relations
    • 🚚 [UI] [#2239] Move pagination into partial
    • 🚚 [FEATURE] [#2237] Move bundle-audit to GitHub Actions
    • 🌐 [i18n] [#2200] Fix HasOne association translations
    • 🛠 BUGFIX] [#2235] Guess correct name for namespaced associations
    • 🛠 [BUGFIX] [#2215] Fix typos and formatting in hiding dashboard docs
    • [FEATURE] [#1941] Unify Action Checks
    • [FEATURE] [#2181] Allow overriding the sample app database config
    • 🚅 [COMPAT] [#2201] Drop support for Rails 5.x
    • [DOC] [#2225] Document how to customize Field::Select option labels
    • ⚡️ [SECURITY] [#2227] Update Rails out of CVE-2022-32224
    • 🚚 [FEATURE] [#2216] Move pagination into private method for overriding
    • [FEATURE] [#2208] Enable ordering the BelongsTo fields by using order option.
    • 🌐 [i18n] [#2219] Add Slovenian translations
    • 🐎 [FEATURE] [#2211] Improve index eager load performance
    • [COMPAT] [#2198] Dart-sass compatibility
    • 💎 [COMPAT] [#2194] Drop support for Ruby 2.6, which reached EOL
    • [i18n] [#2186] Correct grammar on German error messages
    • [i18n] [#2183] Only include locales when bundling
    • [OPTIM] [#2182] Change ApplicationController's routes's class to Set to speed up "valid_action?"
    • [DOC] [#2153] How to customise the search
    • [BUGFIX] [#2164] Use field.name rather than resource_name for has_one relationships
    • 🛠 [BUGFIX] [#2163] Check the routes before render link in collection.html
    • 🚅 [COMPAT] [#2161] Bump Rails dependencies from 6.1.4.6 to 6.1.5
    • [FEATURE] [#2133] Sort dashboard attributes
    • 🛠 [BUGFIX] [#2152] Fix typos in example view for Adding Controllers
    • 💻 [UI] [#2146] Add destroy link in the show template
    • 🛠 [BUGFIX] [#2145] Fix table header classes of has_many field
    • [COMPAT] [#2141] Fix Pundit >2.2.0 include
    • 💻 [UI] [#2139] Add HTML options to the URL field
    • ⚡️ [COMPAT] [#2144] Update Rails to 6.1.4.6
    • [UI] [#2136] Drop datetime_picker_rails and use browser fields
    • 💅 [CHANGE] [#2138] Provide a stylelint config that we can tweak
    • [CHANGE] [#2096] Make search easier to override and adapt to custom use cases
    • 👍 [i18n] [#2114] Add i18n support for Field::HasMany

Previous changes from v0.17.0

  • 🚀 This release incorporates nearly a year of minor changes, starts testing 💎 against Ruby 3 and up, plus Rails 7. We've not heard of any incompatibilities yet, but there are known issues around asset handling (notably with sassc) that we're working on.

    The following templates have changed since v0.16.0:

    app/views/administrate/application/_collection.html.erb app/views/administrate/application/_collection_header_actions.html.erb app/views/administrate/application/_collection_item_actions.html.erb app/views/administrate/application/_flashes.html.erb app/views/administrate/application/_form.html.erb app/views/administrate/application/_icons.html.erb app/views/administrate/application/_index_header.html.erb app/views/administrate/application/index.html.erb app/views/fields/belongs_to/_index.html.erb app/views/fields/belongs_to/_show.html.erb app/views/fields/select/_form.html.erb app/views/fields/time/_index.html.erb app/views/fields/time/_show.html.erb

    If your application overrides any of them, make sure to review your custom templates to ensure that they remain compatible.

    • 🛠 [BUGFIX] [#2117] Use camelize rather than classify for the namespace
    • ✅ [COMPAT] [#2132] Add Rails 7 to tests
    • ✅ [COMPAT] [#2120] Add Ruby 3.1 to Circle tests
    • 🗄 [COMPAT] [#2118] Handle Selenium "options" deprecation
    • ✅ [COMPAT] [#2127] Add Ruby 3 to Circle tests
    • 🚅 [COMPAT] [#2126] Drop patch for Rails 4
    • ⚡️ [COMPAT] [#2123] Update Bundler to 2.3.5
    • ⚡️ [COMPAT] [#2122] Update Ruby version in ".ruby-version"
    • 🚚 [COMPAT] [#2121] Remove "rspec-rails" from gemspec
    • [COMPAT] [#2120] Add "webrick" to Gemfile
    • 💅 [UI] [#2115] Remove inline style from icon svg
    • ⚡️ [COMPAT] [#2102] Update browsers used in CI
    • [COMPAT] [#2097] Manage Selenium drivers automatically
    • 🛠 [BUGFIX] [#2125] Fix rspec invocation in CircleCI
    • [BUGFIX] Typo navigation:back_to_app
    • 🛠 [BUGFIX] [#2108] Hide link if user is not authorized to access resource
    • 🚅 [COMPAT] [#2107] Relax momentjs-rails version constraint
    • 💻 [UI] [#2105] Add resource/attribute name to table headers
    • ✅ [COMPAT] [#2074] gemspec: Drop unused directive test_files
    • 🚅 [COMPAT] [#2101] Limit the highest momentjs-rails version to 2.20.1
    • 🚚 [DOCS] [#2046] Remove password field from Extending Administrate
    • [FEATURE] [#2029] Add format option to time field
    • [FEATURE] [#1998] Reformulate authorization in example app
    • 💎 [COMPAT] [#2027] Drop support for Ruby < 2.6
    • [FEATURE] [#2018] Add :include_blank option to Field::Select
    • 💎 [COMPAT] [#2023] Avoid version not compatible with Ruby 2.5
    • 🛠 [BUGFIX] [#2015] Only call html_safe on flash message that responds to it
    • [FEATURE] [#2005] Add params to collection filter
    • 💅 [UI] [#2013] Fix nav styles for namespaced resources
    • 🚚 [COMPAT] [#2001] Remove shims that force deprecated form of methods
    • 🗄 [COMPAT] [#2008] Fix deprecation warning
    • ⚡️ [FEATURE] [#1991] Allow different form attributes for new/update actions
    • 🛠 [BUGFIX] [#2003] Only allow HTTP(S) URLs in example app
    • 🔒 [DOC] [#2002] Create SECURITY.md
    • [FEATURE] [#1995] Allow customising redirects after actions
    • 💻 [UI] [#1996] Opt-out of FLoC: https://amifloced.org/
    • [DOC] [#1968] Add a script to list recent changes to templates