Admin switchers in the header
A dedicated «Admin» dropdown in the header for users with write access, containing functionality that does not fit in the regular «Edit» menu.
Proposed content
- PR overview – list of open pull requests across all module repos (
samt-bu-docs,samt-bu-drafts,team-architectureetc.), with merge buttons directly in the interface - Build status – overview of active and recent builds in GitHub Actions
- Module update – manual trigger of
hugo mod get+ rebuild for all modules
Technical approach
- Shown only for users with
write/adminpermissions (reusecheckCollaboratorPermission) - GitHub API:
GET /repos/SAMT-X/{repo}/pullsfor all relevant repos - Merge via
PUT /repos/SAMT-X/{repo}/pulls/{number}/merge - Same dropdown pattern as existing «Edit» and «Content» switchers
Dependency
Requires the PR flow («Pull request support in the Edit menu») to be complete and in use.
Priority
Low – experimental idea. Evaluate after the PR flow has been thoroughly tested.