Skip to content

feat(right-panel): add branch-coverage tests for right-panel.tsx - #576

Merged
d-oit merged 1 commit into
mainfrom
feat/right-panel-branch-coverage
Jul 31, 2026
Merged

feat(right-panel): add branch-coverage tests for right-panel.tsx#576
d-oit merged 1 commit into
mainfrom
feat/right-panel-branch-coverage

Conversation

@d-oit

@d-oit d-oit commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Branch Coverage: right-panel.tsx (54.38% -> ~75% branches)

What

19 targeted tests covering key branches in the right-panel.tsx component.

Coverage Areas

Area Tests
CitationsPanel cited sources render, empty state when last assistant lacks citations, grounded footer
InspectorPanel no-entity state, selected-id fallback, close button, connection click, missing-target link filtering, confirm delete
SearchPanel ranked mode switch calls search, empty library state, entity result with meta, claim result via entityId, unresolved target, result click startEdit, no-targetId guard
SearchPanel keyword result click startEdit, create-entity button calls startNew

Notes

  • Uses vi.hoisted() for the store and search mocks (avoids Vitest TDZ on hoisted vi.mock references)
  • Follow-up observation: RightPanel passes onCreateEntity={() => startNew()} and the store startNew is () => void, so the create-entity button does not pre-fill the entity name despite its label; a store signature change is out of scope for this coverage PR

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
do-knowledge-studio Ready Ready Preview, v0 Jul 31, 2026 9:44am

@github-actions github-actions Bot added config tests Related to automated/manual tests labels Jul 31, 2026
@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@d-oit
d-oit merged commit d861051 into main Jul 31, 2026
23 checks passed
@d-oit
d-oit deleted the feat/right-panel-branch-coverage branch July 31, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config tests Related to automated/manual tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant