Skip to content

Commit 60424d5

Browse files
ref(replay): update segment count on frontend (#103275)
follow up pr to #103274
1 parent d04218b commit 60424d5

File tree

1 file changed

+5
-1
lines changed
  • static/app/views/replays/detail/ai

1 file changed

+5
-1
lines changed

static/app/views/replays/detail/ai/ai.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import {useReplaySummaryContext} from 'sentry/views/replays/detail/ai/replaySumm
2424
import {NO_REPLAY_SUMMARY_MESSAGES} from 'sentry/views/replays/detail/ai/utils';
2525
import TabItemContainer from 'sentry/views/replays/detail/tabItemContainer';
2626

27+
const MAX_SEGMENTS_TO_SUMMARIZE = 150;
28+
2729
export 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>

0 commit comments

Comments
 (0)