ui/client/features/pages-editor/hooks/useNodeNotes
Cockpit client (features), next. Source: ui/client/features/pages-editor/hooks/useNodeNotes.tsx.
Type Aliases#
NodeNotes#
NodeNotes = {
notes:NoteRow[];ok:true; } | {error:string;ok:false; }
Defined in: ui/client/features/pages-editor/hooks/useNodeNotes.tsx:6
Functions#
useNodeNotes()#
useNodeNotes(
feature,file,nodeId):object
Defined in: ui/client/features/pages-editor/hooks/useNodeNotes.tsx:12
Inspector "Notes" section: notes anchored to the selected node, over the SAME /api/notes already
exposes -- no new storage, no new route, only an anchor field (added to Note/NoteRow) and a client-side
filter, the same way the standalone Notes screen filters nothing (it shows every note) and this one shows
only the ones anchored here.
Parameters#
feature
string
file
string
nodeId
string | null
Returns#
object
addNote
Parameters
title
string
Returns
Promise<ApiResult<Note> | undefined>
notes
notes:
NodeNotes|null