powerhouse-inc / powerhouse

https://powerhouse-design-system-six.vercel.app
0 stars 0 forks source link

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

Open CallmeT-ty opened 3 months ago

CallmeT-ty commented 3 months 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 months ago

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

CallmeT-ty commented 2 months ago

Acaldas & team to go over it and merge th eissue