Refactor pagination logic and add error handling in history

Introduced `updatePageSize` for better page size management and added checks to prevent rapid page changes. Enhanced error handling in `history.component` with retry logic on failure. Implemented `RemoveTrailingPeriodPipe` for cleaner UI formatting.
This commit is contained in:
2025-04-18 19:32:23 +02:00
parent 53f67a5075
commit 21f2b3e4a5
5 changed files with 60 additions and 8 deletions
@@ -0,0 +1,15 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'removeTrailingPeriod',
standalone: true
})
export class RemoveTrailingPeriodPipe implements PipeTransform {
transform(value: string): string {
if (!value) {
return value;
}
return value.endsWith('.') ? value.slice(0, -1) : value;
}
}