From 4cf990816817c009a512356373fdb1c4baa5e63b Mon Sep 17 00:00:00 2001
From: MohamedBassem
Date: Sat, 6 Apr 2024 01:35:37 +0100
Subject: ui(web): Add a tooltip explaining what archived means
---
apps/web/app/dashboard/archive/page.tsx | 10 +++++++++-
apps/web/app/dashboard/tags/page.tsx | 34 +++++++--------------------------
2 files changed, 16 insertions(+), 28 deletions(-)
(limited to 'apps/web/app/dashboard')
diff --git a/apps/web/app/dashboard/archive/page.tsx b/apps/web/app/dashboard/archive/page.tsx
index 3c3520cc..b2b4df4f 100644
--- a/apps/web/app/dashboard/archive/page.tsx
+++ b/apps/web/app/dashboard/archive/page.tsx
@@ -1,9 +1,17 @@
import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks";
+import InfoTooltip from "@/components/ui/info-tooltip";
export default async function ArchivedBookmarkPage() {
return (
🗄️ Archive
}
+ header={
+
+ 🗄️ Archive
+
+ Archived bookmarks won't appear in the homepage
+
+
+ }
query={{ archived: true }}
showDivider={true}
/>
diff --git a/apps/web/app/dashboard/tags/page.tsx b/apps/web/app/dashboard/tags/page.tsx
index 7afe691d..9f5038e7 100644
--- a/apps/web/app/dashboard/tags/page.tsx
+++ b/apps/web/app/dashboard/tags/page.tsx
@@ -1,13 +1,7 @@
import Link from "next/link";
+import InfoTooltip from "@/components/ui/info-tooltip";
import { Separator } from "@/components/ui/separator";
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "@/components/ui/tooltip";
import { api } from "@/server/api/client";
-import { Info } from "lucide-react";
function TagPill({ name, count }: { name: string; count: number }) {
return (
@@ -48,16 +42,9 @@ export default async function TagsPage() {
Your Tags
-
-
-
-
-
-
- Tags that were attached at least once by you
-
-
-
+
+ Tags that were attached at least once by you
+
{tagsToPill(humanTags)}
@@ -65,16 +52,9 @@ export default async function TagsPage() {
AI Tags
-
-
-
-
-
-
- Tags that were only attached automatically (by AI)
-
-
-
+
+ Tags that were only attached automatically (by AI)
+
{tagsToPill(aiTags)}
--
cgit v1.2.3-70-g09d2