Skip to content
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

Merged
merged 20 commits into from
Mar 24, 2025
Merged

ActiveAdmin v3 admin panel #339

merged 20 commits into from
Mar 24, 2025

Conversation

experimatt
Copy link
Contributor

@experimatt experimatt commented Mar 9, 2025

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):

  • Events
  • Sessions
  • Participants
  • Admin Users

Demo

2025-03-22.ActiveAdmin.demo.mov

@experimatt experimatt linked an issue Mar 9, 2025 that may be closed by this pull request
4 tasks
@experimatt experimatt changed the title Mdecuir/active admin v3 ActiveAdmin v4 admin panel Mar 14, 2025
@experimatt experimatt changed the title ActiveAdmin v4 admin panel ActiveAdmin v3 admin panel Mar 21, 2025
@experimatt experimatt requested a review from Copilot March 22, 2025 16:06
Copy link

@Copilot Copilot AI left a 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
@experimatt experimatt requested review from unsay and pcantrell March 22, 2025 16:40
@experimatt experimatt merged commit cbd725c into main Mar 24, 2025
2 checks passed
@experimatt experimatt deleted the mdecuir/active-admin-v3 branch March 24, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add admin role / admin panel
1 participant