feat: implement share account actions, view components, and pending checker tasks

This commit is contained in:
2026-08-27 10:23:25 +05:30
parent 1273bdbe0e
commit 83e58376cb
32 changed files with 1699 additions and 93 deletions
@@ -0,0 +1,29 @@
/**
* Copyright since 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import { Injectable, inject } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable, of } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { SharesService } from 'app/shares/shares.service';
/**
* Resolves the share accounts awaiting a checker's approval, for the Pending Share Accounts screen.
*
* An empty list on failure rather than a propagated error: this feeds one tab among many, and a
* failing endpoint should leave that tab empty rather than block the whole Approvals screen from
* loading.
*/
@Injectable()
export class GetPendingShareAccounts implements Resolve<any> {
private sharesService = inject(SharesService);
resolve(): Observable<any> {
return this.sharesService.getPendingShareAccounts().pipe(catchError(() => of([])));
}
}