mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
Fixes #1368 Previously, was duplicated in 4 places with 3 subtly different fallback behaviors: 1. inline-citation.tsx: returned on error 2. markdown-text.tsx: returned on error 3. assistant-message.tsx: returned on error 4. citation.tsx: returned on error Created canonical in that: - Returns - Strips prefix from hostname - Returns on invalid URL (safest contract) Updated all 4 call sites: - inline-citation.tsx: (preserves original fallback) - markdown-text.tsx: (preserves original fallback) - assistant-message.tsx: (drop-in, both return ) - citation.tsx: (drop-in, both return ) Co-authored-by: guangyang1206 <guangyang1206@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| connector-popup | ||
| assistant-message.tsx | ||
| chat-session-status.tsx | ||
| chat-viewport.tsx | ||
| citation-metadata-context.tsx | ||
| connector-popup.tsx | ||
| document-upload-popup.tsx | ||
| edit-composer.tsx | ||
| edit-message-dialog.tsx | ||
| image.tsx | ||
| inline-citation.tsx | ||
| inline-mention-editor.tsx | ||
| markdown-code-block.tsx | ||
| markdown-text.tsx | ||
| mention-chip.tsx | ||
| nested-scroll.tsx | ||
| reasoning-message-part.tsx | ||
| revert-turn-button.tsx | ||
| step-separator.tsx | ||
| thread-list.tsx | ||
| thread.tsx | ||
| token-usage-context.tsx | ||
| tooltip-icon-button.tsx | ||
| user-message.tsx | ||