mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Improve notifications list UX with auto-refresh and friendly timestamps
- Show "Just now" for notifications 2 minutes old or less - Auto-refresh the list every minute, preserving the active filter Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f34dfe8386
commit
4f5a228aec
@@ -14,6 +14,7 @@ class FriendlyDateFormatter {
|
||||
dateTime.day,
|
||||
);
|
||||
|
||||
if (timeSince.inMinutes <= 2) return 'Just now';
|
||||
if (timeSince.inMinutes < 60) return '${timeSince.inMinutes} minutes ago';
|
||||
if (dateTimeWithoutTime == today) {
|
||||
return 'Today at ${DateFormat.Hm().format(dateTime)}';
|
||||
|
||||
Reference in New Issue
Block a user