powerhouse-inc / document-drive

GNU Affero General Public License v3.0
1 stars 0 forks source link

View/Read mode for Connect to read current state via Switchboard API #256

Open CallmeT-ty opened 1 month ago

CallmeT-ty commented 1 month ago

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

  1. get current state of the drive
  2. Pull current state of the document from swb
  3. populate the doc editor in view only mode
  4. 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.

CallmeT-ty commented 3 weeks ago

To be implemented for performance reasons for maker release and then migrate later once refactor is in place

CallmeT-ty commented 1 day ago

Acaldas & team to go over it and merge th eissue