fix(notes): link note metadata
This commit is contained in:
parent
c3e738cff3
commit
6d72561b30
@ -1,3 +1,4 @@
|
||||
import Link from "next/link";
|
||||
import type { NoteDetail } from "@/lib/types";
|
||||
|
||||
export function MetadataPanel({ note }: { note: NoteDetail }) {
|
||||
@ -7,13 +8,17 @@ export function MetadataPanel({ note }: { note: NoteDetail }) {
|
||||
<div style={{ display: "grid", gap: "var(--ml-space-2)" }}>
|
||||
<div style={{ color: "var(--ml-text-secondary)" }}>Owner: {note.metadata.owner}</div>
|
||||
<div style={{ color: "var(--ml-text-secondary)" }}>Source: {note.metadata.source}</div>
|
||||
<div style={{ color: "var(--ml-text-secondary)" }}>Review state: {note.metadata.reviewState}</div>
|
||||
<Link href="/reviews" style={{ color: "var(--ml-text-secondary)" }}>
|
||||
Review state: {note.metadata.reviewState}
|
||||
</Link>
|
||||
<div style={{ color: "var(--ml-text-secondary)" }}>Tasks: {note.metadata.taskCount}</div>
|
||||
<div style={{ color: "var(--ml-text-secondary)" }}>Artifacts: {note.metadata.artifactCount}</div>
|
||||
</div>
|
||||
<div style={{ display: "flex", gap: "var(--ml-space-2)", flexWrap: "wrap" }}>
|
||||
{note.tags.map((tag) => (
|
||||
<span key={tag} className="badge">#{tag}</span>
|
||||
<Link key={tag} href={`/search?q=${encodeURIComponent(tag)}`} className="badge">
|
||||
#{tag}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user