1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-07-22 03:05:32 +02:00
archivr/frontend
TheGeneralist 46a5251316
feat: suppress rendered media attachment URLs from tweet text
renderTweetTextJSX now accepts skipSpans=[] as third param.
Skip-span boundaries are added to the pts split set so a trailing
media t.co inside a plain segment still gets isolated and suppressed—
not re-linked by linkifyText. Early return only when both anns and
skipSpans are empty.

TweetCard computes mediaSkipSpans after building photos/videoItems:
for each rawMedia item whose src resolved (photo src match; any video),
resolveEntityBounds(m, ft, m.url) gives the precise [s,e] span using
indices/fromIndex first, indexOf fallback—then the span is passed to
renderTweetTextJSX so the t.co attachment URL is silently dropped.
2026-07-12 16:09:35 +02:00
..
.storybook feat(ui): add Storybook design system refinements 2026-06-28 21:01:50 +02:00
src feat: suppress rendered media attachment URLs from tweet text 2026-07-12 16:09:35 +02:00
bun.lock feat(ui): add Storybook design system refinements 2026-06-28 21:01:50 +02:00
index.html feat(ui): rewrite frontend in React with Vite 2026-06-24 12:24:34 +02:00
package.json feat(ui): add Storybook design system refinements 2026-06-28 21:01:50 +02:00
vite.config.js feat(ui): add Storybook design system refinements 2026-06-28 21:01:50 +02:00