Skip to content

Group administrative sections behind an Admin menu - #184

Merged
dcollie2 merged 1 commit into
ruby-for-good-2026from
admin-navigation
Aug 30, 2026
Merged

Group administrative sections behind an Admin menu#184
dcollie2 merged 1 commit into
ruby-for-good-2026from
admin-navigation

Conversation

@dcollie2

Copy link
Copy Markdown
Collaborator

The header listed People, Prescriptions, Medications, Medication types and Medication forms as five equal links. The last three are reference data - nobody using the app day to day adds a medication or invents a dosage form - so giving them equal billing with the work the app exists for was misleading.

They now sit behind one Admin link leading to /admin, which lists them, and a sub-nav band follows you into each one so they read as part of an area rather than as top-level sections.

The resources keep their own top-level paths and controllers; this is grouping in the navigation, not an Admin:: namespace. ApplicationHelper#admin_sections is the single list of what counts as admin, so the header link, the sub-nav and the landing page cannot disagree. When these pages stop being open to everyone, AdminController carries a note on where the gate goes.

Issue

Closes #181

The header listed People, Prescriptions, Medications, Medication types and
Medication forms as five equal links. The last three are reference data -
nobody using the app day to day adds a medication or invents a dosage form -
so giving them equal billing with the work the app exists for was misleading.

They now sit behind one Admin link leading to /admin, which lists them, and a
sub-nav band follows you into each one so they read as part of an area rather
than as top-level sections.

The resources keep their own top-level paths and controllers; this is grouping
in the navigation, not an Admin:: namespace. ApplicationHelper#admin_sections
is the single list of what counts as admin, so the header link, the sub-nav and
the landing page cannot disagree. When these pages stop being open to everyone,
AdminController carries a note on where the gate goes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T1LkcbAaEZigyffSKycUNy
@dcollie2
dcollie2 requested a review from dpowers1 August 30, 2026 12:55

@dpowers1 dpowers1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐴

@dcollie2
dcollie2 merged commit f488682 into ruby-for-good-2026 Aug 30, 2026
18 checks passed
@dcollie2
dcollie2 deleted the admin-navigation branch August 30, 2026 14:15
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.

2 participants