fix(notes): link note review state
This commit is contained in:
parent
66d4cd4c6e
commit
758d5d42a4
@ -1,5 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useParams } from "next/navigation";
|
||||
import { AppShell } from "@/components/AppShell";
|
||||
@ -126,7 +127,15 @@ export default function NoteDetailPage() {
|
||||
<AppShell
|
||||
title={note.title}
|
||||
description="Editable note surface with metadata, linked context, tasks, artifacts, and review history."
|
||||
actions={<div className="badge">{isSaving ? "Saving" : `Review: ${note.metadata.reviewState}`}</div>}
|
||||
actions={
|
||||
isSaving ? (
|
||||
<div className="badge">Saving</div>
|
||||
) : (
|
||||
<Link href="/reviews" className="badge">
|
||||
{`Review: ${note.metadata.reviewState}`}
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
>
|
||||
<div style={{ display: "grid", gridTemplateColumns: "minmax(0, 1.7fr) minmax(320px, 1fr)", gap: "var(--ml-space-4)" }}>
|
||||
<NoteEditor note={note} onSave={handleSave} isSaving={isSaving} />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user