Skip to content

feat: added global search, ai assitant demo, refactoring#42

Merged
ducheharsh merged 6 commits into
devfrom
feat/global-search
Jun 10, 2025
Merged

feat: added global search, ai assitant demo, refactoring#42
ducheharsh merged 6 commits into
devfrom
feat/global-search

Conversation

@ducheharsh
Copy link
Copy Markdown
Collaborator

This pull request introduces several new features and updates across the backend and frontend applications. Key changes include adding Redis integration for caching and embedding-based searches, implementing new AI-driven functionalities like playful text generation, and enhancing the frontend user experience with visual improvements and new components.

Backend Changes

Redis Integration and Search Enhancements:

  • Added Redis client creation utilities in apps/backend/src/lib/redis.ts for caching and embedding-based searches.
  • Implemented globalSearchController in apps/backend/src/controllers/dev.controller.ts to perform embedding-based similarity searches and cache results using Redis.

AI Features:

  • Added octacat method to AIController in apps/backend/src/controllers/ai.controller.ts to generate playful text based on user context and journal entries.
  • Added octacat method to AIService in apps/backend/src/services/ai.services.ts to handle text generation logic.

Routing Updates:

  • Added /search and /octacat routes to apps/backend/src/routes/dev.route.ts and apps/backend/src/routes/ai.route.ts respectively for new functionalities. [1] [2]

Frontend Changes

UI Enhancements:

New Components:

  • Added Octacat component to the dashboard in apps/frontend/src/app/dashboard/page.tsx to display AI-generated playful text. [1] [2]

Dependency Updates:

  • Added several new dependencies, including @upstash/redis, cmdk, and fuse.js, in apps/backend/package.json and apps/frontend/package.json for enhanced functionality. [1] [2]

@ducheharsh ducheharsh merged commit f4c0761 into dev Jun 10, 2025
2 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