Dashboard Integration
- A new
Dashboard.page.js
file should be created under theapp/pages
folder - A new folder of
graphql
should be created underapp
folder - A new file with name
dashboard.queries.js
should be created underapp/graphql
folder - This file should contain all the
queries
,mutations
andsubscriptions
(schemas) needed for the Dashboard page like:- e.g.
getBookCollectionsQuery
,createBook
,deleteBook
,renameBook
,?archiveBook
(https://gitlab.coko.foundation/ketida/ketida/-/tree/websocket-locks/packages/client/app/components/dashboard/src/queries)
- e.g.
-
Dashboard.page.js
should take advantage ofuseQuery
anduseMutation
from@apollo/client
for the execution of the above queries
Until the actual UI become ready the Dashboard.page.js
should return a dummy div
.
An example of a connected page is like here https://gitlab.coko.foundation/ketida/ketida/-/blob/websocket-locks/packages/client/app/components/wax/src/EditorPageWithData.js
Edited by Alexandros Georgantas