From 4deda9d477141e864f472ba95003e3974346f10d Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Tue, 31 Dec 2024 13:58:23 +0000
Subject: feat: Add support for negative search terms

---
 .../components/dashboard/search/QueryExplainerTooltip.tsx    | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

(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 191c9ff3..0a325031 100644
--- a/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx
+++ b/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx
@@ -20,28 +20,32 @@ export default function QueryExplainerTooltip({
       case "tagName":
         return (
           <TableRow>
-            <TableCell>Tag Name</TableCell>
+            <TableCell>
+              {matcher.inverse ? "Doesn't have" : "Has"} Tag
+            </TableCell>
             <TableCell>{matcher.tagName}</TableCell>
           </TableRow>
         );
       case "listName":
         return (
           <TableRow>
-            <TableCell>List Name</TableCell>
+            <TableCell>
+              {matcher.inverse ? "Is not in" : "Is in "} List
+            </TableCell>
             <TableCell>{matcher.listName}</TableCell>
           </TableRow>
         );
       case "dateAfter":
         return (
           <TableRow>
-            <TableCell>Created After</TableCell>
+            <TableCell>{matcher.inverse ? "Not" : ""} Created After</TableCell>
             <TableCell>{matcher.dateAfter.toDateString()}</TableCell>
           </TableRow>
         );
       case "dateBefore":
         return (
           <TableRow>
-            <TableCell>Created Before</TableCell>
+            <TableCell>{matcher.inverse ? "Not" : ""} Created Before</TableCell>
             <TableCell>{matcher.dateBefore.toDateString()}</TableCell>
           </TableRow>
         );
-- 
cgit v1.2.3-70-g09d2

