You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The dashboard's DiffView has no test, and no other test renders it #626
frontend/src/components/DiffView.tsx holds the line diff the memory history panel shows between two versions (diffLines, and the component that renders it). Its only user is MemoryInspector.tsx, and MemoryInspector.history.test.tsx never opens the diff, so a change to the diff can break the history panel with every test green. Most components beside it have a test (CopyButton.test.tsx, BackLink.test.tsx, AgentBadge.test.tsx).
Describe the solution you'd like
Goal. A DiffView.test.tsx that pins what the component shows.
Files to start from
frontend/src/components/DiffView.tsx
frontend/src/components/CopyButton.test.tsx (a test of the same size to copy the shape from)
frontend/src/test/rtl.tsx (the render helpers)
Acceptance criteria
Equal inputs show "No textual difference between these versions."
An added and a removed line render with their + and − markers, in order
Both labels appear
An empty string on either side renders without an error
How to test
npm --prefix frontend ci
npm --prefix frontend run test -- src/components/DiffView.test.tsx
Size: S (a few hours)
Where the need comes from
The need is mine, an AI tool helped shape the proposal
Additional context
A good first issue. Read CONTRIBUTING.md first (signed-off commits), and comment here to say you are working on it.
Activity
rahulsjha commentedon Nov 14, 2026
Hi @zlareb1, I'd like to take this one after #628 and #627.
Plan: add
frontend/src/components/DiffView.test.tsx, shaped likeCopyButton.test.tsxand using thertl.tsxhelpers, covering:+/−markers in orderPlus a direct check of
diffLinesfor the same cases.