aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2024-12-31 13:58:23 +0000
committerMohamed Bassem <me@mbassem.com>2024-12-31 14:01:09 +0000
commit4deda9d477141e864f472ba95003e3974346f10d (patch)
treef2cee981872359b2d601a3009fd27e8dc4daec91 /apps
parent17af22bb6df42e1f42809261db3eda45fb2ffe3f (diff)
downloadkarakeep-4deda9d477141e864f472ba95003e3974346f10d.tar.zst
feat: Add support for negative search terms
Diffstat (limited to 'apps')
-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>
);