File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
static/app/views/replays/detail/ai Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import {useReplaySummaryContext} from 'sentry/views/replays/detail/ai/replaySumm
2424import { NO_REPLAY_SUMMARY_MESSAGES } from 'sentry/views/replays/detail/ai/utils' ;
2525import TabItemContainer from 'sentry/views/replays/detail/tabItemContainer' ;
2626
27+ const MAX_SEGMENTS_TO_SUMMARIZE = 150 ;
28+
2729export default function Ai ( ) {
2830 const organization = useOrganization ( ) ;
2931 const {
@@ -226,7 +228,9 @@ export default function Ai() {
226228 < StyledTabItemContainer >
227229 < OverflowBody >
228230 < ChapterList timeRanges = { summaryData . data . time_ranges } />
229- { segmentCount > 100 && < Subtext > { replayTooLongMessage } </ Subtext > }
231+ { segmentCount > MAX_SEGMENTS_TO_SUMMARIZE && (
232+ < Subtext > { replayTooLongMessage } </ Subtext >
233+ ) }
230234 </ OverflowBody >
231235 </ StyledTabItemContainer >
232236 </ Wrapper >
You can’t perform that action at this time.
0 commit comments