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_fieldform 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
#destroyaction - Added a warning and an explicit end to
Super::ViewChain - Added a way to override the
Super::Displayattribute name
Deprecations
- Deprecated
Super::Display:SchemaTypes#badge. Prefer using#realand
#computed, and return an instance ofSuper::Badge - Deprecated
#real(:column)and#computed(:column). Prefer using
#real(:attribute)and#computed(:attribute) - Deprecated
Super::Navigiation.newneeding 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::Navigationno 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
#destroynow redirects to the index page (instead of to the record that was
just deleted)- Fixed typo
Super::Error::InitalizationtoInitialization - Automatically require CSV
v0.20.0
Improvements
- Added two more
current_actioncategories: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_optionstoLinkBuilderto
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_byis nowsuper.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
Improvements
#member_actionsand#collection_actionscan return an array of things that
respond to#to_partial_path, including but not limited toLinks.- 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
Linkobject can now only be rendered via#to_partial_pathinstead
of through#to_s. Super::Layoutdoesn't render arrays of partials
v0.18.0
Improvements
- Added
#document_titleand#page_titlemethods for customizing the contents
of the<title>tag - Added a way to export CSVs by appending
.csvto 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_actionsnow acceptsrecordargument - Link and LinkBuilder's
#to_smethods now accept the same arguments - Unified how the
#createand#updateactions set the record's attributes.
Use#set_record_attributesto 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_manyand#has_onewhen 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_paramswhich used to set attributes on the create action#update_recordwhich 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_headerandsite_footerfor easy overrides - A helper method
#site_title - Styles for disabled form fields
Changed
- Renamed the controller method name
#action_inquirerto#current_action - Merged
Super::ControlsintoSuper::ApplicationController - Renamed
#scopeto#base_scope - Renamed
#navigationto#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:cheatfor an up to date list
Fixed
- Updated
bin/rails super:cheatto print all ofSuper::Controlsmethods - Mutate the current
action_inquirerwhen re-rendering a form due to a
validation failure (#createto#new, or#updateto#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