Releases: BindaCMS/binda
Audio Feature
To upgrade from v0.1.6
create a new migration:
rails generate migration addAudioToAssets
Then update the file db/migrate/xxxxxx_add_audio_to_assets.rb
with the following line:
def change
add_column :binda_assets, :audio, :string
end
Once done just run migrations:
rails db:migrate
v0.1.6
Find below new features and updates introduced by version v0.1.6
.
New features
- Description of field groups and repeaters now appears on components and boards editors
- Field groups and field settings are now sortable
- Field groups now have a convenient way to list all its field settings
Updates
- Creating a component via console autogenerates all associated fields
- Repeater views are now more polished and DRY with
form-item--collapsable
- All classes with
position
value are now consistent, with counter starting from0
. - A combination of
FieldSetting
and Fieldable now can have only one associated field. This is true forText
String
Selection
Radio
Checkbox
Relation
Date
- More secure control over orphan fields
- Better installation process
Changelog & Fixes
Fixes and small updates
New feature
- Description of field groups and repeaters now appears on components and boards editors
Updates
- Creating a component via console autogenerates all associated fields
Fixes
- Repeaters sortable and change collapsable resize
- Possible unsync of fields instances on newly created fieldables
Sortable field groups and field setting list
Upgrading from previous version:
$ rails binda:remove_orphan_fields
$ rails binda:create_missing_field_instances
New features
- Field groups and field settings are now sortable
- Field groups now have a convenient way to list all its field settings
Updates
- Repeater views are now more polished and DRY with
form-item--collapsable
- All classes with
position
value are now consistent, with counter starting from0
. - A combination of
FieldSetting
and Fieldable now can have only one associated field. This is true forText
String
Selection
Radio
Checkbox
Relation
Date
- More secure control over orphan fields
- Better installation process
FIX
Minor fixes
v0.1.6.alpha.1 Fixes
Image details
How to upgrade from 0.1.4
In order to add image details related to width, height and content type create a new migration by running these from terminal:
rails generate migration addFileSizeAndContentType
On the new migration db/migrate/XXXXXXX_add_file_size_and_content_type.rb
add the following code
def change
add_column :binda_assets, :file_width, :float
add_column :binda_assets, :file_height, :float
add_column :binda_assets, :file_size, :float
add_column :binda_assets, :content_type, :string
end
At this point you can update the db by running the following line from terminal:
rails db:migrate
Now it's possible to update any previous Binda::Image
by running the following task.
rails binda:update_image_details
Deprecated methods
old method | new method |
---|---|
has_repeater | has_repeaters |
get_repeater | get_repeaters |
get_selection_choice | get_selection_choices |
New features
Binda::Image
now stores size, dimension and mime type of the image.
You can retrieve those details with the following methods.
image_setting = Binda::FieldSetting.find_by(slug: 'my-image')
component = Binda::Component.first
get_image_size('my-image')
# => 123.0
get_image_dimension('my-image')
# => { width: 123.0, height: 123.0 }
get_image_mime_type('my-image')
# => 'image/jpeg'
Fixes
- FIX #93
v0.1.4 — New select/radio/checkbox logic
In order to upgrade from 0.1.3
you need to run the following migration.
rails generate migration changeAllowNullDefault
Then in the migration file just created add the following line:
def change
change_column_default :binda_field_settings, :allow_null, true
end
Once done all you need is to migrate the database
rails db:migrate
NOTES
There is a new logic for select/radio/checkbox buttons. See Official Documentation
UPDATES
- Add remove orphan fields task to guidelines
- Better explanation of get_repeater helper
- Use JSPrettier to clean js and sass code properly
- Remove all glyphicons, better components index sorting
- Cleaned views, changed errors notices
- Add TinyMCE code button to toolbar
- Huge work on building the select/radio/checkbox logic and all tests.
- Add Rubocop to better test code locally
FIXES
- FIX #145
- FIX #128
- FIX #126
- FIX #149
- FIX #150
- FIX #130
- FIX #141
- FIX #22
- issue when saving field setting/group with a slug already present in database
- issue with has_string and has_text helpers that return false for empty string
- issue with sidebar on small viewports
- issue with release 4.7.5 of TinyMCE-rails and update the other dependencies
- description on selection fields
Minor fixes
UPDATE
- Better error handling over file uploads.
FIX
- FIX video file uploader
- FIX popup warning issues
- FIX popup warning and fileupload removal script
Minor Fixes and layout improvement
UPDATE
- ADD transition to sortable tables
- ADD table with div for sortable pages
- ADD transition to sortable
- Add loader for structure sortable index
- Separate fielg group parent settings from repeaters ones
- Update readme
FIX
- Reduce complexity
- FIX fieldgroup layout
- FIX codeclimate config file
- FIX choice
- FIX field group slug not being save on field group creation
- FIX structure sortable index table
- FIX odd transition of shadows when hovering sortable row, AND add flex layout
- FIX structures title
- FIX row td width 1of2
- FIX issue Sortable without shadow on Safari #138
Minor Fixes
UPDATE
- General layout improvement
FIX
- Add new GIF and video preview
- FIX default choice in generator
- FIX choices style
- FIX field_group delete link
- FIX sortable and layout
- FIX mistake on create_new_choice and reduce complexity on choice model
- Correct test specs
- Layout improvement and cleaner code (lots of stuff)
- Update Devise
- Reduce code complexity
- FIX routes
- Reduce code complexity
- Reduce code complexity
- FIX sortable on repeaters. Now should avoid displaying loader after having sorted repeaters order
- Remove bullet console.log