Skip to content

feat: Implementation of Duplication Tests and Knowledge Context UX Enhancements #59

Description

@ericksonlopes

Description

Implemented a comprehensive test suite for the chunk duplication feature, covering repository, service, and API layers. Additionally, improved the sidebar UX by enabling simple-toggle multi-selection, fixing indicator icon bugs, and adding a search-by-name field for subjects.

Tasks

  • Create SQL repository tests for chunk duplicates tests/infrastructure/repositories/sql/test_chunk_duplicate_repository.py
  • Create service tests for duplicate detection logic tests/infrastructure/services/test_chunk_duplicate_service.py
  • Create API router tests for duplicate endpoints tests/presentation/api/routes/test_duplicate_router.py
  • Update SidebarContext.tsx to enable simple toggle selection for multiple bases.
  • Fix Check icon bug in multi-selection in SidebarContext.tsx.
  • Add search filter field in SidebarContext.tsx.
  • Fix tests/conftest.py import path for infrastructure.

Additional Context

The sidebar changes eliminate the need for Ctrl+Click, making the multi-knowledge selection more discoverable. The search field ensures usability as the number of knowledge bases grows.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions