From 9bb9ede3008817c7da185da097d074c8b94944bf Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Thu, 23 Apr 2026 19:23:39 +0200 Subject: [PATCH] polish(adjustments): empty-state card with recovery CTAs + sticky bar check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No-rows case now renders a proper card with two recovery paths: Clear filters (href back to ?status=adjustments) and Add adjustment (opens the existing #addAdjustmentModal — no new JS). Sticky filter bar (Task 2 CSS) verified functional — no ancestor clipping or overflow:hidden in the adjustments tab block. --- core/templates/core/payroll_dashboard.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/core/templates/core/payroll_dashboard.html b/core/templates/core/payroll_dashboard.html index e26ebf1..378a33a 100644 --- a/core/templates/core/payroll_dashboard.html +++ b/core/templates/core/payroll_dashboard.html @@ -899,10 +899,22 @@ {% endif %} {% else %} - {# Simple placeholder empty state — visual polish comes in Task 10 #} -
-
-

No adjustments match these filters.

+ {# No rows match the current filter set. Two recovery paths: clear filters (re-fetch unfiltered) or add a new adjustment (opens the existing #addAdjustmentModal). #} +
+
+
+
No adjustments match these filters.
+

Try clearing filters or adding a new adjustment.

+
+ + Clear filters + + +
+
{% endif %}