Skip to content

v0.0.6

Choose a tag to compare

@zachahn zachahn released this 09 Dec 03:02

Changed

  • Consolidated the controller's two "permitted params" methods into one
  • Merged Super::Step into Super::Controls
  • Define Super::Link#to_s which returns an <a href> tag. Any of a Link's
    fields can be a proc; they are resolved as necessary when called. Controls
    was updated to handle these new Links
  • Moved Super::ClientError out of Super::Error. ClientError does NOT
    inherit from Super::Error since they're different categories of errors
    (Error are generally developer errors, not user errors)
  • Bypasses ActionView::Base.field_error_proc (which by default wraps erroneous
    form fields with a <div class="field_with_errors">. Sadly this currently
    monkey patches ActionView::Helpers::Tags::Base
  • Allow Super::Controls#display_schema to return any object that defines
    #to_partial_path. This will allow developers to bypass the form builder if
    it's too limited.
  • Upgraded Tailwind CSS to 1.9.6
  • Redesigned the index table
  • Renamed lots of methods with the word "resource" in it. In most cases, the
    word "resources" meant "records" or "collection" (or in the singular case,
    "record" or "member")
  • Upgraded Stimulus to 2.0.0 (no breaking changes, only warnings)

Added

  • Allow Super::Controls#form_schema to return any object that defines
    #to_partial_path. This will allow developers to bypass the form builder if
    it's too limited.
  • Allow Super::Display fields to be objects that respond to to_partial_path.
    This will allow developers to partially bypass the display schema
  • Allow Super::Display to work with "fields" that aren't methods part of an
    instance of ActiveRecord::Base
  • A footer

Fixed

  • The apply-template Stimulus controller now correctly raises an error when
    the eponymous <template> tag is missing
  • Fixed Super::ViewHelper.classes which used to return the stringified value
    of the conditional. It now only returns the classes without the conditionals
  • A deprecation warning under Rails 6.1