Implement time-range filter
Some checks failed
Build Docker and Deploy / Build Docker Container (push) Successful in 49s
Build Docker and Deploy / Run Unit-Tests (push) Failing after 11m28s
Build Docker and Deploy / Deploy to Server (push) Has been skipped

This commit is contained in:
2025-05-11 16:32:55 +02:00
parent 255fc9337c
commit 84ac1e53b6
5 changed files with 31 additions and 52 deletions

View File

@@ -81,9 +81,9 @@ class _DebugRequestViewPageState extends State<DebugRequestViewPage> {
UI.buttonIconOnly(
iconSize: 14,
onPressed: () {
Clipboard.setData(new ClipboardData(text: title));
Clipboard.setData(new ClipboardData(text: value));
Toaster.info("Clipboard", 'Copied text to Clipboard');
print('================= [CLIPBOARD] =================\n${title}\n================= [/CLIPBOARD] =================');
print('================= [CLIPBOARD] =================\n${value}\n================= [/CLIPBOARD] =================');
},
icon: FontAwesomeIcons.copy,
),

View File

@@ -340,9 +340,14 @@ class _MessageListPageState extends State<MessageListPage> with RouteAware {
var chipletsTimeRange = _filterChiplets.where((p) => p.type == MessageFilterChipletType.timeRange).toList();
if (chipletsTimeRange.isNotEmpty) {
//TODO
//filter.timeAfter = chipletsTimeRange[0].value1 as DateTime;
//filter.timeBefore = chipletsTimeRange[0].value2 as DateTime;
var t0 = (chipletsTimeRange[0].value as DateTimeRange).start.toLocal();
var t1 = (chipletsTimeRange[0].value as DateTimeRange).end.toLocal();
t0 = DateTime(t0.year, t0.month, t0.day, 0, 0, 0, 0);
t1 = DateTime(t1.year, t1.month, t1.day, 23, 59, 59, 999);
filter.timeAfter = t0;
filter.timeBefore = t1;
}
return filter;