-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[WEB-5515]: comments ordering #8193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
WalkthroughThis PR standardizes comment timestamps to use creation time, updates comment time display in the UI, and adds React keys and an extra prop when rendering activity comment subcomponents. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,mts,cts}📄 CodeRabbit inference engine (.github/instructions/typescript.instructions.md)
Files:
🧬 Code graph analysis (1)apps/web/ce/components/comments/comment-block.tsx (1)
🔇 Additional comments (1)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a bug in the ordering of comments and activities in work item activity feeds by using created_at instead of edited_at for sorting. This ensures that items are displayed in the chronological order they were originally created, rather than being reordered when edited.
Key changes:
- Changed comment timestamp logic from
edited_at ?? updated_at ?? created_attocreated_atin the activity store - Removed unused
FCtype import from the activity-comment-root component - Added missing
keyprops to activity components in the rendering logic
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
apps/web/ce/store/issue/issue-details/activity.store.ts |
Updated comment timestamp to use created_at instead of the fallback chain for proper chronological ordering |
apps/web/core/components/issues/issue-detail/issue-activity/activity-comment-root.tsx |
Removed unused FC import and added missing React key props to rendered components |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* fix: comments ordering * fix: comment timestamp:
* fix: comments ordering * fix: comment timestamp:
* fix: comments ordering * fix: comment timestamp:
Description
This PR fixes the ordering comments in work item activity based on
created_atinstead of the previousedited_at.Type of Change
Summary by CodeRabbit
Bug Fixes
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.