Skip to content

feat(nav): "Drucker" Link in Nav-Bar (Admin) + getrennte ActiveNav-Werte#135

Merged
strausmann merged 1 commit into
mainfrom
fix/nav-admin-printers
Jun 23, 2026
Merged

feat(nav): "Drucker" Link in Nav-Bar (Admin) + getrennte ActiveNav-Werte#135
strausmann merged 1 commit into
mainfrom
fix/nav-admin-printers

Conversation

@strausmann

Copy link
Copy Markdown
Owner

Nav-Bar hatte keinen Link auf /admin/printers. Plus getrennte ActiveNav-Werte für Drucker- und API-Keys-Admin damit der aktive Tab eindeutig highlighted wird. Templates-Link bleibt drin laut Issue #104.

…tiveNav-Werte

Die Nav-Bar hatte keinen Link auf /admin/printers, obwohl Phase 7 die Admin-UI
für Drucker-Verwaltung bereitgestellt hat. User mussten die Route raten oder
via Browser-Adresszeile direkt aufrufen.

Außerdem teilten die beiden Admin-Bereiche (Drucker + API-Keys) denselben
ActiveNav-Wert "admin" — der aktive Tab war nicht eindeutig.

Änderungen:
- layout.html: "Drucker" Link zwischen Templates und API Keys ergänzt
- admin_printers.go: ActiveNav = "admin-printers" (7 Handler)
- admin_api_keys.go: ActiveNav = "admin-api-keys" (5 Handler)
- base.go: TemplateData Docstring aktualisiert

Templates-Link bleibt drin — laut Issue #104 (Phase 1k.3 User-Templates) ist
das Konzept weiterhin geplant. Aktuell gibt der Link 503 weil der Backend-
Endpoint noch nicht da ist. Das wird mit #104 reaktiviert.

Refs Issue #104 (Templates Phase 1k.3)
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request improves the administrative navigation experience by adding a dedicated link for printer management and refining the active state logic for admin tabs. By decoupling the navigation states for printers and API keys, the UI now correctly highlights the specific section the user is currently viewing.

Highlights

  • Navigation Update: Added a new 'Drucker' (Printer) link to the main navigation bar.
  • Active Navigation State: Introduced granular 'ActiveNav' values ('admin-printers' and 'admin-api-keys') to ensure correct highlighting of the active tab in the UI.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@strausmann strausmann merged commit 1e982b0 into main Jun 23, 2026
11 of 13 checks passed
@strausmann strausmann deleted the fix/nav-admin-printers branch June 23, 2026 14:04

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the navigation menu by splitting the generic "admin" active navigation state into separate "admin-printers" and "admin-api-keys" states, allowing for more precise active link highlighting. It also adds a new link for printers to the navigation bar. The review feedback suggests changing the German label "Drucker" to "Printers" to maintain English language consistency across the navigation bar.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

<a href="/" class="nav-link {{if eq .ActiveNav "dashboard"}}nav-link-active{{end}}">Dashboard</a>
<a href="/jobs" class="nav-link {{if eq .ActiveNav "jobs"}}nav-link-active{{end}}">Jobs</a>
<a href="/templates" class="nav-link {{if eq .ActiveNav "templates"}}nav-link-active{{end}}">Templates</a>
<a href="/admin/printers" class="nav-link {{if eq .ActiveNav "admin-printers"}}nav-link-active{{end}}">Drucker</a>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Die Navigationsleiste verwendet ansonsten englische Begriffe ("Dashboard", "Jobs", "Templates", "API Keys"). Um die Benutzeroberfläche konsistent zu halten, sollte dieser Link ebenfalls auf Englisch ("Printers") beschriftet werden.

Suggested change
<a href="/admin/printers" class="nav-link {{if eq .ActiveNav "admin-printers"}}nav-link-active{{end}}">Drucker</a>
<a href="/admin/printers" class="nav-link {{if eq .ActiveNav "admin-printers"}}nav-link-active{{end}}">Printers</a>

github-actions Bot pushed a commit that referenced this pull request Jun 24, 2026
## 0.11.0 (2026-06-24)

* feat(auth): Pangolin-SSO + Bypass für alle Scopes trusted (ADR 0014) (#133) ([4fe1a91](4fe1a91)), closes [#133](#133) [#78](#78) [130/#132](#132)
* feat(nav): "Drucker" Link für Admin-Drucker-Verwaltung + getrennte ActiveNav-Werte (#135) ([1e982b0](1e982b0)), closes [#135](#135) [#104](#104) [#104](#104) [#104](#104)
* fix(frontend): forward Remote-User zum Backend (Pangolin SSO-Standard-Header) (#132) ([38c0cc3](38c0cc3)), closes [#132](#132) [#130](#130) [#130](#130) [#131](#131) [#130](#130)
* fix(frontend): forward X-Pangolin-Token zum Backend (Browser-User 503-Fix) (#130) ([5fb2038](5fb2038)), closes [#130](#130)
* fix(frontend): forwardAuth ergänzt X-Pangolin-Token + Remote-User (Admin-Routes) (#134) ([af9ee28](af9ee28)), closes [#134](#134) [130/#132](#132) [#130](#130) [#132](#132) [#133](#133)
* chore(deps): bump the go-minor-and-patch group across 1 directory with 2 updates (#128) ([a72dd90](a72dd90)), closes [#128](#128)
* ci(deps): bump lewagon/wait-on-check-action in the actions-all group (#127) ([e4139ab](e4139ab)), closes [#127](#127)
* docs(api): printers.yaml weg, Drucker in DB + /admin/printers Admin-UI (#124) [DRAFT] (#125) ([41bef28](41bef28)), closes [#124](#124) [#125](#125) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#3099](https://github.com/strausmann/label-printer-hub/issues/3099) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#3099](https://github.com/strausmann/label-printer-hub/issues/3099) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [#124](#124) [compose-passthrou#Pflicht](https://github.com/compose-passthrou/issues/Pflicht)

[skip ci]
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