diff --git a/src/application/routes/api/mod.rs b/src/application/routes/api/mod.rs
index d9a8e29..0ae2caf 100644
--- a/src/application/routes/api/mod.rs
+++ b/src/application/routes/api/mod.rs
@@ -67,8 +67,14 @@ pub(super) fn router() -> axum::Router {
.route("/nearby-cafes", get(cafes::nearby_cafes))
.route("/extract-roaster", post(roasters::extract_roaster))
.route("/extract-roast", post(roasts::extract_roast_info))
- .route("/extract-bag-scan", post(scan::extract_bag_scan))
- .route("/scan", post(scan::submit_scan))
+ .route(
+ "/extract-bag-scan",
+ post(scan::extract_bag_scan).layer(DefaultBodyLimit::max(10 * 1024 * 1024)),
+ )
+ .route(
+ "/scan",
+ post(scan::submit_scan).layer(DefaultBodyLimit::max(10 * 1024 * 1024)),
+ )
.route("/check-in", post(checkin::submit_checkin))
.route("/cups", get(cups::list_cups).post(cups::create_cup))
.route("/cups/{id}", get(cups::get_cup).delete(cups::delete_cup))
diff --git a/templates/base.html b/templates/base.html
index 2e1cebd..0d544cd 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -48,12 +48,33 @@
type="module"
src="https://cdn.jsdelivr.net/gh/starfederation/datastar@1.0.0-RC.6/bundles/datastar.js"
>
+
{% block head %}{% endblock %}
+
-{% endblock %}
-
{% block content %}
@@ -137,6 +128,7 @@
method="post"
action="/api/v1/roasters"
class="flex flex-col gap-4"
+ onsubmit="sessionStorage.setItem('toast', 'Roaster added')"
>
Add a roast first
- Bags need a roast. Add a roaster and roast to enable this form.
+ Bags need a roast.
+
+ to enable this form.
{% else %}
@@ -427,6 +445,7 @@
method="post"
action="/api/v1/bags"
class="mt-4 flex flex-col gap-4"
+ onsubmit="sessionStorage.setItem('toast', 'Bag added')"
>
@@ -497,14 +517,30 @@
Open a bag first
- Brews need an open bag of coffee. Add a bag to enable this form.
+ Brews need an open bag of coffee.
+
+ to enable this form.
{% else if grinder_options.is_empty() || brewer_options.is_empty() %}
Add gear first
- Brews need a grinder and brewer. Add gear to enable this form.
+ Brews need a grinder and brewer.
+
+ to enable this form.
{% else %}
@@ -516,6 +552,7 @@
method="post"
action="/api/v1/brews"
class="mt-4 flex flex-col gap-6 overflow-hidden pb-16 md:pb-0"
+ onsubmit="sessionStorage.setItem('toast', 'Brew added')"
>
@@ -568,6 +605,7 @@
step="any"
min="1"
required
+ aria-required="true"
class="input-field flex-1 text-center"
data-bind:_brew-weight
/>
@@ -616,6 +654,7 @@