Replies: 2 comments 7 replies
-
That's not always the case. Only if you fetch Right now the metadata for the widgets are stored under As another option we can introduce branching. For example |
Beta Was this translation helpful? Give feedback.
-
The most urgent usecase is developing widgets in parallel, without publishing every little thing to chain - just as you wouldn't push every CMD+S to GitHub. I think there should be a layer to hook into calls to SocialDB to provide a Preview with your WIP, unpublished, files. And once we have that we don't need to re-invent the wheel with any git-like systems - just treat testnet+mainnet as your staging+production environment, and work on GitHub as you are used to. In the future, once we gain enough traction maybe we can think how we migrate development processes on to the blockchain, but today it'll be a blocker for onboarding newcomers - best thing is to keep dev environments that people already know. |
Beta Was this translation helpful? Give feedback.
-
It would be beneficial to allow developers to save updated component code without publishing it as the latest version of the component.
Motivation:
Widget
component to accept a flag indicating that the staging version of a given component should be loadedThis can be modeled in a familiar way as a draft/publish system. The component editor would provide separate UI for "Save" vs "Publish".
Saving a draft would write component code to a different key in SocialDB. Since this would set a new standard for SocialDB data, it should be discussed.
SocialDB Pattern
Currently, published component code is saved to the empty string key under
<account>/widget/<component name>
. Here is an exampleSome options of where to store the draft
draft
next to current component code e.g.michaelpeter.near/widget/Genie/draft
<account>/draftWidgets
which mirrors<account>/widget
These assume that we only wish to save one draft version to SocialDB at a time
Beta Was this translation helpful? Give feedback.
All reactions