Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shareable resources #1490

Open
roryaronson opened this issue Oct 4, 2019 · 1 comment
Open

Shareable resources #1490

roryaronson opened this issue Oct 4, 2019 · 1 comment

Comments

@roryaronson
Copy link
Member

An ability for users to publicly share their:

  • Gardens
  • Sequences
  • Regimens?
  • ???

How it could work

In a sequence header or on a garden details panel, add a SHARE button. Clicking the button could open a popup with a toggle switch to turn on sharing. Once sharing is turned on, the popup shows two sharing options:

  1. Share via link - this provides a unique link to send to others (in a support email) or post somewhere, such as the forum. Maybe something in the format: my.farm.bot/app/sequences/shared/83jv7d3kiy0

If another (logged in) user clicks this link, the app would open to the sequences page, with the shared sequence loaded in the editor. There could be some banner up in the sequence header indicating that the sequence is a shared sequence, and all editing would be disabled. There could be a button to SAVE A COPY which would save a copy of the shared sequence to the account for modification/use.

If a logged out user clicked the link, a lightweight version of the app could be loaded to display the sequence with no editing allowed, and no other controls/page elements/nav. Maybe just a button to LOGIN TO SAVE A COPY

  1. Embed - this would provide an iframe (or oEmbed?) embed code that could be pasted into documentation, blog posts, the forum, etc. The embed content would be a lightweight version of the app to display the shared resource, without editing/nav capabilities. Maybe add a button to OPEN IN APP.

Dependencies

An obvious problem with saving a copy of someone else's sequence is that the sequence will likely have dependencies (tools, plants, groups, subsequences) that the new account doesn't have. While a saved sequence without dependencies might not be that useful, I think the amount of work and potential consequences of saving with dependencies is too much.

  • Saving with dependencies could become a total mess - it could create a ton of subsequences or plants that the user didn't have visibility to prior to saving the top-level resource.
  • Users sharing their sequences might not want subsequences and their whole garden to be revealed by sharing the top-level resource. I suppose there could be an extra control put in place on the resource author's end, but that sounds messy and could still expose users to unintended amounts of data leaking if they forgot sharing was on and later modified the sequence, or they didn't wholly understand what dependencies were at stake.

A middle-ground idea is to make a copy of the sequence without dependencies, but display the original author's dependency names to be used as a blueprint for the new user to "re-wire" the sequence with their own dependencies in order to fully save it. Something like:
Screen Shot 2019-10-04 at 12 52 48 PM

What are other thoughts, concerns, potential gotchyas?

@roryaronson roryaronson added this to Needs categorization in FarmBot Project Board via automation Oct 4, 2019
@roryaronson roryaronson moved this from Needs categorization to Ideas for the Future in FarmBot Project Board Oct 4, 2019
FarmBot Project Board automation moved this from Ideas for the Future to Done, Needs QA Oct 7, 2019
@RickCarlino RickCarlino reopened this Oct 7, 2019
FarmBot Project Board automation moved this from Done, Needs QA to In Progress Oct 7, 2019
@RickCarlino
Copy link
Contributor

(Opps- accidentally pressed close button)

@roryaronson I think you've addressed the big concerns. The sub-resources will be tricky to manage in a way that is intuitive to end users and some resources will be easier to share than others.

@roryaronson roryaronson moved this from In Progress to Ideas for the Future in FarmBot Project Board Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Idea Bin (not planned)
FarmBot Project Board
Idea Bin (not planned)
Development

No branches or pull requests

3 participants