Add conversation pinning and chat export features#12
Open
sillanaresh wants to merge 3 commits intomeltylabs:mainfrom
Open
Add conversation pinning and chat export features#12sillanaresh wants to merge 3 commits intomeltylabs:mainfrom
sillanaresh wants to merge 3 commits intomeltylabs:mainfrom
Conversation
This commit implements a conversation pinning feature that allows users to pin important chats to the top of their chat list for quick access. Changes: - Added useTogglePinChat mutation in ChatAPI.ts to toggle pin status - Updated fetchChats query to sort pinned chats first (ORDER BY pinned DESC) - Removed deprecated comment from pinned field in Chat type - Added Pin/PinOff icons from lucide-react to AppSidebar - Implemented pin toggle button in chat list items - Pin icon shows as filled when chat is pinned, appears on hover when unpinned - Added tooltip showing "Pin chat" or "Unpin chat" based on state The pinned field already existed in the database schema but was marked as deprecated and unused. This change activates that functionality. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Additional Comments (1)
-
src/core/chorus/api/ChatAPI.ts, line 138-140 (link)logic: Sort order doesn't match the query - needs to sort by
pinnedfirst, thenupdatedAt
2 files reviewed, 1 comment
Addresses code review comment from greptile-apps bot. The useCacheUpdateChat function was sorting only by updatedAt, which didn't match the database query sorting (pinned DESC, updated_at DESC). Now sorts pinned chats first, then by updatedAt. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implements export feature that allows users to export chats as JSON or Markdown files. Properly handles multi-model conversations by grouping AI responses side-by-side for each user message turn. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Pin Conversations Feature
useTogglePinChatmutation in ChatAPI.tsExport Chat Feature
exportChatAsJSON()- Exports structured JSON with conversation turnsexportChatAsMarkdown()- Exports readable Markdown with side-by-side AI responsesTest Plan
🤖 Generated with Claude Code