Feature: order upload transaction preview by date descending
Transaction previews on the upload page now display with newest transactions first, making it easier to review recent imports at the top of the list.
This commit is contained in:
@@ -316,7 +316,10 @@ namespace MoneyMap.Pages
|
|||||||
addedInThisBatch.Add(key);
|
addedInThisBatch.Add(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
return PreviewOperationResult.Success(previewItems);
|
// Order by date descending (newest first)
|
||||||
|
var orderedPreview = previewItems.OrderByDescending(p => p.Transaction.Date).ToList();
|
||||||
|
|
||||||
|
return PreviewOperationResult.Success(orderedPreview);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<ImportOperationResult> ImportAsync(List<Transaction> transactions)
|
public async Task<ImportOperationResult> ImportAsync(List<Transaction> transactions)
|
||||||
|
|||||||
Reference in New Issue
Block a user