Add pin/unpin and chat export from sillanaresh/chorus-test#71
Closed
rmichelena wants to merge 3 commits into
Closed
Add pin/unpin and chat export from sillanaresh/chorus-test#71rmichelena wants to merge 3 commits into
rmichelena wants to merge 3 commits into
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>
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>
Author
|
Opened by mistake against upstream. The correct PR is in the personal fork. |
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.
Cherry-picks 3 commits from the fork sillanaresh/chorus-test:
48faec8Add pin/unpin functionality for conversations35cfc66Fix cache update sorting to respect pinned status7b42ed1Add chat export functionality (JSON and Markdown)Minor conflicts were resolved during cherry-pick:
ChatAPI.ts: kepttotalCostUsdfield alongside the activatedpinnedfieldAppSidebar.tsx: kept bothformatCostandExportAPIimportsTest plan
updated_at🤖 Generated with Claude Code