Dashboard Integration
- A new
Dashboard.page.jsfile should be created under theapp/pagesfolder - A new folder of
graphqlshould be created underappfolder - A new file with name
dashboard.queries.jsshould be created underapp/graphqlfolder - This file should contain all the
queries,mutationsandsubscriptions(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.jsshould take advantage ofuseQueryanduseMutationfrom@apollo/clientfor 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