Administrate v0.18.0 Release Notes

Release Date: 2022-08-12 // almost 2 years 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 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 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
    • [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
    • [FEATURE] [#1995] Allow customising redirects after actions
    • ๐Ÿ’ป [UI] [#1996] Opt-out of FLoC:
    • [DOC] [#1968] Add a script to list recent changes to templates