Skip to content

Releases: Purple-Magic/tramway

0.5.2.1

18 Feb 17:07
Compare
Choose a tag to compare

0.5.2

17 Feb 20:07
Compare
Choose a tag to compare

What's Changed

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

22 Jan 16:09
Compare
Choose a tag to compare

Full Changelog: 0.5.1.3...0.5.1.5

0.5.1.3

21 Jan 09:02
Compare
Choose a tag to compare

Full Changelog: 0.5.1.2...0.5.1.3

0.5.1.2

20 Jan 19:01
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.1.1...0.5.1.2

0.5.1.1

20 Jan 02:43
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.1...0.5.1.1

0.5.1

14 Jan 19:12
Compare
Choose a tag to compare

What's Changed

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

09 Dec 13:22
Compare
Choose a tag to compare

Full Changelog: 0.5...0.5.0.1

0.5

09 Dec 00:16
Compare
Choose a tag to compare
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

Screenshot from 2024-11-21 02-10-46
Screenshot from 2024-11-21 02-17-29

In the mobile version, you're able to see the full row on click

Screenshot from 2024-11-21 02-20-11

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

Full Changelog: 0.4.9.3...0.5

0.4.9.3

19 Nov 22:52
Compare
Choose a tag to compare

What's changed basically?

  • Changed styles to have a more pretty inline Tailwind form

What's Changed

Full Changelog: 0.4.9.2...0.4.9.3