aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components/dashboard/search/QueryExplainerTooltip.tsx')
-rw-r--r--apps/web/components/dashboard/search/QueryExplainerTooltip.tsx12
1 files changed, 8 insertions, 4 deletions
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>
);