From 5ecdc36b7d60aa66b49e01e9fec8ba61ad537376 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Thu, 2 Jan 2025 13:00:58 +0200
Subject: feat: Add support for smart lists (#802)

* feat: Add support for smart lists

* i18n

* Fix update list endpoint

* Add a test for smart lists

* Add header to the query explainer

* Hide remove from lists in the smart context list

* Add proper validation to list form

---------

Co-authored-by: Deepak Kapoor <41769111+orthdron@users.noreply.github.com>
---
 apps/web/components/dashboard/search/QueryExplainerTooltip.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'apps/web/components/dashboard/search/QueryExplainerTooltip.tsx')

diff --git a/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx b/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx
index eb7282d0..13174fb2 100644
--- a/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx
+++ b/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx
@@ -6,8 +6,10 @@ import { Matcher } from "@hoarder/shared/types/search";
 
 export default function QueryExplainerTooltip({
   parsedSearchQuery,
+  header,
   className,
 }: {
+  header?: React.ReactNode;
   parsedSearchQuery: TextAndMatcher & { result: string };
   className?: string;
 }) {
@@ -98,6 +100,7 @@ export default function QueryExplainerTooltip({
 
   return (
     <InfoTooltip className={className}>
+      {header}
       <Table>
         <TableBody>
           {parsedSearchQuery.text && (
-- 
cgit v1.2.3-70-g09d2

