[WEB-4608] fix: comment filter for enhanced search #3780

This commit is contained in:
Vamsi Krishna
2025-08-11 19:17:45 +05:30
committed by GitHub
parent 13681404db
commit b32bae457d
2 changed files with 4 additions and 3 deletions

View File

@@ -10,10 +10,10 @@ export const CommentItem = ({ comment }: { comment: IWorkspaceCommentEnhancedSea
return (
<div className="space-y-1">
<div className="flex items-center gap-2">
<div className="flex gap-2 items-center">
<div className="flex gap-2 items-center truncate">
<span className="text-custom-text-200 font-semibold">{userDetails?.display_name}</span>
<span>commented on</span>
<div className="flex gap-2">
<div className="flex gap-2 truncate">
<IssueIdentifier
projectIdentifier={comment.project_identifier}
projectId={comment.project_id}
@@ -22,7 +22,7 @@ export const CommentItem = ({ comment }: { comment: IWorkspaceCommentEnhancedSea
size="xs"
textContainerClassName="text-xs"
/>
<span className="text-custom-text-200">{comment.issue_name}</span>
<span className="text-custom-text-200 truncate">{comment.issue_name}</span>
</div>
</div>
</div>

View File

@@ -43,6 +43,7 @@ export const SEARCH_FILTERS: TSearchFilter[] = [
{ key: ESearchFilterKeys.PAGE, i18n_label: "common.pages" },
{ key: ESearchFilterKeys.EPIC, i18n_label: "common.epics" },
{ key: ESearchFilterKeys.TEAMSPACE, i18n_label: "teamspaces.label" },
{ key: ESearchFilterKeys.WORK_ITEM_COMMENT, i18n_label: "common.comments" },
];
export interface IWorkspaceDefaultEnhancedSearchResult {