implement bookmark collections and enhance bookmark search functionality

This commit is contained in:
2025-06-02 17:31:36 +01:00
parent 6625451d47
commit 190c5c9caa
20 changed files with 758 additions and 427 deletions

View File

@@ -1,8 +1,8 @@
import type { Collection } from "@markone/core"
import { Link } from "@tanstack/react-router"
import { clsx } from "clsx"
import { memo } from "react"
import { Button } from "~/components/button"
import { Link } from "~/components/link"
import { List } from "~/components/list"
export enum CollectionListItemAction {
@@ -53,7 +53,9 @@ const CollectionListItem = memo(
</button>
<div className="flex flex-col w-full">
<div className="block w-full text-start font-bold">
<Link href="#">{collection.name}</Link>
<Link to={`/collections/${collection.id}`} className={isSelected ? "underline" : ""}>
{collection.name}
</Link>
</div>
<p className="opacity-80 text-sm">{collection.description}</p>
{isExpanded ? (