Releases: Purple-Magic/tramway
Releases · Purple-Magic/tramway
0.5.2.1
Full Changelog: 0.5.2...0.5.2.1
0.5.2
What's Changed
- Tailwind 4. Support by @kalashnikovisme in #89
Author:
Code review:
What's changed basically?
- It works with Tailwind 4
Full Changelog: 0.5.1.5...0.5.2
0.5.1.5
Full Changelog: 0.5.1.3...0.5.1.5
0.5.1.3
Full Changelog: 0.5.1.2...0.5.1.3
0.5.1.2
What's Changed
- Improve work with namespaced models by @kalashnikovisme in #88
Full Changelog: 0.5.1.1...0.5.1.2
0.5.1.1
0.5.1
What's Changed
- Support of Stimulus
change
action for Tramway Multiselect by @kalashnikovisme in #86
Author:
Code review:
What's changed basically?
- Added support of Stimulus
change
action for Tramway Multiselect
What's changed for tramway drivers?
Before
IT DIDN'T WORK
= tramway_form_for @user do |f|
= f.multiselect :role, data: { action: 'change->user-form#updateForm' }
After
Now! It works!
Full Changelog: 0.5.0.1...0.5.1
0.5.0.1
Full Changelog: 0.5...0.5.0.1
0.5
What's changed basically?
Tramway Entity now has the default index page
To get it, just do this
config/initializers/tramway.rb
Tramway.configure do |config|
config.pagination = { enabled: true }
config.entities = [
{
name: :user,
pages: [:index]
}
]
config.application_controller = 'Admin::ApplicationController' # to use layout, authentication, etc.
end
config/routes.rb
Rails.application.routes.draw do
mount Tramway::Engine, at: '/admin'
end
app/decorators/user_decorator.rb
class UserDecorator < Tramway::BaseDecorator
class << self
def list_attributes
[:email, :id, :created_at]
end
end
end
Now you have this page on /admin/users
In the mobile version, you're able to see the full row on click
In case you want to make the table row a link to the entity page, use this configuration:
config/initializers/tramway.rb
class UserDecorator < Tramway::BaseDecorator
def show_path
Rails.application.routes.url_helpers.admin_user_path(object)
end
end
What's Changed
- Tramway Entity Index Page by @kalashnikovisme in #85
Full Changelog: 0.4.9.3...0.5
0.4.9.3
What's changed basically?
- Changed styles to have a more pretty inline Tailwind form
What's Changed
- Change select styles in Tailwind Form Builder by @kalashnikovisme in #84
Full Changelog: 0.4.9.2...0.4.9.3