Skip to content

Releases: thoughtbot/administrate

0.4.0

03 Mar 15:25
eaacdce
Compare
Choose a tag to compare
  • [DOC] Use Kaminari syntax in controller's comment hint.
  • [#747] [CHANGE] Fix a bug where administrate:views was creating the wrong
    paths.
  • [#739] [#743] [BUGFIX] Dependent destroy demo app models.
  • [CHANGE] Remove boilerplate references to staging/production.
  • [CHANGE] Improve the bin/ commands.
  • [#733] [CHANGE] Switch administrate-field-image to use the new release.
  • [#704] [I18n] Fix a typo on pt-BR translation for polymorphic.
  • [#730] [FEATURE] Hide the Search Bar when no attributes are searchable.
  • [#732] [I18n] Improve Japanese locales.
  • [#729] [FEATURE] Allow primary_key option on relationships instead of
    hardcoding id.
  • [#728] [DOCS] Improve the docs around authentication.
  • [#727] [FEATURE] Add a link to show resource from the collection table.
  • [#726] [BUGFIX] Check for PhantomJS in the setup script.
  • [#721] [CHANGE] Use count(:all) for associations in HasMany fields.
  • [#683] [CHANGE] Add Bourbon as an explicit dependency.
  • [#713] [CHANGE] Avoid writing to routes.rb when no models exist.
  • [#704] [I18n] Fix word on pt-BR translation

0.3.0

16 Dec 19:09
Compare
Choose a tag to compare
  • [#127] Add button to clear the search
  • [#656] Add Rails 5 support

0.2.2

21 May 07:03
Compare
Choose a tag to compare

Bug Fix: Fix LoadError for apps that don't use images

0.2.1

18 May 22:07
Compare
Choose a tag to compare

New Features

  • [#573] Render custom javascripts and stylesheets to the page
    by registering them with Administrate in an initializer.
    For example, you can create config/initializers/administrate.rb
    with the contents:
    Administrate::Engine.add_javascript "my_plugin/script" Administrate::Engine.add_stylesheet "my_plugin/styles"
  • [#567] Add a partial for rendering HTML links to stylesheets.
    This is useful for plugin developers,
    as well as people who want to add custom stylesheets on a page-by-page basis
    using content_for(:stylesheet).
  • [#492] Translate attribute labels on show and index pages.
    To customize an attribute label, add translations according to the structure:
    en: helpers: label: customer: name: Full Name

Version 0.2.0

21 Apr 01:55
Compare
Choose a tag to compare

Breaking Changes

  • [#476] Extract Administrate::Field::Image into its own gem.
    Users who have image fields in their dashboards should add to their Gemfile:

    gem "administrate-field-image"

v0.1.5

01 Apr 18:10
Compare
Choose a tag to compare

[BUGFIX] Protect from CSRF attacks [CVE-2016-3098]
[#422] [FEATURE] Add a Select field for displaying a drop-down menu of options on form pages. Options: ruby Field::Select.with_options(collection: [:foo, :bar])
[#458] [BUGFIX] Update the custom field generator to match the new HTML structure of forms

Version 0.1.4

28 Feb 23:33
Compare
Choose a tag to compare

Breaking Changes

  • [#464] Replace the DashboardManifest with explicit Rails routes.

    • Run rails generate administrate:routes to generate the default routes.
  • [#467] Update the internal field path to fit Ruby conventions

    # Change any instances of this...
    require "administrate/fields/base"
    # ...to this:
    require "administrate/field/base"

Version 0.1.3

22 Jan 18:30
Compare
Choose a tag to compare

Breaking Changes

  • [#339] Change Administrate namespace from a constant to a method

    Upgrade by changing all instances of Administrate::NAMESPACE in your project to namespace.

New Features

  • [#269] Add a generator for copying default layout files
  • [#328] Add a generator for copying default sidebar partial
  • [#362] Add a generator for only the dashboard manifest.
    Customizing this manifest before running the administrate:install generator
    will change which dashboards get generated.
  • [#295] Add dashboard detection for ActiveRecord::Enum fields.
  • [#364] Improve dashboard generator by explicitly listing out the
    generated SHOW_PAGE_ATTRIBUTES array elements.

UI Improvements

  • [#416] Add an accessibility label to the search input
  • [#411] Use tabular figures in table cells
  • [#409] Use default system fonts

Bugfixes

  • [#424] Fix a bug where running rails destroy GENERATOR_NAME
    would not work for several of the generators
  • [#390] Fix timestamp deprecation warnings

Compatibility Improvements

  • [#365] Remove dependency on inline_svg

Internationalization

  • [#396] Ukrainian
  • [#297] Italian
  • [#307] Fix German grammatical errors

Documentation

  • [#363] Move documentation into main repository, at the root URL
  • [#395] Update inline documentation for collection partial
  • [#387] Fix incorrect path for generators in the docs

Version 0.1.2

09 Dec 21:35
Compare
Choose a tag to compare

New Features

  • #251 Raise a helpful error when an attribute is missing from ATTRIBUTE_TYPES
  • #298 Support ActiveRecord model I18n translations
  • #312 Add a nil option to belongs_to form fields

UI Changes

  • #231 Fix layout issue on show page where a long label next to an empty value would cause following fields on the page to be mis-aligned.
  • #309 Fix layout issue in datetime pickers where months and years would not wrap correctly.
  • #306 Wrap long text lines (on word breaks) on show pages
  • #214 Improve header layout when there is a long page title
  • #198 Improve spacing around bottom link in sidebar
  • #206 Left-align checkboxes in boolean form fields
  • #315 Remove the IDS suffix for HasMany form field labels

Bug Fixes

  • #259 Make installation generator more robust by ignoring dynamically generated, unnamed models
  • #243 Fix up a "Show" button on the edit page that was not using the display_resource method.
  • #248 Improve polymorphic relationship's dashboard class detection.
  • #247 Populate has_many and belongs_to select boxes with the current value of the relationship.

I18n Changes

  • #217 Dutch
  • #263 Swedish
  • #272 Danish
  • #270 Don't apologize about missing relationship support.
  • #237 Fix broken paths for several I18n files (de, es, fr, pt-BR, vi).

Optimizations

  • #266 Save a few database queries by using cached counts

Version 0.1.1

12 Nov 20:57
Compare
Choose a tag to compare
  • [#191] [CHANGE] Improve API for specifying how resources are displayed
    across the dashboard.
    • Models are now displayed with a sensible default - (e.g. "User #2")
    • Users can define ModelDashboard#display_resource(resource) for custom
      display behavior
    • Users who have generated views for the following field types
      may need to update them to take advantage of the new API:
      • HasOne
      • HasMany
      • Polymorphic
      • BelongsTo
  • [#126] [UI] Preserve whitespace when rendering text fields
  • [#194] [BUGFIX] Don't clear out datetime values in form fields
  • [#193] [BUGFIX] Don't assume that unrecognized db column types are searchable
  • [#124] [BUGFIX] Better detection of application models
  • [#156] [COMPAT] Include missing sass-rails dependency in gemspec
  • [#174] [COMPAT] Make several missing dependencies explicit.
  • [#144] [COMPAT] Update repository structure so Bundler can pull the gem from github.
    (e.g. gem "administrate", github: "thoughtbot/administrate")
  • [#166] [COMPAT] Use ANSI SQL standards for case-insensitive search
  • [#223] [I18n] Vietnamese
  • [#161] [I18n] Mandarin Chinese
  • [#196] [I18n] Taiwanese Mandarin
  • [#142] [I18n] Brazilian Portuguese
  • [#171] [I18n] Polish
  • [#153] [I18n] Russian
  • [#148] [I18n] French
  • [#147] [I18n] German
  • [#154] [I18n] Spanish
  • [#120] [DOC] Add Rubygems version badge to README
  • [#165] [DOC] Add CircleCI badge to README
  • [#119] [DOC] Add CodeClimate badge to README