Reinier Balt
f891ee86fe
fix clearing show_from fails
...
caused by slightly different (better) workings of aasm
2013-05-03 19:28:26 +02:00
Matt Rogers
883ea2b968
Move Project#create_from_todo to its own class
...
The point of this is to keep as many things out of the ActiveRecord
objects as possible and use them as just a thin database abstraction
layer.
2013-05-02 22:30:24 -05:00
Matt Rogers
55eb7b818c
Revert "Use an attr_reader for attributes"
...
This reverts commit 6376bd7ef6 .
2013-04-30 23:02:54 -05:00
Matt Rogers
49886b1bd3
Revert "Cache the project and context names"
...
This reverts commit 610152b8dd .
2013-04-30 23:01:46 -05:00
Matt Rogers
c1597a7751
Rename to_xml_params to todo_xml_params
2013-04-30 22:52:22 -05:00
Matt Rogers
8fe343cccc
Push to_xml_params down to ApplicationController
2013-04-30 22:50:32 -05:00
Matt Rogers
98b188d1df
Add tests for the ICS and XML views and fix them up
2013-04-30 20:38:10 -05:00
Matt Rogers
ebd182695d
remove the calendar from TodosController
2013-04-30 20:35:13 -05:00
Matt Rogers
83273ac342
add the before filter configuration back
2013-04-30 20:19:27 -05:00
Matt Rogers
d1ff0daf6f
Move the calendar to its own controller
2013-04-30 20:09:46 -05:00
Matt Rogers
610152b8dd
Cache the project and context names
2013-04-29 21:01:30 -05:00
Matt Rogers
6376bd7ef6
Use an attr_reader for attributes
2013-04-29 21:01:30 -05:00
Matt Rogers
1c2de3fd5a
Remove codejunk
...
Extra whitespace, explicit returns, and an extra begin/end pair are all
gone.
2013-04-29 21:01:21 -05:00
Reinier Balt
010d0e9ba0
refactor creating todos in todos_controller
2013-04-29 15:15:48 +02:00
Matt Rogers
8db5793bf6
Merge pull request #178 from TracksApp/rename-has-next-todo
...
Rename RecurringTodo#has_next_todo
2013-04-27 09:52:58 -07:00
Matt Rogers
6b8e745234
Use Todos::Calendar in the view
2013-04-26 23:23:56 -05:00
Matt Rogers
fb71441436
Start using Todos::Calendar in the calendar action
...
Replaces the existing query logic in a lot of places
2013-04-26 23:09:47 -05:00
Matt Rogers
88e7798db6
Rename RecurringTodo#has_next_todo to continues_recurring?
...
This clarifies the intent of the method.
2013-04-26 16:30:12 -05:00
Matt Rogers
1431bef1a9
Use first_or_create to creating missing Tags
2013-04-26 08:46:06 -05:00
Matt Rogers
3425b3fa10
Remove duplication when setting up done by tag views
2013-04-26 08:40:24 -05:00
Matt Rogers
6af7fe0ab6
Remove unused method
2013-04-26 08:31:00 -05:00
Matt Rogers
56f366b432
Remove context_specified_by_name from TodosController
...
Use TodoCreateParamsHelper instead to remove the duplication
2013-04-26 08:04:22 -05:00
Matt Rogers
d5dc723ef0
Remove project_specified_by_name from TodoController
...
Use TodoCreateParamsHelper instead here and remove the duplication
2013-04-26 08:02:47 -05:00
Matt Rogers
445a0c7602
Remove trailing whitespace
2013-04-26 07:55:06 -05:00
Matt Rogers
a60b4389cd
Fix a bug when generating predecessor autocomplete data
2013-04-25 21:13:49 -05:00
Matt Rogers & Katrina Owen
a1b270699d
Extract creation of todos from recurrings todos
2013-04-25 20:45:14 -05:00
Reinier Balt
0607096e7c
add cucumber tests for tickler with group by project
2013-04-24 23:30:58 +02:00
Reinier Balt
a987ff3727
use size in stead of count to prevent unnecessary querying
2013-04-22 11:11:53 +02:00
Reinier Balt
caec4f214a
enable group by project for tickler
2013-04-20 20:20:57 +02:00
Reinier Balt
9172d5e001
fix failing scenario
2013-04-17 23:26:46 +02:00
Reinier Balt
8641ecfc4e
add some project grouping scenarios to edit_a_todo and fix failures
...
also refactor step definitions
2013-04-17 22:11:24 +02:00
Reinier Balt
67247980ad
fix failing tests
2013-04-11 11:04:07 +02:00
Reinier Balt
9c0445fcb7
make adding of todos from sidebar work in context and project grouping
2013-04-11 10:53:35 +02:00
Reinier Balt
42566b6fee
add test for collapsing project containers
2013-04-06 12:57:53 +02:00
Dan Rice
b1f54e68b8
Use default context sort order when returning autocomplete
...
Fixes #1403
2013-03-25 12:20:50 +02:00
Katrina Owen
a690e4a4cd
Extract methods in pie chart data model
2013-03-18 19:57:42 -06:00
Katrina Owen
961227da0c
Extract pie chart data logic into model layer
...
Move most of the tests for this logic into the unit test layer.
2013-03-18 19:49:54 -06:00
Katrina Owen
9f3470f9dc
Shave off slight redundancy
2013-03-18 18:59:56 -06:00
Katrina Owen
f3a076c2af
Turn unreferenced ivars into local variables
2013-03-18 18:58:36 -06:00
Katrina Owen
6e2f1a8e5f
De-dupe pie chart view
...
Pull logic into the controller from the view. There were only a couple
of tiny differences between the running actions and the total actions
view, so I added a couple of instance variables and then called the same
template twice.
2013-03-18 18:56:41 -06:00
Matt Rogers
0cd6656be2
Merge pull request #175 from kytrinyx/pie-chart-bug
...
Add heavy-handed tests against pie chart bug
2013-03-18 06:41:38 -07:00
Reinier Balt
85fc82d494
refactor done todos view and tests
2013-03-18 12:36:40 +01:00
Reinier Balt
ede898120c
remove option to show empty containers and start fixing failing cucumber scenarios
2013-03-18 12:36:40 +01:00
Reinier Balt
22b371ef8c
do a big refactor of rendering collections of todos for home page, tag page, project page, context page
2013-03-18 12:36:40 +01:00
Reinier Balt
f22dfc1f9b
initial changes to add an option to select either context or project as grouping of todos on home or tag page
...
* new menu item in view menu
* js to toggle view
* store setting in cookie to keep de choice of view persistent
* refactor index and tag page of todos to look more alike
* refactor context and project partials to look more alike
2013-03-18 12:32:28 +01:00
Katrina Owen
d6ed7d9722
Add heavy-handed tests against pie chart bug
2013-03-17 19:20:48 -06:00
Katrina Owen
119e536a97
Fix off-by-one error in pie chart data
...
A pie chart with exactly 10 contexts would show up with 9 contexts +
(other).
2013-03-17 16:20:12 -06:00
Dan Rice
d0a12a7010
Merge pull request #173 from zoombody/remove_formatize
...
Render notes using RedCloth without formatize
2013-03-13 08:58:48 -07:00
Dan Rice
dc311221f1
Render notes using RedCloth without formatize
...
Removes the outdated bluecloth dependency
2013-03-13 17:03:58 +02:00
Matt Rogers
f541a4c9d6
Simplify SearchController#results
...
Give names to the various things being searched for and move them out
into their own methods. Also add scopes to give names to things being
queried out of the models.
2013-03-12 19:49:19 -05:00