democracyapps / storyflows Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Are steps necessary?
Or could a sequence just contain a set of cards, and the branch information for each card "step" be contained within the card itself rather than the wrapper structure of the step?
@carlyleec I have done a fairly major rewrite of the cards, flow and card plugins pages of the design documentation. Please take a look and see if it makes sense (especially the card plugins one, where I ended up doing things a bit differently than I'd originally thought).
Thanks,
Eric
Define flow as a tree structure emanating from a start node with subsequent children nodes. Then we could use a really cool d3 force layout to explode the tree for editing (https://github.com/mbostock/d3/wiki/Force-Layout), and label each node with the card title (http://bl.ocks.org/mbostock/950642).
Clicking on a node would enable editing of that card.
Not really what the best UI would be for connecting card actions to target cards. Maybe just selecting a card from from a list by title for a particular action.
I'm wondering if makes more sense to extend the the schema of each card to include a set custom attributes for each card type. So that you have some more like this:
{
"_id": "1234",
"title" : "The Card's Title",
"type": "question-and-answer-card",
"attributes": [
{ "question" : "What's up?"},
{"answers": [
{"text" : "Not Much", "link" : "http://some-other-card"},
{"text" : "Nothing", "link" : "http://some-other-card"}
]
}
],
"permalink": "link to card",
"meta" : ["content type", "preprocessors", "variables", "custom CSS" ],
"group_tag": "thing to group cards by"
}
or this...
{
"_id": "1234",
"title" : "The Card's Title",
"type": "info-card",
"attributes": [
{ "body" : "<html/>"},
{"links": [
{"text" : "Next Action", "link" : "http://some-other-card"},
{"text" : "Another Action", "link" : "http://some-other-card"}
]
}
],
"permalink": "link to card",
"meta" : ["content type", "preprocessors", "variables", "custom CSS" ],
"group_tag": "thing to group cards by"
}
Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.