Last active
December 29, 2018 02:14
-
-
Save dariocravero/80df2f6d1740f0f20c8e624e4a450278 to your computer and use it in GitHub Desktop.
# product: docs thing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# product: docs thing | |
App | |
# as a visitor I want to login | |
# capability: user handling | |
Logged Out | |
# as a visitor I want to see some public content | |
# capability: ??? | |
Public Content | |
# !!! is this defined in the right way? | |
# as a user I want to logout | |
# capability: user handling | |
Logged In | |
# as a user I want to manage my profile | |
# capability: user handling | |
Profile | |
# !!! maybe we can define data like this? | |
# data: name, surname, email | |
Edit Profile | |
# ... | |
# as a user I want to manage my docs | |
# capability: docs | |
Docs | |
# as a user I want to see my docs | |
# capability: docs | |
List Docs | |
# as a user I want to add a doc | |
Add Doc | |
# as a user I want to add a doc | |
Fields | |
Validate | |
Can Save | |
# as a user I want to edit a doc | |
Edit Doc | |
Remove Doc | |
View Doc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment