Skip to content

Commit 6080e34

Browse files
committed
refactor(ui): the mirrored route outcome's status is typed as the row's own status
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg3ayWUHg9nLoybejn
1 parent bfff5d1 commit 6080e34

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎ui/apps/console/src/services/approvalsApi.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ export interface ApprovalRequestRow {
133133
ahead: 'end' | 'undecided' | 'decided';
134134
outcome?: {
135135
step?: { id: string; label: string };
136-
status: string;
136+
/** A request status, typed as this row's own `status`. */
137+
status: ApprovalRequestRow['status'];
137138
ended: boolean;
138139
};
139140
};

‎ui/packages/app-shell/src/hooks/useRecordApprovals.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ export interface ApprovalRequestLite {
139139
*/
140140
outcome?: {
141141
step?: { id: string; label: string };
142-
status: string;
142+
/** A request status, typed as this row's own `status`. */
143+
status: ApprovalRequestLite['status'];
143144
ended: boolean;
144145
};
145146
};

0 commit comments

Comments
 (0)