Skip to content

feat: integrate prompts library for community prompt browsing#76

Open
jl-codes wants to merge 1 commit intomainfrom
feat/prompts-library
Open

feat: integrate prompts library for community prompt browsing#76
jl-codes wants to merge 1 commit intomainfrom
feat/prompts-library

Conversation

@jl-codes
Copy link
Contributor

Summary

Integrates the @cline/prompts library into kanban, allowing users to browse and use community prompts directly from the kanban UI. This is the kanban counterpart to the core product integration (cline/cline#9170).

Changes

Backend

  • src/services/prompts-service.ts — New PromptsService wrapping @cline/prompts for fetching, searching, and retrieving prompts by ID
  • src/trpc/prompts-api.ts — New tRPC router with list, getById, and search endpoints
  • src/trpc/app-router.ts — Wire prompts router into the app router
  • src/core/api-contract.ts — Add prompts types to the API contract
  • src/server/runtime-server.ts — Initialize and inject PromptsService

Frontend

  • web-ui/src/components/prompts-library-view.tsx — Full prompts library panel with search, category filtering, and expandable prompt detail cards
  • web-ui/src/hooks/use-prompts-library.ts — React hook for data fetching via tRPC
  • web-ui/src/components/top-bar.tsx — BookOpen toggle button for opening/closing the library
  • web-ui/src/App.tsx — Wire prompts library panel into the app layout

Tests (20 total)

  • test/runtime/prompts-service.test.ts — 4 tests
  • test/runtime/prompts-api.test.ts — 7 tests
  • web-ui/src/components/prompts-library-view.test.tsx — 9 tests

All 291 existing tests continue to pass.

Add @cline/prompts library integration that allows users to browse and use
community prompts from the kanban UI. Similar to the integration in the core
product (cline/cline#9170).

Backend:
- Add PromptsService wrapping @cline/prompts for fetching/searching prompts
- Add tRPC prompts API (list, getById, search endpoints)
- Wire prompts router into app-router and runtime-server

Frontend:
- Add PromptsLibraryView component with search, category filtering, and
  prompt detail expansion
- Add usePromptsLibrary hook for data fetching via tRPC
- Add BookOpen toggle button in TopBar for opening/closing the library
- Wire prompts library panel into App.tsx layout

Tests:
- Add prompts-service.test.ts (4 tests)
- Add prompts-api.test.ts (7 tests)
- Add prompts-library-view.test.tsx (9 tests)
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