@@ -18,6 +18,7 @@ import { MenuItemId } from "app/components/Sidebar/SidebarMenu"
1818import { useEffect } from "react"
1919import { FilterType } from "../components/TimelineToolbar"
2020import { ClearLogsButton } from "../components/ClearLogsButton"
21+ import { TimelineStateActionItem } from "../components/TimelineStateActionItem"
2122
2223/**
2324 * Renders the correct component for each timeline item.
@@ -48,6 +49,11 @@ const TimelineItemRenderer = ({
4849 if ( item . type === CommandType . ApiResponse ) {
4950 return < TimelineNetworkItem item = { item } isSelected = { isSelected } onSelect = { handleSelectItem } />
5051 }
52+ if ( item . type === CommandType . StateActionComplete ) {
53+ return (
54+ < TimelineStateActionItem item = { item } isSelected = { isSelected } onSelect = { handleSelectItem } />
55+ )
56+ }
5157 if ( item . type === CommandType . Benchmark ) {
5258 return (
5359 < TimelineBenchmmarkItem item = { item } isSelected = { isSelected } onSelect = { handleSelectItem } />
@@ -60,13 +66,19 @@ const TimelineItemRenderer = ({
6066function getTimelineTypes ( activeItem : MenuItemId ) : FilterType [ ] {
6167 switch ( activeItem ) {
6268 case "logs" :
63- return [ CommandType . Log , CommandType . Display ]
69+ return [ CommandType . Log , CommandType . Display , CommandType . StateActionComplete ]
6470 case "network" :
6571 return [ CommandType . ApiResponse ]
6672 case "performance" :
6773 return [ CommandType . Benchmark ]
6874 default :
69- return [ CommandType . Log , CommandType . Display , CommandType . ApiResponse , CommandType . Benchmark ]
75+ return [
76+ CommandType . Log ,
77+ CommandType . Display ,
78+ CommandType . ApiResponse ,
79+ CommandType . Benchmark ,
80+ CommandType . StateActionComplete ,
81+ ]
7082 }
7183}
7284
0 commit comments