SPB Git

web: truncate long interpretation arrays in the ask panel

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Simon-Pierre Boucher committed (Sep 12, 2026) parent b0f899a Browse files

1 changed file +2 −2

Unified Split
modified apps/web/src/app/search/page.tsx +2 −2
@@ -70,8 +70,8 @@ export default async function SearchPage({ searchParams }: { searchParams: Promi
70 .filter(([k]) => !['question', 'source', 'parser_version', 'llm_model', 'prompt_version', 'answer_style', 'filters'].includes(k)) 70 .filter(([k]) => !['question', 'source', 'parser_version', 'llm_model', 'prompt_version', 'answer_style', 'filters'].includes(k))
71 .filter(([, v]) => !(Array.isArray(v) && v.length === 0)) 71 .filter(([, v]) => !(Array.isArray(v) && v.length === 0))
72 .map(([k, v]) => ( 72 .map(([k, v]) => (
73− <Chip key={k} tone="outline" className="max-w-full whitespace-normal break-words"> 73+ <Chip key={k} tone="outline" className="max-w-full whitespace-normal! break-words">
74− {k.replace(/_/g, ' ')} = {Array.isArray(v) ? v.join(', ') : String(v)} 74+ {k.replace(/_/g, ' ')} = {Array.isArray(v) ? `${v.slice(0, 3).join(', ')}${v.length > 3 ? ` +${v.length - 3}` : ''}` : String(v)}
75 </Chip> 75 </Chip>
76 ))} 76 ))}
77 </p> 77 </p>
78 78
Menu

Theme