Skip to content

Move Members page under the admin namespace#71

Merged
kcdragon merged 2 commits into
mainfrom
move-memberships-to-admin
Jun 25, 2026
Merged

Move Members page under the admin namespace#71
kcdragon merged 2 commits into
mainfrom
move-memberships-to-admin

Conversation

@kcdragon

Copy link
Copy Markdown
Collaborator

Moves OrganizationMembershipsController, its view, and its tests into the Admin:: namespace so member management lives alongside the other admin-only tools. The controller now inherits Admin::ApplicationController's require_admin authorization (replacing the duplicated inline check), and the routes move under namespace :admin. The page is reached via a new "Members" card on the admin dashboard instead of a navbar link, which has been removed. The view is restyled to match the other admin index pages — shared header with the "Admin" eyebrow and a bordered table layout in place of the previous card list. Full test suite passes.

🤖 Generated with Claude Code

kcdragon and others added 2 commits June 24, 2026 22:39
Move OrganizationMembershipsController, its view, and tests into the
Admin:: namespace so member management lives alongside the other
admin-only tools. The controller now inherits Admin::ApplicationController's
require_admin auth, the page is reached via a card on the admin dashboard
instead of a navbar link, and its view is restyled to match the other
admin index pages (table layout, shared header).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The lint CI job flagged the CHART_COLORS array literal for missing spaces
inside its brackets, per rubocop-rails-omakase. Autocorrected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kcdragon kcdragon merged commit d3dbb7a into main Jun 25, 2026
5 checks passed
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.

1 participant