-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActiveAdmin v3 admin panel #339
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request introduces ActiveAdmin integration with Devise for an admin panel while scaffolding administrative interfaces for Events, Sessions, Participants, and Admin Users. Key changes include:
- Adding the activeadmin and devise gems along with necessary configuration and migrations.
- Creating new ActiveAdmin resource files for the admin dashboard, events, sessions, participants, and admin users.
- Updating routes, seeds, and core models to support administrative functionality.
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
config/locales/devise.en.yml | Added locale translations for Devise error and mailer messages |
app/admin/dashboard.rb | Created a basic dashboard page for admin users |
app/admin/events.rb | Configured ActiveAdmin interface for managing events |
config/initializers/active_admin.rb | Set up ActiveAdmin configuration such as site title and comments |
config/initializers/devise.rb | Customized Devise settings for admin user authentication |
app/admin/participants.rb | Added Participant admin interface with filters and scopes |
db/migrate/20250308212634_devise_create_admin_users.rb | Created migration for admin_users table |
app/admin/admin_users.rb | Set up ActiveAdmin interface for managing Admin Users |
app/admin/sessions.rb | Added Sessions admin interface with custom filters and display logic |
app/models/admin_user.rb | Added AdminUser model with relevant Devise modules |
config/routes.rb | Configured routes for ActiveAdmin and Devise integration |
db/seeds.rb | Added seed data for AdminUser in development environment |
app/models/application_record.rb | Defined ApplicationRecord as the abstract base class |
Gemfile | Integrated activeadmin and devise gems into the project |
app/models/session.rb | Introduced ransackable attributes and a method to check cancellation |
db/schema.rb | Updated schema with the admin_users table |
app/assets/javascripts/active_admin.js | Added javascript require for ActiveAdmin |
app/models/participant.rb | Updated Participant model with scope and ransack configuration |
…and session admin pages
This adds the
activeadmin
gem and scaffolds it with an initial barebones admin panel.Starting with AA v3, because upgrading to v4 beta (which will provide a much nicer, more mobile friendly interface) will be slightly more involved.
So far these models are covered (even if they're not perfect yet):
Demo
2025-03-22.ActiveAdmin.demo.mov