-
Notifications
You must be signed in to change notification settings - Fork 22
PR: Elm(ish) Todo List (TodoMVC) Example issue #44 #45
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
Merged
Merged
Changes from all commits
Commits
Show all changes
165 commits
Select commit
Hold shift + click to select a range
6db982a
create basic files for "elmish" Todo List #44
nelsonic cc1b8b8
adds todo-list.md (outline) for #44
nelsonic 8908312
add base TodoMVC CSS file from https://github.com/tastejs/todomvc/tre...
nelsonic 7813efd
adds complete TodoMVC requirements to todo-list.md for #44
nelsonic f6b7e6e
add link to todo-list.md in README.md #44
nelsonic 45ece77
add sample html code for TodoMVC https://github.com/dwyl/learn-elm-ar...
nelsonic 5451619
refactor counter-reset tests to use tape (cleaner)!
nelsonic 94bbbbf
run tape tests in pre-commit and on CI (faster and simpler)
nelsonic 8aafc99
add link to https://github.com/dwyl/learn-tape as using Tape in Todo ...
nelsonic c5101d9
add empty function with JSDOC & test for #44
nelsonic 08723c9
use jsdom-global instead of *manually* instantiating JSDOM! for #44
nelsonic eeec661
use view & update from counter-reset example to test elmish.mount gen...
nelsonic 28ab679
add instructions for empty function in todo-list.md for #44
nelsonic 560c9bc
adds instructions+code for mount generic function in elm(ish) for #44
nelsonic cb41458
add elmish.attributes function to apply HTML attributes to node for h...
nelsonic 0b28eca
add id case to attributes function for #44
nelsonic 41dd1a6
add package-lock.json to .gitignore #noise!
nelsonic 21f05d5
add tap-spec to package.json and test script to "prettify" test outpu...
nelsonic 25cd493
add instructions for elmish attributes function #44
nelsonic 606e293
rename attributes to add_attributes for clarity! #44
nelsonic 6763bae
adds elmish.append_children test, docs & function for #44
nelsonic ac5eeb3
rename to elmish.append_childnodes for clarity ... #44
nelsonic 6a715fe
add Input Placeholder Attribute instructions, test and code for #44
nelsonic cfa2832
remove test.only to ensure all tests are executed
nelsonic 536f2ec
add elmish.add_attributes set data-id on <li> element for #44
nelsonic 906639e
adds <label for="toggle-all"> for #44
nelsonic 511c868
update codecov script in .travis.yml (simplify)
nelsonic 43bd3d6
add type attribute to <input> element e.g: <input id="toggle-all" typ...
nelsonic 22c809b
adds instructions, docs, test and implementation for applying in-line...
nelsonic 4b1e680
add instructions, docs, test & code for checked=true for #44
nelsonic 6b6495a
add checked=false for toggling todo items
nelsonic 111644e
add href attribute to <a> tags (Docs, Tests & Code) for #44
nelsonic a3a4bfa
add instructions, tests & code for <input autofocus> for #44
nelsonic 48e1bb8
<input autofocus> unavailable on iOS Safari! https://caniuse.com/#fea...
nelsonic 956ac1f
add test, JSDOC and implementation of <section> html element for #44
nelsonic 6c66a04
adds create_element DOM element creation function to "DRY" DOM code f...
nelsonic 59c5298
add <section> test code to todo-list.md for #44
nelsonic be35d3e
add two "compound" views, tests, docs & code to pass tests! (for #44)
nelsonic 27ea95c
add remaining instructions/docs, tests & code for <footer> view! #44 ...
nelsonic 59664d9
adds example location.href and history.pushState code for https://git...
nelsonic fa20108
add JSDOC for elmish.route function for #46
nelsonic b22596e
add instructions test(s) and code for routing! closes #46
nelsonic a1a1e30
add intro text and sample code for saving Todo List data to localStor...
nelsonic 8f34ff7
adds test for localStorage functionality #47 to todo-list.md
nelsonic fb83010
add test for Elm(ish) localStorage in mount function with implementat...
nelsonic e0d64de
remove localstorage-polyfil from package.json as not using
nelsonic e7d542f
adds "Acceptance Criteria" for localStorage functionality. closes #47
nelsonic c70ba2b
preparing to move elm(ish) code to elmish.md ... for #44
nelsonic 47bb415
adds clarifying note on why "Elm(ish)" for #44
nelsonic 208c153
add Elm(ish) intro header image to elmish.md for #44
nelsonic 6fe6364
add What? Who? & How? sections to elmish.md for #44
nelsonic 2b21e7a
Always imagine that you are "_pairing_" with someone
nelsonic f94ecd9
re-word Doc Driven Dev section
nelsonic 42e0a4a
add instructsion for elmish.init function to elmish.md for #44
nelsonic 7efdaf0
add screenshot of init + empty tests passing https://github.com/dwyl/...
nelsonic 2e4622f
finish "transferring" the elm(ish) related code and docs to elmish.md...
nelsonic 6898e8b
add link to /examples/multiple-counters-instances/index.html for #40 ...
nelsonic 075c4c4
minor markdown fixes for #44 https://youtu.be/E1vXNrN6BbU
nelsonic f9ba7aa
remove init function from counter-reset.js & counter-reset.test.js fi...
nelsonic 6ec9868
remove init function from elmish.js & elmish.md see https://github.co...
nelsonic 354685e
adds screenshots of tests failing & passing for add_attributes functi...
nelsonic 5041de1
add further instructions & screenshots for placeholder attribute in e...
nelsonic 81928f7
adds default branch test and pre-commit hook instructions to elmish.m...
nelsonic b1e3ecf
finish writeup of `Elm`(_ish_) for #44
nelsonic 47caf12
add test setup lines to test/todo-app.test.js for #44
nelsonic 0ff09c2
add sample `model` to todo-list.md for #44
nelsonic e1f9851
fix typo in elmish.md
nelsonic 820250b
add section on learning style and three options for when people can r...
nelsonic 39779b2
re-order params of update function in counter.js and elmish.js for cl...
nelsonic caf8165
[WiP] link back to Todo List from elmish.md & add `update` section fo...
nelsonic 34c2a05
add code to pass default branch update test for #44
nelsonic 23c9d47
ADD item acceptance criteria for https://github.com/dwyl/learn-elm-ar...
nelsonic dba0be7
add section on refactoring update JSDOC and function signature or #44...
nelsonic 4571db0
add update ADD todo item test for #48
nelsonic a19da15
adds sample implementation for update ADD case for #48
nelsonic de9797e
finish writeup on ADD new todo item to list. #48
nelsonic 5d4ebc5
add sample code for making TOGGLE todo item test pass for #48
nelsonic e29da0e
add writeup instructions for how to "undo" a todo item using TOGGLE a...
nelsonic ff4d297
adds section for creating the `view` for Elm(ish) Todo List App #44 /...
nelsonic afaed24
for now, ignore the <footer> and focus on rendering the Todo List! se...
nelsonic dd51dcb
add (human readable) Acceptance Criteria and Test Assertions for "mai...
nelsonic 6137d41
[WiP] add test for "main" view #51
nelsonic 91efbbd
add assertions to main view test for #51
nelsonic e7d6784
adds screenshot of failng test https://github.com/dwyl/learn-elm-arch...
nelsonic 3cbb25b
add code to make render_item test pass see: https://github.com/dwyl/l...
nelsonic 864f4cc
update test/elmish.test.js assertions in light of the removal of defa...
nelsonic b660747
add code to make render_main pass see/fixes #51
nelsonic 82bd69d
remove (debuggin) console.log from render_item ... fix #52
nelsonic 171f34a
add screenshot and text reminding readers that we have 100% test cove...
nelsonic 8a50b25
add acceptance criteria for Todo List <footer> element https://github...
nelsonic 8f2252a
add JSDOC comment for render_footer #53
nelsonic 68e2afa
add render_footer function implementation for #53
nelsonic aae0490
adds JSDOC and test for view function #54
nelsonic 3096d81
add view function implementation to pass tests for #54
nelsonic 470ad9f
add link to reference implementation of view function fixes #54
nelsonic ef56c49
refactor counter-reset example to use the elmish mount function signa...
nelsonic 93f00d0
add (failing) test and screenshot for "No Todos" test case #56
nelsonic d1bd85e
add code to pass test for "No Todos" fixes #56
nelsonic 3b8eb11
add render function to DRY code in elmish mount function for #44 / #55
nelsonic a3cf67e
add test (failing) for "2. New Todo" #55
nelsonic 260c104
add support for Subscritions in elmish.js for https://github.com/dwyl...
nelsonic c79eccf
add additional checks in Elmish/Todo-list App code for null values #44
nelsonic 86dcc83
add extra keyCode "trigger" assertion to exercise subscrition branch #55
nelsonic 7b56e55
update test for "2. New Todo" to test all branches
nelsonic f37c398
reorder New Todo test assertions for clarity #55
nelsonic d6c8b92
update examples/counter-reset/test.js to reflect change in parameter ...
nelsonic e3e5a65
cp examples/counter-reset/* examples/counter-reset-keyboard/ for #57
nelsonic d890749
add test for onclick attribute for #57
nelsonic d41c8d8
add test and code for onclick function in attributes for/fixes #58
nelsonic 7369443
add link to "solution" in onclick section of elmish.md
nelsonic 209d72d
add sample code after refactoring counter-reset-keyboard to use Elm(i...
nelsonic a3e0644
fix failing test due to change in name of localstorage key for #57
nelsonic 9a10d60
[WiP] elmish subscription test FAILING for #57
nelsonic 39d270b
add additional assertions for counter-reset-keyboard example for #57
nelsonic 0fd18b2
tidy-up counter-reset-keyboard example subscrition considerably! #57
nelsonic a326d58
update subscriptions parameter in elmish.mount for clarity fixe #57
nelsonic 9471c34
add screenshot of counter-reset-keyboard subscription tests passing #57
nelsonic 193d55e
add screenshot of 2. New Todo tests passing #57
nelsonic 89de33a
add code to make TOGGLE_ALL tests pass. see/fixes https://github.com/...
nelsonic fff65da
add link to sample code for TOGGLE_ALL #50
nelsonic b8bb500
for some reason the class attribute *MUST* be last in array!
nelsonic b277b6c
add test (passing) for 4. Item (toggle) done #44
nelsonic a47b24c
[WiP] add outline of Acceptance Criteria for Editing a Todo List Item...
nelsonic aa4d787
Updates some typos and flow up until no. 7 of the basic counter #44
iteles 77546af
add *failing* test for DELETE an item https://github.com/dwyl/learn-e...
nelsonic 39ed374
implement DELETE todo item using least possible code. closes #59
nelsonic a597688
add acceptance criteria and checklist of features for EDIT todo item #60
nelsonic dbcca39
adds basic EDIT item implementation including EDIT and SAVE actions f...
nelsonic ce3258e
Merge pull request #61 from dwyl/review-todo
nelsonic 72fd1a6
add link to StackOverflow answer for double-click function handler ht...
nelsonic 43d2133
adds test for render_item in edit mode! #60
nelsonic fd60ff6
add screenshot of render_item ("edit mode") tests passing for #60
nelsonic 0ffb30b
rename localStorage key prefix inline with TodoMVC spec: https://gith...
nelsonic c110c0c
add model.editing to sample model in examples/todo-list/index.html to...
nelsonic 1a89e35
add code to to make EDIT case pass for #60
nelsonic 2968cd8
add test for [ENTER] key in edit mode to SAVE revised todo item title...
nelsonic c8098e9
add SAVE todo item title edit implementation for #60
nelsonic eec3642
add test for SAVE *blank* todo title > should delete item for #60
nelsonic 0887ba8
add implementation for SAVE *blank* item title > deletes item. #60
nelsonic 4fdb098
add test for [esc] CANCEL ediing for #64
nelsonic d812e6c
add implementation for [esc] CANCEL editing fixes #64
nelsonic e367ce8
remove test.only ... derp!
nelsonic c40a583
add tests for 6, 7 & 8 for #48 (shift up a gear! time to get this don...
nelsonic b1f895b
update older tests to reflect clear-completed count in footer #48
nelsonic fc2ed3c
add test for routing based on clicking links in footer #48
nelsonic 2e67605
add solution to routing all/active/completed using footer links inclu...
nelsonic f118ec4
add solution to routing all/active/completed using footer links inclu...
nelsonic 812248b
first draft of TodoMVC tutorial *complete*!! :tada:
nelsonic 9cabb38
remove port from npm start script to allow heroku to pass in PORT env...
nelsonic 538d53a
comment out all console.log in todo-app.js to avoid noise ... un-comm...
nelsonic fcb0102
remove dev script from package.json as not needed/used
nelsonic 31bb9bc
fix markdown fails in edit-todo.md
nelsonic e08461b
fix mixed content warning from loading dwyl favicon over http ... htt...
nelsonic 607f004
add favicon.ico to examples/todo-list to avoid https://github.com/dwy...
nelsonic cd70fad
reference favicon.ico in todo-list/index.html for https://github.com/...
nelsonic ae61175
add link to https://todomvc-app.herokuapp.com/examples/todo-list in r...
nelsonic a5df3c4
add space between learning styles in todo-list.md
nelsonic 1002ef5
"as a friend" >> "ask a friend" (correct typo!)
nelsonic b8f3ae9
add links to lower order rendering function issues to show workflow #...
nelsonic 913b4d5
move edit-todo.md to todo-list.md (consolidate)
nelsonic a72ce67
remove edit-todo.md ... copy/code is in todo-list.md
nelsonic 21e74f6
recommend reading https://github.com/dwyl/learn-heroku to deploy your...
nelsonic 26e661e
add hyperlink to implementation of DELETE update case: https://github...
nelsonic ee9c95d
expand section 9 to explain the code a bit better ... #60
nelsonic f986777
add extended explanation of non-destructive filters in section 9 (rou...
nelsonic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ jspm_packages | |
# Optional REPL history | ||
.node_repl_history | ||
.DS_Store | ||
package-lock.json |
6 changes: 2 additions & 4 deletions
.travis.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- 6 | ||
before_install: | ||
- pip install --user codecov | ||
- node | ||
after_success: | ||
- codecov --file coverage/lcov.info --disable search | ||
- bash <(curl -s https://codecov.io/bash) |
131 changes: 84 additions & 47 deletions
README.md
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.