From 2a93b5ba40cf1b2c4daf8ad286800cf15d32dfa6 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 10 Mar 2026 16:29:06 -0700 Subject: [PATCH] fix(notes): align mobile note detail state --- mobile/src/app/note/[id].tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mobile/src/app/note/[id].tsx b/mobile/src/app/note/[id].tsx index e20306b..0f2a735 100644 --- a/mobile/src/app/note/[id].tsx +++ b/mobile/src/app/note/[id].tsx @@ -24,6 +24,10 @@ export default function NoteDetailScreen() { setDraftBody(selectedNote?.body ?? ''); }, [selectedNote]); + const formattedUpdatedAt = selectedNote + ? new Date(selectedNote.updatedAt).toLocaleString() + : 'Not available'; + return ( @@ -77,10 +81,7 @@ export default function NoteDetailScreen() { ) : !isLoading ? ( <> - - {selectedNote?.body ?? - 'The current scaffold uses placeholder note content until the mobile notes/workspaces API wrappers are wired to the product backend.'} - + {selectedNote?.body ?? 'No note body is available yet.'} setIsEditing(true)}> Edit note @@ -90,16 +91,15 @@ export default function NoteDetailScreen() { Metadata - Workspace: {selectedNote?.workspaceName ?? 'Product'} - Status: Draft - Source: Mobile scaffold + Workspace: {selectedNote?.workspaceName ?? 'Unknown workspace'} + Status: {selectedNote?.status ?? 'unknown'} + Last updated: {formattedUpdatedAt} - Artifacts - Attachments: 0 - Extracted tasks: 1 - Agent actions: 1 pending review + Current mobile scope + Artifacts and review context continue to load from the fuller web surface. + This mobile screen now focuses on reading and updating the persisted note body. );