All Versions
16
Latest Version
Avg Release Cycle
78 days
Latest Release
1270 days ago

Changelog History
Page 1

  • v0.9.4 Changes

    October 27, 2020
    • โž• Add Vietnamese translations [Derek Nguyen]
    • ๐Ÿ‘ Implement preliminary support for AJAX pagination
    • ๐Ÿ‘ Allow access to controller methods (e.g. current_user) from within scope blocks
    • ๐Ÿ‘ Allow per-admin translations for scope labels
    • ๐Ÿ”„ Change form parameter name to unscoped singular admin name
    • โšก๏ธ Update to jQuery 3.5.1, Bootstrap 4.5.3, FontAwesome 5.15.1, Flatpickr 4.6.6, rails-ujs 6.0.3
    • ๐Ÿ›  Fix select field options when passing additional data attributes
    • Ensure select fields are disabled when options[:disabled] is set
    • ๐Ÿ›  Fix use of hooks within form blocks
    • ๐Ÿ›  Fix form field attributes when options[:wrapper] is false
    • ๐Ÿ›  Fix deprecation warnings in Ruby 2.7
    • ๐Ÿ›  Fix file permissions in gem release
  • v0.9.3 Changes

    May 04, 2020
    • Add #save_or_dismiss resource toolbar builder method
    • โž• Add support for passing parameters to hooks
    • Implement selectable_column checkbox JS and custom checkbox styling
    • ๐Ÿ—„ Deprecated config.reload option (admins will now always reload in development mode)
    • โšก๏ธ Update to jQuery 3.5.0
    • โšก๏ธ Update to FontAwesome 5.13.0, rails-ujs 6.0.2, popper.js 1.16.1, select2 4.0.13, bs-custom-file-input 1.3.4
    • โšก๏ธ Loosen dependency on kaminari (allow updating to 1.2.x)
    • ๐Ÿ›  Fix deprecation warnings when using Zeitwerk
    • ๐Ÿ›  Fix focus styles for themed buttons
    • ๐Ÿ›  Fix centering of title/logo at mobile breakpoints
    • Fix error messages for has_many / has_and_belongs_to_many fields (ending in _ids)
    • ๐Ÿ›  Fix JS AJAX events from incorrectly firing on child elements of a Trestle form
    • ๐Ÿ›  Fix overriding of table options when embedding within another admin
    • ๐Ÿ›  Fix col helper to not add bare col class when explicit column count is given
  • v0.9.2 Changes

    January 27, 2020
    • โž• Add German translations [Mischa Schindowski]
    • โž• Added --singular option to trestle:resource generator for generating a singular resource:

      rails generate trestle:resource account --singular

    • ๐Ÿ‘ Allow setting custom options on automatically generated forms, e.g.

      form dialog: true

    • โž• Add #new, #save, #delete and #dismiss button shortcuts for resource toolbars

    • ๐Ÿ‘ Allow title and toolbar helpers to be called from within controller actions

    • ๐Ÿ‘ Allow static_field to automatically infer value rather than require it to be explicitly set

    • ๐Ÿ‘ Allow custom HTML options to be set on navigation items

    • ๐Ÿ‘ Allow options to be overridden when embedding tables

    • โšก๏ธ Updated to Bootstrap 4.4.1

    • โšก๏ธ Update i18n key for admin breadcrumbs to be more consistent (admin.<admin-name>.breadcrumbs.index)

    • ๐Ÿ‘‰ Use count(:all) instead of count in ActiveRecord adapter to fix ambiguous column errors in joined queries

    • ๐Ÿ›  Fix loading of Flatpickr locale files

    • ๐Ÿ›  Fix initialization of JS translations when en locale is not available

    • ๐Ÿ›  Fix tab initialization on context refresh

  • v0.9.1 Changes

    November 22, 2019
    • ๐Ÿ›  Fix JavaScript initialization when Turbolinks is disabled or not available
    • Disable automatic focusing within modals
  • v0.9.0 Changes

    November 08, 2019

    ๐Ÿฑ ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰
    ๐Ÿš€ After many months in development, this release finally incorporates the new build process from #195!

    **If you have written a lot of custom code that depends on Bootstrap 3, this may be a breaking update. Please review your admin application code before pushing to production. **

    **If you are using trestle-auth or trestle-search, please also ensure you also update to trestle-auth >= 0.3.0 and trestle-search >= 0.4.0 **

    โšก๏ธ The main features of this update are:

    • ๐Ÿ— A Webpack-based build process which produces a static CSS bundle. This means a Sass compilation gem (sass-rails or sassc-rails) is no longer a required dependency unless you are doing custom theme compilation.
    • Cleaned up the Sass and JS code, and migrated the JS to ES6 syntax.
    • โšก๏ธ Updated to Bootstrap 4 (4.3.1).
    • โšก๏ธ Updated to FontAwesome 5 (5.11.2). The v4 compatibility classes are included.
    • โœ‚ Removed Ionicons.
    • Theme customization is now done within app/assets/stylesheets/trestle/_theme.scss (rather than _variables.scss). The trestle:install generator has been updated to create this new file. However your current _variables.scss should continue to work for supported variables.
    • Sprockets is still a required dependency (for now).

    โšก๏ธ Other updates and fixes include:

    • 0๏ธโƒฃ The col helper now accepts an integer for the default (mobile breakpoint) columns. Old usage should continue to work:

      Newcol(4) { ... } col(6, lg: 3) { ... }# Oldcol(xs: 4) { ... } col(xs: 6, lg: 3) { ... }

    • โž• Added new card helper to replace panel helper

    • ๐Ÿ—„ Deprecated panel and well helpers

    • Added support for custom check_box/radio_button controls (default) as well as switch check_boxes

      check_box :published, switch: true

    • Always show tabs if form was defined using one or more tab blocks

    • 0๏ธโƒฃ Use model name to determine default resource admin human name (#251)

    • ๐Ÿ›  Fixed model name pluralization when singular and plural versions are defined (#238)

  • v0.8.13 Changes

    August 30, 2019
    • โž• Additional French language translations [Tao Galasse]
    • โž• Add support for admin-level hook definitions
    • ๐Ÿ‘Œ Improve default handling of JSON attribute form fields
    • ๐Ÿ‘Œ Improve handling of error responses
    • โœ‚ Remove default JS response handlers for admin resources. They can be added manually as required using:

      controller dodef showsuper do |format| format.js endendend

    • โœ‚ Remove clear button from disabled date/time pickers

    • Disable select fields and date pickers when admin is read-only

    • ๐Ÿ‘ Allow routes block to be called multiple times

    • ๐Ÿ›  Fix error when using selectable_column

    • ๐Ÿ›  Fix deprecation warnings in Rails 6

    ๐Ÿš€ This will likely be the last release before #195 is merged in (which will then be released as 0.9.0).

  • v0.8.12 Changes

    March 28, 2019
    • โž• Add Korean translations [Cheon Park]
    • ๐Ÿ‘ Allow toolbars to be cleared when defining toolbar blocks

      toolbar(:primary).clear!# ortoolbar(: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", "#"endend

    • โž• Add support for dynamically defined scopes

      scopes doTag.all do |tag| scope tag.name, -> { Post.tagged(tag) } endend

    • ๐Ÿ‘ 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 Changes

    September 19, 2018
    • ๐Ÿ‘ 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 Changes

    August 23, 2018
    • โž• 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: :infoend

    • 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 Changes

    May 24, 2018
    • ๐Ÿ›  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