Add entry_id relationship links to Entries

- Introduce reusable EntryLink component
- Use EntryLink in Releases and Label detail tables
- Link both ID and title to /zxdb/entries/[id] for consistency

Signed-off-by: Junie@MacOS
This commit is contained in:
2025-12-17 22:30:48 +00:00
parent 07478b280c
commit 2bade1825c
9 changed files with 382 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
import { useEffect, useMemo, useState } from "react";
import Link from "next/link";
import EntryLink from "../components/EntryLink";
import { usePathname, useRouter } from "next/navigation";
type Item = {
@@ -244,9 +245,9 @@ export default function EntriesExplorer({
<tbody>
{data.items.map((it) => (
<tr key={it.id}>
<td>{it.id}</td>
<td><EntryLink id={it.id} /></td>
<td>
<Link href={`/zxdb/entries/${it.id}`}>{it.title}</Link>
<EntryLink id={it.id} title={it.title} />
</td>
<td>
{it.machinetypeId != null ? (