Truncate "text" arg value summaries by default (#6754)

Splitting out some work I had in #6254 that wasn't directly related to
onboarding into its own tiny PR.
This commit is contained in:
Frank Noirot
2025-05-07 22:22:04 -04:00
committed by GitHub
parent 91e306f447
commit 8ac232414d

View File

@ -148,6 +148,8 @@ function CommandBarHeader({ children }: React.PropsWithChildren<object>) {
),
4
)
) : arg.inputType === 'text' && !arg.valueSummary ? (
`${argValue.slice(0, 12)}${argValue.length > 12 ? '...' : ''}`
) : typeof argValue === 'object' ? (
arg.valueSummary ? (
arg.valueSummary(argValue)