2.1 KiB
2.1 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority, ordinal
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | ordinal |
|---|---|---|---|---|---|---|---|---|---|
| TASK-12 | Unify savings chat tools and sources UI | In Progress | 2026-06-16 09:07 | 2026-06-16 09:09 | high | 12000 |
Description
Replace duplicated Tools and Quellen panels in savings chat assistant messages with one combined evidence block when tool traces and generated sources describe the same data basis.
Acceptance Criteria
- #1 Assistant messages with both toolTrace and matching sources render a single Nachweis & Arbeitsweg block
- #2 The combined block exposes citation source ids on the evidence rows so inline markers still point at the same evidence
- #3 Sources-only assistant messages can still render a Quellen block for genuinely external sources
- #4 Focused component tests, targeted lint, and build pass
Implementation Plan
- Add regression tests for assistant messages where toolTrace and sources describe the same evidence.
- Replace the separate Tools + Quellen rendering path with a single Nachweis & Arbeitsweg evidence panel when toolTrace exists.
- Keep the Quellen-only fallback for messages that have sources without tool traces.
- Verify focused component tests, targeted lint, and production build.
- Commit the UI refinement; keep task In Progress until user confirms manual behavior.
Implementation Notes
Unified generated tool traces and generated sources in AgentChat. Assistant messages with toolTrace now render one Nachweis & Arbeitsweg disclosure and attach source ids to the evidence rows, so inline citation markers still resolve to the same evidence. Sources-only messages still render the Quellen fallback for external/document sources. Verification passed: npx vitest src/components/chat/AgentChat.test.tsx --run (13 tests), targeted eslint, npm run build (existing Vite chunk-size warning only).