I was thinking that we could add a View/Read mode for Connect where instead of syncing the documents, it just reads the current state using the Switchboard API (read models). For instance, in Arbgrants we just need to sync the grant that an user has permissions to write to. The rest of the grants and the drive itself, we don't need to actually sync.
Potential side effects. Expects a node to be a document instead of the current state
How do we refresh?
Short Cut Implementation
get current state of the drive
Pull current state of the document from swb
populate the doc editor in view only mode
if address is teep/editor with write permissions then edit functions become available (Similar to current state)
On initial request we only need to get folders & files at root level.
only when they have editor rights we need to pull from swb.
I was thinking that we could add a View/Read mode for Connect where instead of syncing the documents, it just reads the current state using the Switchboard API (read models). For instance, in Arbgrants we just need to sync the grant that an user has permissions to write to. The rest of the grants and the drive itself, we don't need to actually sync.
Short Cut Implementation
On initial request we only need to get folders & files at root level. only when they have editor rights we need to pull from swb.