Releases: TrestleAdmin/trestle
Releases · TrestleAdmin/trestle
v0.8.7
- Improve handling of error responses within dialogs
- Add support for custom dialog class via
data-dialog-class
link attribute - Fix admin links to new action of dialog forms
- Add
:if
and:unless
(Proc) options to navigation item builder - Add tooltips to main navigation when collapsed
- Improve heading typography within form sidebars
- Add
h1
..h6
helpers for headings within forms - Add support for named tables
- Add support for custom table IDs
- Allow column block return values to be auto-formatted
- Remove
unscoped
adapter method - Implement
finalize_collection
adapter method - Pass collection down to
scope
blocks - Allow custom per-page pagination settings using
paginate per: X
- Fix polymorphic associations within automatically generated forms
- Don't add general form group wrapper options to wrapper element
- Add support for
return_to { :back }
to redirect to previous page after action - Ensure image popups appear above modal dialogs
v0.8.6
- Add Polish translations [Marcin Lewandowski]
- Add French translations [Jean Lazarou]
- Add support for dialog-based forms (
form dialog: true do...
) - Make forms remote by default
- Add
remove_action
resource builder method to disable default actions - Add
return_to
resource builder method to customize create/update/delete return location - Add
breadcrumb
admin builder method to override breadcrumb - Add
autolink: false
table option to disable automatic row linking - Add
Trestle.init
JS callback for scoped element initialization - Add visual indicator for collapsed navigation blocks in tablet/collapsed view
- Decode cookie values when reading via
Trestle.cookie.get
- Add configuration option for admin load paths
- Update vendored select2 version to 4.0.5
- Bump kaminari dependency to
~> 1.1.0
- Loosen dependencies on sass-rails and autoprefixer-rails
v0.8.5
- Add Dutch translations [Richard Venneman]
- Add Portuguese translations [Leandro Matheus]
- Improve resource model name pluralization via i18n
- Add JS API for getting/setting cookies (
Trestle.cookie
) - Add toggle buttons for navigation group headers and persist state between requests
- Automatically scroll sidebar to active navigation item
- Add form error debugging (enabled by default in development mode)
- Add
options[:label]
option to navigation items to explicitly set label - Allow actions column to accept an options hash
- Add show and edit button types to actions builder
- Fixed
Trestle::Options
hash merging in edge Rails - Testing: test all compatible Rails versions (+ edge Rails) within Travis
- Testing: setup for feature specs
v0.8.4
- Implement auto-formatting of Array column values
- Implement formatting of tag column values with
format: :tags
- Allow resource actions to respond to JSON/JS
admin_link_to
andadmin_url_for
no longer fall back to the current admin- Fix table column blocks within ERB and Haml templates
- Add support for polymorphic associations in default form/table
- Add support for Sequel ORM (See
Trestle::Adapters::SequelAdapter
) - Pass full params as additional parameter to
#build_instance
and#update_instance
Adapter methods - Add
#human_attribute_name
Adapter method - Split
Adapter#default_attributes
into#default_form_attributes
and#default_table_attributes
- Updated dependency versions (kaminari, autoprefixer-rails, Flatpickr)
- Depend on
railties
rather thanrails
- Remove dependency on
coffee-rails
v0.8.3
- Add generator for non-resourceful admins (
rails generate trestle:admin NAME
) - Add global
config.helper
configuration option - Add global
config.before_action
,config.after_action
andconfig.around_action
configuration options - Add per-resource support for
before_action
,after_action
andaround_action
- Add
sort_column
resource method for defining custom column sorts - Add nicer exception and error message when a resource model cannot be inferred
- Set lower priority for fallback dashboard route (to allow a user-defined dashboard admin)