Kingrayhan/fix#90
Conversation
…nCard components - Updated the layout of the ArticleCard to use 'shrink-0' for the avatar container. - Modified UserInformationCard to improve alignment and responsiveness by changing 'items-center' to 'items-start' and adjusting flex properties for better layout control. - Enhanced the avatar and name sections for consistent styling and improved visual hierarchy.
…ndling - Added a new utility function `resolveArticleExcerpt` to prioritize stored excerpts over derived ones from article bodies. - Updated article processing in `userArticleFeed` and `articlesByTag` to utilize the new excerpt resolution logic, enhancing content presentation.
- Implemented updateMyComment function to allow users to edit their comments, including validation for ownership and authorization. - Added deleteMyComment function to enable users to delete their comments along with nested replies, ensuring proper authorization checks. - Updated CommentActionInput schema to increase the maximum body length for comments. - Enhanced the CommentSection component to support editing and deleting comments with appropriate user feedback.
- Introduced a skeleton loader for comments while data is being fetched, enhancing user experience during loading. - Updated the layout of the CommentSection to improve accessibility and visual hierarchy, including a more responsive design. - Added error handling for comment loading failures, providing user feedback when comments cannot be retrieved. - Enhanced the CommentEditor with a new compact variant and improved button styling for better usability.
- Enhanced the CommentItem component by refining the collapse/expand functionality with smoother transitions and improved accessibility. - Updated button styling for better visual feedback during interactions. - Streamlined the rendering logic for editing comments, ensuring a more responsive and user-friendly experience.
…d reactions - Updated interfaces and input schemas to include "GIST" as a valid resource type for comments and reactions. - Enhanced the createMyComment action to validate the existence of GIST resources. - Modified components to accommodate the new resource type, ensuring consistent handling in the UI. - Improved type safety and user experience by integrating GIST support in relevant sections of the application.
- Updated CHANGELOG.md to document new features, bug fixes, and other changes for version 1.4.0. - Bumped version number in package.json to 1.4.0. - Extended resource type support to include GIST across comments and reactions. - Enhanced CommentSection with loading states and improved layout. - Implemented resolveArticleExcerpt utility for better excerpt handling. - Improved comment functionality with update and delete actions. - Refactored comment item layout and transition effects, and adjusted layout in ArticleCard and UserInformationCard components.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis release (v1.4.0) extends the platform with GIST resource support for comments and reactions, introduces a new tags index page with article counts, adds comment update and delete actions with improved UI, implements excerpt resolution utilities, and refines layouts and navigation across multiple components. Changes
Sequence DiagramssequenceDiagram
participant User
participant CommentUI as Comment<br/>Section
participant API as updateMyComment/<br/>deleteMyComment
participant DB as Database
User->>CommentUI: Click Edit/Delete
CommentUI->>CommentUI: Validate ownership &<br/>parse input
CommentUI->>API: Send mutation request
API->>API: Authorize session &<br/>verify ownership
API->>DB: Update/Delete comment &<br/>relations
DB->>API: Return success
API->>CommentUI: Return result
CommentUI->>CommentUI: Invalidate queries &<br/>show toast
CommentUI->>User: Update UI state
sequenceDiagram
participant User
participant Page as Tags Index<br/>Page
participant API as getTagsWithArticleCounts
participant DB as Database
User->>Page: Navigate to /tags
Page->>API: Fetch tags with counts
API->>DB: Execute JOIN query on<br/>tags, articles, article_tag
DB->>API: Return aggregated results
API->>Page: Return TagWithArticleCount[]
Page->>Page: Render grid of<br/>tag links
Page->>User: Display tags page
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary by CodeRabbit
New Features
Enhancements
Version