- Replace flatpickr with date and datetime fields for better accessibility
- Remove Tailwind CDN
- Add styles through asset pipeline
- Refactor JavaScript into an Import map (separate from the Rails app)
- Include Rails route helpers in Madmin controllers and views for better integration with the main app
- Add
menu
to resources to allow customizing navigation sort order and add headers for grouping
# config/initializers/madmin.rb
# Add a Payments header at the first position in the menu
Madmin.menu.add label: "Payments", position: 0
class SubscriptionResource < Madmin::Resource
# Add Subscriptions under the Payments header
menu parent: "Payments"
end
member_action
now yields the record to the block
class UserResource < Madmin::Resource
member_action do |user|
button_to "Impersonate", impersonate_user_path(user)
end
end
- Fix compatibility with Pagy 8.x
- Fix enum and constant lookup
- Relax pagy version dependency - @excid3
- Fix unpermitted params on search - @excid3
- Fix importmaps for JS - @excid3
- Use stimulus-flatpickr beta 3
- Add
Madmin::Fields::File
type for Shrine, Carrierwave, etc - @excid3
- Support isolated namespace models - @excid3
- Use
polymorphic_path
for generating URLs - @excid3
- Automatically link
id
column to show action - @excid3
- Add
Edit
link to index - @excid3
- Fix install generator by adding an ApplicationController to the gem - @excid3
- Fix controller inheritance for Rails 6 by making it explicit - @excid3
- Upgraded to Stimulus 3.0 - @excid3
- Fix nested forms - @excid3
- Add scrollbar on index for wide tables - @jacobdaddario
- Rails 7 support 🚀 - @excid3
- Add support for store_accessors - @jacobdaddario
- Handle records not having
created_at
columns when setting the default_sort column - @afomera / @excid3
- Reset page on search submit - @jitingcn
- Catch Pagy overflow errors - @excid3
- Add custom field support - @excid3
- Refactor
Resource.attributes
from an array to hash for faster lookup - @excid3
- Allow users to override default sort column and direction on resources
- Add sortable columns on the index for resources
- Don't include
form: false
fields from nested resources in nested resource field params
- Add
has_secure_password
support
- Add
madmin:views:javascript
generator
- Fix
madmin:views
generator to copy all templates
- Use unpkg for assets instead of skypack. Skypack was missing slimselect css
- Check if Rails UJS is loaded before starting it
- Fix belongs_to when nil - @excid3
- Improve support for enums - @excid3
- Add view generators - @esmale
- Releasing 1.0.0 to prevent confusion - @excid3
- Ignore autogenerated HABTM models - @excid3
- Use Skypack for CSS & JS - @excid
- Add support for all the Postgres, MySQL, and SQLite types supported by Rails - @excid3
- Add decimal support - @excid3
- Add HABTM example - @excid3
- Added
scope
support to Resources and filtering on index page - @excid3
- Open sourced for the first time