From 8dd7ae8c95934748addc7c39429f138f34d4149b Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 12 May 2026 23:57:26 -0700 Subject: [PATCH] feat(dashboard): add admin-only Last Synced column Adds a "Last Synced" column visible only to admins, positioned as the last column. Displays the sync timestamp formatted as YYYY-MM-DD. Includes the column in the visibility toggle modal. --- app.py | 3 ++- templates/dashboard.html | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index d1521c3..564111b 100644 --- a/app.py +++ b/app.py @@ -278,7 +278,8 @@ def dashboard(page=1): current_page=page, total_pages=total_pages, total_projects=total_projects, - per_page=per_page) + per_page=per_page, + is_admin=is_admin) diff --git a/templates/dashboard.html b/templates/dashboard.html index 6ea06e8..17e11bd 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -167,6 +167,9 @@ Date Possession Recovered Attorney's Fees Costs + {% if is_admin %} + Last Synced + {% endif %} @@ -542,6 +545,13 @@ {{ r.costs }} {% endcall %} + {% if is_admin %} + + {% call expander() %} + {% if r.last_synced_at %}{{ r.last_synced_at.split('T')[0] }}{% endif %} + {% endcall %} + + {% endif %} {% else %} @@ -610,7 +620,8 @@ 'Matter Gate or Entry Code', 'Date Possession Recovered', 'Attorney\'s Fees', - 'Costs' + 'Costs', + 'Last Synced' ], selectAll: true, visibleColumns: [],