Skip to content

[Enhancement] Visually differentiate Issues vs PRs in Similarity Search results #49

@Kavirubc

Description

@Kavirubc

Problem Statement

With the recent changes in PR #48 (and related issues #46, #47), Simili-Bot now indexes both Issues and Pull Requests. However, the 'Similar Threads' output table does not visually distinguish between them.

Currently, it looks like:

| Similarity | Thread | Status |
| :--- | :--- | :--- |
| 95% | [#123 Fix login bug](...) | Open |
| 82% | [#124 Refactor auth](...) | Closed |

Users cannot tell if #124 is a PR or an Issue without clicking.

Proposed Solution

  1. Update Pipeline Model: Add Type string field to SimilarIssue struct in internal/core/pipeline/pipeline.go.
  2. Update Similarity Step: In internal/steps/similarity.go, extract the type field from the Qdrant payload (added in PR feat: CLI PR indexing (#46) & standardized embedding content (#47) #48) and populate the struct.
  3. Update Response Builder: In internal/steps/response_builder.go, prepend an icon or label to the thread link.
    • e.g., [PR] #124 ... or using icons 📝 (Vote/Issue) vs 🔀 (PR).

References

Feature Scope

  • Pipeline Steps
  • Response Builder

Metadata

Metadata

Assignees

Labels

coreRelated to core engineenhancementNew feature or requesthelp wantedExtra attention is neededuiRelated to User Interfacev0.2.0Target for v0.2.0

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions