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

[Epic] TodoMVC Feature List #48

Closed
21 tasks done
nelsonic opened this issue Jul 22, 2018 · 6 comments
Closed
21 tasks done

[Epic] TodoMVC Feature List #48

nelsonic opened this issue Jul 22, 2018 · 6 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Jul 22, 2018

Todo List Basic Functionality

A todo list has only 2 basic functions:

Add item and Check-off is exactly the "functionality"
you would have in a paper-based Todo List.

TodoMVC "Advanced" Functionality

In addition to these basic functions,
TodoMVC has the ability to:

  • Un-check an item as to make it "active" (still to be done)
  • Double-click/tap on todo item description to edit it.
  • Mark all as complete
  • Click X on item row to remove from list.

<footer> Menu > GOTO: #53

below the main interface there is a <footer>
with a count, 3 view toggles and one action:
image

  • "{count} item(s) left":

    {store.items.filter(complete==false)} item{store.items.length > 1 ? 's' : '' } left
  • Show All
  • Show Active
  • Show Completed
  • Clear Completed > delete item.done === true

Routing / Navigation

Finally, if you click around the <footer> toggle menu,
you will notice that the Web Bowser Address bar
changes to reflect the chosen view.

tea-todomvc-routing

When a route link is clicked

  • update invokes route(model, title, hash) function which updates model.hash to the value of hash

  • filter view based on model.hash

    • set <footer> view button as active
    • filter todo items based on selected view:
      • ALL: no filter
      • active: !item.done
      • complete: item.done === true
  • Subscriptions for event handling e.g: keyboard press & navigation changes Subscriptions: How to "Listen" for Events and What to do ... #57

@nelsonic
Copy link
Member Author

nelsonic commented Aug 2, 2018

image

image

@nelsonic
Copy link
Member Author

nelsonic commented Aug 5, 2018

todomvc-3-items-1-done

@nelsonic
Copy link
Member Author

nelsonic commented Aug 6, 2018

todomvc-main-section-todo-list-html

@nelsonic
Copy link
Member Author

nelsonic commented Aug 7, 2018

View works:
image

@nelsonic
Copy link
Member Author

nelsonic commented Sep 7, 2018

persistence-test-passing

clear-completed-button-tests-passing

@nelsonic
Copy link
Member Author

nelsonic commented Sep 7, 2018

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant