VAPP-22: Device notes: view and edit per-device notes on the detail page #24
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/device-notes-vapp-22"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
VAPP-22: Device notes: view and edit per-device notes on the detail page
Adds a Notes card to the device detail Overview tab so operators can read and edit free-text notes for a device.
Changes
get_device_notes(device_id)andset_device_notes(device_id, notes)insrc/server_fns/mod.rs, wrapping vervain-server'sgetnotes/setnotesover the control channel. Verified against the vervain-server dispatch (crates/meshcentral-web/src/user_session.rs): notes are stored as the raw stringvalueof thent<nodeid>companion doc with no base64 encoding, so the payload is passed through verbatim.getnotesreplies with actiongetNotesand a nullablenotesfield;setnotesacks withfor: "setNotes"and reuses the existingdevice_write_ackresult mapping.device_detail.rs): a textarea seeded once fromget_device_notes, a Save button callingset_device_notes, a "Saved" badge (same pattern as the settings AccountCard), and inline error rendering. Notes load lazily with the tab via the existing per-tabuse_resourcepattern.Acceptance criteria
just checkpasses🤖 Generated with Claude Code