mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +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:
parent
a2d179e1f3
commit
c7fe43db71
@ -351,7 +351,7 @@ export const ChangeRequestOverview: FC = () => {
|
|||||||
<StyledAsideBox>
|
<StyledAsideBox>
|
||||||
<ChangeRequestTimeline
|
<ChangeRequestTimeline
|
||||||
{...timelineProps}
|
{...timelineProps}
|
||||||
timestamps={changeRequest.stateTransitionTimestamps}
|
timestamps={changeRequest.stateTimestamps}
|
||||||
/>
|
/>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={approversEnabled}
|
condition={approversEnabled}
|
||||||
|
@ -24,7 +24,7 @@ import {
|
|||||||
} from './change-request-timeline-steps.ts';
|
} from './change-request-timeline-steps.ts';
|
||||||
|
|
||||||
export type ISuggestChangeTimelineProps = {
|
export type ISuggestChangeTimelineProps = {
|
||||||
timestamps?: ChangeRequestType['stateTransitionTimestamps']; // todo: update with flag `timestampsInChangeRequestTimeline`
|
timestamps?: ChangeRequestType['stateTimestamps'];
|
||||||
} & (
|
} & (
|
||||||
| {
|
| {
|
||||||
state: Exclude<ChangeRequestState, 'Scheduled'>;
|
state: Exclude<ChangeRequestState, 'Scheduled'>;
|
||||||
|
@ -19,7 +19,7 @@ type BaseChangeRequest = {
|
|||||||
rejections: IChangeRequestApproval[];
|
rejections: IChangeRequestApproval[];
|
||||||
comments: IChangeRequestComment[];
|
comments: IChangeRequestComment[];
|
||||||
conflict?: string;
|
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 & {
|
export type UnscheduledChangeRequest = BaseChangeRequest & {
|
||||||
|
Loading…
Reference in New Issue
Block a user