v0.3.15 - Enhance user search and mention system with task support
This pull request introduces a new, efficient user search API for @mention autocompletion, improves caching for user resolution, and updates the frontend to take advantage of these backend changes. It also makes several improvements to task listing API flexibility and cleans up some frontend code.
Backend: User Search and Caching Improvements
- Adds a new
/searchendpoint to the user API that returns users in prioritized tiers (task participants, org members, others), with Redis caching for both org members and task participants to reduce DB load. - Enhances the
/resolveendpoint to cache user summaries in Redis for faster mention chip rendering, reducing database lookups for frequently mentioned users.
Backend: Task Listing API Enhancements
- Updates the
baseTaskWherefunction and task listing endpoints to allow querying both public and private tasks, depending on user permissions. [1] [2] [3] - Increases the maximum allowed
limitfor task queries from 20 to 200 and adjusts error handling and validation accordingly. [1] [2]
Frontend: Mention Context and Editor Improvements
- Updates how mention context is set in pages so that both orgId and taskId/releaseId are included, enabling the new backend search to prioritize relevant users. [1] [2]
- Refactors the
Editorcomponent to use the improved mention user search, removes now-unnecessary props, and simplifies the logic for merging and resolving users for mention chips. [1] [2] [3] - Cleans up the
Editorcomponent by removing commented-out debugging code and clarifying event handler logic. [1] [2] [3]
Summary by CodeRabbit
New Features
- Added interactive link editing with hover controls to view, edit, and remove links in content
- Enhanced
@mentionautocomplete with improved user and task search, including caching and tiered results - Increased task list limit from 20 to 200 results
Bug Fixes
- Improved mention context to include task-specific information for better relevance
- Better handling of private task references in mentions (now displays "Private task" when unavailable)
Improvements
- Enhanced mention search performance with caching for better responsiveness
- Improved autocomplete menu styling and loading states
- Better task visibility filtering for member vs. public viewers
Full Changelog: #246