From e508af4c52410f2e4a67dfd5bacbef17057e330b Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Wed, 4 Feb 2026 17:14:52 +0000 Subject: [PATCH] feat(nav): add check-in icon to navigation bar - Add checkin map-pin icon to shared icons partial - Add check-in nav link (icon on desktop, icon + text on mobile) - Only shown when authenticated - Set nav_active to "checkin" on the check-in page --- src/application/routes/checkin.rs | 2 +- templates/nav.html | 7 +++++++ templates/partials/icons.html | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/application/routes/checkin.rs b/src/application/routes/checkin.rs index 0f45dc4..4583a04 100644 --- a/src/application/routes/checkin.rs +++ b/src/application/routes/checkin.rs @@ -30,7 +30,7 @@ pub(crate) async fn checkin_page( let cafe_options = load_cafe_options(&state).await.map_err(map_app_error)?; let template = CheckInTemplate { - nav_active: "home", + nav_active: "checkin", is_authenticated: true, roast_options, cafe_options, diff --git a/templates/nav.html b/templates/nav.html index 34211ba..3041b84 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -16,6 +16,9 @@ {% call icons::home("inline h-4 w-4") %} {% if is_authenticated %} + + {% call icons::checkin("inline h-4 w-4") %} +
@@ -44,6 +47,10 @@ Home {% if is_authenticated %} + + {% call icons::checkin("inline h-4 w-4") %} + Check In +
diff --git a/templates/partials/icons.html b/templates/partials/icons.html index d89b8b1..6193150 100644 --- a/templates/partials/icons.html +++ b/templates/partials/icons.html @@ -85,6 +85,12 @@ {% endmacro %} +{% macro checkin(class) %} + +{% endmacro %} + {% macro x_circle(class) %}