deerflow2/frontend/src/components/workspace/artifacts
ruitanglin 175c1d2e3b refactor(frontend): simplify and deduplicate Citation-related code
- Extract removeCitationsBlocks in utils, reuse in parseCitations and removeAllCitations
- Add hasCitationsBlock; isCitationsBlockIncomplete now uses it
- Add useParsedCitations hook (parseCitations + buildCitationMap) for message/artifact
- Add CitationAwareLink to unify link rendering (message-list-item + artifact-file-detail)
- Add getCleanContent helper; message-group uses it and useParsedCitations
- ArtifactFileDetail: single useParsedCitations, pass cleanContent/citationMap to Preview
- Stop exporting buildCitationMap and removeCitationsBlocks from citations index
- Remove duplicate MessageLink and inline link logic in artifact preview

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 12:13:06 +08:00
..
artifact-file-detail.tsx refactor(frontend): simplify and deduplicate Citation-related code 2026-02-09 12:13:06 +08:00
artifact-file-list.tsx feat: support subtasks 2026-02-07 16:14:48 +08:00
context.tsx feat: add file icons 2026-02-02 10:02:31 +08:00
index.ts feat: integrated with artifacts 2026-01-17 00:02:03 +08:00