From dc15c8efedf32bfc8bad710ebc97d4be5669ee9c Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Mon, 24 Aug 2026 23:50:32 +0100 Subject: [PATCH] feat: show last updated time on search results --- .../search/components/search-result-item.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/client/src/features/search/components/search-result-item.tsx b/apps/client/src/features/search/components/search-result-item.tsx index 99621a86d..6a5b1b80c 100644 --- a/apps/client/src/features/search/components/search-result-item.tsx +++ b/apps/client/src/features/search/components/search-result-item.tsx @@ -19,6 +19,7 @@ import { } from "@/features/search/types/search.types"; import DOMPurify from "dompurify"; import { useTranslation } from "react-i18next"; +import { timeAgo } from "@/lib/time.ts"; interface SearchResultItemProps { result: IPageSearch | IAttachmentSearch; @@ -68,8 +69,13 @@ export function SearchResultItem({ -
- {attachmentResult.fileName} +
+ + {attachmentResult.fileName} + + {timeAgo(attachmentResult.updatedAt)} + + {attachmentResult.space.name} • {attachmentResult.page.title} @@ -117,8 +123,13 @@ export function SearchResultItem({
{getPageIcon(pageResult?.icon)}
-
- {pageResult.title} +
+ + {pageResult.title} + + {timeAgo(pageResult.updatedAt)} + + {showSpace && pageResult.space && (