Skip to content

Populate admin dropdown menu with all admin page routes#74

Merged
kristofer merged 1 commit intomainfrom
copilot/add-admin-pages-routes
Apr 29, 2026
Merged

Populate admin dropdown menu with all admin page routes#74
kristofer merged 1 commit intomainfrom
copilot/add-admin-pages-routes

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 29, 2026

The Admin dropdown in the header navbar was rendering with no items — visible toggle, empty menu.

Changes

  • app.html.heex — Added route links to the Admin dropdown, grouped with dividers:
    • Members, Cohorts, Projects
    • Join Requests
    • GitHub Whitelist, GitHub Blacklist
<ul class="dropdown-menu">
  <li><a href={~p"/admin/members"} class="dropdown-item">Members</a></li>
  <li><a href={~p"/admin/cohorts"} class="dropdown-item">Cohorts</a></li>
  <li><a href={~p"/admin/projects"} class="dropdown-item">Projects</a></li>
  <li><hr class="dropdown-divider" /></li>
  <li><a href={~p"/admin/join_requests"} class="dropdown-item">Join Requests</a></li>
  <li><hr class="dropdown-divider" /></li>
  <li><a href={~p"/admin/allowed_handles"} class="dropdown-item">GitHub Whitelist</a></li>
  <li><a href={~p"/admin/blacklisted_handles"} class="dropdown-item">GitHub Blacklist</a></li>
</ul>

The dropdown remains gated behind @current_member.is_admin, so it is invisible to non-admin users.

Copilot AI linked an issue Apr 29, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add admin pages routes to admin menu Populate admin dropdown menu with all admin page routes Apr 29, 2026
Copilot AI requested a review from kristofer April 29, 2026 01:00
@kristofer kristofer marked this pull request as ready for review April 29, 2026 01:02
@kristofer kristofer merged commit 105e978 into main Apr 29, 2026
1 check 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.

admin menu empty

2 participants