Skip to content

v0.9.0

Compare
Choose a tag to compare
@spohlenz spohlenz released this 08 Nov 05:15

馃帀馃帀馃帀
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:

  • The col helper now accepts an integer for the default (mobile breakpoint) columns. Old usage should continue to work:
# New
col(4) { ... }
col(6, lg: 3) { ... }

# Old
col(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
  • Use model name to determine default resource admin human name (#251)
  • Fixed model name pluralization when singular and plural versions are defined (#238)