Commit graph

6 commits

Author SHA1 Message Date
Tim Ren
13f0d5c952 refactor(web): extract citation TYPE_ICONS into a shared module
`citation.tsx` and `citation-list.tsx` each defined the same
`TYPE_ICONS: Record<CitationType, LucideIcon>` map with byte-identical
contents. Extract it into `./type-icons.ts` and import from both call
sites so the mapping has a single source of truth.

While here, drop the Lucide icon imports (`Code2`, `Database`, `File`,
`FileText`, `Newspaper`) and the now-unused `LucideIcon` / `CitationType`
type imports from the two call sites, keeping only the icons still used
directly (`Globe` for the fallback, `ExternalLink` for the hover
affordance).

Fixes #1190.
2026-04-15 20:07:47 +08:00
Anish Sarkar
0a26a6c5bb chore: ran linting 2026-04-07 05:55:39 +05:30
sukarxn
416b3635bf fix: optimize image components with next/image
- Replace raw <img> with Next.js Image in markdown-viewer.tsx
- Use next/image with fill + sizes in assistant-ui image.tsx
- Optimize favicons with explicit dimensions in citation components
- Set unoptimized=true for data/blob URLs and external favicons
2026-04-03 17:10:55 +05:30
Anish Sarkar
04691d572b chore: ran linting 2026-03-30 01:50:41 +05:30
Anish Sarkar
74826b3714 feat: enhance web search tool integration with citation management and UI enhancements 2026-03-30 01:38:36 +05:30
Anish Sarkar
9eab427b56 feat: introduce citation components from tool-ui with hover popover functionality and schema validation for enhanced citation management 2026-03-30 01:38:00 +05:30