Skip to content

Admin navigation - #183

Closed
dcollie2 wants to merge 3 commits into
ruby-for-good-2026from
admin-navigation
Closed

Admin navigation#183
dcollie2 wants to merge 3 commits into
ruby-for-good-2026from
admin-navigation

Conversation

@dcollie2

Copy link
Copy Markdown
Collaborator

What this does

Gives content managed by admins its own menu.

Issue

Closes #181

dcollie2 and others added 3 commits August 29, 2026 17:15
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 closed this Aug 30, 2026
@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.

1 participant