What changed, and why it matters
This commit fixes how the app groups transactions on the dashboard. Previously, transactions from the last 24 hours were labeled as 'today'; now only transactions from the current calendar day are labeled 'today'. It is a cosmetic UI change with no security relevance.
No security action needed; treat as a normal UI/UX fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change replaces a rolling 24-hour threshold with a calendar-day threshold (DateTime(now.year, now.month, now.day)) for bucketing transactions into the ‘recent/today’ section. It also updates the Flutter ValueKey from ‘last_7_days_section_item_key’ to ‘today_section_item_key’ for the TodayTransactionItem. No security-sensitive code is modified.
Changed components
lib/view_model/dashboard/formatted_item_list.dartInspect captured patch +3 / −3
diff --git a/lib/view_model/dashboard/formatted_item_list.dart b/lib/view_model/dashboard/formatted_item_list.dart
index 2348222c..45dfb663 100644
--- a/lib/view_model/dashboard/formatted_item_list.dart
+++ b/lib/view_model/dashboard/formatted_item_list.dart
@@ -9,7 +9,7 @@ List<ActionListItem> formattedItemsList(List<ActionListItem> items) {
items.sort((a, b) => b.date.compareTo(a.date));
final now = DateTime.now();
- final last24hThreshold = now.subtract(const Duration(hours: 24));
+ final todayTreshold = DateTime(now.year, now.month, now.day);
final last7daysThreshold = now.subtract(const Duration(days: 7));
final last30daysThreshold = now.subtract(const Duration(days: 30));
@@ -19,7 +19,7 @@ List<ActionListItem> formattedItemsList(List<ActionListItem> items) {
for (final transaction in items) {
final date = transaction.date;
- final bucket = date.isAfter(last24hThreshold)
+ final bucket = date.isAfter(todayTreshold)
? _DateBucket.recent
: date.isAfter(last7daysThreshold)
? _DateBucket.last7Days
@@ -33,7 +33,7 @@ List<ActionListItem> formattedItemsList(List<ActionListItem> items) {
formattedList.add(
TodayTransactionItem(
date,
- key: const ValueKey("last_7_days_section_item_key"),
+ key: const ValueKey("today_section_item_key"),
),
);
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.