Skip to content

Releases: superadministration/super

v0.0.12

04 Apr 20:33
Compare
Choose a tag to compare

Added

  • Support for "virtual" fields that don't need to be correlated to a method on
    the model. Although it's not possible to sort by virtual fields (sorting is
    only done by the database), this will make it possible to show derived values
  • Route generation when using bin/rails g super:resource MyModel. It can
    generate routes under a namespace, scope, or keep it at the top level.
  • Generation of AdminController::AdminControls, which subclasses
    Super::Controls. (The name changes automatically depending on the controller
    namespace)

Changed

  • A few configuration keys
  • The number of records per paginated page. It's now at 100.
  • Moved generated definition of #new_controls into the parent class.

v0.0.11

03 Mar 01:37
Compare
Choose a tag to compare

Added

  • Sorting. It's now possible to sort by one or many columns

Changed

  • Renamed Controls' build_*_view to *_view
  • Made Super::Display easier to initialize. It no longer requires any
    arguments

v0.0.10

17 Jan 20:19
Compare
Choose a tag to compare

Added

  • A real form builder. You can use super_form_for to build a form that looks
    like a Super form.
  • An error when the @view instance variable wasn't set in the controller.
    This should help with debugging custom controllers

Removed

  • The "sticky headers" feature. It was very possible for the table to
    look bad on certain breakpoints.

v0.0.9

08 Jan 03:09
Compare
Choose a tag to compare

Added

  • Initial support for ActionText
  • Generator for setting up ActionText. Before Super can work with ActionText,
    you'll first need to set up Webpacker and ActionText on your application
  • Initial support for Webpacker 6
  • Checkbox input field for forms

Fixed

  • Alignment of multi-line values on the #show action

v0.0.8

28 Dec 04:38
Compare
Choose a tag to compare

Changed

  • The #display_schema definition now looks like Super::Display.new(...) do
  • The #form_schema definition now looks like Super::Form.new do
  • The #filter_schema definition now looks like Super::Filter.new do
  • The generators now only define required methods
  • Controls must now inherit from Super::Controls

Added

  • Additional "schema type" helpers on Display and Form
  • Schema guesser for #display_schema, #form_schema, and #filter_schema.
  • Guesser for Strong Parameters

Fixed

  • A Ruby 3.0 error
  • Displaying nil values
  • JavaScript exports

v0.0.7: Filtering!

16 Dec 04:02
Compare
Choose a tag to compare

Added

  • Filtering support! You can now use Super to read, write, and search data.
  • A "view" object in each controller action that renders something. These are
    built via Controls to allow developers to customize them as desired. The
    return value can be any object with a method #to_partial_path (or in newer
    versions of Rails, a view component).

Changed

  • Made the table headers (on the #index action) sticky on larger screens.

v0.0.6

09 Dec 03:02
Compare
Choose a tag to compare

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

v0.0.5

02 Jun 03:04
Compare
Choose a tag to compare

Changed

  • Replaced the Super::Action framework with regular controller actions
  • Improved the index table to be a bit more responsive by default
  • Updated super:webpacker generator to automatically update the initializer
  • Upgraded Tailwind CSS from v1.2.0 to 1.4.6
  • Improved documentation!

v0.0.4

10 Mar 03:02
Compare
Choose a tag to compare

Changed

  • Major redesign!
  • Replaced the links to various actions (the "New", "View", "Edit", "Destroy"
    links) with configurable ones. See Super::Controls#resource_actions and
    Super::Controls#resources_actions
  • Replaced Super::InlineCallback with Super::Action. A Super::Action is
    built of two parts, the business logic of the controller action and its
    respective view.
  • Upgraded Tailwind CSS from v1.1.4 to v1.2.0. This is unlikely to be a breaking
    change.
    • Added first: variants for the padding classes
  • Conditionally show pagination links

Added

  • Some CSS classes for various form elements
  • Meta tags for responsive views on mobile
  • Configurable links to actions
  • Default behavior for Super::Controls#title and Super::Controls#scope
  • Utility classes for building views Super::Layout, Super::Partial, and
    Super::Panel

v0.0.3

25 Jan 03:52
Compare
Choose a tag to compare

Changed

  • Renamed form_generic_text and form_generic_select views to
    form_field_text and form_field_select, respectively
  • Renamed Super::Controls#dashboard to #actual

Added

  • Nested attributes form builder. It's now possible to build "sub-forms" for
    accepts_nested_attributes_for.
  • "Add new" button for has_many nested attributes