This commit is contained in:
Chris Chen
2026-05-27 07:49:26 -07:00
parent 62428cd2d4
commit 60405ef0aa
19 changed files with 74 additions and 49 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Placeholder enums — expand as the escrow module is built out
// Placeholder enums — expand as the church module is built out
export enum EscrowStatus {
Open = 'Open',
Closed = 'Closed',
+7 -1
View File
@@ -46,6 +46,8 @@ export interface TokenVerificationResult {
isValid: boolean;
/** Constructed from JWT claims when using secret-link login. */
user?: UserInfo;
/** The raw JWT from the URL — use as the access token for this session. */
accessToken?: string;
message?: string;
expiresAt?: Date;
requiresMfa?: boolean;
@@ -56,7 +58,11 @@ export interface TokenVerificationResult {
@Injectable({ providedIn: 'root' })
export class AuthService {
/** In-memory only — never written to localStorage. */
/**
* In-memory only — never written to localStorage.
* Non-private intentionally: unit tests seed state via these subjects directly.
* Production code must use getToken(), getCurrentUser(), and setCurrentUser().
*/
accessToken$ = new BehaviorSubject<string | null>(null);
currentUser$ = new BehaviorSubject<UserInfo | null>(null);
@@ -19,7 +19,7 @@ export class UiUtilsService {
constructor() { }
/**
* Get CSS class for escrow status
* Get CSS class for church status
*/
getStatusClass(status: EscrowStatus): string {
switch (status) {
@@ -35,7 +35,7 @@ export class UiUtilsService {
}
/**
* Get display label for escrow status
* Get display label for church status
*/
getEscrowStatusLabel(status: EscrowStatus): string {
switch (status) {
@@ -67,7 +67,7 @@ export class UiUtilsService {
}
/**
* Get icon for escrow status
* Get icon for church status
*/
getStatusIcon(status: EscrowStatus): SVGIcon | undefined {
switch (status) {
@@ -96,7 +96,7 @@ export class UiUtilsService {
return 'role-agent';
case CbAssigneeRole.EscrowOfficer:
case CbAssigneeRole.EscrowAssignee:
return 'role-escrow';
return 'role-church';
case CbAssigneeRole.LoanBroker:
case CbAssigneeRole.Lender:
return 'role-lender';
+2 -2
View File
@@ -105,7 +105,7 @@
color: #16a34a;
}
&.role-escrow {
&.role-church {
background: rgba(245, 158, 11, 0.1);
color: #d97706;
}
@@ -248,7 +248,7 @@
color: #4ade80;
}
&.role-escrow {
&.role-church {
background: rgba(245, 158, 11, 0.2);
color: #fbbf24;
}