mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-23 16:13:04 +00:00
Papel communicator com nav própria e gate speechCatalog; acervo em /campanha/comunicacao/acervo com busca normalizada (destaque no trecho), filtros de ano/tema/alcance/fase/município/duração em URL canônica e paginação por discurso via speech.searchText (GIN trgm + backfill). Detalhe com player nativo no trecho, transcrição clicável, baixar/abrir fonte e fallback sem VOD. Resolve o débito do C153 (Sollinha fora da vertical) e corrige o parser de keywords oficiais no dono. Closes #956
19 lines
584 B
TypeScript
19 lines
584 B
TypeScript
import type { SpeechHighlightPart } from '@/lib/speechHighlight'
|
|
|
|
/**
|
|
* C154 — renders a speech text split into highlighted/normal parts (the card
|
|
* excerpt and the detail transcript share the same marking).
|
|
*/
|
|
export const SpeechHighlightParts = ({ parts }: { parts: readonly SpeechHighlightPart[] }) => (
|
|
<>
|
|
{parts.map((part, index) =>
|
|
part.highlighted ? (
|
|
<mark key={index} className="rounded-sm bg-amber-200/70 px-0.5 text-foreground">
|
|
{part.text}
|
|
</mark>
|
|
) : (
|
|
<span key={index}>{part.text}</span>
|
|
),
|
|
)}
|
|
</>
|
|
)
|