Squarelet / squarelet

Squarelet: A collaborative online pinboard
GNU Affero General Public License v3.0
26 stars 2 forks source link

How to share a local board #7

Open aivuk opened 6 years ago

aivuk commented 6 years ago

Right now we have:

https://squarelet.org/#/b/NAME

as the address for the local boards.

How about adding the feature to publish a board public and then it's going to be accessible at:

https://squarelet.org/#/p/PqYNIsDrQVS-JaUVYYB1ig

where PqYNIsDrQVS-JaUVYYB1ig is generated automatically.

We can allow the board to be published in two ways:

  1. Read only

In the read only case a user acessing the public board will be able to click "save" and this is going to ask for a name. After the user gives the name (e.g. amazing-board) the board is going to be locally accessible at:

https://squarelet.org/#/b/amazing-board

  1. Read and write to everyone with public link

Here the user acessing the public board has the option of saving locally as in case 1, or save remotely, what is going to replace the board remote. We need to think how to solve the syncronization between the local board with the remote one.

Imagine that user Alice create a local board called science-board, https://squarelet.org/#/b/science-board", shared it and this is going to create an address https://squarelet.org/#/p/PqYNIsDrQVS-JaUVYYB1ig. User Bob goes to https://squarelet.org/#/p/PqYNIsDrQVS-JaUVYYB1ig, does some changes and click in save. This is going to change the content on https://squarelet.org/#/p/PqYNIsDrQVS-JaUVYYB1ig for everyone, including Alice. What to display to Alice when she access her local board https://squarelet.org/#/b/science-board?

Maybe a dialog to Alice as:

 There are remote changes on the shared version of this board. Do you want to see them? 

<button>View changes</button> 

 Do you want to apply the changes in your local board? 

<button>Update local board</button>
mneuschaefer commented 6 years ago

How about adding the feature to publish a board public and then it's going to be accessible at:

https://squarelet.org/#/p/PqYNIsDrQVS-JaUVYYB1ig

Saving would help a lot. I'd prefer a link with less levels like https://squarelet.org/c/PqYNIsDrQVS-JaUVYYB1ig

(no /#/ and /c/ for "canvas")

aivuk commented 6 years ago

Your suggestion to remove (#) is done and already deployed on the server. See #8