Trestle Versions Save

A modern, responsive admin framework for Ruby on Rails

v0.8.12

5 years ago
  • Add Korean translations [Cheon Park]
  • Allow toolbars to be cleared when defining toolbar blocks
toolbar(:primary).clear!
# or
toolbar(:primary, clear: true) do |t|
  t.button ...
end
  • Add support for dropdowns within toolbar buttons
toolbar(:primary) do |t|
  # Buttons and links render a split button dropdown (primary button plus toggle)
  t.button "Button" do |d|
    d.header "Dropdown Header"
    d.link "Dropdown Link", "#"
    d.divider
  end

  t.link "Button link", "#" do |d|
    d.link "Dropdown Link", "#"
  end

  # Dropdowns render an integrated button dropdown (primary button triggers the dropdown)
  t.dropdown "Dropdown" do |d|
    d.link "Dropdown Link", "#"
  end
end
  • Add support for dynamically defined scopes
scopes do
  Tag.all do |tag|
    scope tag.name, -> { Post.tagged(tag) }
  end
end
  • Allow navigation menu blocks to access controller methods
  • Add config.favicon to set favicon within admin
  • Disable browser autocompletion on password fields
  • Updated styles for dropups, dropdown groups and select group headers
  • Allow id and data attributes to be passed to panel helper
  • Fix i18n of confirmation popovers
  • Fix error when :en locale is unavailable
  • Fix inline JS when Content Security Policy is enabled
  • Fix select form helper when choices passed as a string

v0.8.11

5 years ago
  • Allow adapter methods to invoke controller methods (e.g. current_user, request, etc)
  • Add header: false option to disable table header
  • Add :if/:unless options to be passed to table columns
  • Add option to float form field help blocks above input: help: { text: "message", float: true }
  • Add support for nested modals
  • Pass unfiltered params as second argument to #delete_instance and #save_instance adapter methods
  • Fix merging of navigation group options

v0.8.10

5 years ago
  • Add Latvian translations [Martins Kruze]
  • Add Spanish and Mexican Spanish translations [Ismael G Marin C]
  • Implement new toolbars API
toolbar(:secondary) do |t|
  t.group do
    t.button "Approve", style: :success, icon: "fa fa-thumbs-up"
    t.button "Reject", style: :danger, icon: "fa fa-ban"
  end

  t.link "More Info", "...", style: :info
end
  • Deprecate old-style toolbars e.g. content_for(:primary_toolbar) do
  • Add additional options to timestamp and datestamp helpers
  • Add support for passing proc as column :header option
  • Add :if/:unless options for hooks
  • Add config.timestamp_precision option defaulting to :minutes
  • Add config.root option to set title and root breadcrumb link targets
  • Add view.title hook for overriding sidebar header
  • Add resource.index.header and resource.index.footer hooks
  • Add general confirmation popup with data-toggle="confirm"
  • Allow form control input group addon wrapping to be disabled with :append!/:prepend! options
  • Allow options passed to trestle_form_for to override defaults
  • Improve rendering of input groups, button groups and scopes
  • Improve handling of button disabling and loading indicators
  • Fix tab behaviour when saving modal forms
  • Fix persistence of sidebar expanded/collapsed state
  • Fix compatibility with Sprockets 4

v0.8.9

5 years ago
  • Fix error when rendering dialog forms
  • Add additional feature specs to cover dialog JavaScript
  • Fix support for string flash messages
  • Pass unhandled options to avatar helper to div tag

v0.8.8

5 years ago
  • Add Czech translations [Jan Svoboda]
  • Add Simplified Chinese translations [Li Jie]
  • Add support for singular resources (Trestle.resource(:name, singular: true) do ...)
  • Add support for per-admin translations of titles, button labels and flash messages
  • Add clear button to date/time picker fields
  • Add config.reload option to customize admin reloading strategy (:always or :on_update)
  • Add Trestle::Resource#instance_path(instance, options) method
  • Add inheritance support to admin_for(instance) helper
  • Update default Gravatar image
  • Improve default breadcrumbs for module-scoped admins
  • Allow root admin breadcrumb to be disabled via breadcrumb false
  • Fix issue with conflicting tabs within dialogs
  • Fix form_group helper behavior within templates
  • Fix JSON serialization of Configuration objects
  • Fix form submission when HTML5 validations are used
  • Fix error field rendering within input groups
  • Fix compatibility with will_paginate gem (must set custom Kaminari.config.page_method_name)

v0.8.7

6 years ago
  • 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

6 years ago
  • 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

6 years ago
  • 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

6 years ago
  • 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 and admin_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 than rails
  • Remove dependency on coffee-rails

v0.8.3

6 years ago
  • 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 and config.around_action configuration options
  • Add per-resource support for before_action, after_action and around_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)