Open
Description
This issue is related to the api issue
make sure, that api part is done
Problem
In disingn system we have note parents structure on note page
Cases
Structure | Presentation |
---|---|
RootParent > Actual note |
RootParent > Actual note |
RootParent > IntermediateNote > ActualNote |
RootParent > IntermediateNote > ActualNote |
RootParent > IntermediateNote1 > IntermediateNote2 > ActualNote |
RootParent > ... > Actual note |
Solution
- Make method in
useNote
service that would format data got from api into presentation format - Update
NoteDTO
entity for it to contain new object with note parents info ( optional get rid of parentNote )
NoteParents :
[
{
noteId: Note['id'],
content: Note['content']
}
]
- Update Note page ( usage of
NoteHeader
component here ) as in disingn system
note that note names should be clickable