PowerPack for Bullet Train
is a collection of essential addons for the BulletTrain Rails SaaS starter kit.
Requirements:
- Bullet Train >= 1.7.17
This is a perpetual license (except major BulletTrain version upgrades). You will have access to all of the following, plus future features:
Demo Mode
- allows you deploy a copy of your app bypassing authentication
- seed demo team(s), user(s), and some app resources
- switch between users, teams, and roles
Automated Install with
bin/rails g bt_power_pack:demo_mode:install
Announcements
Automated Install with
bin/rails g bt_power_pack:announcements:install
Table Filtering
Automated Install with
bin/rails g bt_power_pack:filters:install
Here's a quick walkthrough:
Usage in a Nutshell
Use your trusted Super Scaffolding skills to set up table filtering. For example, the following command will set everything up for filtering your Campaign
tables by title
and status
:
bin/rails g super_scaffold:bt_power_pack:filter Campaign Team title:text_field status:super_select
Supported field types (for now):
- text_field
- super_select
- buttons
- more to come soon!
Roadmap
Known TODOs:
- Eject filter bar partial
Inline Editing
Automated Install with
bin/rails g bt_power_pack:inline_editing:install
Here's a quick walkthrough:
Usage
- Register Fields In Model
class Post < ApplicationRecord has_inline_edit_on title: :text_field, body: :trix_editor # etc. end
- Enable Inline Editing In Your Resource Controller
class Account::PostsController < Account::ApplicationController account_load_and_authorize_resource :post enable_inline_edit_for :post # etc. end
- Use the
inline_edit
Strategy In Your Views<% box.body do %> <% with_attribute_settings object: @post, strategy: :inline_edit do %> <%= render 'shared/attributes/text', attribute: :title %> <% end %> <% end %>
Notifications (coming soon)
Note: Apparently Rails is getting its own Action Notifier framework, so I'll hold back on this one for a bit: https://github.com/rails/rails/issues/50454
Hotwire ComboBox and Command Palette (coming soon)
Access to the private BulletTrain-PowerPack repository on GitHub