Skip to content

feat: add dashboard home page with collection cards, stats, and model metadata#22

Merged
aGallea merged 4 commits into
masterfrom
dashboard-home-page
Feb 26, 2026
Merged

feat: add dashboard home page with collection cards, stats, and model metadata#22
aGallea merged 4 commits into
masterfrom
dashboard-home-page

Conversation

@aGallea

@aGallea aGallea commented Feb 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • New dashboard home page at / replacing the old Collections page — shows stats bar (collection count + total items), responsive collection cards grid with model metadata badges, and empty state onboarding
  • Collection cards support Visualize (navigates to Plot), Inspect (inline metadata expand), and Delete (with confirmation) actions
  • Backend enhancement: GET /api/collections now returns model_name and model_type from ChromaDB collection metadata
  • Routing update: NavBar is now Home | Index | Plot; deleted CollectionsPage and CollectionList components

Changes

Area Files What
Backend models.py, routes/collections.py Added model_name/model_type to CollectionInfo, read from collection metadata
Frontend HomePage.tsx, CollectionCard.tsx, CollectionGrid.tsx, StatsBar.tsx, EmptyState.tsx New dashboard components
Frontend App.tsx, types/index.ts Updated routing and TypeScript types
Frontend CollectionsPage.tsx, CollectionList.tsx Deleted (replaced by HomePage + CollectionGrid)
Tests test_server_collections.py 2 new tests for model metadata; updated assertions (8 total)

Test Plan

  • 178 backend tests pass (98.54% coverage)
  • ruff check + ruff format --check clean
  • mypy strict mode clean
  • Frontend tsc --noEmit + npm run build clean

@github-actions

Copy link
Copy Markdown

Tests Report 📄

Tests Succees ✅

JUnit Details

Total Tests Failures Errors Skipped Time ⏳
178 0 0 0 22.09s

Coverage Details (100% >= 90%) ✅

Diff Cover Details
FileCovered LinesMissing Lines
embedding_cluster/server/models.py2/2100%
embedding_cluster/server/routes/collections.py13/13100%
Total15/15100%

@aGallea aGallea merged commit 4a78a3b into master Feb 26, 2026
3 checks passed
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.

1 participant