Skip to content

Admin navigation - #182

Closed
dcollie2 wants to merge 35 commits into
mainfrom
admin-navigation
Closed

Admin navigation#182
dcollie2 wants to merge 35 commits into
mainfrom
admin-navigation

Conversation

@dcollie2

Copy link
Copy Markdown
Collaborator

What this does

Gives content managed by admins its own menu.

Issue

Closes #181

Roberta Talmage and others added 30 commits August 28, 2026 14:41
person scaffold, medication type scaffold, medication models scaffold
Add User Auth with Devise
This PR adds Devise user auth to the app.
Also alphabetizes the Gemfile.
Add basic design without touching scaffolded views
Upgrade ruby-version and mise version
mattthomas2803-max and others added 5 commits August 29, 2026 15:28
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.

Admin-only Items Should have their own menu

7 participants