Last active
December 29, 2018 02:15
-
-
Save dariocravero/c41568d5327f04e7cfb0cb97831f4a47 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 | |
login -> Logged In | |
# 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 | |
logout -> Logged Out | |
view profile -> Profile | |
# 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 -> Edit Profile | |
Edit Profile | |
# ... | |
# as a user I want to manage my docs | |
# capability: docs | |
Docs | |
# filter: mine | |
add -> Add Doc | |
edit -> Edit Doc | |
remove -> Remove Doc | |
view -> View Doc | |
all -> List 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 | |
fill -> Validate | |
Validate | |
valid -> Can Save | |
invalid -> Fields | |
Can Save | |
save -> List Docs | |
cancel -> List Docs | |
# 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