Skip to content

feat(ui): add banner for missing embedding model configuration - #732

Merged
haiphucnguyen merged 2 commits into
mainfrom
feature/improvements
Sep 24, 2026
Merged

haiphucnguyen merged 2 commits into
mainfrom
feature/improvements

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

  • Introduce EmbeddingModelBanner component to display status when embedding model is not configured.
  • Update project, resource collection, and knowledge source panels to show banner when provider lacks embedding support.
  • Ensure UI handles missing embedding configuration gracefully.

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- Introduce EmbeddingModelBanner component to display status when embedding model is not configured.
- Add i18n keys for RAG embedding status across multiple locales.
- Update project, resource collection, and knowledge source panels to show banner when provider lacks embedding support.
- Adjust UI imports and spacing for consistency.
- Refactor progress indicator comments for clarity.
- Ensure UI handles missing embedding configuration gracefully.
Copilot AI lite review requested due to automatic review settings September 23, 2026 23:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds a shared embedding-model configuration banner and propagates embedding availability through project and resource-collection views.

Changes:

  • Added reusable banner component with localized messages.
  • Added provider/model status tracking and event refreshes.
  • Suppressed indexing progress UI when embeddings are unavailable.
File Description
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​resourcecollection/​ResourceCollectionsViewModel.kt Updated as part of this pull request.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​resourcecollection/​ResourceCollectionsView.kt Updated as part of this pull request.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​resourcecollection/​ResourceCollectionDetailView.kt Updated as part of this pull request.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​project/​ProjectView.kt Updated as part of this pull request.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​project/​ProjectsView.kt Updated as part of this pull request.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​Main.kt Updated as part of this pull request.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​knowledgesource/​KnowledgeSourcesPanel.kt Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_zh_TW.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_zh_CN.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_vi_VN.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_pt_BR.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_ko_KR.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_ja_JP.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_fr.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_es.properties Updated as part of this pull request.
desktop-shared/​src/​main/​resources/​i18n/​messages_de.properties Updated as part of this pull request.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​common/​components/​EmbeddingModelBanner.kt Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Two moderate issues remain in rescan handling and no-provider messaging.

Review effort: Lite
Findings: None

Resolved since last review (1)

@haiphucnguyen
haiphucnguyen merged commit a986ba6 into main Sep 24, 2026
10 of 11 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch September 24, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants