/oncall dedup - wrap texts to nextlines (#17782)

This commit is contained in:
Sehoon Shon
2026-01-28 10:13:25 -05:00
committed by GitHub
parent 4dca5c27c6
commit 899e8a9edc
@@ -822,7 +822,7 @@ Return a JSON object with:
minHeight={Math.min(candLines.length, VISIBLE_LINES_DETAIL)} minHeight={Math.min(candLines.length, VISIBLE_LINES_DETAIL)}
> >
{candViewLines.map((line: string, i: number) => ( {candViewLines.map((line: string, i: number) => (
<Text key={i} wrap="truncate-end"> <Text key={i} wrap="wrap">
{line} {line}
</Text> </Text>
))} ))}
@@ -881,7 +881,7 @@ Return a JSON object with:
minHeight={Math.min(targetLines.length, visibleLines)} minHeight={Math.min(targetLines.length, visibleLines)}
> >
{targetViewLines.map((line, i) => ( {targetViewLines.map((line, i) => (
<Text key={i} italic wrap="truncate-end"> <Text key={i} italic wrap="wrap">
{line} {line}
</Text> </Text>
))} ))}
@@ -949,7 +949,7 @@ Return a JSON object with:
? 'blue' ? 'blue'
: undefined : undefined
} }
wrap="truncate-end" wrap="wrap"
> >
{absoluteIndex + 1}. <Text bold>#{c.number}</Text>{' '} {absoluteIndex + 1}. <Text bold>#{c.number}</Text>{' '}
<Text color={getStateColor(c.state, c.stateReason)}> <Text color={getStateColor(c.state, c.stateReason)}>
@@ -963,7 +963,7 @@ Return a JSON object with:
- {c.title} (Score: {c.score}/100) - {c.title} (Score: {c.score}/100)
</Text> </Text>
<Box marginLeft={2}> <Box marginLeft={2}>
<Text color="gray" wrap="truncate-end"> <Text color="gray" wrap="wrap">
Reactions: {getReactionCount(c)} | {c.reason} Reactions: {getReactionCount(c)} | {c.reason}
</Text> </Text>
</Box> </Box>
@@ -997,14 +997,14 @@ Return a JSON object with:
<Text bold color="blue"> <Text bold color="blue">
Analysis:{' '} Analysis:{' '}
</Text> </Text>
<Text wrap="truncate-end"> {state.message}</Text> <Text wrap="wrap"> {state.message}</Text>
</Box> </Box>
{state.suggestedComment && ( {state.suggestedComment && (
<Box marginTop={1} flexDirection="column"> <Box marginTop={1} flexDirection="column">
<Text bold color="gray"> <Text bold color="gray">
Suggested Comment: Suggested Comment:
</Text> </Text>
<Text italic color="gray" wrap="truncate-end"> <Text italic color="gray" wrap="wrap">
&quot;{state.suggestedComment}&quot; &quot;{state.suggestedComment}&quot;
</Text> </Text>
</Box> </Box>