Releases: superadministration/super
Releases · superadministration/super
Feeling v0.22.0
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 fromSuper::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
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 ofSuper::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
toInitialization
- Automatically require CSV
v0.20.0
Improvements
- Added two more
current_action
categories:collection?
andmember?
- 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
toLinkBuilder
to
allow for customizing a defaultLink
- 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 nowsuper.layout.powered_by_html
- Changed the public interface for
Super::LinkBuilder
Fixed
- You can now use the NPM package in addition to just
import
ing it! - Show the member header on the show page
- Hide the batch action checkbox on the show page
- Prevent global changes to the registered
LinkBuilder
s
v0.19.0
Improvements
#member_actions
and#collection_actions
can return an array of things that
respond to#to_partial_path
, including but not limited toLink
s.- 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
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
Added
- Some new filter types
Super::Schema::Fields#delete(key)
for deleting fields from a defined schema.
It works likeHash#delete
- Filtering for boolean columns
Changed
- Filter operators can have any number of inputs
- Controller's
#member_actions
now acceptsrecord
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 tof.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
Added
- Partials
site_header
andsite_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
intoSuper::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
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. Seebin/rails super:cheat
for an up to date list
Fixed
- Updated
bin/rails super:cheat
to print all ofSuper::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
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