Skip to content

Releases: superadministration/super

Feeling v0.22.0

08 May 03:28
Compare
Choose a tag to compare

Breaking changes

  • Removed deprecated Super::Display::SchemaTypes#badge
  • Removed deprecated #real(:column) and #computed(:column)
  • Removed deprecated support for arrays in Super::Navigiation.new
  • Removed deprecated styles: argument from Super::Badge.new
  • Removed deprecated Badge's handling of string styles

Improvements

  • Added the file_field form builder method
  • Speed up rendering Super::Link
  • Speed up rendering Super::ViewChain

Deprecations

  • Stopped supporting Webpacker

v0.21.0

05 Jun 14:20
Compare
Choose a tag to compare

Improvements

  • Added overridable controller methods (which are now called by the current
    controller actions). This'll let you customize controller actions without
    overriding the entire action.
  • Added customizable error handling for the #destroy action
  • Added a warning and an explicit end to Super::ViewChain
  • Added a way to override the Super::Display attribute name

Deprecations

  • Deprecated Super::Display:SchemaTypes#badge. Prefer using #real and
    #computed, and return an instance of Super::Badge
  • Deprecated #real(:column) and #computed(:column). Prefer using
    #real(:attribute) and #computed(:attribute)
  • Deprecated Super::Navigiation.new needing a block that yields an array
  • Deprecated Super::Badge.new(text, styles:) in favor of the singular
    style:. Example: Super::Badge.new(text, style: :blue)
  • Deprecated Super::Badge's handling of string styles

Breaking changes

  • Super::Navigation no longer supports #menu(title)[*links]; method
    signature is now #menu(title) do
  • Rework Super::Query. This should only affect you if you've fully overrode an
    action or created your own database querying class

Fixed

  • #destroy now redirects to the index page (instead of to the record that was
    just deleted)
  • Fixed typo Super::Error::Initalization to Initialization
  • Automatically require CSV

v0.20.0

09 Jan 22:22
Compare
Choose a tag to compare

Improvements

  • Added two more current_action categories: collection? and member?
  • Added many more form field helpers, for use with #super_form_for
  • Added many more form field helpers, for use with Super::Form
  • Internationalize Super::Link
  • Added #process_text, #process_href, #process_options to LinkBuilder to
    allow for customizing a default Link
  • Added support for specifying the form action endpoint URL
  • Added support for changing paginated URLs

Breaking changes

  • The I18n key super.layout.powered_by is now super.layout.powered_by_html
  • Changed the public interface for Super::LinkBuilder

Fixed

  • You can now use the NPM package in addition to just importing it!
  • Show the member header on the show page
  • Hide the batch action checkbox on the show page
  • Prevent global changes to the registered LinkBuilders

v0.19.0

14 Dec 04:23
Compare
Choose a tag to compare

Improvements

  • #member_actions and #collection_actions can return an array of things that
    respond to #to_partial_path, including but not limited to Links.
  • Partials can be ordered
  • Added a batch actions feature
  • Frontend assets can be set up via yarn add @superadministration/super
  • Added a button to export to CSV

Breaking changes

  • The Link object can now only be rendered via #to_partial_path instead
    of through #to_s.
  • Super::Layout doesn't render arrays of partials

v0.18.0

27 Aug 01:26
Compare
Choose a tag to compare

Improvements

  • Added #document_title and #page_title methods for customizing the contents
    of the <title> tag
  • Added a way to export CSVs by appending .csv to the URL
  • Added a way to load all records on the index page by setting the query param
    _all_pages=true

v0.17.0

17 Jun 08:21
Compare
Choose a tag to compare

Added

  • Some new filter types
  • Super::Schema::Fields#delete(key) for deleting fields from a defined schema.
    It works like Hash#delete
  • Filtering for boolean columns

Changed

  • Filter operators can have any number of inputs
  • Controller's #member_actions now accepts record argument
  • Link and LinkBuilder's #to_s methods now accept the same arguments
  • Unified how the #create and #update actions set the record's attributes.
    Use #set_record_attributes to customize what gets set

Removed

  • Form schema's #generic. Prefer #partial
  • Form schema's #select(collection:) keyword argument. Prefer specifying the
    positional argument: #select(collection)
  • Form schema's #has_many and #has_one when used without a block argument.
    Those methods now yield a variable, similar to f.fields_for
  • Some filter types that had overlapping functionality with existing ones
  • #build_record_with_params which used to set attributes on the create action
  • #update_record which was used to set attributes on the update action

Fixed

  • #permitted_params's handling of #current_action
  • Flatpickr form fields where the value was a string, but more specifically when
    used with filtering

v0.0.16

15 May 14:10
Compare
Choose a tag to compare

Added

  • Partials site_header and site_footer for easy overrides
  • A helper method #site_title
  • Styles for disabled form fields

Changed

  • Renamed the controller method name #action_inquirer to #current_action
  • Merged Super::Controls into Super::ApplicationController
  • Renamed #scope to #base_scope
  • Renamed #navigation to #site_navigation

Removed

  • The orange badge, since Tailwind v2 doesn't include orange by default

v0.0.15

02 May 03:41
Compare
Choose a tag to compare

Added

  • Super::Reset. Include it in your controller to remove all the controller
    methods and actions that Super defines
  • <input type=hidden> and <input type=password> fields
  • Pill-like badges for displaying statuses
  • Easy label text configurability
  • A new form type for calling form methods directly

Changed

  • The <select> tag has its "down" icon set in CSS, instead of in HTML
  • The recommended form schema types. For example, instead of type.string, use
    type.text_field.

Removed

  • The README (cheatsheet) that was added when installing Super for the first
    time. See bin/rails super:cheat for an up to date list

Fixed

  • Updated bin/rails super:cheat to print all of Super::Controls methods
  • Mutate the current action_inquirer when re-rendering a form due to a
    validation failure (#create to #new, or #update to #edit)
  • The navigation menu was placed behind <select> tags, which made it hard to
    navigate. The navigation menu shows up on top now
  • A regression from upgrading to Tailwind CSS v2. It had a dotted border
    around inputs, which is unnecessary since we have custom styles

0.0.14

23 Apr 02:12
Compare
Choose a tag to compare

Added

  • Navigation can be configured now. But it's still automatic by default
  • Navigation can be nested one level deep
  • A cheat sheet, run bin/rails super:cheat

Changed

  • Upgraded to Tailwind v2.1.1. This drops support for IE 11. Note that I'm still
    on v1 colors.

Fixed

  • Super::Assets.use_sprockets. It does what it says it does now. It used to do
    nothing
  • Handling of prerelease versions of Sprockets and Webpacker
  • Support for Webpacker v6.0.0.beta6

v0.0.13

17 Apr 03:11
Compare
Choose a tag to compare

Added

  • Add a time display type that only shows the time
  • Add a date-, datetime-, and time-picker to forms
  • Add the datetime-picker to filters

Fixed

  • ActionText fields are computed