1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

Update stateTransitions property in UI to match new API prop (#10438)

We renamed the property returned from the API, so we also need to update
the UI.
This commit is contained in:
Thomas Heartman 2025-07-30 12:13:19 +02:00 committed by GitHub
parent a2d179e1f3
commit c7fe43db71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -351,7 +351,7 @@ export const ChangeRequestOverview: FC = () => {
<StyledAsideBox>
<ChangeRequestTimeline
{...timelineProps}
timestamps={changeRequest.stateTransitionTimestamps}
timestamps={changeRequest.stateTimestamps}
/>
<ConditionallyRender
condition={approversEnabled}

View File

@ -24,7 +24,7 @@ import {
} from './change-request-timeline-steps.ts';
export type ISuggestChangeTimelineProps = {
timestamps?: ChangeRequestType['stateTransitionTimestamps']; // todo: update with flag `timestampsInChangeRequestTimeline`
timestamps?: ChangeRequestType['stateTimestamps'];
} & (
| {
state: Exclude<ChangeRequestState, 'Scheduled'>;

View File

@ -19,7 +19,7 @@ type BaseChangeRequest = {
rejections: IChangeRequestApproval[];
comments: IChangeRequestComment[];
conflict?: string;
stateTransitionTimestamps?: Partial<Record<ChangeRequestState, string>>; // todo(timestampsInChangeRequestTimeline): make sure this matches the model and what we return from the API
stateTimestamps?: Partial<Record<ChangeRequestState, string>>;
};
export type UnscheduledChangeRequest = BaseChangeRequest & {