Calling API in LatestReportColumn.dart

and improving UI
This commit is contained in:
2026-08-28 16:14:42 +02:00
parent b3a13cd5a2
commit e7508a4c8e
5 changed files with 183 additions and 35 deletions
+3 -3
View File
@@ -98,14 +98,14 @@ void main() {
'Id': 'older',
'Author': 'Ada',
'Timestamp': '2026-08-20T10:00:00Z',
'Type': 'Info',
'Type': 'LOG',
'Text': 'first',
},
{
'Id': 'newer',
'Author': 'Grace',
'Timestamp': '2026-08-27T10:00:00Z',
'Type': 'Warning',
'Type': 'CODE_REVIEW',
'Text': 'second',
},
]),
@@ -115,7 +115,7 @@ void main() {
expect(reports.map((report) => report.id), ['newer', 'older']);
expect(reports.first.author, 'Grace');
expect(reports.first.type, 'Warning');
expect(reports.first.type, EReportType.codeReview);
});
test('maps error status codes onto ApiHttpException', () async {