Conversation
📝 WalkthroughWalkthroughThe PR updates anchor tag rendering in chat messages to preserve HTML attributes and add a cursor-pointer class for visual feedback. It also implements a getMostRecentTimestamp helper function to standardize chat sorting by recent activity across Blabsy and Pictique, and refreshes updatedAt timestamps when messages are sent to ensure consistent chat ordering. Changes
Sequence DiagramsequenceDiagram
participant User
participant Client
participant ChatService
participant ChatContext
participant UI as Chat List UI
User->>Client: Send message
Client->>ChatService: sendMessage()
ChatService->>ChatService: Append message to chat
ChatService->>ChatService: Refresh chat.updatedAt to current time
ChatService->>ChatService: Extract most recent timestamp<br/>(via getMostRecentTimestamp)
ChatService->>ChatService: Sort chats by timestamp descending
ChatService-->>Client: Return sorted chats
Client->>ChatContext: Update chat state
ChatContext->>UI: Re-render with updated<br/>chat order
UI-->>User: Display chat list with sender's<br/>chat moved to top
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description of change
aims to fix chat sorting and evoting interactive text visibility
Issue Number
Closes #451
Closes #634
Type of change
How the change has been tested
n/a
Change checklist
Summary by CodeRabbit
Bug Fixes
Style
✏️ Tip: You can customize this high-level summary in your review settings.