Trestle v0.9.0 Release Notes

Release Date: 2019-11-08 // over 4 years ago
  • ๐Ÿฑ ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰
    ๐Ÿš€ 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)