Skip to content

v0.3.15 - Enhance user search and mention system with task support

Choose a tag to compare

@github-actions github-actions released this 27 May 14:54
· 2 commits to main since this release
1e12a48

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 /search endpoint 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 /resolve endpoint 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 baseTaskWhere function and task listing endpoints to allow querying both public and private tasks, depending on user permissions. [1] [2] [3]
  • Increases the maximum allowed limit for 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 Editor component 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 Editor component 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 @mention autocomplete 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

Review Change Stack


Full Changelog: #246