Skip to content

Releases: rx/presenters

v3.0.0-beta.3

07 Jun 22:05
Compare
Choose a tag to compare
v3.0.0-beta.3 Pre-release
Pre-release

3.0.0-beta.3 (2021-06-07)

Bug Fixes

  • added cli --version (4c5b10e)
  • added missing prepare context callbacks to Rails Engine (bafa36d)
  • added prepare context for Rails native views engine that sets the request and session automatically (a09f3c6)
  • Added version.rb to plugin generator (f1f2092)
  • Added version.rb to plugin generator (35187bf)
  • expanded plugin generator to include github semantic release, demo pom and sample README (06de7a2)
  • fixed unordered list partial rendering error (014f1d1)
  • generator not compatible with COPRL 3 Rails templating naming conventions (f6d80f0)
  • removed google_map built in plugin to its own plugin (a34290d)

Features

  • Added singular alias for common actions: load, replace, post, create, and delete (b57c305)

v3.0.0-beta.2

03 Jun 16:35
Compare
Choose a tag to compare
v3.0.0-beta.2 Pre-release
Pre-release

3.0.0-beta.2 (2021-06-03)

Bug Fixes

  • support for index presenters within Rails (06b5fb9)

v3.0.0-beta.1

02 Jun 22:11
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

3.0.0-beta.1 (2021-06-02)

BREAKING CHANGES

Migrating from Presenters v2 to COPRL Presenters v3

Clients
  • Refactor module Voom => Coprl
  • Replace in requires in app and lib files 'voom' => 'coprl'
Plugins

The plugins have been modified to support Rails native views.
There is a generator that you can also use to generate a new plugin: coprl generate plugin PLUGIN_NAME.
In some cases generating a new plugin and moving over the code may be the preferred option.

The rest of this guide assumes you are going to migrate it over manualy.

Module Rename
  • Rename library directory lib/voom => 'lib/coprl'
  • Refactor module Voom => Coprl
  • Replace in lib files 'voom/' => coprl/
View Changes

In the Coprl::Presenters::Plugins::PLUGIN_NAME::WebClientComponents
Add the following callback that points to your views directory

def view_dir_PLUGIN_NAME(pom)
    File.join(__dir__, '../../../../../../..', 'views', 'components')
end
  • Add an application directory under your view directory returned above.
  • Add a _ prefix to your templates.
  • Change erb render calls in your templates erb :"components/event" => partial "components/event"
  • Add raw calls to any javascript/css that you emitt from your templates, e.g., <%= raw File.read(File.expand_path('../../../../../../public/c3.min.css', __dir__) ) %>

Recommended

Move templates, javascript and css files into their own view directory at the root of the presenter.
This makes it easier to reason and find the appropriate parts of the plugin

v2.1.1

26 Apr 14:43
eedff5d
Compare
Choose a tag to compare

2.1.1 (2021-04-26)

Bug Fixes

  • Handle nested objects in event parameters from past action. (#304) (eedff5d)

v2.1.0

17 Mar 13:54
d83408a
Compare
Choose a tag to compare

2.1.0 (2021-03-17)

Bug Fixes

  • requested PR changes - fix demo, removed commented code and unused (daeb63f)
  • Update mark-up and styles for multi-select component to fix z-index (564a593)

Features

  • Add multiple selection dropdown component (9bf6798)

v2.0.3

11 Mar 22:41
7e32df0
Compare
Choose a tag to compare

2.0.3 (2021-03-11)

Bug Fixes

  • double file edit prints caused by multiple file watchers (cecd3fe)

v2.0.2

18 Feb 17:21
613082c
Compare
Choose a tag to compare

2.0.2 (2021-02-18)

Bug Fixes

  • Zietwerk::NameError related to version module (f85a016)

v2.0.1

23 Dec 00:03
Compare
Choose a tag to compare

2.0.1 (2020-12-23)

Bug Fixes

  • moved presenters cli to exe directory (bdea977)

Rails 6 compatible

01 Nov 18:24
5798541
Compare
Choose a tag to compare
  • Upgrade to Zeitwork 2 .
  • Add image grid component.
  • Add unordered list component.
  • Bring back autocomplete text field.
  • Dialog width/height can now be set as a percentage of the page.